1
0
mirror of synced 2026-02-03 18:01:02 -05:00

Compare commits

...

10 Commits

Author SHA1 Message Date
Brandon Bayer
b9f0af1ca6 v0.23.4 2020-10-02 16:55:21 -04:00
Brandon Bayer
e99454509d Fix query cache not being invalidated on route navigation 2020-10-02 16:46:11 -04:00
Brandon Bayer
ad2583c44e v0.23.3 2020-10-01 14:34:58 -04:00
Brandon Bayer
c2a0c01779 Fix husky pre-push script for new apps (#1207)
(patch)
2020-10-01 14:32:18 -04:00
John Cantrell
83098ad49a Fix bug with creating new session after revoking current one (#1200)
(patch)
2020-10-01 14:32:14 -04:00
Brandon Bayer
15a349e3a4 v0.23.2 2020-09-28 17:26:52 -04:00
Luke Bennett
51c1192574 Use npm for husky pre-push hook instead of yarn (#1179)
(newapp)
2020-09-28 17:25:26 -04:00
Brandon Bayer
f79a0cdb4c v0.23.1 2020-09-28 17:19:57 -04:00
Brandon Bayer
f3eabbde4e allow publishing on branch 2020-09-28 17:17:12 -04:00
Brandon Bayer
0261672219 Disable automatic query request cancellation (#1177)
(patch)
2020-09-28 17:16:34 -04:00
26 changed files with 69 additions and 54 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@examples/auth",
"version": "0.23.0",
"version": "0.23.4",
"scripts": {
"start": "blitz start",
"studio": "blitz db studio",
@@ -35,7 +35,7 @@
"dependencies": {
"@prisma/cli": "2.4.1",
"@prisma/client": "2.4.1",
"blitz": "0.23.0",
"blitz": "0.23.4",
"final-form": "4.20.1",
"passport-auth0": "1.3.3",
"passport-github2": "0.1.11",

View File

@@ -1,6 +1,6 @@
{
"name": "no-prisma",
"version": "0.23.0",
"version": "0.23.4",
"scripts": {
"start": "blitz start",
"build": "blitz build",
@@ -26,7 +26,7 @@
]
},
"dependencies": {
"blitz": "0.23.0",
"blitz": "0.23.4",
"knex": "0.21.2",
"react": "0.0.0-experimental-7f28234f8",
"react-dom": "0.0.0-experimental-7f28234f8",

View File

@@ -1,6 +1,6 @@
{
"name": "@examples/plain-js",
"version": "0.23.0",
"version": "0.23.4",
"scripts": {
"start": "blitz start",
"build": "blitz db migrate && blitz build",
@@ -31,7 +31,7 @@
"dependencies": {
"@prisma/cli": "2.4.1",
"@prisma/client": "2.4.1",
"blitz": "0.23.0",
"blitz": "0.23.4",
"react": "0.0.0-experimental-7f28234f8",
"react-dom": "0.0.0-experimental-7f28234f8"
},

View File

@@ -1,6 +1,6 @@
{
"name": "@examples/store",
"version": "0.23.0",
"version": "0.23.4",
"private": true,
"scripts": {
"build": "blitz db migrate && blitz build",
@@ -18,7 +18,7 @@
"dependencies": {
"@prisma/cli": "2.4.1",
"@prisma/client": "2.4.1",
"blitz": "0.23.0",
"blitz": "0.23.4",
"final-form": "4.19.1",
"react": "0.0.0-experimental-7f28234f8",
"react-dom": "0.0.0-experimental-7f28234f8",

View File

@@ -1,6 +1,6 @@
{
"name": "tailwind",
"version": "0.23.0",
"version": "0.23.4",
"scripts": {
"build": "blitz db migrate && blitz build",
"lint": "eslint --ignore-path .gitignore --ext .js,.ts,.tsx .",
@@ -30,7 +30,7 @@
"dependencies": {
"@prisma/cli": "2.4.1",
"@prisma/client": "2.4.1",
"blitz": "0.23.0",
"blitz": "0.23.4",
"react": "0.0.0-experimental-7f28234f8",
"react-dom": "0.0.0-experimental-7f28234f8",
"typescript": "3.8.3"

View File

@@ -1,5 +1,5 @@
{
"version": "0.23.0",
"version": "0.23.4",
"packages": ["packages/*"],
"npmClient": "yarn",
"useWorkspaces": true,

View File

@@ -34,7 +34,7 @@
"prepack": "cpy README.md packages/blitz/",
"postpack": "rimraf packages/blitz/README.md",
"publish-canary": "yarn run publish-prep && lerna publish --force-publish --preid canary --pre-dist-tag canary",
"publish-latest": "yarn run publish-prep && lerna publish --force-publish",
"publish-latest": "yarn run publish-prep && lerna publish --force-publish --allow-branch v*",
"publish-danger": "lerna publish --canary --pre-dist-tag danger --preid danger.$(git rev-parse --short HEAD) --allow-branch * --force-publish",
"danger:push-all": "git push --no-verify && git push --no-verify --tags"
},

View File

@@ -1,7 +1,7 @@
{
"name": "blitz",
"description": "Blitz is a Rails-like framework for monolithic, full-stack React apps — built on Next.js",
"version": "0.23.0",
"version": "0.23.4",
"license": "MIT",
"scripts": {
"clean": "rimraf dist",
@@ -39,11 +39,11 @@
"url": "https://github.com/blitz-js/blitz"
},
"dependencies": {
"@blitzjs/cli": "0.23.0",
"@blitzjs/core": "0.23.0",
"@blitzjs/generator": "0.23.0",
"@blitzjs/installer": "0.23.0",
"@blitzjs/server": "0.23.0",
"@blitzjs/cli": "0.23.4",
"@blitzjs/core": "0.23.4",
"@blitzjs/generator": "0.23.4",
"@blitzjs/installer": "0.23.4",
"@blitzjs/server": "0.23.4",
"envinfo": "7.7.2",
"os-name": "3.1.0",
"pkg-dir": "4.2.0",

View File

@@ -1,7 +1,7 @@
{
"name": "@blitzjs/cli",
"description": "Blitz.js CLI",
"version": "0.23.0",
"version": "0.23.4",
"license": "MIT",
"scripts": {
"b": "./bin/run",
@@ -30,8 +30,8 @@
"/lib"
],
"dependencies": {
"@blitzjs/display": "0.23.0",
"@blitzjs/repl": "0.23.0",
"@blitzjs/display": "0.23.4",
"@blitzjs/repl": "0.23.4",
"@oclif/command": "1.5.20",
"@oclif/config": "1.15.1",
"@oclif/plugin-autocomplete": "0.2.0",
@@ -59,9 +59,9 @@
"v8-compile-cache": "2.1.1"
},
"devDependencies": {
"@blitzjs/generator": "0.23.0",
"@blitzjs/installer": "0.23.0",
"@blitzjs/server": "0.23.0",
"@blitzjs/generator": "0.23.4",
"@blitzjs/installer": "0.23.4",
"@blitzjs/server": "0.23.4",
"@oclif/dev-cli": "1.22.2",
"@oclif/test": "1.2.5",
"@prisma/cli": "2.4.1",

View File

@@ -7,7 +7,7 @@
"config"
],
"author": "Fran Zekan <zekan.fran369@gmail.com>",
"version": "0.23.0",
"version": "0.23.4",
"license": "MIT",
"scripts": {
"clean": "rimraf dist",

View File

@@ -1,7 +1,7 @@
{
"name": "@blitzjs/core",
"description": "Blitz.js core functionality",
"version": "0.23.0",
"version": "0.23.4",
"license": "MIT",
"scripts": {
"clean": "rimraf dist",
@@ -40,8 +40,8 @@
"url": "https://github.com/blitz-js/blitz"
},
"dependencies": {
"@blitzjs/config": "0.23.0",
"@blitzjs/display": "0.23.0",
"@blitzjs/config": "0.23.4",
"@blitzjs/display": "0.23.4",
"bad-behavior": "1.0.1",
"cookie-session": "1.4.0",
"deepmerge": "4.2.2",

View File

@@ -105,7 +105,9 @@ export function executeRpcCall(url: string, params: any, opts: Options = {}) {
}
})
promise.cancel = () => controller.abort()
// Disable react-query request cancellation for now
// Having too many weird bugs with it enabled
// promise.cancel = () => controller.abort()
return promise
}

View File

@@ -1,7 +1,12 @@
import {queryCache, QueryKey} from "react-query"
import {serialize} from "superjson"
import {InferUnaryParam, QueryFn} from "../types"
import {EnhancedRpcFunction} from "rpc"
import {EnhancedRpcFunction} from "../rpc"
import Router from "next/router"
Router.events.on("routeChangeComplete", async () => {
await (queryCache.invalidateQueries as any)()
})
type MutateOptions = {
refetch?: boolean

View File

@@ -1,6 +1,6 @@
{
"name": "@blitzjs/display",
"version": "0.23.0",
"version": "0.23.4",
"description": "Display package for the Blitz CLI",
"homepage": "https://github.com/blitz-js/blitz#readme",
"license": "MIT",

View File

@@ -1,6 +1,6 @@
{
"name": "@blitzjs/file-pipeline",
"version": "0.23.0",
"version": "0.23.4",
"description": "Display package for the Blitz CLI",
"homepage": "https://github.com/blitz-js/blitz#readme",
"license": "MIT",

View File

@@ -1,6 +1,6 @@
{
"name": "@blitzjs/generator",
"version": "0.23.0",
"version": "0.23.4",
"description": "File generation for the Blitz CLI",
"homepage": "https://github.com/blitz-js/blitz#readme",
"license": "MIT",
@@ -36,7 +36,7 @@
"dependencies": {
"@babel/core": "7.9.0",
"@babel/plugin-transform-typescript": "7.9.4",
"@blitzjs/display": "0.23.0",
"@blitzjs/display": "0.23.4",
"@types/jscodeshift": "0.7.1",
"chalk": "4.0.0",
"cross-spawn": "7.0.3",

View File

@@ -22,7 +22,7 @@
"husky": {
"hooks": {
"pre-commit": "tsc && lint-staged && pretty-quick --staged",
"pre-push": "yarn lint && yarn test"
"pre-push": "npm run lint && npm run test"
}
},
"lint-staged": {

View File

@@ -1,6 +1,6 @@
{
"name": "@blitzjs/installer",
"version": "0.23.0",
"version": "0.23.4",
"description": "Package installation for the Blitz CLI",
"homepage": "https://github.com/blitz-js/blitz#readme",
"license": "MIT",
@@ -36,8 +36,8 @@
"dependencies": {
"@babel/core": "7.9.0",
"@babel/plugin-transform-typescript": "7.9.4",
"@blitzjs/display": "0.23.0",
"@blitzjs/generator": "0.23.0",
"@blitzjs/display": "0.23.4",
"@blitzjs/generator": "0.23.4",
"@types/jscodeshift": "0.7.1",
"chokidar": "3.4.2",
"cross-spawn": "7.0.3",

View File

@@ -1,6 +1,6 @@
{
"name": "@blitzjs/repl",
"version": "0.23.0",
"version": "0.23.4",
"description": "Repl package for Blitz CLI",
"homepage": "https://github.com/blitz-js/blitz/packages/repl/#readme",
"license": "MIT",

View File

@@ -1,7 +1,7 @@
{
"name": "@blitzjs/server",
"description": "Blitz.js server functionality",
"version": "0.23.0",
"version": "0.23.4",
"license": "MIT",
"bin": {
"next-patched": "./bin/next-patched"
@@ -29,9 +29,9 @@
"module": "dist/server.esm.js",
"types": "dist/packages/server/src/index.d.ts",
"dependencies": {
"@blitzjs/config": "0.23.0",
"@blitzjs/display": "0.23.0",
"@blitzjs/file-pipeline": "0.23.0",
"@blitzjs/config": "0.23.4",
"@blitzjs/display": "0.23.4",
"@blitzjs/file-pipeline": "0.23.4",
"b64-lite": "1.4.0",
"cookie": "0.4.1",
"cross-spawn": "7.0.3",
@@ -67,7 +67,7 @@
"vinyl-fs": "3.0.3"
},
"devDependencies": {
"@blitzjs/core": "0.23.0",
"@blitzjs/core": "0.23.4",
"next-transpile-modules": "3.2.0"
},
"gitHead": "d3b9fce0bdd251c2b1890793b0aa1cd77c1c0922"

View File

@@ -372,6 +372,13 @@ export const setHeader = (res: ServerResponse, name: string, value: string) => {
}
}
export const removeHeader = (res: ServerResponse, name: string) => {
res.removeHeader(name)
if ("_blitz" in res) {
delete (res as any)._blitz[name]
}
}
export const setSessionCookie = (
req: IncomingMessage,
res: ServerResponse,
@@ -647,6 +654,7 @@ export async function createNewSession(
setPublicDataCookie(req, res, publicDataToken)
// Clear the anonymous session cookie in case it was previously set
setAnonymousSessionCookie(req, res, "", new Date(0))
removeHeader(res, HEADER_SESSION_REVOKED)
return {
handle,

View File

@@ -1,7 +1,7 @@
{
"name": "@blitzjs/recipe-chakra",
"private": true,
"version": "0.23.0",
"version": "0.23.4",
"description": "The Blitz Recipe for installing Chakra UI",
"main": "index.ts",
"scripts": {
@@ -23,7 +23,7 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"@blitzjs/installer": "0.23.0",
"@blitzjs/installer": "0.23.4",
"jscodeshift": "0.10.0"
},
"devDependencies": {

View File

@@ -1,7 +1,7 @@
{
"name": "@blitzjs/recipe-emotion",
"private": true,
"version": "0.23.0",
"version": "0.23.4",
"description": "The Blitz Recipe for installing Emotion",
"main": "index.ts",
"scripts": {
@@ -22,7 +22,7 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"@blitzjs/installer": "0.23.0",
"@blitzjs/installer": "0.23.4",
"jscodeshift": "0.10.0"
},
"devDependencies": {

View File

@@ -1,7 +1,7 @@
{
"name": "@blitzjs/recipe-material-ui",
"private": true,
"version": "0.23.0",
"version": "0.23.4",
"description": "The Blitz Recipe for installing Material-UI",
"main": "index.ts",
"scripts": {
@@ -23,7 +23,7 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"@blitzjs/installer": "0.23.0",
"@blitzjs/installer": "0.23.4",
"jscodeshift": "0.10.0"
},
"devDependencies": {

View File

@@ -1,7 +1,7 @@
{
"name": "@blitzjs/recipe-render",
"private": true,
"version": "0.23.0",
"version": "0.23.4",
"description": "The Blitz Recipe for adding render.yaml",
"main": "index.ts",
"scripts": {
@@ -22,6 +22,6 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"@blitzjs/installer": "0.23.0"
"@blitzjs/installer": "0.23.4"
}
}

View File

@@ -1,7 +1,7 @@
{
"name": "@blitzjs/recipe-tailwind",
"private": true,
"version": "0.23.0",
"version": "0.23.4",
"description": "The Blitz Recipe for installing Tailwind CSS",
"main": "index.ts",
"scripts": {
@@ -22,7 +22,7 @@
},
"homepage": "https://github.com/blitz-js/blitz#readme",
"dependencies": {
"@blitzjs/installer": "0.23.0",
"@blitzjs/installer": "0.23.4",
"jscodeshift": "0.10.0"
},
"devDependencies": {