Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate to swc 3.0.0 for next upgrade #196

Merged
merged 16 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/new-points-hang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"next-yak": major
"yak-swc": major
---

Upgrade SWC to 3.x to add support for Next.js 15.0.0
2 changes: 1 addition & 1 deletion packages/benchmarks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"codspeed:run": "NODE_ENV=production node ./codspeed/dist/index.bench.mjs"
},
"dependencies": {
"next": "14.2.4",
"next": "15.0.2",
"react": "18.3.1",
"react-dom": "18.3.1",
"next-yak": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/cross-file-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"vitest": "2.0.4",
"webpack": "5.92.1",
"swc-loader": "0.2.6",
"@swc/core": "1.6.0",
"@swc/core": "1.7.42",
"next-yak": "workspace:*",
"memfs": "4.9.3",
"unionfs": "4.5.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/example/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
2 changes: 1 addition & 1 deletion packages/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@types/node": "20.4.5",
"@types/react": "18.2.28",
"@types/react-dom": "18.2.7",
"next": "14.2.4",
"next": "15.0.2",
"next-yak": "workspace:*",
"postcss-nested": "^6.2.0",
"react": "18.3.1",
Expand Down
10 changes: 1 addition & 9 deletions packages/example/yak.context.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import { cookies } from 'next/headers'
import { cache } from "react";

const hasHighContrast = cache(() => {
const cookieStore = cookies()
return cookieStore.get("highContrast")?.value === "true"
});

export function getYakThemeContext() {
return {
highContrast: hasHighContrast()
highContrast: false
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/next-yak/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"@types/react-test-renderer": "^18.0.3",
"fast-glob": "3.3.2",
"jsdom": "^22.1.0",
"next": "14.2.4",
"next": "15.0.2",
"react": "18.3.1",
"react-test-renderer": "18.3.1",
"typescript": "5.5.2",
Expand Down
Loading
Loading