Skip to content

Commit

Permalink
Version Packages (alpha) (#3561)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Jul 20, 2022
1 parent abb1ad5 commit 57a53fa
Show file tree
Hide file tree
Showing 17 changed files with 103 additions and 23 deletions.
6 changes: 6 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"cool-horses-check",
"curly-seas-serve",
"dirty-monkeys-greet",
"dirty-planets-chew",
"eleven-humans-sort",
"empty-berries-rule",
"empty-turkeys-wave",
Expand All @@ -41,16 +42,19 @@
"gentle-dogs-reply",
"good-apes-drum",
"good-insects-wink",
"gorgeous-buses-scream",
"great-months-train",
"green-papayas-do",
"healthy-rice-shout",
"heavy-apes-judge",
"hot-drinks-approve",
"hungry-baboons-swim",
"late-steaks-give",
"lemon-games-press",
"lemon-seas-push",
"lovely-colts-share",
"lucky-cows-try",
"mean-gorillas-reply",
"modern-cameras-pull",
"moody-bags-walk",
"moody-squids-cheer",
Expand All @@ -72,6 +76,7 @@
"poor-shrimps-think",
"popular-teachers-pay",
"purple-singers-greet",
"quick-cycles-confess",
"quiet-feet-travel",
"quiet-pans-hunt",
"quiet-sloths-rule",
Expand All @@ -85,6 +90,7 @@
"small-socks-confess",
"smooth-planets-admire",
"soft-adults-smell",
"sour-lemons-hunt",
"strong-apes-reply",
"stupid-walls-sell",
"swift-drinks-dress",
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 @@ -29,7 +29,7 @@
"@blitzjs/rpc": "workspace:*",
"@hookform/resolvers": "2.8.8",
"@prisma/client": "3.9.0",
"blitz": "workspace:2.0.0-alpha.55",
"blitz": "workspace:2.0.0-alpha.56",
"next": "12.2.0",
"prisma": "4.0.0",
"react": "18.0.0",
Expand Down
22 changes: 22 additions & 0 deletions packages/blitz-auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# @blitzjs/auth

## 2.0.0-alpha.56

### Patch Changes

- 3f20a474: Update `deleteSession` return type — allow undefined values
- abe2afcc: Fix a long-standing issue with occasional blitz auth flakiness

This bug would sometimes cause users to be logged out or to experience an CSRFTokenMismatchError. This bug, when encountered, usually by lots of setPublicData or session.create calls, would not set the cookie headers correctly resulting in cookies being set to a previous state or in a possibly undefined state.

There are no security concerns as far as I can tell.

- 8bcb471a: Fix auth issue where session token and publicData cookie were updated unnecessarily, leading to potential user logout

- Previously, we were updating the session token each time public data changed. This is not needed, and it would cause race condition bugs where a user could be unexpectedly logged out because a request already in flight would not match the new session token.
- Previously, we were updating the publicData cookie even when it hadn't changed. This may reduce unnecessary re-renders on the client.

- Updated dependencies [abb1ad5d]
- Updated dependencies [abe2afcc]
- Updated dependencies [0ac6e171]
- Updated dependencies [8bcb471a]
- [email protected]

## 2.0.0-alpha.55

### Patch Changes
Expand Down
6 changes: 3 additions & 3 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-alpha.55",
"version": "2.0.0-alpha.56",
"scripts": {
"build": "unbuild",
"predev": "wait-on -d 250 ../blitz/dist/index-server.d.ts",
Expand All @@ -26,7 +26,7 @@
"@types/secure-password": "3.1.1",
"b64-lite": "1.4.0",
"bad-behavior": "1.0.1",
"blitz": "2.0.0-alpha.55",
"blitz": "2.0.0-alpha.56",
"cookie": "0.4.1",
"cookie-session": "2.0.0",
"debug": "4.3.3",
Expand All @@ -39,7 +39,7 @@
"url": "0.11.0"
},
"devDependencies": {
"@blitzjs/config": "workspace:2.0.0-alpha.55",
"@blitzjs/config": "workspace:2.0.0-alpha.56",
"@testing-library/react": "13.0.0",
"@testing-library/react-hooks": "7.0.2",
"@types/cookie": "0.4.1",
Expand Down
7 changes: 7 additions & 0 deletions packages/blitz-next/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @blitzjs/next

## 2.0.0-alpha.56

### Patch Changes

- d9fc5d8e: Allow prefetching multiple queries in gSSP and gSP
- @blitzjs/rpc@2.0.0-alpha.56

## 2.0.0-alpha.55

### Patch Changes
Expand Down
8 changes: 4 additions & 4 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-alpha.55",
"version": "2.0.0-alpha.56",
"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-alpha.55",
"@blitzjs/rpc": "2.0.0-alpha.56",
"@types/hoist-non-react-statics": "3.3.1",
"debug": "4.3.3",
"fs-extra": "10.0.1",
Expand All @@ -33,7 +33,7 @@
"superjson": "1.8.0"
},
"devDependencies": {
"@blitzjs/config": "workspace:2.0.0-alpha.55",
"@blitzjs/config": "workspace:2.0.0-alpha.56",
"@testing-library/dom": "8.13.0",
"@testing-library/jest-dom": "5.16.3",
"@testing-library/react": "13.0.0",
Expand All @@ -43,7 +43,7 @@
"@types/react": "18.0.1",
"@types/react-dom": "17.0.14",
"@types/testing-library__react-hooks": "4.0.0",
"blitz": "2.0.0-alpha.55",
"blitz": "2.0.0-alpha.56",
"cross-spawn": "7.0.3",
"find-up": "4.1.0",
"next": "12.2.0",
Expand Down
12 changes: 12 additions & 0 deletions packages/blitz-rpc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @blitzjs/rpc

## 2.0.0-alpha.56

### Patch Changes

- Updated dependencies [3f20a474]
- Updated dependencies [abb1ad5d]
- Updated dependencies [abe2afcc]
- Updated dependencies [0ac6e171]
- Updated dependencies [8bcb471a]
- @blitzjs/auth@2.0.0-alpha.56
- [email protected]

## 2.0.0-alpha.55

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/blitz-rpc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blitzjs/rpc",
"version": "2.0.0-alpha.55",
"version": "2.0.0-alpha.56",
"scripts": {
"build": "unbuild",
"predev": "wait-on -d 250 ../blitz/dist/index-server.d.ts && wait-on -d 250 ../blitz-auth/dist/index-browser.d.ts",
Expand All @@ -20,7 +20,7 @@
"dist/**"
],
"dependencies": {
"@blitzjs/auth": "2.0.0-alpha.55",
"@blitzjs/auth": "2.0.0-alpha.56",
"b64-lite": "1.4.0",
"bad-behavior": "1.0.1",
"chalk": "^4.1.0",
Expand All @@ -30,11 +30,11 @@
"zod": "3.17.3"
},
"devDependencies": {
"@blitzjs/config": "workspace:2.0.0-alpha.55",
"@blitzjs/config": "workspace:2.0.0-alpha.56",
"@types/debug": "4.1.7",
"@types/react": "18.0.1",
"@types/react-dom": "17.0.14",
"blitz": "2.0.0-alpha.55",
"blitz": "2.0.0-alpha.56",
"next": "12.2.0",
"react": "18.0.0",
"react-dom": "18.0.0",
Expand All @@ -43,7 +43,7 @@
"watch": "1.0.2"
},
"peerDependencies": {
"blitz": "2.0.0-alpha.55",
"blitz": "2.0.0-alpha.56",
"next": ">=12.2.0"
},
"publishConfig": {
Expand Down
18 changes: 18 additions & 0 deletions packages/blitz/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# blitz

## 2.0.0-alpha.56

### Patch Changes

- abb1ad5d: Improve codemod utilities
- abe2afcc: Fix a long-standing issue with occasional blitz auth flakiness

This bug would sometimes cause users to be logged out or to experience an CSRFTokenMismatchError. This bug, when encountered, usually by lots of setPublicData or session.create calls, would not set the cookie headers correctly resulting in cookies being set to a previous state or in a possibly undefined state.

There are no security concerns as far as I can tell.

- 0ac6e171: fixes blitz not loading custom server
- 8bcb471a: Fix auth issue where session token and publicData cookie were updated unnecessarily, leading to potential user logout

- Previously, we were updating the session token each time public data changed. This is not needed, and it would cause race condition bugs where a user could be unexpectedly logged out because a request already in flight would not match the new session token.
- Previously, we were updating the publicData cookie even when it hadn't changed. This may reduce unnecessary re-renders on the client.
- @blitzjs/generator@2.0.0-alpha.56

## 2.0.0-alpha.55

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/blitz/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blitz",
"version": "2.0.0-alpha.55",
"version": "2.0.0-alpha.56",
"scripts": {
"build": "unbuild",
"dev": "watch unbuild src --wait=0.2",
Expand All @@ -23,7 +23,7 @@
"blitz": "bin/blitz"
},
"dependencies": {
"@blitzjs/generator": "2.0.0-alpha.55",
"@blitzjs/generator": "2.0.0-alpha.56",
"arg": "5.0.1",
"boxen": "7.0.0",
"chalk": "^4.1.0",
Expand Down Expand Up @@ -54,7 +54,7 @@
"watchpack": "2.1.1"
},
"devDependencies": {
"@blitzjs/config": "workspace:2.0.0-alpha.55",
"@blitzjs/config": "workspace:2.0.0-alpha.56",
"@types/cookie": "0.4.1",
"@types/cross-spawn": "6.0.2",
"@types/debug": "4.1.7",
Expand Down
11 changes: 11 additions & 0 deletions packages/codemod/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @blitzjs/codemod

## 2.0.0-alpha.56

### Patch Changes

- Updated dependencies [abb1ad5d]
- Updated dependencies [abe2afcc]
- Updated dependencies [0ac6e171]
- Updated dependencies [8bcb471a]
- [email protected]
- @blitzjs/generator@2.0.0-alpha.56

## 2.0.0-alpha.55

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/codemod/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blitzjs/codemod",
"version": "2.0.0-alpha.55",
"version": "2.0.0-alpha.56",
"scripts": {
"build": "unbuild",
"dev": "watch unbuild src --wait=0.2",
Expand All @@ -25,9 +25,9 @@
"@babel/plugin-proposal-class-properties": "7.17.12",
"@babel/plugin-syntax-jsx": "7.17.12",
"@babel/plugin-syntax-typescript": "7.17.12",
"@blitzjs/generator": "2.0.0-alpha.55",
"@blitzjs/generator": "2.0.0-alpha.56",
"arg": "5.0.1",
"blitz": "2.0.0-alpha.55",
"blitz": "2.0.0-alpha.56",
"chalk": "^4.1.0",
"cross-spawn": "7.0.3",
"debug": "4.3.3",
Expand Down
2 changes: 2 additions & 0 deletions packages/config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @blitzjs/config

## 2.0.0-alpha.56

## 2.0.0-alpha.55

## 2.0.0-alpha.54
Expand Down
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@blitzjs/config",
"private": true,
"version": "2.0.0-alpha.55",
"version": "2.0.0-alpha.56",
"license": "MIT",
"dependencies": {
"@typescript-eslint/eslint-plugin": "5.9.1",
Expand Down
2 changes: 2 additions & 0 deletions packages/generator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @blitzjs/generator

## 2.0.0-alpha.56

## 2.0.0-alpha.55

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/generator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blitzjs/generator",
"version": "2.0.0-alpha.55",
"version": "2.0.0-alpha.56",
"scripts": {
"dev": "watch unbuild src --wait=0.2",
"build": "unbuild && pnpm build:templates",
Expand Down Expand Up @@ -45,7 +45,7 @@
"vinyl": "2.2.1"
},
"devDependencies": {
"@blitzjs/config": "2.0.0-alpha.55",
"@blitzjs/config": "2.0.0-alpha.56",
"@juanm04/cpx": "2.0.1",
"@types/babel__core": "7.1.19",
"@types/diff": "5.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/pkg-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@typescript-eslint/parser": "5.9.1"
},
"devDependencies": {
"@blitzjs/config": "2.0.0-alpha.55",
"@blitzjs/config": "2.0.0-alpha.56",
"@types/react": "18.0.1",
"@types/react-dom": "17.0.14",
"react": "18.0.0",
Expand Down

0 comments on commit 57a53fa

Please sign in to comment.