Skip to content

Commit d23095e

Browse files
committed
Merge tag 'v3.5.0-alpha.5'
2 parents f0405f1 + f6babf3 commit d23095e

Some content is hidden

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

46 files changed

+1726
-834
lines changed

.github/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Hi! I'm really excited that you are interested in contributing to Vue.js. Before
8282

8383
## Development Setup
8484

85-
You will need [Node.js](https://nodejs.org) **version 18.12+**, and [PNPM](https://pnpm.io) **version 8+**.
85+
You will need [Node.js](https://nodejs.org) with minimum version as specified in the [`.node-version`](https://github.com/vuejs/core/blob/main/.node-version) file, and [PNPM](https://pnpm.io) with minimum version as specified in the [`"packageManager"` field in `package.json`](https://github.com/vuejs/core/blob/main/package.json#L4).
8686

8787
We also recommend installing [@antfu/ni](https://github.com/antfu/ni) to help switching between repos using different package managers. `ni` also provides the handy `nr` command which running npm scripts easier.
8888

.github/workflows/autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
- name: Run prettier
3232
run: pnpm run format
3333

34-
- uses: autofix-ci/action@2891949f3779a1cafafae1523058501de3d4e944
34+
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c

CHANGELOG.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,31 @@
1-
# [3.5.0-alpha.4](https://github.com/vuejs/core/compare/v3.4.34...v3.5.0-alpha.4) (2024-07-24)
1+
# [3.5.0-alpha.5](https://github.com/vuejs/core/compare/v3.4.35...v3.5.0-alpha.5) (2024-07-31)
2+
3+
4+
### Features
5+
6+
* **hydration:** support suppressing hydration mismatch via data-allow-mismatch ([94fb2b8](https://github.com/vuejs/core/commit/94fb2b8106a66bcca1a3f922a246a29fdd1274b1))
7+
* lazy hydration strategies for async components ([#11458](https://github.com/vuejs/core/issues/11458)) ([d14a11c](https://github.com/vuejs/core/commit/d14a11c1cdcee88452f17ce97758743c863958f4))
28

39

10+
11+
## [3.4.35](https://github.com/vuejs/core/compare/v3.4.34...v3.4.35) (2024-07-31)
12+
13+
14+
### Bug Fixes
15+
16+
* **teleport/ssr:** fix Teleport hydration regression due to targetStart anchor addition ([7b18cdb](https://github.com/vuejs/core/commit/7b18cdb0b53a94007ca6a3675bf41b5d3153fec6))
17+
* **teleport/ssr:** ensure targetAnchor and targetStart not null during hydration ([#11456](https://github.com/vuejs/core/issues/11456)) ([12667da](https://github.com/vuejs/core/commit/12667da4879f980dcf2c50e36f3642d085a87d71)), closes [#11400](https://github.com/vuejs/core/issues/11400)
18+
* **types/ref:** allow getter and setter types to be unrelated ([#11442](https://github.com/vuejs/core/issues/11442)) ([e0b2975](https://github.com/vuejs/core/commit/e0b2975ef65ae6a0be0aa0a0df43fb887c665251))
19+
20+
21+
### Performance Improvements
22+
23+
* **runtime-core:** improve efficiency of normalizePropsOptions ([#11409](https://github.com/vuejs/core/issues/11409)) ([5680142](https://github.com/vuejs/core/commit/5680142e68096c42e66da9f4c6220d040d7c56ba)), closes [#9739](https://github.com/vuejs/core/issues/9739)
24+
25+
26+
27+
# [3.5.0-alpha.4](https://github.com/vuejs/core/compare/v3.4.34...v3.5.0-alpha.4) (2024-07-24)
28+
429
### Bug Fixes
530

631
* **suspense/hydration:** fix hydration timing of async component inside suspense ([1b8e197](https://github.com/vuejs/core/commit/1b8e197a5b65d67a9703b8511786fb81df9aa7cc)), closes [#6638](https://github.com/vuejs/core/issues/6638)

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
3-
"version": "3.5.0-alpha.4",
4-
"packageManager": "pnpm@9.5.0",
3+
"version": "3.5.0-alpha.5",
4+
"packageManager": "pnpm@9.6.0",
55
"type": "module",
66
"scripts": {
77
"dev": "node scripts/dev.js vue vue-vapor",
@@ -66,46 +66,46 @@
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.6.13",
69+
"@swc/core": "^1.7.3",
7070
"@types/hash-sum": "^1.0.2",
71-
"@types/node": "^20.14.10",
71+
"@types/node": "^20.14.13",
7272
"@types/semver": "^7.5.8",
7373
"@vitest/coverage-istanbul": "^1.6.0",
7474
"@vitest/ui": "^1.6.0",
7575
"@vue/consolidate": "1.0.0",
76-
"conventional-changelog-cli": "^4.1.0",
76+
"conventional-changelog-cli": "^5.0.0",
7777
"enquirer": "^2.4.1",
7878
"esbuild": "^0.23.0",
7979
"esbuild-plugin-polyfill-node": "^0.3.0",
80-
"eslint": "^9.6.0",
81-
"eslint-plugin-import-x": "^0.5.3",
80+
"eslint": "^9.8.0",
81+
"eslint-plugin-import-x": "^3.1.0",
8282
"eslint-plugin-vitest": "^0.5.4",
8383
"estree-walker": "catalog:",
84-
"jsdom": "^24.1.0",
84+
"jsdom": "^24.1.1",
8585
"lint-staged": "^15.2.7",
8686
"lodash": "^4.17.21",
8787
"magic-string": "^0.30.10",
8888
"markdown-table": "^3.0.3",
8989
"marked": "^12.0.2",
9090
"npm-run-all2": "^6.2.2",
9191
"picocolors": "^1.0.1",
92-
"prettier": "^3.3.2",
92+
"prettier": "^3.3.3",
9393
"pretty-bytes": "^6.1.1",
9494
"pug": "^3.0.3",
95-
"puppeteer": "~22.12.1",
95+
"puppeteer": "~22.14.0",
9696
"rimraf": "^5.0.9",
97-
"rollup": "^4.18.1",
97+
"rollup": "^4.19.1",
9898
"rollup-plugin-dts": "^6.1.1",
9999
"rollup-plugin-esbuild": "^6.1.1",
100100
"rollup-plugin-polyfill-node": "^0.13.0",
101-
"semver": "^7.6.2",
101+
"semver": "^7.6.3",
102102
"serve": "^14.2.3",
103103
"simple-git-hooks": "^2.11.1",
104104
"todomvc-app-css": "^2.4.3",
105105
"tslib": "^2.6.3",
106106
"tsx": "^4.16.2",
107107
"typescript": "~5.4.5",
108-
"typescript-eslint": "^7.15.0",
108+
"typescript-eslint": "^7.17.0",
109109
"vite": "catalog:",
110110
"vitest": "^1.6.0"
111111
},

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.0-alpha.4",
3+
"version": "3.5.0-alpha.5",
44
"description": "@vue/compiler-core",
55
"main": "index.js",
66
"module": "dist/compiler-core.esm-bundler.js",

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.0-alpha.4",
3+
"version": "3.5.0-alpha.5",
44
"description": "@vue/compiler-dom",
55
"main": "index.js",
66
"module": "dist/compiler-dom.esm-bundler.js",

packages/compiler-sfc/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue/compiler-sfc",
3-
"version": "3.5.0-alpha.4",
3+
"version": "3.5.0-alpha.5",
44
"description": "@vue/compiler-sfc",
55
"main": "dist/compiler-sfc.cjs.js",
66
"module": "dist/compiler-sfc.esm-browser.js",
@@ -50,7 +50,7 @@
5050
"@vue/shared": "workspace:*",
5151
"estree-walker": "catalog:",
5252
"magic-string": "catalog:",
53-
"postcss": "^8.4.39",
53+
"postcss": "^8.4.40",
5454
"source-map-js": "catalog:"
5555
},
5656
"devDependencies": {
@@ -61,7 +61,7 @@
6161
"merge-source-map": "^1.1.0",
6262
"minimatch": "^9.0.5",
6363
"postcss-modules": "^6.0.0",
64-
"postcss-selector-parser": "^6.1.0",
64+
"postcss-selector-parser": "^6.1.1",
6565
"pug": "^3.0.3",
6666
"sass": "^1.77.8"
6767
}

packages/compiler-ssr/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-ssr",
3-
"version": "3.5.0-alpha.4",
3+
"version": "3.5.0-alpha.5",
44
"description": "@vue/compiler-ssr",
55
"main": "dist/compiler-ssr.cjs.js",
66
"types": "dist/compiler-ssr.d.ts",

packages/dts-test/ref.test-d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,16 @@ describe('ref with generic', <T extends { name: string }>() => {
173173
expectType<string>(ss.value.name)
174174
})
175175

176+
describe('allow getter and setter types to be unrelated', <T>() => {
177+
const a = { b: ref(0) }
178+
const c = ref(a)
179+
c.value = a
180+
181+
const d = {} as T
182+
const e = ref(d)
183+
e.value = d
184+
})
185+
176186
// shallowRef
177187
type Status = 'initial' | 'ready' | 'invalidating'
178188
const shallowStatus = shallowRef<Status>('initial')

packages/dts-test/watch.test-d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {
22
type ComputedRef,
3+
type MaybeRef,
34
type Ref,
45
computed,
56
defineComponent,
@@ -203,3 +204,10 @@ defineComponent({
203204
expectType<{ foo: string }>(value)
204205
})
205206
}
207+
208+
{
209+
const css: MaybeRef<string> = ''
210+
watch(ref(css), value => {
211+
expectType<string>(value)
212+
})
213+
}

0 commit comments

Comments
 (0)