Skip to content

Commit

Permalink
Update Next.js version and addBasePath location (#3506)
Browse files Browse the repository at this point in the history
  • Loading branch information
beerose authored Jul 6, 2022
1 parent 830b51d commit c11f040
Show file tree
Hide file tree
Showing 23 changed files with 177 additions and 129 deletions.
6 changes: 6 additions & 0 deletions .changeset/lemon-games-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@blitzjs/rpc": patch
"@blitzjs/generator": patch
---

Update Next.js version and addBasePath location
4 changes: 2 additions & 2 deletions apps/toolkit-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
"@hookform/resolvers": "2.8.8",
"@prisma/client": "3.9.0",
"blitz": "workspace:2.0.0-alpha.49",
"next": "12.1.6-canary.17",
"next": "12.2.0",
"prisma": "3.9.0",
"react": "18.0.0",
"react-dom": "18.0.0",
"react-hook-form": "7.29.0",
"ts-node": "10.7.0",
"zod": "3.10.1"
"zod": "3.17.3"
},
"devDependencies": {
"@next/bundle-analyzer": "12.0.8",
Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@types/passport-twitter": "1.0.37",
"blitz": "workspace:*",
"jest": "27.5.1",
"next": "12.1.6-canary.17",
"next": "12.2.0",
"passport-mock-strategy": "2.0.0",
"passport-twitter": "1.0.4",
"prisma": "3.9.0",
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@prisma/client": "3.9.0",
"blitz": "workspace:*",
"lowdb": "3.0.0",
"next": "12.1.6-canary.17",
"next": "12.2.0",
"prisma": "3.9.0",
"react": "18.0.0",
"react-dom": "18.0.0"
Expand Down
File renamed without changes.
4 changes: 1 addition & 3 deletions integration-tests/middleware/next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
const {withBlitz} = require("@blitzjs/next")
module.exports = withBlitz({
// update me
})
module.exports = withBlitz({})
2 changes: 1 addition & 1 deletion integration-tests/middleware/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@blitzjs/next": "workspace:*",
"@blitzjs/rpc": "workspace:*",
"blitz": "workspace:*",
"next": "12.1.6-canary.17",
"next": "12.2.0",
"react": "18.0.0",
"react-dom": "18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/no-suspense/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@prisma/client": "3.9.0",
"blitz": "workspace:*",
"lowdb": "3.0.0",
"next": "12.1.6-canary.17",
"next": "12.2.0",
"prisma": "3.9.0",
"react": "18.0.0",
"react-dom": "18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/qm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@blitzjs/rpc": "workspace:*",
"@prisma/client": "3.9.0",
"blitz": "workspace:*",
"next": "12.1.6-canary.17",
"next": "12.2.0",
"prisma": "3.9.0",
"react": "18.0.0",
"react-dom": "18.0.0",
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/rpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@blitzjs/next": "workspace:*",
"@blitzjs/rpc": "workspace:*",
"blitz": "workspace:*",
"next": "12.1.6-canary.17",
"next": "12.2.0",
"react": "18.0.0",
"react-dom": "18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/trailing-slash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@prisma/client": "3.9.0",
"blitz": "workspace:*",
"lowdb": "3.0.0",
"next": "12.1.6-canary.17",
"next": "12.2.0",
"prisma": "3.9.0",
"react": "18.0.0",
"react-dom": "18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"husky": "7.0.4",
"jsdom": "^19.0.0",
"lint-staged": "12.1.7",
"next": "12.1.6-canary.17",
"next": "12.2.0",
"only-allow": "1.1.0",
"patch-package": "6.4.7",
"prettier": "^2.5.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/blitz-auth/src/server/passport-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export type VerifyCallbackResult = {

export type ApiHandlerIncomingMessage = IncomingMessage & {
query: {
[key: string]: string | string[]
[key: string]: string | string[] | undefined
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/blitz-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"blitz": "2.0.0-alpha.49",
"cross-spawn": "7.0.3",
"find-up": "4.1.0",
"next": "12.1.6-canary.17",
"next": "12.2.0",
"react": "18.0.0",
"react-dom": "18.0.0",
"resolve-from": "5.0.0",
Expand All @@ -58,7 +58,7 @@
"access": "public"
},
"peerDependencies": {
"next": "*",
"next": ">=12.2.0",
"react": "*"
}
}
6 changes: 3 additions & 3 deletions packages/blitz-rpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
"debug": "4.3.3",
"react-query": "3.39.0",
"superjson": "1.8.0",
"zod": "3.10.1"
"zod": "3.17.3"
},
"devDependencies": {
"@blitzjs/config": "workspace:2.0.0-alpha.49",
"@types/debug": "4.1.7",
"@types/react": "18.0.1",
"@types/react-dom": "17.0.14",
"blitz": "2.0.0-alpha.49",
"next": "12.1.6-canary.17",
"next": "12.2.0",
"react": "18.0.0",
"react-dom": "18.0.0",
"typescript": "^4.5.3",
Expand All @@ -44,7 +44,7 @@
},
"peerDependencies": {
"blitz": "2.0.0-alpha.49",
"next": "*"
"next": ">=12.2.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/blitz-rpc/src/data-client/rpc.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {normalizePathTrailingSlash} from "next/dist/client/normalize-trailing-slash"
import {addBasePath} from "next/dist/shared/lib/router/router"
import {addBasePath} from "next/dist/client/add-base-path"
import {deserialize, serialize} from "superjson"
import {SuperJSONResult} from "superjson/dist/types"
import {CSRFTokenMismatchError, isServer} from "blitz"
Expand Down
2 changes: 1 addition & 1 deletion packages/blitz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"typescript": "^4.5.3",
"unbuild": "0.6.9",
"watch": "1.0.2",
"zod": "3.10.1"
"zod": "3.17.3"
},
"peerDependencies": {
"react": "*"
Expand Down
2 changes: 1 addition & 1 deletion packages/blitz/src/zod-utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe("formatZodError", () => {
})
expect(formatZodError(result.error)).toEqual({
students: [undefined, {name: "Required"}, {name: "Expected string, received boolean"}],
data: [undefined, "Expected true, received undefined"],
data: [undefined, "Invalid literal value, expected true"],
})
})
})
Expand Down
4 changes: 2 additions & 2 deletions packages/generator/templates/app/package.js.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
"@blitzjs/rpc": "latest",
"@prisma/client": "3.9.0",
"blitz": "alpha",
"next": "12.1.6",
"next": "12.2.0",
"prisma": "3.9.0",
"react": "18.0.0",
"react-dom": "18.0.0",
"zod": "3.10.1"
"zod": "3.17.3"
},
"devDependencies": {
"@next/bundle-analyzer": "12.0.8",
Expand Down
4 changes: 2 additions & 2 deletions packages/generator/templates/app/package.ts.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
"@blitzjs/rpc": "latest",
"@prisma/client": "3.9.0",
"blitz": "alpha",
"next": "12.1.6",
"next": "12.2.0",
"prisma": "3.9.0",
"react": "18.0.0",
"react-dom": "18.0.0",
"zod": "3.10.1"
"zod": "3.17.3"
},
"devDependencies": {
"@next/bundle-analyzer": "12.0.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/generator/templates/minimalapp/package.js.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"dependencies": {
"@blitzjs/next": "alpha",
"blitz": "alpha",
"next": "12.1.6",
"next": "12.2.0",
"react": "18.0.0",
"react-dom": "18.0.0",
"ts-node": "10.7.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/generator/templates/minimalapp/package.ts.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dependencies": {
"@blitzjs/next": "alpha",
"blitz": "alpha",
"next": "12.1.6",
"next": "12.2.0",
"react": "18.0.0",
"react-dom": "18.0.0",
"ts-node": "10.7.0"
Expand Down
Loading

0 comments on commit c11f040

Please sign in to comment.