diff --git a/CHANGELOG.md b/CHANGELOG.md index db1e72804..9df2d4258 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +## [1.0.38](https://github.com/shuvijs/shuvi/compare/v1.0.37...v1.0.38) (2023-09-11) + + +### Bug Fixes + +* **loader:** always log loader error at server side ([#557](https://github.com/shuvijs/shuvi/issues/557)) ([a1e297b](https://github.com/shuvijs/shuvi/commit/a1e297b0f5bdd185a0721dbae952a21521d40a18)) + + +### Features + +* pass router to appContext hook ([4e464e9](https://github.com/shuvijs/shuvi/commit/4e464e9d7c6b8e2917b943199bd7248575f40daa)) + + + ## [1.0.37](https://github.com/shuvijs/shuvi/compare/v1.0.36...v1.0.37) (2023-08-24) diff --git a/package.json b/package.json index a542df543..4a5563c4c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "shuvi", "private": true, - "version": "1.0.37", + "version": "1.0.38", "workspaces": [ "packages/*" ], diff --git a/packages/compiler/package.json b/packages/compiler/package.json index 86d06d55b..daf22234a 100644 --- a/packages/compiler/package.json +++ b/packages/compiler/package.json @@ -1,6 +1,6 @@ { "name": "@shuvi/compiler", - "version": "1.0.37", + "version": "1.0.38", "main": "./lib/index.js", "types": "./lib/index.d.ts", "files": [ diff --git a/packages/create-shuvi/package.json b/packages/create-shuvi/package.json index cebb397d8..e2ac121d4 100644 --- a/packages/create-shuvi/package.json +++ b/packages/create-shuvi/package.json @@ -1,6 +1,6 @@ { "name": "create-shuvi", - "version": "1.0.37", + "version": "1.0.38", "keywords": [ "react", "shuvi", diff --git a/packages/error-overlay/package.json b/packages/error-overlay/package.json index 7070b1fe9..012b96b51 100644 --- a/packages/error-overlay/package.json +++ b/packages/error-overlay/package.json @@ -1,6 +1,6 @@ { "name": "@shuvi/error-overlay", - "version": "1.0.37", + "version": "1.0.38", "main": "umd/index.js", "types": "lib/index.d.ts", "files": [ @@ -23,8 +23,8 @@ }, "dependencies": { "@babel/code-frame": "7.14.5", - "@shuvi/shared": "1.0.37", - "@shuvi/toolpack": "1.0.37", + "@shuvi/shared": "1.0.38", + "@shuvi/toolpack": "1.0.38", "anser": "1.4.9", "data-uri-to-buffer": "3.0.1", "html-entities": "2.3.2", diff --git a/packages/eslint-config-shuvi/package.json b/packages/eslint-config-shuvi/package.json index 051b3bee7..b2f2ccd98 100644 --- a/packages/eslint-config-shuvi/package.json +++ b/packages/eslint-config-shuvi/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-shuvi", - "version": "1.0.37", + "version": "1.0.38", "description": "ESLint configuration used by Shuvi.", "main": "index.js", "license": "MIT", @@ -12,8 +12,8 @@ "scripts": {}, "dependencies": { "@babel/eslint-parser": "7.18.2", - "@shuvi/toolpack": "1.0.37", - "@shuvi/eslint-plugin-shuvi": "1.0.37", + "@shuvi/toolpack": "1.0.38", + "@shuvi/eslint-plugin-shuvi": "1.0.38", "@rushstack/eslint-patch": "^1.1.3", "@typescript-eslint/parser": "^5.42.0", "eslint-import-resolver-node": "^0.3.6", diff --git a/packages/eslint-plugin-shuvi/package.json b/packages/eslint-plugin-shuvi/package.json index b4ae1071c..dfc6600d4 100644 --- a/packages/eslint-plugin-shuvi/package.json +++ b/packages/eslint-plugin-shuvi/package.json @@ -1,6 +1,6 @@ { "name": "@shuvi/eslint-plugin-shuvi", - "version": "1.0.37", + "version": "1.0.38", "description": "ESLint plugin for Shuvi.", "main": "lib/index.js", "license": "MIT", @@ -18,8 +18,8 @@ "build": "tsc -p tsconfig.json" }, "dependencies": { - "@shuvi/router": "1.0.37", - "@shuvi/platform-shared": "1.0.37" + "@shuvi/router": "1.0.38", + "@shuvi/platform-shared": "1.0.38" }, "devDependencies": { "@types/eslint": "7.28.0", diff --git a/packages/hook/package.json b/packages/hook/package.json index 9f01e4bce..e1da7aff0 100644 --- a/packages/hook/package.json +++ b/packages/hook/package.json @@ -1,6 +1,6 @@ { "name": "@shuvi/hook", - "version": "1.0.37", + "version": "1.0.38", "license": "MIT", "main": "lib/index.js", "module": "esm/index.js", diff --git a/packages/platform-shared/package.json b/packages/platform-shared/package.json index 07f31712e..cb8ce097b 100644 --- a/packages/platform-shared/package.json +++ b/packages/platform-shared/package.json @@ -1,6 +1,6 @@ { "name": "@shuvi/platform-shared", - "version": "1.0.37", + "version": "1.0.38", "repository": { "type": "git", "url": "git+https://github.com/shuvijs/shuvi.git", @@ -83,16 +83,16 @@ "node": ">= 16.0.0" }, "dependencies": { - "@shuvi/hook": "1.0.37", + "@shuvi/hook": "1.0.38", "doura": "0.0.13", - "@shuvi/router": "1.0.37", - "@shuvi/runtime": "1.0.37", - "@shuvi/shared": "1.0.37", - "@shuvi/toolpack": "1.0.37", - "@shuvi/utils": "1.0.37" + "@shuvi/router": "1.0.38", + "@shuvi/runtime": "1.0.38", + "@shuvi/shared": "1.0.38", + "@shuvi/toolpack": "1.0.38", + "@shuvi/utils": "1.0.38" }, "peerDependencies": { - "@shuvi/service": "1.0.37" + "@shuvi/service": "1.0.38" }, "devDependencies": { "@shuvi/service": "workspace:*", diff --git a/packages/platform-web/package.json b/packages/platform-web/package.json index a920574bc..4b0c3e894 100644 --- a/packages/platform-web/package.json +++ b/packages/platform-web/package.json @@ -1,6 +1,6 @@ { "name": "@shuvi/platform-web", - "version": "1.0.37", + "version": "1.0.38", "repository": { "type": "git", "url": "git+https://github.com/shuvijs/shuvi.git", @@ -72,15 +72,15 @@ }, "dependencies": { "@next/react-refresh-utils": "12.1.6", - "@shuvi/error-overlay": "1.0.37", - "@shuvi/hook": "1.0.37", - "@shuvi/platform-shared": "1.0.37", - "@shuvi/router": "1.0.37", - "@shuvi/router-react": "1.0.37", - "@shuvi/runtime": "1.0.37", - "@shuvi/shared": "1.0.37", - "@shuvi/toolpack": "1.0.37", - "@shuvi/utils": "1.0.37", + "@shuvi/error-overlay": "1.0.38", + "@shuvi/hook": "1.0.38", + "@shuvi/platform-shared": "1.0.38", + "@shuvi/router": "1.0.38", + "@shuvi/router-react": "1.0.38", + "@shuvi/runtime": "1.0.38", + "@shuvi/shared": "1.0.38", + "@shuvi/toolpack": "1.0.38", + "@shuvi/utils": "1.0.38", "content-type": "1.0.4", "core-js": "3.6.5", "doura": "0.0.13", @@ -98,7 +98,7 @@ "whatwg-fetch": "3.0.0" }, "peerDependencies": { - "@shuvi/service": "1.0.37" + "@shuvi/service": "1.0.38" }, "devDependencies": { "@shuvi/service": "workspace:*", diff --git a/packages/reporters/package.json b/packages/reporters/package.json index 8f5bf35e8..e64d3fd41 100644 --- a/packages/reporters/package.json +++ b/packages/reporters/package.json @@ -1,6 +1,6 @@ { "name": "@shuvi/reporters", - "version": "1.0.37", + "version": "1.0.38", "author": "liximomo", "license": "MIT", "main": "lib/index.js", @@ -13,8 +13,8 @@ "build": "tsc -p tsconfig.build.json -m commonjs" }, "dependencies": { - "@shuvi/shared": "1.0.37", - "@shuvi/utils": "1.0.37", + "@shuvi/shared": "1.0.38", + "@shuvi/utils": "1.0.38", "conf": "5.0.0", "is-docker": "2.0.0", "is-wsl": "2.2.0", diff --git a/packages/router-react/package.json b/packages/router-react/package.json index 0f9a9b28c..5d489a033 100644 --- a/packages/router-react/package.json +++ b/packages/router-react/package.json @@ -1,6 +1,6 @@ { "name": "@shuvi/router-react", - "version": "1.0.37", + "version": "1.0.38", "repository": { "type": "git", "url": "git+https://github.com/shuvijs/shuvi.git", @@ -28,9 +28,9 @@ "node": ">= 16.0.0" }, "dependencies": { - "@shuvi/router": "1.0.37", - "@shuvi/platform-shared": "1.0.37", - "@shuvi/utils": "1.0.37", + "@shuvi/router": "1.0.38", + "@shuvi/platform-shared": "1.0.38", + "@shuvi/utils": "1.0.38", "prop-types": "^15.8.1", "use-sync-external-store": "1.2.0" }, diff --git a/packages/router/package.json b/packages/router/package.json index 324b5b010..cd76de239 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -1,6 +1,6 @@ { "name": "@shuvi/router", - "version": "1.0.37", + "version": "1.0.38", "repository": { "type": "git", "url": "git+https://github.com/shuvijs/shuvi.git", @@ -28,7 +28,7 @@ "node": ">= 16.0.0" }, "dependencies": { - "@shuvi/utils": "1.0.37", + "@shuvi/utils": "1.0.38", "query-string": "6.13.8" } } diff --git a/packages/runtime/package.json b/packages/runtime/package.json index a558487d6..687038fe3 100644 --- a/packages/runtime/package.json +++ b/packages/runtime/package.json @@ -1,6 +1,6 @@ { "name": "@shuvi/runtime", - "version": "1.0.37", + "version": "1.0.38", "repository": { "type": "git", "url": "git+https://github.com/shuvijs/shuvi.git", @@ -26,7 +26,7 @@ "build:cjs": "tsc -p tsconfig.build.json -m commonjs --outDir lib" }, "dependencies": { - "@shuvi/hook": "1.0.37" + "@shuvi/hook": "1.0.38" }, "engines": { "node": ">= 16.0.0" diff --git a/packages/service/package.json b/packages/service/package.json index 1be9cff3b..1ae21e5b7 100644 --- a/packages/service/package.json +++ b/packages/service/package.json @@ -1,6 +1,6 @@ { "name": "@shuvi/service", - "version": "1.0.37", + "version": "1.0.38", "repository": { "type": "git", "url": "git+https://github.com/shuvijs/shuvi.git", @@ -29,14 +29,14 @@ "@babel/generator": "7.14.5", "@babel/parser": "7.14.7", "@babel/traverse": "7.14.7", - "@shuvi/hook": "1.0.37", - "@shuvi/router": "1.0.37", - "@shuvi/runtime": "1.0.37", - "@shuvi/shared": "1.0.37", - "@shuvi/toolpack": "1.0.37", - "@shuvi/utils": "1.0.37", - "@shuvi/error-overlay": "1.0.37", - "@shuvi/reporters": "1.0.37", + "@shuvi/hook": "1.0.38", + "@shuvi/router": "1.0.38", + "@shuvi/runtime": "1.0.38", + "@shuvi/shared": "1.0.38", + "@shuvi/toolpack": "1.0.38", + "@shuvi/utils": "1.0.38", + "@shuvi/error-overlay": "1.0.38", + "@shuvi/reporters": "1.0.38", "commander": "5.1.0", "comment-json": "4.2.2", "cross-spawn": "7.0.3", diff --git a/packages/shared/package.json b/packages/shared/package.json index eb1b7b6ee..5af900580 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@shuvi/shared", - "version": "1.0.37", + "version": "1.0.38", "repository": { "type": "git", "url": "git+https://github.com/shuvijs/shuvi.git", @@ -37,6 +37,6 @@ "node": ">= 16.0.0" }, "dependencies": { - "@shuvi/hook": "1.0.37" + "@shuvi/hook": "1.0.38" } } diff --git a/packages/shuvi/package.json b/packages/shuvi/package.json index 26b089437..c40ed1350 100644 --- a/packages/shuvi/package.json +++ b/packages/shuvi/package.json @@ -1,6 +1,6 @@ { "name": "shuvi", - "version": "1.0.37", + "version": "1.0.38", "description": "Full Stack Web development framework.", "repository": { "type": "git", @@ -30,13 +30,13 @@ "find-up": "4.1.0", "semver": "7.3.2", "cli-select": "1.1.2", - "@shuvi/platform-shared": "1.0.37", - "@shuvi/platform-web": "1.0.37", - "@shuvi/service": "1.0.37", - "@shuvi/shared": "1.0.37", - "@shuvi/toolpack": "1.0.37", - "@shuvi/utils": "1.0.37", - "@shuvi/reporters": "1.0.37", + "@shuvi/platform-shared": "1.0.38", + "@shuvi/platform-web": "1.0.38", + "@shuvi/service": "1.0.38", + "@shuvi/shared": "1.0.38", + "@shuvi/toolpack": "1.0.38", + "@shuvi/utils": "1.0.38", + "@shuvi/reporters": "1.0.38", "cli-highlight": "^2.1.9", "commander": "10.0.0", "cross-spawn": "7.0.3", diff --git a/packages/toolpack/package.json b/packages/toolpack/package.json index edcc1945a..c7aad180d 100644 --- a/packages/toolpack/package.json +++ b/packages/toolpack/package.json @@ -1,6 +1,6 @@ { "name": "@shuvi/toolpack", - "version": "1.0.37", + "version": "1.0.38", "repository": { "type": "git", "url": "git+https://github.com/shuvijs/shuvi.git", @@ -20,7 +20,7 @@ "node": ">= 16.0.0" }, "dependencies": { - "@shuvi/compiler": "1.0.37", + "@shuvi/compiler": "1.0.38", "@babel/core": "7.12.10", "@babel/plugin-proposal-class-properties": "7.12.1", "@babel/plugin-proposal-nullish-coalescing-operator": "7.10.1", @@ -35,8 +35,8 @@ "@babel/preset-typescript": "7.12.7", "@babel/runtime": "7.12.5", "lightningcss": "1.19.0", - "@shuvi/shared": "1.0.37", - "@shuvi/utils": "1.0.37", + "@shuvi/shared": "1.0.38", + "@shuvi/utils": "1.0.38", "babel-loader": "8.2.2", "babel-plugin-syntax-jsx": "6.18.0", "babel-plugin-transform-define": "2.0.0", diff --git a/packages/utils/package.json b/packages/utils/package.json index deb5a7766..b110396dc 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@shuvi/utils", - "version": "1.0.37", + "version": "1.0.38", "repository": { "type": "git", "url": "git+https://github.com/shuvijs/shuvi.git", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6586adfce..ad3056974 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -170,8 +170,8 @@ importers: '@rollup/plugin-node-resolve': 15.0.1 '@rollup/plugin-replace': 4.0.0 '@rollup/plugin-typescript': 10.0.1 - '@shuvi/shared': 1.0.37 - '@shuvi/toolpack': 1.0.37 + '@shuvi/shared': 1.0.38 + '@shuvi/toolpack': 1.0.38 '@types/babel__code-frame': 7.0.3 '@types/react': 18.0.9 '@types/react-dom': 18.0.6 @@ -217,8 +217,8 @@ importers: specifiers: '@babel/eslint-parser': 7.18.2 '@rushstack/eslint-patch': ^1.1.3 - '@shuvi/eslint-plugin-shuvi': 1.0.37 - '@shuvi/toolpack': 1.0.37 + '@shuvi/eslint-plugin-shuvi': 1.0.38 + '@shuvi/toolpack': 1.0.38 '@typescript-eslint/parser': ^5.42.0 eslint-import-resolver-node: ^0.3.6 eslint-import-resolver-typescript: ^3.5.2 @@ -241,8 +241,8 @@ importers: packages/eslint-plugin-shuvi: specifiers: - '@shuvi/platform-shared': 1.0.37 - '@shuvi/router': 1.0.37 + '@shuvi/platform-shared': 1.0.38 + '@shuvi/router': 1.0.38 '@types/eslint': 7.28.0 eslint: 7.28.0 dependencies: @@ -257,13 +257,13 @@ importers: packages/platform-shared: specifiers: - '@shuvi/hook': 1.0.37 - '@shuvi/router': 1.0.37 - '@shuvi/runtime': 1.0.37 + '@shuvi/hook': 1.0.38 + '@shuvi/router': 1.0.38 + '@shuvi/runtime': 1.0.38 '@shuvi/service': workspace:* - '@shuvi/shared': 1.0.37 - '@shuvi/toolpack': 1.0.37 - '@shuvi/utils': 1.0.37 + '@shuvi/shared': 1.0.38 + '@shuvi/toolpack': 1.0.38 + '@shuvi/utils': 1.0.38 '@types/minimatch': 3.0.5 doura: 0.0.13 dependencies: @@ -281,16 +281,16 @@ importers: packages/platform-web: specifiers: '@next/react-refresh-utils': 12.1.6 - '@shuvi/error-overlay': 1.0.37 - '@shuvi/hook': 1.0.37 - '@shuvi/platform-shared': 1.0.37 - '@shuvi/router': 1.0.37 - '@shuvi/router-react': 1.0.37 - '@shuvi/runtime': 1.0.37 + '@shuvi/error-overlay': 1.0.38 + '@shuvi/hook': 1.0.38 + '@shuvi/platform-shared': 1.0.38 + '@shuvi/router': 1.0.38 + '@shuvi/router-react': 1.0.38 + '@shuvi/runtime': 1.0.38 '@shuvi/service': workspace:* - '@shuvi/shared': 1.0.37 - '@shuvi/toolpack': 1.0.37 - '@shuvi/utils': 1.0.37 + '@shuvi/shared': 1.0.38 + '@shuvi/toolpack': 1.0.38 + '@shuvi/utils': 1.0.38 '@testing-library/react': ^13.2.0 '@types/content-type': ^1.1.5 '@types/ejs': ^3.1.0 @@ -353,8 +353,8 @@ importers: packages/reporters: specifiers: - '@shuvi/shared': 1.0.37 - '@shuvi/utils': 1.0.37 + '@shuvi/shared': 1.0.38 + '@shuvi/utils': 1.0.38 '@types/async-retry': 1.3.0 '@types/node-fetch': 2.6.1 async-retry: 1.3.3 @@ -378,7 +378,7 @@ importers: packages/router: specifiers: - '@shuvi/utils': 1.0.37 + '@shuvi/utils': 1.0.38 query-string: 6.13.8 dependencies: '@shuvi/utils': link:../utils @@ -386,9 +386,9 @@ importers: packages/router-react: specifiers: - '@shuvi/platform-shared': 1.0.37 - '@shuvi/router': 1.0.37 - '@shuvi/utils': 1.0.37 + '@shuvi/platform-shared': 1.0.38 + '@shuvi/router': 1.0.38 + '@shuvi/utils': 1.0.38 '@types/prop-types': ^15.7.5 '@types/react': 18.0.9 '@types/react-test-renderer': 18.0.0 @@ -415,7 +415,7 @@ importers: packages/runtime: specifiers: - '@shuvi/hook': 1.0.37 + '@shuvi/hook': 1.0.38 dependencies: '@shuvi/hook': link:../hook @@ -426,14 +426,14 @@ importers: '@babel/parser': 7.14.7 '@babel/traverse': 7.14.7 '@babel/types': 7.12.11 - '@shuvi/error-overlay': 1.0.37 - '@shuvi/hook': 1.0.37 - '@shuvi/reporters': 1.0.37 - '@shuvi/router': 1.0.37 - '@shuvi/runtime': 1.0.37 - '@shuvi/shared': 1.0.37 - '@shuvi/toolpack': 1.0.37 - '@shuvi/utils': 1.0.37 + '@shuvi/error-overlay': 1.0.38 + '@shuvi/hook': 1.0.38 + '@shuvi/reporters': 1.0.38 + '@shuvi/router': 1.0.38 + '@shuvi/runtime': 1.0.38 + '@shuvi/shared': 1.0.38 + '@shuvi/toolpack': 1.0.38 + '@shuvi/utils': 1.0.38 '@types/babel__code-frame': ^7.0.3 '@types/babel__generator': ^7.6.4 '@types/babel__traverse': ^7.14.2 @@ -498,19 +498,19 @@ importers: packages/shared: specifiers: - '@shuvi/hook': 1.0.37 + '@shuvi/hook': 1.0.38 dependencies: '@shuvi/hook': link:../hook packages/shuvi: specifiers: - '@shuvi/platform-shared': 1.0.37 - '@shuvi/platform-web': 1.0.37 - '@shuvi/reporters': 1.0.37 - '@shuvi/service': 1.0.37 - '@shuvi/shared': 1.0.37 - '@shuvi/toolpack': 1.0.37 - '@shuvi/utils': 1.0.37 + '@shuvi/platform-shared': 1.0.38 + '@shuvi/platform-web': 1.0.38 + '@shuvi/reporters': 1.0.38 + '@shuvi/service': 1.0.38 + '@shuvi/shared': 1.0.38 + '@shuvi/toolpack': 1.0.38 + '@shuvi/utils': 1.0.38 '@types/cross-spawn': 6.0.1 '@types/semver': 7.3.1 cli-highlight: ^2.1.9 @@ -556,9 +556,9 @@ importers: '@babel/preset-react': 7.10.1 '@babel/preset-typescript': 7.12.7 '@babel/runtime': 7.12.5 - '@shuvi/compiler': 1.0.37 - '@shuvi/shared': 1.0.37 - '@shuvi/utils': 1.0.37 + '@shuvi/compiler': 1.0.38 + '@shuvi/shared': 1.0.38 + '@shuvi/utils': 1.0.38 '@swc/helpers': 0.4.3 '@types/babel__core': ^7.1.19 '@types/cross-spawn': 6.0.1