Skip to content

Commit

Permalink
Version Packages (beta) (#4035)
Browse files Browse the repository at this point in the history
* Version Packages (beta)

* Version Packages (beta)

* pnpm lock

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
siddhsuresh and github-actions[bot] authored Jan 3, 2023
1 parent 249e7cf commit 9be4d86
Show file tree
Hide file tree
Showing 52 changed files with 309 additions and 237 deletions.
6 changes: 6 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"calm-papayas-protect",
"calm-tomatoes-drive",
"chilled-carrots-own",
"chilly-candles-care",
"chilly-nails-nail",
"clean-hats-pump",
"clean-walls-wink",
Expand All @@ -81,6 +82,7 @@
"cyan-cars-greet",
"dirty-monkeys-greet",
"dirty-planets-chew",
"dull-rings-arrive",
"early-lamps-itch",
"eighty-apes-sleep",
"eleven-humans-sort",
Expand All @@ -99,6 +101,7 @@
"few-hounds-worry",
"few-shrimps-leave",
"flat-bees-approve",
"fluffy-coats-flow",
"fluffy-mangos-begin",
"fluffy-mice-wash",
"forty-timers-rhyme",
Expand Down Expand Up @@ -248,6 +251,7 @@
"stale-parents-yawn",
"strong-apes-reply",
"strong-keys-lie",
"stupid-rabbits-jump",
"stupid-walls-sell",
"sweet-kiwis-cross",
"swift-drinks-dress",
Expand All @@ -260,10 +264,12 @@
"ten-rivers-burn",
"tender-cooks-tie",
"tender-pianos-check",
"thick-moons-fry",
"thick-parrots-float",
"thirty-countries-build",
"thirty-spies-applaud",
"three-lies-pull",
"three-toes-sell",
"tidy-clouds-smoke",
"tidy-llamas-compare",
"tough-toes-pull",
Expand Down
2 changes: 1 addition & 1 deletion apps/toolkit-app-passportjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@hookform/error-message": "2.0.0",
"@hookform/resolvers": "2.9.10",
"@prisma/client": "4.6.0",
"blitz": "workspace:2.0.0-beta.20",
"blitz": "workspace:2.0.0-beta.21",
"next": "12.2.5",
"openid-client": "5.2.1",
"prisma": "4.6.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/toolkit-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@hookform/error-message": "2.0.0",
"@hookform/resolvers": "2.9.10",
"@prisma/client": "4.6.0",
"blitz": "workspace:2.0.0-beta.20",
"blitz": "workspace:2.0.0-beta.21",
"next": "12.2.5",
"prisma": "4.6.0",
"react": "18.2.0",
Expand Down
10 changes: 5 additions & 5 deletions integration-tests/auth-with-rpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
"prisma:studio": "prisma studio"
},
"dependencies": {
"@blitzjs/auth": "workspace:2.0.0-beta.20",
"@blitzjs/config": "workspace:2.0.0-beta.20",
"@blitzjs/next": "workspace:2.0.0-beta.20",
"@blitzjs/rpc": "workspace:2.0.0-beta.20",
"@blitzjs/auth": "workspace:2.0.0-beta.21",
"@blitzjs/config": "workspace:2.0.0-beta.21",
"@blitzjs/next": "workspace:2.0.0-beta.21",
"@blitzjs/rpc": "workspace:2.0.0-beta.21",
"@hookform/error-message": "2.0.0",
"@hookform/resolvers": "2.9.10",
"@prisma/client": "4.6.0",
"blitz": "workspace:2.0.0-beta.20",
"blitz": "workspace:2.0.0-beta.21",
"delay": "5.0.0",
"next": "12.2.5",
"prisma": "4.6.0",
Expand Down
8 changes: 4 additions & 4 deletions integration-tests/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
"prisma:studio": "prisma studio"
},
"dependencies": {
"@blitzjs/auth": "workspace:2.0.0-beta.20",
"@blitzjs/config": "workspace:2.0.0-beta.20",
"@blitzjs/next": "workspace:2.0.0-beta.20",
"@blitzjs/auth": "workspace:2.0.0-beta.21",
"@blitzjs/config": "workspace:2.0.0-beta.21",
"@blitzjs/next": "workspace:2.0.0-beta.21",
"@prisma/client": "4.6.0",
"blitz": "workspace:2.0.0-beta.20",
"blitz": "workspace:2.0.0-beta.21",
"lowdb": "3.0.0",
"next": "12.2.5",
"prisma": "4.6.0",
Expand Down
10 changes: 5 additions & 5 deletions integration-tests/get-initial-props/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@
"schema": "db/schema.prisma"
},
"dependencies": {
"@blitzjs/auth": "workspace:2.0.0-beta.20",
"@blitzjs/next": "workspace:2.0.0-beta.20",
"@blitzjs/rpc": "workspace:2.0.0-beta.20",
"@blitzjs/auth": "workspace:2.0.0-beta.21",
"@blitzjs/next": "workspace:2.0.0-beta.21",
"@blitzjs/rpc": "workspace:2.0.0-beta.21",
"@prisma/client": "4.6.0",
"blitz": "workspace:2.0.0-beta.20",
"blitz": "workspace:2.0.0-beta.21",
"lowdb": "3.0.0",
"next": "12.2.5",
"prisma": "4.6.0",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@blitzjs/config": "workspace:2.0.0-beta.20",
"@blitzjs/config": "workspace:2.0.0-beta.21",
"@next/bundle-analyzer": "12.0.8",
"@types/express": "4.17.13",
"@types/fs-extra": "9.0.13",
Expand Down
8 changes: 4 additions & 4 deletions integration-tests/middleware/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next"
},
"dependencies": {
"@blitzjs/config": "workspace:2.0.0-beta.20",
"@blitzjs/next": "workspace:2.0.0-beta.20",
"@blitzjs/rpc": "workspace:2.0.0-beta.20",
"blitz": "workspace:2.0.0-beta.20",
"@blitzjs/config": "workspace:2.0.0-beta.21",
"@blitzjs/next": "workspace:2.0.0-beta.21",
"@blitzjs/rpc": "workspace:2.0.0-beta.21",
"blitz": "workspace:2.0.0-beta.21",
"next": "12.2.5",
"react": "18.2.0",
"react-dom": "18.2.0"
Expand Down
10 changes: 5 additions & 5 deletions integration-tests/no-suspense/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@
"prisma:studio": "prisma studio"
},
"dependencies": {
"@blitzjs/auth": "workspace:2.0.0-beta.20",
"@blitzjs/next": "workspace:2.0.0-beta.20",
"@blitzjs/rpc": "workspace:2.0.0-beta.20",
"@blitzjs/auth": "workspace:2.0.0-beta.21",
"@blitzjs/next": "workspace:2.0.0-beta.21",
"@blitzjs/rpc": "workspace:2.0.0-beta.21",
"@prisma/client": "4.6.0",
"blitz": "workspace:2.0.0-beta.20",
"blitz": "workspace:2.0.0-beta.21",
"lowdb": "3.0.0",
"next": "12.2.5",
"prisma": "4.6.0",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@blitzjs/config": "workspace:2.0.0-beta.20",
"@blitzjs/config": "workspace:2.0.0-beta.21",
"@next/bundle-analyzer": "12.0.8",
"@types/express": "4.17.13",
"@types/fs-extra": "9.0.13",
Expand Down
10 changes: 5 additions & 5 deletions integration-tests/qm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"clean": "rm -rf .turbo && rm -rf node_modules"
},
"dependencies": {
"@blitzjs/auth": "workspace:2.0.0-beta.20",
"@blitzjs/config": "workspace:2.0.0-beta.20",
"@blitzjs/next": "workspace:2.0.0-beta.20",
"@blitzjs/rpc": "workspace:2.0.0-beta.20",
"@blitzjs/auth": "workspace:2.0.0-beta.21",
"@blitzjs/config": "workspace:2.0.0-beta.21",
"@blitzjs/next": "workspace:2.0.0-beta.21",
"@blitzjs/rpc": "workspace:2.0.0-beta.21",
"@prisma/client": "4.6.0",
"@tanstack/react-query": "4.0.10",
"blitz": "workspace:2.0.0-beta.20",
"blitz": "workspace:2.0.0-beta.21",
"next": "12.2.5",
"prisma": "4.6.0",
"react": "18.2.0",
Expand Down
8 changes: 4 additions & 4 deletions integration-tests/react-query-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@
"schema": "db/schema.prisma"
},
"dependencies": {
"@blitzjs/next": "workspace:2.0.0-beta.20",
"@blitzjs/rpc": "workspace:2.0.0-beta.20",
"@blitzjs/next": "workspace:2.0.0-beta.21",
"@blitzjs/rpc": "workspace:2.0.0-beta.21",
"@prisma/client": "4.6.0",
"blitz": "workspace:2.0.0-beta.20",
"blitz": "workspace:2.0.0-beta.21",
"lowdb": "3.0.0",
"next": "12.2.5",
"prisma": "4.6.0",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@blitzjs/config": "workspace:2.0.0-beta.20",
"@blitzjs/config": "workspace:2.0.0-beta.21",
"@next/bundle-analyzer": "12.0.8",
"@types/express": "4.17.13",
"@types/fs-extra": "9.0.13",
Expand Down
8 changes: 4 additions & 4 deletions integration-tests/rpc-path-root/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next"
},
"dependencies": {
"@blitzjs/config": "workspace:2.0.0-beta.20",
"@blitzjs/next": "workspace:2.0.0-beta.20",
"@blitzjs/rpc": "workspace:2.0.0-beta.20",
"blitz": "workspace:2.0.0-beta.20",
"@blitzjs/config": "workspace:2.0.0-beta.21",
"@blitzjs/next": "workspace:2.0.0-beta.21",
"@blitzjs/rpc": "workspace:2.0.0-beta.21",
"blitz": "workspace:2.0.0-beta.21",
"next": "12.2.5",
"react": "18.2.0",
"react-dom": "18.2.0"
Expand Down
8 changes: 4 additions & 4 deletions integration-tests/rpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next"
},
"dependencies": {
"@blitzjs/config": "workspace:2.0.0-beta.20",
"@blitzjs/next": "workspace:2.0.0-beta.20",
"@blitzjs/rpc": "workspace:2.0.0-beta.20",
"blitz": "workspace:2.0.0-beta.20",
"@blitzjs/config": "workspace:2.0.0-beta.21",
"@blitzjs/next": "workspace:2.0.0-beta.21",
"@blitzjs/rpc": "workspace:2.0.0-beta.21",
"blitz": "workspace:2.0.0-beta.21",
"next": "12.2.5",
"react": "18.2.0",
"react-dom": "18.2.0"
Expand Down
10 changes: 5 additions & 5 deletions integration-tests/trailing-slash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@
"schema": "db/schema.prisma"
},
"dependencies": {
"@blitzjs/auth": "workspace:2.0.0-beta.20",
"@blitzjs/next": "workspace:2.0.0-beta.20",
"@blitzjs/rpc": "workspace:2.0.0-beta.20",
"@blitzjs/auth": "workspace:2.0.0-beta.21",
"@blitzjs/next": "workspace:2.0.0-beta.21",
"@blitzjs/rpc": "workspace:2.0.0-beta.21",
"@prisma/client": "4.6.0",
"blitz": "workspace:2.0.0-beta.20",
"blitz": "workspace:2.0.0-beta.21",
"lowdb": "3.0.0",
"next": "12.2.5",
"prisma": "4.6.0",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@blitzjs/config": "workspace:2.0.0-beta.20",
"@blitzjs/config": "workspace:2.0.0-beta.21",
"@next/bundle-analyzer": "12.0.8",
"@types/express": "4.17.13",
"@types/fs-extra": "9.0.13",
Expand Down
10 changes: 10 additions & 0 deletions packages/blitz-auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @blitzjs/auth

## 2.0.0-beta.21

### Patch Changes

- 82e8b64f5: Fixes adding authError query param in Passport adapter.
- Updated dependencies [d692b4c1d]
- Updated dependencies [10f98c681]
- Updated dependencies [d5b8faa86]
- [email protected]

## 2.0.0-beta.20

### Minor Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/blitz-auth/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blitzjs/auth",
"version": "2.0.0-beta.20",
"version": "2.0.0-beta.21",
"scripts": {
"build": "unbuild",
"predev": "wait-on -d 250 ../blitz/dist/index-server.d.ts",
Expand Down Expand Up @@ -39,18 +39,18 @@
"url": "0.11.0"
},
"peerDependencies": {
"blitz": "2.0.0-beta.20"
"blitz": "2.0.0-beta.21"
},
"devDependencies": {
"@blitzjs/config": "workspace:2.0.0-beta.20",
"@blitzjs/config": "workspace:2.0.0-beta.21",
"@testing-library/react": "13.4.0",
"@testing-library/react-hooks": "8.0.1",
"@types/cookie": "0.4.1",
"@types/debug": "4.1.7",
"@types/jsonwebtoken": "8.5.8",
"@types/react": "18.0.25",
"@types/react-dom": "17.0.14",
"blitz": "2.0.0-beta.20",
"blitz": "2.0.0-beta.21",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "^4.8.4",
Expand Down
9 changes: 6 additions & 3 deletions packages/blitz-auth/src/server/passport-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,13 @@ export function passportAuth(config: BlitzPassportConfig): ApiHandler {
if (error) {
console.error(`Login via ${strategyName} was unsuccessful.`)
console.error(error)

const authErrorQueryStringKey = redirectUrl.includes("?") ? "&authError=" : "?authError=";

const authErrorQueryStringKey = redirectUrl.includes("?")
? "&authError="
: "?authError="
redirectUrl +=
authErrorQueryStringKey + encodeURIComponent(truncateString(error.toString(), 100))
authErrorQueryStringKey +
encodeURIComponent(truncateString(error.toString(), 100))
res.setHeader("Location", redirectUrl)
res.statusCode = 302
res.end()
Expand Down
12 changes: 12 additions & 0 deletions packages/blitz-next/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @blitzjs/next

## 2.0.0-beta.21

### Patch Changes

- 10f98c681: Add an href property to the generated route manifest that will return a string of the pathname and included query params.
- Updated dependencies [d692b4c1d]
- Updated dependencies [0025856b9]
- Updated dependencies [10f98c681]
- Updated dependencies [d5b8faa86]
- @blitzjs/rpc@2.0.0-beta.21
- [email protected]

## 2.0.0-beta.20

### Minor Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/blitz-next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blitzjs/next",
"version": "2.0.0-beta.20",
"version": "2.0.0-beta.21",
"scripts": {
"build": "unbuild",
"dev": "pnpm predev && pnpm watch unbuild src --wait=0.2",
Expand All @@ -24,7 +24,7 @@
"eslint.js"
],
"dependencies": {
"@blitzjs/rpc": "2.0.0-beta.20",
"@blitzjs/rpc": "2.0.0-beta.21",
"@tanstack/react-query": "4.0.10",
"@types/hoist-non-react-statics": "3.3.1",
"debug": "4.3.3",
Expand All @@ -34,12 +34,12 @@
"supports-color": "8.1.1"
},
"peerDependencies": {
"blitz": "2.0.0-beta.20",
"blitz": "2.0.0-beta.21",
"next": "*",
"react": "*"
},
"devDependencies": {
"@blitzjs/config": "workspace:2.0.0-beta.20",
"@blitzjs/config": "workspace:2.0.0-beta.21",
"@testing-library/dom": "8.13.0",
"@testing-library/jest-dom": "5.16.3",
"@testing-library/react": "13.4.0",
Expand All @@ -49,7 +49,7 @@
"@types/react": "18.0.25",
"@types/react-dom": "17.0.14",
"@types/testing-library__react-hooks": "4.0.0",
"blitz": "2.0.0-beta.20",
"blitz": "2.0.0-beta.21",
"cross-spawn": "7.0.3",
"find-up": "4.1.0",
"next": "12.2.5",
Expand Down
11 changes: 11 additions & 0 deletions packages/blitz-rpc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @blitzjs/rpc

## 2.0.0-beta.21

### Patch Changes

- d692b4c1d: Fix suspense error codegen patch for nextjs versions 13-13.0.6
- 0025856b9: Support full api of tanstack invalidateQueries
- Updated dependencies [d692b4c1d]
- Updated dependencies [10f98c681]
- Updated dependencies [d5b8faa86]
- [email protected]

## 2.0.0-beta.20

### Minor Changes
Expand Down
Loading

0 comments on commit 9be4d86

Please sign in to comment.