Skip to content

Commit b98eaa1

Browse files
Merge branch 'main' into patch-3
2 parents b23a04e + 9a36f2a commit b98eaa1

File tree

38 files changed

+772
-569
lines changed

38 files changed

+772
-569
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
## [3.5.6](https://github.com/vuejs/core/compare/v3.5.5...v3.5.6) (2024-09-16)
2+
3+
4+
### Bug Fixes
5+
6+
* **compile-dom:** should be able to stringify mathML ([#11891](https://github.com/vuejs/core/issues/11891)) ([85c138c](https://github.com/vuejs/core/commit/85c138ced108268f7656b568dfd3036a1e0aae34))
7+
* **compiler-sfc:** preserve old behavior when using withDefaults with desutructure ([8492c3c](https://github.com/vuejs/core/commit/8492c3c49a922363d6c77ef192c133a8fbce6514)), closes [#11930](https://github.com/vuejs/core/issues/11930)
8+
* **reactivity:** avoid exponential perf cost and reduce call stack depth for deeply chained computeds ([#11944](https://github.com/vuejs/core/issues/11944)) ([c74bb8c](https://github.com/vuejs/core/commit/c74bb8c2dd9e82aaabb0a2a2b368e900929b513b)), closes [#11928](https://github.com/vuejs/core/issues/11928)
9+
* **reactivity:** rely on dirty check only when computed has deps ([#11931](https://github.com/vuejs/core/issues/11931)) ([aa5dafd](https://github.com/vuejs/core/commit/aa5dafd2b55d42d6a29316a3bc91aea85c676a0b)), closes [#11929](https://github.com/vuejs/core/issues/11929)
10+
* **watch:** `once` option should be ignored by watchEffect ([#11884](https://github.com/vuejs/core/issues/11884)) ([49fa673](https://github.com/vuejs/core/commit/49fa673493d93b77ddba2165ab6545bae84fd1ae))
11+
* **watch:** unwatch should be callable during SSR ([#11925](https://github.com/vuejs/core/issues/11925)) ([2d6adf7](https://github.com/vuejs/core/commit/2d6adf78a047eed091db277ffbd9df0822fb0bdd)), closes [#11924](https://github.com/vuejs/core/issues/11924)
12+
13+
14+
115
## [3.5.5](https://github.com/vuejs/core/compare/v3.5.4...v3.5.5) (2024-09-13)
216

317

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"private": true,
3-
"version": "3.5.5",
3+
"version": "3.5.6",
44
"packageManager": "[email protected]",
55
"type": "module",
66
"scripts": {
@@ -17,11 +17,11 @@
1717
"format": "prettier --write --cache .",
1818
"format-check": "prettier --check --cache .",
1919
"test": "vitest",
20-
"test-unit": "vitest -c vitest.unit.config.ts",
21-
"test-e2e": "node scripts/build.js vue -f global -d && vitest -c vitest.e2e.config.ts",
20+
"test-unit": "vitest --project unit",
21+
"test-e2e": "node scripts/build.js vue -f global -d && vitest --project e2e",
2222
"test-dts": "run-s build-dts test-dts-only",
2323
"test-dts-only": "tsc -p packages-private/dts-built-test/tsconfig.json && tsc -p ./packages-private/dts-test/tsconfig.test.json",
24-
"test-coverage": "vitest run -c vitest.unit.config.ts --coverage",
24+
"test-coverage": "vitest run --project unit --coverage",
2525
"test-bench": "vitest bench",
2626
"release": "node scripts/release.js",
2727
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
@@ -66,19 +66,19 @@
6666
"@rollup/plugin-json": "^6.1.0",
6767
"@rollup/plugin-node-resolve": "^15.2.3",
6868
"@rollup/plugin-replace": "5.0.4",
69-
"@swc/core": "^1.7.24",
69+
"@swc/core": "^1.7.26",
7070
"@types/hash-sum": "^1.0.2",
7171
"@types/node": "^20.16.5",
7272
"@types/semver": "^7.5.8",
7373
"@types/serve-handler": "^6.1.4",
74-
"@vitest/coverage-v8": "^2.0.5",
74+
"@vitest/coverage-v8": "^2.1.1",
7575
"@vue/consolidate": "1.0.0",
7676
"conventional-changelog-cli": "^5.0.0",
7777
"enquirer": "^2.4.1",
7878
"esbuild": "^0.23.1",
7979
"esbuild-plugin-polyfill-node": "^0.3.0",
80-
"eslint": "^9.9.1",
81-
"eslint-plugin-import-x": "^3.1.0",
80+
"eslint": "^9.10.0",
81+
"eslint-plugin-import-x": "^4.2.1",
8282
"eslint-plugin-vitest": "^0.5.4",
8383
"estree-walker": "catalog:",
8484
"jsdom": "^25.0.0",
@@ -87,14 +87,14 @@
8787
"magic-string": "^0.30.11",
8888
"markdown-table": "^3.0.3",
8989
"marked": "13.0.3",
90-
"npm-run-all2": "^6.2.2",
90+
"npm-run-all2": "^6.2.3",
9191
"picocolors": "^1.1.0",
9292
"prettier": "^3.3.3",
9393
"pretty-bytes": "^6.1.1",
9494
"pug": "^3.0.3",
9595
"puppeteer": "~23.3.0",
9696
"rimraf": "^6.0.1",
97-
"rollup": "^4.21.2",
97+
"rollup": "^4.21.3",
9898
"rollup-plugin-dts": "^6.1.1",
9999
"rollup-plugin-esbuild": "^6.1.1",
100100
"rollup-plugin-polyfill-node": "^0.13.0",
@@ -105,9 +105,9 @@
105105
"todomvc-app-css": "^2.4.3",
106106
"tslib": "^2.7.0",
107107
"typescript": "~5.6.2",
108-
"typescript-eslint": "^8.4.0",
108+
"typescript-eslint": "^8.5.0",
109109
"vite": "catalog:",
110-
"vitest": "^2.0.5"
110+
"vitest": "^2.1.1"
111111
},
112112
"pnpm": {
113113
"peerDependencyRules": {

packages-private/dts-test/appDirective.test-d.ts

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@ import { expectType } from './utils'
33

44
const app = createApp({})
55

6-
app.directive<HTMLElement, string>('custom', {
7-
mounted(el, binding) {
8-
expectType<HTMLElement>(el)
9-
expectType<string>(binding.value)
6+
app.directive<HTMLElement, string, 'prevent' | 'stop', 'arg1' | 'arg2'>(
7+
'custom',
8+
{
9+
mounted(el, binding) {
10+
expectType<HTMLElement>(el)
11+
expectType<string>(binding.value)
12+
expectType<{ prevent: boolean; stop: boolean }>(binding.modifiers)
13+
expectType<'arg1' | 'arg2'>(binding.arg!)
1014

11-
// @ts-expect-error not any
12-
expectType<number>(binding.value)
15+
// @ts-expect-error not any
16+
expectType<number>(binding.value)
17+
},
1318
},
14-
})
19+
)

packages-private/global.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/// <reference types="vite/client" />
2+
3+
// Global compile-time constants
4+
declare var __COMMIT__: string
5+
6+
declare module 'file-saver' {
7+
export function saveAs(blob: any, name: any): void
8+
}

packages-private/sfc-playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"vite": "catalog:"
1414
},
1515
"dependencies": {
16-
"@vue/repl": "^4.4.0",
16+
"@vue/repl": "^4.4.2",
1717
"file-saver": "^2.0.5",
1818
"jszip": "^3.10.1",
1919
"vue": "workspace:*"

packages-private/sfc-playground/src/download/template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
},
1313
"devDependencies": {
1414
"@vitejs/plugin-vue": "^5.1.3",
15-
"vite": "^5.4.3"
15+
"vite": "^5.4.5"
1616
}
1717
}

packages-private/template-explorer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
},
1313
"dependencies": {
1414
"monaco-editor": "^0.51.0",
15-
"source-map-js": "^1.2.0"
15+
"source-map-js": "^1.2.1"
1616
}
1717
}

packages/compiler-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue/compiler-core",
3-
"version": "3.5.5",
3+
"version": "3.5.6",
44
"description": "@vue/compiler-core",
55
"main": "index.js",
66
"module": "dist/compiler-core.esm-bundler.js",

packages/compiler-dom/__tests__/transforms/stringifyStatic.spec.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,24 @@ describe('stringify static html', () => {
389389
])
390390
})
391391

392+
test('should stringify mathML', () => {
393+
const math = `<math xmlns="http://www.w3.org/1998/Math/MathML">`
394+
const repeated = `<ms>1</ms>`
395+
const { ast } = compileWithStringify(
396+
`<div>${math}${repeat(
397+
repeated,
398+
StringifyThresholds.NODE_COUNT,
399+
)}</math></div>`,
400+
)
401+
402+
expect(ast.cached).toMatchObject([
403+
cachedArrayStaticNodeMatcher(
404+
`${math}${repeat(repeated, StringifyThresholds.NODE_COUNT)}</math>`,
405+
1,
406+
),
407+
])
408+
})
409+
392410
// #5439
393411
test('stringify v-html', () => {
394412
const { code } = compileWithStringify(`

packages/compiler-dom/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue/compiler-dom",
3-
"version": "3.5.5",
3+
"version": "3.5.6",
44
"description": "@vue/compiler-dom",
55
"main": "index.js",
66
"module": "dist/compiler-dom.esm-bundler.js",

0 commit comments

Comments
 (0)