Skip to content

Commit 771c667

Browse files
Merge branch 'main' into computed-ondemand
2 parents 5a7f0a6 + c1cbb74 commit 771c667

File tree

211 files changed

+4193
-4740
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+4193
-4740
lines changed

.eslintrc.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
parserOptions: {
77
sourceType: 'module'
88
},
9-
plugins: ["jest"],
9+
plugins: ['jest'],
1010
rules: {
1111
'no-debugger': 'error',
1212
'no-unused-vars': [
@@ -72,7 +72,12 @@ module.exports = {
7272
},
7373
// Node scripts
7474
{
75-
files: ['scripts/**', './*.js', 'packages/**/index.js', 'packages/size-check/**'],
75+
files: [
76+
'scripts/**',
77+
'./*.js',
78+
'packages/**/index.js',
79+
'packages/size-check/**'
80+
],
7681
rules: {
7782
'no-restricted-globals': 'off',
7883
'no-restricted-syntax': 'off'

.github/contributing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Additional formats that only apply to the main `vue` package:
109109
- **`esm-bundler-runtime`**
110110
- **`esm-browser-runtime`**
111111

112-
More details about each of these formats can be found in the [`vue` package README](https://github.com/vuejs/core/blob/main/packages/vue/README.md#which-dist-file-to-use) and the [Rollup config file](https://github.com/vuejs/core/blob/main/rollup.config.js).
112+
More details about each of these formats can be found in the [`vue` package README](https://github.com/vuejs/core/blob/main/packages/vue/README.md#which-dist-file-to-use) and the [Rollup config file](https://github.com/vuejs/core/blob/main/rollup.config.mjs).
113113

114114
For example, to build `runtime-core` with the global build only:
115115

CHANGELOG.md

+45
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,48 @@
1+
## [3.2.47](https://github.com/vuejs/core/compare/v3.2.46...v3.2.47) (2023-02-02)
2+
3+
4+
### Bug Fixes
5+
6+
* **build:** enforce __esModule interop for cjs builds ([4b70366](https://github.com/vuejs/core/commit/4b7036653e5dfd7be95e6efe8c79621b52dcccb7))
7+
8+
9+
10+
## [3.2.46](https://github.com/vuejs/core/compare/v3.2.45...v3.2.46) (2023-02-02)
11+
12+
13+
### Bug Fixes
14+
15+
* **build:** ensure cjs re-exports can be properly detected when imported from esm ([fb6ff3e](https://github.com/vuejs/core/commit/fb6ff3e99689022d963ea7257b03f73ff514c0c4))
16+
* **build:** ensure type exports is first ([957722c](https://github.com/vuejs/core/commit/957722c4185ea87aabc711f6f8997e528dd3ba1b))
17+
* **build:** fix cjs re-exports check for compat build ([ce064a1](https://github.com/vuejs/core/commit/ce064a172b3b5bcb096b4984fe0c1a54177ac9c0))
18+
* **compat:** fix custom transition classes in compat mode ([#7435](https://github.com/vuejs/core/issues/7435)) ([efe2efd](https://github.com/vuejs/core/commit/efe2efd210f500311e5b603345cb0d353886bd7a)), closes [#6253](https://github.com/vuejs/core/issues/6253)
19+
* **compiler-core:** typeof should be allowed in browser expression validation ([#7037](https://github.com/vuejs/core/issues/7037)) ([3783866](https://github.com/vuejs/core/commit/378386694be6dd43da71f1fa08ee9c5705c13f86))
20+
* **compiler-sfc:** allow declaring variables after defineProps ([#7461](https://github.com/vuejs/core/issues/7461)) ([686c829](https://github.com/vuejs/core/commit/686c829fec9137cdfe6e51af34f2af01a575f7c6))
21+
* **compiler-sfc:** always generate runtime prop type for Function ([#7112](https://github.com/vuejs/core/issues/7112)) ([584eae6](https://github.com/vuejs/core/commit/584eae60d1abe80d15b317ec80b7556712df8e5a)), closes [#7111](https://github.com/vuejs/core/issues/7111)
22+
* **compiler-sfc:** support resolving type declaration from normal script ([#5831](https://github.com/vuejs/core/issues/5831)) ([30399d4](https://github.com/vuejs/core/commit/30399d46b15f890056e7a5d076cd588b3806cc15)), closes [#5830](https://github.com/vuejs/core/issues/5830)
23+
* **compiler:** add `hgroup` to supported `HTML_TAGS` ([#6321](https://github.com/vuejs/core/issues/6321)) ([7443174](https://github.com/vuejs/core/commit/7443174e2aa9244bc08c63b4d6c78acc6ff89767)), closes [#6313](https://github.com/vuejs/core/issues/6313)
24+
* **custom-elements:** use strict number casting ([7d0c63f](https://github.com/vuejs/core/commit/7d0c63ff4361e59e820441a24bf4fb2a93335a1e)), closes [#4946](https://github.com/vuejs/core/issues/4946) [#2598](https://github.com/vuejs/core/issues/2598) [#2604](https://github.com/vuejs/core/issues/2604)
25+
* **customElement:** customElement can emit event ([#7296](https://github.com/vuejs/core/issues/7296)) ([c6e5bda](https://github.com/vuejs/core/commit/c6e5bda27d13554675d68dbe33b07f3474467aa6))
26+
* **reactivity-transform:** fix $$ escape edge cases ([e06d3b6](https://github.com/vuejs/core/commit/e06d3b614ea518e9cdf83fca9200fc816eb4e5a1)), closes [#6312](https://github.com/vuejs/core/issues/6312) [#6944](https://github.com/vuejs/core/issues/6944)
27+
* **reactivity-transform:** prohibit const assignment at compile time ([#6993](https://github.com/vuejs/core/issues/6993)) ([3427052](https://github.com/vuejs/core/commit/3427052229db3448252d938292a40e960a0f4b9c)), closes [#6992](https://github.com/vuejs/core/issues/6992)
28+
* **reactivity:** `triggerRef` working with `toRef` from reactive ([#7507](https://github.com/vuejs/core/issues/7507)) ([e64c9ae](https://github.com/vuejs/core/commit/e64c9ae957aa2606b55e8652bbde30a6ada59fb0))
29+
* **reactivity:** ensure watch(Effect) can run independent of unmounted instance if created in a detatched effectScope (fix [#7319](https://github.com/vuejs/core/issues/7319)) ([#7330](https://github.com/vuejs/core/issues/7330)) ([cd7c887](https://github.com/vuejs/core/commit/cd7c887b755810aedf83f3d458cb956d5b147f6f))
30+
* **reactivity:** track hasOwnProperty ([588bd44](https://github.com/vuejs/core/commit/588bd44f036b79d7dee5d23661aa7244f70e6beb)), closes [#2619](https://github.com/vuejs/core/issues/2619) [#2621](https://github.com/vuejs/core/issues/2621)
31+
* **runtime-core:** ensure prop type validation warning shows custom class names ([#7198](https://github.com/vuejs/core/issues/7198)) ([620327d](https://github.com/vuejs/core/commit/620327d527593c6263a21500baddbae1ebc30db8))
32+
* **runtime-core:** fix keep-alive cache prune logic on vnodes with same type but different keys ([#7510](https://github.com/vuejs/core/issues/7510)) ([1fde49c](https://github.com/vuejs/core/commit/1fde49c0f57cc50fedf91366a274c9759d1d9a39)), closes [#7355](https://github.com/vuejs/core/issues/7355)
33+
* **runtime-core:** set scope id before props ([#6948](https://github.com/vuejs/core/issues/6948)) ([da2ced1](https://github.com/vuejs/core/commit/da2ced15339b6fdb7a1459fa359bb79346a82bc2)), closes [#6923](https://github.com/vuejs/core/issues/6923)
34+
* **runtime-dom:** style update error when component use shorthand properties ([#7425](https://github.com/vuejs/core/issues/7425)) ([b7cfa6f](https://github.com/vuejs/core/commit/b7cfa6f53952daced312862fbb3a88c86e42a77e))
35+
* **shared:** `feDistanceLight` changed to `feDistantLight` ([#7540](https://github.com/vuejs/core/issues/7540)) ([bef85e7](https://github.com/vuejs/core/commit/bef85e7975084b05af00b60ecd171c83f251c6d5))
36+
* **shared:** toNumber should only coerce strings ([b55846f](https://github.com/vuejs/core/commit/b55846f05c4a3b163be2ed70ce64014feec29fac))
37+
* **types/effectScope:** re-expose `active` as readonly property ([#6187](https://github.com/vuejs/core/issues/6187)) ([59ffe5e](https://github.com/vuejs/core/commit/59ffe5ee1f1618be119875313970c72050b37b03)), closes [#6186](https://github.com/vuejs/core/issues/6186)
38+
* **types:** accept sync `serverPrefetch()` ([#7000](https://github.com/vuejs/core/issues/7000)) ([5f1883e](https://github.com/vuejs/core/commit/5f1883ec53547d0847e1270f5a8fb0c46396fb07))
39+
* **types:** add or update referrerpolicy ([#7199](https://github.com/vuejs/core/issues/7199)) ([1fa3d95](https://github.com/vuejs/core/commit/1fa3d9573051f549e6d381a5e88ec8d5d855e4c9))
40+
* **types:** allow assigning wider SetupContext type ([#2818](https://github.com/vuejs/core/issues/2818)) ([eb2a832](https://github.com/vuejs/core/commit/eb2a83283caa9de0a45881d860a3cbd9d0bdd279)), closes [#2362](https://github.com/vuejs/core/issues/2362)
41+
* **types:** optional boolean props should have boolean type in return type of defineProps ([#7619](https://github.com/vuejs/core/issues/7619)) ([a0a010d](https://github.com/vuejs/core/commit/a0a010ddc9ba8ef3e883454c73997bf6fb40b385)), closes [#7116](https://github.com/vuejs/core/issues/7116) [#5847](https://github.com/vuejs/core/issues/5847) [#7487](https://github.com/vuejs/core/issues/7487)
42+
* **v-model:** ensure v-model listener casing is consistent with manual v-on listener ([#7067](https://github.com/vuejs/core/issues/7067)) ([87c72ae](https://github.com/vuejs/core/commit/87c72ae49a315a5464dd0c6b00f07163d1cb39e9)), closes [#7066](https://github.com/vuejs/core/issues/7066)
43+
44+
45+
146
## [3.2.45](https://github.com/vuejs/core/compare/v3.2.44...v3.2.45) (2022-11-11)
247

348

jest.config.js

-67
This file was deleted.

netlify.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build.environment]
2-
NODE_VERSION = "16"
2+
NODE_VERSION = "18"
33
NPM_FLAGS = "--version" # prevent Netlify npm install

package.json

+26-28
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
{
22
"private": true,
3-
"version": "3.2.45",
3+
"version": "3.2.47",
44
"packageManager": "[email protected]",
55
"scripts": {
6-
"dev": "node scripts/dev.js",
7-
"build": "node scripts/build.js",
6+
"dev": "node scripts/dev.mjs",
7+
"build": "node scripts/build.mjs",
88
"size": "run-s size-global size-baseline",
9-
"size-global": "node scripts/build.js vue runtime-dom -f global -p",
10-
"size-baseline": "node scripts/build.js runtime-dom runtime-core reactivity shared -f esm-bundler && cd packages/size-check && vite build && node brotli",
9+
"size-global": "node scripts/build.mjs vue runtime-dom -f global -p",
10+
"size-baseline": "node scripts/build.mjs runtime-dom runtime-core reactivity shared -f esm-bundler && cd packages/size-check && vite build && node brotli",
1111
"lint": "eslint --cache --ext .ts packages/*/{src,__tests__}/**.ts",
12-
"format": "prettier --write --cache --parser typescript \"packages/**/*.ts?(x)\"",
13-
"format-check": "prettier --check --cache --parser typescript \"packages/**/*.ts?(x)\"",
14-
"test": "run-s \"test-unit {@}\" \"test-e2e {@}\"",
15-
"test-unit": "jest --filter ./scripts/filter-unit.js",
16-
"test-e2e": "node scripts/build.js vue -f global -d && jest --filter ./scripts/filter-e2e.js --runInBand",
17-
"test-dts": "node scripts/build.js shared reactivity runtime-core runtime-dom -dt -f esm-bundler && npm run test-dts-only",
12+
"format": "prettier --write --cache --parser typescript \"**/*.[tj]s?(x)\"",
13+
"format-check": "prettier --check --cache --parser typescript \"**/*.[tj]s?(x)\"",
14+
"test": "vitest",
15+
"test-unit": "vitest -c vitest.unit.config.ts",
16+
"test-e2e": "node scripts/build.mjs vue -f global -d && vitest -c vitest.e2e.config.ts",
17+
"test-dts": "node scripts/build.mjs shared reactivity runtime-core runtime-dom -dt -f esm-bundler && npm run test-dts-only",
1818
"test-dts-only": "tsc -p ./test-dts/tsconfig.json && tsc -p ./test-dts/tsconfig.build.json",
19-
"test-coverage": "node scripts/build.js vue -f global -d && jest --runInBand --coverage --bail",
20-
"release": "node scripts/release.js",
19+
"test-coverage": "vitest -c vitest.unit.config.ts --coverage",
20+
"release": "node scripts/release.mjs",
2121
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
22-
"dev-esm": "node scripts/dev.js -if esm-bundler-runtime",
22+
"dev-esm": "node scripts/dev.mjs -if esm-bundler-runtime",
2323
"dev-compiler": "run-p \"dev template-explorer\" serve",
2424
"dev-sfc": "run-s dev-sfc-prepare dev-sfc-run",
25-
"dev-sfc-prepare": "node scripts/pre-dev-sfc.js || npm run build-compiler-cjs",
25+
"dev-sfc-prepare": "node scripts/pre-dev-sfc.mjs || npm run build-compiler-cjs",
2626
"dev-sfc-serve": "vite packages/sfc-playground --host",
2727
"dev-sfc-run": "run-p \"dev compiler-sfc -f esm-browser\" \"dev vue -if esm-bundler-runtime\" \"dev server-renderer -if esm-bundler\" dev-sfc-serve",
2828
"serve": "serve",
2929
"open": "open http://localhost:5000/packages/template-explorer/local.html",
3030
"build-sfc-playground": "run-s build-compiler-cjs build-runtime-esm build-ssr-esm build-sfc-playground-self",
31-
"build-compiler-cjs": "node scripts/build.js compiler reactivity-transform shared -af cjs",
32-
"build-runtime-esm": "node scripts/build.js runtime reactivity shared -af esm-bundler && node scripts/build.js vue -f esm-bundler-runtime && node scripts/build.js vue -f esm-browser-runtime",
33-
"build-ssr-esm": "node scripts/build.js compiler-sfc server-renderer -f esm-browser",
31+
"build-compiler-cjs": "node scripts/build.mjs compiler reactivity-transform shared -af cjs",
32+
"build-runtime-esm": "node scripts/build.mjs runtime reactivity shared -af esm-bundler && node scripts/build.mjs vue -f esm-bundler-runtime && node scripts/build.mjs vue -f esm-browser-runtime",
33+
"build-ssr-esm": "node scripts/build.mjs compiler-sfc server-renderer -f esm-browser",
3434
"build-sfc-playground-self": "cd packages/sfc-playground && npm run build",
35-
"preinstall": "node ./scripts/preinstall.js",
35+
"preinstall": "node ./scripts/preinstall.mjs",
3636
"postinstall": "simple-git-hooks"
3737
},
3838
"types": "test-dts/index.d.ts",
@@ -62,9 +62,9 @@
6262
"@rollup/plugin-replace": "^5.0.1",
6363
"@rollup/plugin-terser": "^0.1.0",
6464
"@types/hash-sum": "^1.0.0",
65-
"@types/jest": "^29.2.2",
6665
"@types/node": "^16.4.7",
6766
"@typescript-eslint/parser": "^5.23.0",
67+
"@vitest/coverage-istanbul": "^0.28.2",
6868
"@vue/consolidate": "0.17.3",
6969
"@vue/reactivity": "workspace:*",
7070
"@vue/runtime-core": "workspace:*",
@@ -74,13 +74,11 @@
7474
"conventional-changelog-cli": "^2.0.31",
7575
"csstype": "^3.0.3",
7676
"enquirer": "^2.3.2",
77-
"esbuild": "^0.15.13",
77+
"esbuild": "^0.17.4",
7878
"eslint": "^7.7.0",
79-
"eslint-plugin-jest": "26.1.5",
79+
"eslint-plugin-jest": "^27.2.1",
8080
"execa": "^4.0.2",
81-
"fs-extra": "^9.0.1",
82-
"jest": "^29.3.1",
83-
"jest-environment-jsdom": "^29.3.1",
81+
"jsdom": "^21.1.0",
8482
"lint-staged": "^10.2.10",
8583
"lodash": "^4.17.15",
8684
"marked": "^4.0.10",
@@ -89,7 +87,7 @@
8987
"prettier": "^2.7.1",
9088
"pug": "^3.0.1",
9189
"puppeteer": "^19.2.2",
92-
"rollup": "~3.2.3",
90+
"rollup": "~3.10.0",
9391
"rollup-plugin-node-builtins": "^2.1.2",
9492
"rollup-plugin-node-globals": "^1.4.0",
9593
"rollup-plugin-polyfill-node": "^0.11.0",
@@ -99,10 +97,10 @@
9997
"simple-git-hooks": "^2.8.1",
10098
"terser": "^5.15.1",
10199
"todomvc-app-css": "^2.3.0",
102-
"ts-jest": "^29.0.3",
103100
"tslib": "^2.4.0",
104101
"typescript": "^4.8.0",
105-
"vite": "^3.0.0",
102+
"vite": "^4.0.4",
103+
"vitest": "^0.28.2",
106104
"vue": "workspace:*"
107105
}
108106
}

0 commit comments

Comments
 (0)