Skip to content

Commit d293876

Browse files
committed
release: v3.0.0-alpha.4
1 parent ccc3312 commit d293876

File tree

15 files changed

+86
-25
lines changed

15 files changed

+86
-25
lines changed

CHANGELOG.md

+61
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,64 @@
1+
# [3.0.0-alpha.4](https://github.com/vuejs/vue-next/compare/v3.0.0-alpha.3...v3.0.0-alpha.4) (2020-01-27)
2+
3+
4+
### Bug Fixes
5+
6+
* **reactivity:** Array methods relying on identity should work with raw values ([aefb7d2](https://github.com/vuejs/vue-next/commit/aefb7d282ed716923ca1a288a63a83a94af87ebc))
7+
* **runtime-core:** instance should not expose non-declared props ([2884831](https://github.com/vuejs/vue-next/commit/2884831065e16ccf5bd3ae1ee95116803ee3b18c))
8+
* **runtime-dom:** should not access document in non-browser env ([48152bc](https://github.com/vuejs/vue-next/commit/48152bc88ea817ae23e2987dce99d64b426366c1)), closes [#657](https://github.com/vuejs/vue-next/issues/657)
9+
* **v-model/emit:** update:camelCase events should trigger kebab case equivalent ([2837ce8](https://github.com/vuejs/vue-next/commit/2837ce842856d51dfbb55e3fa4a36a352446fb54)), closes [#656](https://github.com/vuejs/vue-next/issues/656)
10+
11+
12+
### Code Refactoring
13+
14+
* adjust `createApp` related API signatures ([c07751f](https://github.com/vuejs/vue-next/commit/c07751fd3605f301dc0f02fd2a48acc7ba7a0397))
15+
* remove implicit reactive() call on renderContext ([6b10f0c](https://github.com/vuejs/vue-next/commit/6b10f0cd1da942c1d96746672b5f595df7d125b5))
16+
17+
18+
### Performance Improvements
19+
20+
* **ssr:** avoid unnecessary async overhead ([297282a](https://github.com/vuejs/vue-next/commit/297282a81259289bfed207d0c9393337aea70117))
21+
22+
23+
### BREAKING CHANGES
24+
25+
* object returned from `setup()` are no longer implicitly
26+
passed to `reactive()`.
27+
28+
The renderContext is the object returned by `setup()` (or a new object
29+
if no setup() is present). Before this change, it was implicitly passed
30+
to `reactive()` for ref unwrapping. But this has the side effect of
31+
unnecessary deep reactive conversion on properties that should not be
32+
made reactive (e.g. computed return values and injected non-reactive
33+
objects), and can lead to performance issues.
34+
35+
This change removes the `reactive()` call and instead performs a
36+
shallow ref unwrapping at the render proxy level. The breaking part is
37+
when the user returns an object with a plain property from `setup()`,
38+
e.g. `return { count: 0 }`, this property will no longer trigger
39+
updates when mutated by a in-template event handler. Instead, explicit
40+
refs are required.
41+
42+
This also means that any objects not explicitly made reactive in
43+
`setup()` will remain non-reactive. This can be desirable when
44+
exposing heavy external stateful objects on `this`.
45+
* `createApp` API has been adjusted.
46+
47+
- `createApp()` now accepts the root component, and optionally a props
48+
object to pass to the root component.
49+
- `app.mount()` now accepts a single argument (the root container)
50+
- `app.unmount()` no longer requires arguments.
51+
52+
New behavior looks like the following:
53+
54+
``` js
55+
const app = createApp(RootComponent)
56+
app.mount('#app')
57+
app.unmount()
58+
```
59+
60+
61+
162
# [3.0.0-alpha.3](https://github.com/vuejs/vue-next/compare/v3.0.0-alpha.2...v3.0.0-alpha.3) (2020-01-22)
263

364

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"private": true,
3-
"version": "3.0.0-alpha.3",
3+
"version": "3.0.0-alpha.4",
44
"workspaces": [
55
"packages/*"
66
],

packages/compiler-core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue/compiler-core",
3-
"version": "3.0.0-alpha.3",
3+
"version": "3.0.0-alpha.4",
44
"description": "@vue/compiler-core",
55
"main": "index.js",
66
"module": "dist/compiler-core.esm-bundler.js",

packages/compiler-dom/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue/compiler-dom",
3-
"version": "3.0.0-alpha.3",
3+
"version": "3.0.0-alpha.4",
44
"description": "@vue/compiler-dom",
55
"main": "index.js",
66
"module": "dist/compiler-dom.esm-bundler.js",
@@ -34,6 +34,6 @@
3434
},
3535
"homepage": "https://github.com/vuejs/vue/tree/dev/packages/compiler-dom#readme",
3636
"dependencies": {
37-
"@vue/compiler-core": "3.0.0-alpha.3"
37+
"@vue/compiler-core": "3.0.0-alpha.4"
3838
}
3939
}

packages/compiler-sfc/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue/compiler-sfc",
3-
"version": "3.0.0-alpha.3",
3+
"version": "3.0.0-alpha.4",
44
"description": "@vue/compiler-sfc",
55
"main": "dist/compiler-sfc.cjs.js",
66
"types": "dist/compiler-sfc.d.ts",
@@ -27,11 +27,11 @@
2727
},
2828
"homepage": "https://github.com/vuejs/vue/tree/dev/packages/compiler-sfc#readme",
2929
"peerDependencies": {
30-
"vue": "3.0.0-alpha.3"
30+
"vue": "3.0.0-alpha.4"
3131
},
3232
"dependencies": {
33-
"@vue/compiler-core": "3.0.0-alpha.3",
34-
"@vue/compiler-dom": "3.0.0-alpha.3",
33+
"@vue/compiler-core": "3.0.0-alpha.4",
34+
"@vue/compiler-dom": "3.0.0-alpha.4",
3535
"consolidate": "^0.15.1",
3636
"hash-sum": "^2.0.0",
3737
"lru-cache": "^5.1.1",

packages/compiler-ssr/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue/compiler-ssr",
3-
"version": "3.0.0-alpha.3",
3+
"version": "3.0.0-alpha.4",
44
"description": "@vue/compiler-ssr",
55
"main": "dist/compiler-ssr.cjs.js",
66
"types": "dist/compiler-ssr.d.ts",
@@ -27,6 +27,6 @@
2727
},
2828
"homepage": "https://github.com/vuejs/vue/tree/dev/packages/compiler-ssr#readme",
2929
"dependencies": {
30-
"@vue/compiler-core": "3.0.0-alpha.3"
30+
"@vue/compiler-core": "3.0.0-alpha.4"
3131
}
3232
}

packages/reactivity/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue/reactivity",
3-
"version": "3.0.0-alpha.3",
3+
"version": "3.0.0-alpha.4",
44
"description": "@vue/reactivity",
55
"main": "index.js",
66
"module": "dist/reactivity.esm-bundler.js",

packages/runtime-core/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue/runtime-core",
3-
"version": "3.0.0-alpha.3",
3+
"version": "3.0.0-alpha.4",
44
"description": "@vue/runtime-core",
55
"main": "index.js",
66
"module": "dist/runtime-core.esm-bundler.js",
@@ -31,6 +31,6 @@
3131
},
3232
"homepage": "https://github.com/vuejs/vue/tree/dev/packages/runtime-core#readme",
3333
"dependencies": {
34-
"@vue/reactivity": "3.0.0-alpha.3"
34+
"@vue/reactivity": "3.0.0-alpha.4"
3535
}
3636
}

packages/runtime-dom/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue/runtime-dom",
3-
"version": "3.0.0-alpha.3",
3+
"version": "3.0.0-alpha.4",
44
"description": "@vue/runtime-dom",
55
"main": "index.js",
66
"module": "dist/runtime-dom.esm-bundler.js",
@@ -37,7 +37,7 @@
3737
},
3838
"homepage": "https://github.com/vuejs/vue/tree/dev/packages/runtime-dom#readme",
3939
"dependencies": {
40-
"@vue/runtime-core": "3.0.0-alpha.3",
40+
"@vue/runtime-core": "3.0.0-alpha.4",
4141
"csstype": "^2.6.8"
4242
}
4343
}

packages/runtime-test/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue/runtime-test",
3-
"version": "3.0.0-alpha.3",
3+
"version": "3.0.0-alpha.4",
44
"description": "@vue/runtime-test",
55
"private": true,
66
"main": "index.js",
@@ -30,6 +30,6 @@
3030
},
3131
"homepage": "https://github.com/vuejs/vue/tree/dev/packages/runtime-test#readme",
3232
"dependencies": {
33-
"@vue/runtime-core": "3.0.0-alpha.3"
33+
"@vue/runtime-core": "3.0.0-alpha.4"
3434
}
3535
}

packages/server-renderer/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue/server-renderer",
3-
"version": "3.0.0-alpha.3",
3+
"version": "3.0.0-alpha.4",
44
"description": "@vue/server-renderer",
55
"main": "index.js",
66
"types": "dist/server-renderer.d.ts",
@@ -27,6 +27,6 @@
2727
},
2828
"homepage": "https://github.com/vuejs/vue/tree/dev/packages/server-renderer#readme",
2929
"peerDependencies": {
30-
"vue": "3.0.0-alpha.3"
30+
"vue": "3.0.0-alpha.4"
3131
}
3232
}

packages/shared/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"name": "@vue/shared",
3-
"version": "3.0.0-alpha.3",
3+
"version": "3.0.0-alpha.4",
44
"private": true
55
}

packages/size-check/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue/size-check",
3-
"version": "3.0.0-alpha.3",
3+
"version": "3.0.0-alpha.4",
44
"private": true,
55
"buildOptions": {
66
"name": "Vue",

packages/template-explorer/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue/template-explorer",
3-
"version": "3.0.0-alpha.3",
3+
"version": "3.0.0-alpha.4",
44
"private": true,
55
"buildOptions": {
66
"formats": [

packages/vue/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue",
3-
"version": "3.0.0-alpha.3",
3+
"version": "3.0.0-alpha.4",
44
"description": "vue",
55
"main": "index.js",
66
"module": "dist/vue.runtime.esm-bundler.js",
@@ -34,8 +34,8 @@
3434
},
3535
"homepage": "https://github.com/vuejs/vue/tree/dev/packages/vue#readme",
3636
"dependencies": {
37-
"@vue/compiler-dom": "3.0.0-alpha.3",
38-
"@vue/runtime-dom": "3.0.0-alpha.3"
37+
"@vue/compiler-dom": "3.0.0-alpha.4",
38+
"@vue/runtime-dom": "3.0.0-alpha.4"
3939
},
4040
"devDependencies": {
4141
"lodash": "^4.17.15",

0 commit comments

Comments
 (0)