From 0f4926fd1f4242b76d838e54472b479504d8857b Mon Sep 17 00:00:00 2001 From: Aleksandra Date: Mon, 15 Aug 2022 11:29:21 +0200 Subject: [PATCH] Set latest tag in package json files (#3731) --- .changeset/poor-walls-relax.md | 10 +++++++ CONTRIBUTING.md | 2 +- packages/codemod/src/upgrade-legacy.ts | 2 +- .../src/utils/get-blitz-dependency-version.ts | 2 +- .../generator/templates/app/package.js.json | 8 ++--- .../generator/templates/app/package.ts.json | 8 ++--- .../templates/minimalapp/package.js.json | 4 +-- .../templates/minimalapp/package.ts.json | 4 +-- pnpm-lock.yaml | 30 +++++++++---------- 9 files changed, 40 insertions(+), 30 deletions(-) create mode 100644 .changeset/poor-walls-relax.md diff --git a/.changeset/poor-walls-relax.md b/.changeset/poor-walls-relax.md new file mode 100644 index 0000000000..d6efcd731f --- /dev/null +++ b/.changeset/poor-walls-relax.md @@ -0,0 +1,10 @@ +--- +"@blitzjs/codemod": patch +"@blitzjs/generator": patch +"@blitzjs/auth": patch +"@blitzjs/next": patch +"@blitzjs/rpc": patch +"@blitzjs/config": patch +--- + +Set current Blitz tag to latest diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 56db1970ea..1fb2be7b7e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ # Contributing -[Read the Contributing Guide at Blitzjs.com](https://alpha.blitzjs.com/docs/contributing) +[Read the Contributing Guide at Blitzjs.com](https://blitzjs.com/docs/contributing) ## To run tests diff --git a/packages/codemod/src/upgrade-legacy.ts b/packages/codemod/src/upgrade-legacy.ts index 09f2acb641..64c6b2af33 100644 --- a/packages/codemod/src/upgrade-legacy.ts +++ b/packages/codemod/src/upgrade-legacy.ts @@ -23,7 +23,7 @@ import { } from "./utils" import {log} from "blitz" -const CURRENT_BLITZ_TAG = "alpha" +const CURRENT_BLITZ_TAG = "latest" class ExpectedError extends Error { constructor(message: string) { diff --git a/packages/generator/src/utils/get-blitz-dependency-version.ts b/packages/generator/src/utils/get-blitz-dependency-version.ts index a49e40170a..800392c45e 100644 --- a/packages/generator/src/utils/get-blitz-dependency-version.ts +++ b/packages/generator/src/utils/get-blitz-dependency-version.ts @@ -1,7 +1,7 @@ import {logFailedVersionFetch} from "./get-latest-version" import {fetchDistTags} from "./npm-fetch" -const CURRENT_BLITZ_TAG = "alpha" +const CURRENT_BLITZ_TAG = "latest" export const getBlitzDependencyVersion = async () => { try { diff --git a/packages/generator/templates/app/package.js.json b/packages/generator/templates/app/package.js.json index 31a26f8e9f..deb12ef7dc 100644 --- a/packages/generator/templates/app/package.js.json +++ b/packages/generator/templates/app/package.js.json @@ -22,11 +22,11 @@ "*.{js}": ["eslint --fix"] }, "dependencies": { - "@blitzjs/auth": "alpha", - "@blitzjs/next": "alpha", - "@blitzjs/rpc": "alpha", + "@blitzjs/auth": "latest", + "@blitzjs/next": "latest", + "@blitzjs/rpc": "latest", "@prisma/client": "4.0.0", - "blitz": "alpha", + "blitz": "latest", "next": "12.2.0", "prisma": "4.0.0", "react": "18.0.0", diff --git a/packages/generator/templates/app/package.ts.json b/packages/generator/templates/app/package.ts.json index bfbfe18cd8..35101498e7 100644 --- a/packages/generator/templates/app/package.ts.json +++ b/packages/generator/templates/app/package.ts.json @@ -22,11 +22,11 @@ "*.{js,ts,tsx}": ["eslint --fix"] }, "dependencies": { - "@blitzjs/auth": "alpha", - "@blitzjs/next": "alpha", - "@blitzjs/rpc": "alpha", + "@blitzjs/auth": "latest", + "@blitzjs/next": "latest", + "@blitzjs/rpc": "latest", "@prisma/client": "4.0.0", - "blitz": "alpha", + "blitz": "latest", "next": "12.2.0", "prisma": "4.0.0", "react": "18.0.0", diff --git a/packages/generator/templates/minimalapp/package.js.json b/packages/generator/templates/minimalapp/package.js.json index 1dbe571887..61c773b457 100644 --- a/packages/generator/templates/minimalapp/package.js.json +++ b/packages/generator/templates/minimalapp/package.js.json @@ -18,8 +18,8 @@ "*.{js}": ["eslint --fix"] }, "dependencies": { - "@blitzjs/next": "alpha", - "blitz": "alpha", + "@blitzjs/next": "latest", + "blitz": "latest", "next": "12.2.0", "react": "18.0.0", "react-dom": "18.0.0", diff --git a/packages/generator/templates/minimalapp/package.ts.json b/packages/generator/templates/minimalapp/package.ts.json index cefd5118b6..5e43ab321f 100644 --- a/packages/generator/templates/minimalapp/package.ts.json +++ b/packages/generator/templates/minimalapp/package.ts.json @@ -20,8 +20,8 @@ ] }, "dependencies": { - "@blitzjs/next": "alpha", - "blitz": "alpha", + "@blitzjs/next": "latest", + "blitz": "latest", "next": "12.2.0", "react": "18.0.0", "react-dom": "18.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d52d6790aa..9c1eedea95 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -49,7 +49,7 @@ importers: "@types/preview-email": 2.0.1 "@types/react": 18.0.1 "@typescript-eslint/eslint-plugin": 5.9.1 - blitz: workspace:2.0.0-alpha.71 + blitz: workspace:2.0.0-beta.0 eslint: 7.32.0 eslint-config-next: 12.2.0 eslint-config-prettier: 8.5.0 @@ -524,8 +524,8 @@ importers: packages/blitz: specifiers: - "@blitzjs/config": workspace:2.0.0-alpha.71 - "@blitzjs/generator": 2.0.0-alpha.71 + "@blitzjs/config": workspace:2.0.0-beta.0 + "@blitzjs/generator": 2.0.0-beta.0 "@types/cookie": 0.4.1 "@types/cross-spawn": 6.0.2 "@types/debug": 4.1.7 @@ -635,7 +635,7 @@ importers: packages/blitz-auth: specifiers: - "@blitzjs/config": workspace:2.0.0-alpha.71 + "@blitzjs/config": workspace:2.0.0-beta.0 "@testing-library/react": 13.0.0 "@testing-library/react-hooks": 7.0.2 "@types/b64-lite": 1.3.0 @@ -649,7 +649,7 @@ importers: "@types/secure-password": 3.1.1 b64-lite: 1.4.0 bad-behavior: 1.0.1 - blitz: 2.0.0-alpha.71 + blitz: 2.0.0-beta.0 cookie: 0.4.1 cookie-session: 2.0.0 debug: 4.3.3 @@ -702,8 +702,8 @@ importers: packages/blitz-next: specifiers: - "@blitzjs/config": workspace:2.0.0-alpha.71 - "@blitzjs/rpc": 2.0.0-alpha.71 + "@blitzjs/config": workspace:2.0.0-beta.0 + "@blitzjs/rpc": 2.0.0-beta.0 "@tanstack/react-query": 4.0.10 "@testing-library/dom": 8.13.0 "@testing-library/jest-dom": 5.16.3 @@ -715,7 +715,7 @@ importers: "@types/react": 18.0.1 "@types/react-dom": 17.0.14 "@types/testing-library__react-hooks": 4.0.0 - blitz: 2.0.0-alpha.71 + blitz: 2.0.0-beta.0 cross-spawn: 7.0.3 debug: 4.3.3 find-up: 4.1.0 @@ -765,15 +765,15 @@ importers: packages/blitz-rpc: specifiers: - "@blitzjs/auth": 2.0.0-alpha.71 - "@blitzjs/config": workspace:2.0.0-alpha.71 + "@blitzjs/auth": 2.0.0-beta.0 + "@blitzjs/config": workspace:2.0.0-beta.0 "@tanstack/react-query": 4.0.10 "@types/debug": 4.1.7 "@types/react": 18.0.1 "@types/react-dom": 17.0.14 b64-lite: 1.4.0 bad-behavior: 1.0.1 - blitz: 2.0.0-alpha.71 + blitz: 2.0.0-beta.0 chalk: ^4.1.0 debug: 4.3.3 next: 12.2.0 @@ -816,12 +816,12 @@ importers: "@babel/plugin-syntax-typescript": 7.17.12 "@babel/preset-env": 7.12.10 "@blitzjs/config": workspace:* - "@blitzjs/generator": 2.0.0-alpha.71 + "@blitzjs/generator": 2.0.0-beta.0 "@types/jscodeshift": 0.11.2 "@types/node": 17.0.16 arg: 5.0.1 ast-types: 0.14.2 - blitz: 2.0.0-alpha.71 + blitz: 2.0.0-beta.0 chalk: ^4.1.0 cross-spawn: 7.0.3 debug: 4.3.3 @@ -876,7 +876,7 @@ importers: "@babel/plugin-transform-typescript": 7.12.1 "@babel/preset-env": 7.12.10 "@babel/types": 7.12.10 - "@blitzjs/config": 2.0.0-alpha.71 + "@blitzjs/config": 2.0.0-beta.0 "@juanm04/cpx": 2.0.1 "@mrleebo/prisma-ast": 0.2.6 "@types/babel__core": 7.1.19 @@ -969,7 +969,7 @@ importers: packages/pkg-template: specifiers: - "@blitzjs/config": 2.0.0-alpha.71 + "@blitzjs/config": 2.0.0-beta.0 "@types/react": 18.0.1 "@types/react-dom": 17.0.14 "@typescript-eslint/eslint-plugin": 5.9.1