Evan You 6 лет назад
Родитель
Сommit
9ab22c7ae6

+ 45 - 0
CHANGELOG.md

@@ -1,3 +1,48 @@
+# [3.0.0-alpha.6](https://github.com/vuejs/vue-next/compare/v3.0.0-alpha.5...v3.0.0-alpha.6) (2020-02-22)
+
+
+### Bug Fixes
+
+* **compiler-core:** should alias name in helperString ([#743](https://github.com/vuejs/vue-next/issues/743)) ([7b987d9](https://github.com/vuejs/vue-next/commit/7b987d9450fc7befcd0946a0d53991d27ed299ec)), closes [#740](https://github.com/vuejs/vue-next/issues/740)
+* **compiler-dom:** properly stringify class/style bindings when hoisting static strings ([1b9b235](https://github.com/vuejs/vue-next/commit/1b9b235663b75db040172d2ffbee1dd40b4db032))
+* **reactivity:** should trigger all effects when array length is mutated ([#754](https://github.com/vuejs/vue-next/issues/754)) ([5fac655](https://github.com/vuejs/vue-next/commit/5fac65589b4455b98fd4e2f9eb3754f0acde97bb))
+* **sfc:** inherit parent scopeId on child rooot ([#756](https://github.com/vuejs/vue-next/issues/756)) ([9547c2b](https://github.com/vuejs/vue-next/commit/9547c2b93d6d8f469314cfe055960746a3e3acbe))
+* **types:** improve ref typing, close [#759](https://github.com/vuejs/vue-next/issues/759) ([627b9df](https://github.com/vuejs/vue-next/commit/627b9df4a293ae18071009d9cac7a5e995d40716))
+* **types:** update setup binding unwrap types for 6b10f0c ([a840e7d](https://github.com/vuejs/vue-next/commit/a840e7ddf0b470b5da27b7b2b8b5fcf39a7197a2)), closes [#738](https://github.com/vuejs/vue-next/issues/738)
+
+
+### Code Refactoring
+
+* preserve refs in reactive arrays ([775a7c2](https://github.com/vuejs/vue-next/commit/775a7c2b414ca44d4684badb29e8e80ff6b5d3dd)), closes [#737](https://github.com/vuejs/vue-next/issues/737)
+
+
+### Features
+
+* **reactivity:** expose unref and shallowRef ([e9024bf](https://github.com/vuejs/vue-next/commit/e9024bf1b7456b9cf9b913c239502593364bc773))
+* **runtime-core:** add watchEffect API ([99a2e18](https://github.com/vuejs/vue-next/commit/99a2e18c9711d3d1f79f8c9c59212880efd058b9))
+
+
+### Performance Improvements
+
+* **effect:** optimize effect trigger for array length mutation ([#761](https://github.com/vuejs/vue-next/issues/761)) ([76c7f54](https://github.com/vuejs/vue-next/commit/76c7f5426919f9d29a303263bc54a1e42a66e94b))
+* **reactivity:** only trigger all effects on Array length mutation if new length is shorter than old length ([33622d6](https://github.com/vuejs/vue-next/commit/33622d63600ba0f18ba4dae97bda882c918b5f7d))
+
+
+### BREAKING CHANGES
+
+* **runtime-core:** replae `watch(fn, options?)` with `watchEffect`
+
+    The `watch(fn, options?)` signature has been replaced by the new
+    `watchEffect` API, which has the same usage and behavior. `watch`
+    now only supports the `watch(source, cb, options?)` signautre.
+* reactive arrays no longer unwraps contained refs
+
+    When reactive arrays contain refs, especially a mix of refs and
+    plain values, Array prototype methods will fail to function
+    properly - e.g. sort() or reverse() will overwrite the ref's value
+
+
+
 # [3.0.0-alpha.5](https://github.com/vuejs/vue-next/compare/v3.0.0-alpha.4...v3.0.0-alpha.5) (2020-02-18)
 
 

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "private": true,
-  "version": "3.0.0-alpha.5",
+  "version": "3.0.0-alpha.6",
   "workspaces": [
     "packages/*"
   ],

+ 1 - 1
packages/compiler-core/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vue/compiler-core",
-  "version": "3.0.0-alpha.5",
+  "version": "3.0.0-alpha.6",
   "description": "@vue/compiler-core",
   "main": "index.js",
   "module": "dist/compiler-core.esm-bundler.js",

+ 2 - 2
packages/compiler-dom/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vue/compiler-dom",
-  "version": "3.0.0-alpha.5",
+  "version": "3.0.0-alpha.6",
   "description": "@vue/compiler-dom",
   "main": "index.js",
   "module": "dist/compiler-dom.esm-bundler.js",
@@ -34,6 +34,6 @@
   },
   "homepage": "https://github.com/vuejs/vue/tree/dev/packages/compiler-dom#readme",
   "dependencies": {
-    "@vue/compiler-core": "3.0.0-alpha.5"
+    "@vue/compiler-core": "3.0.0-alpha.6"
   }
 }

+ 4 - 4
packages/compiler-sfc/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vue/compiler-sfc",
-  "version": "3.0.0-alpha.5",
+  "version": "3.0.0-alpha.6",
   "description": "@vue/compiler-sfc",
   "main": "dist/compiler-sfc.cjs.js",
   "types": "dist/compiler-sfc.d.ts",
@@ -27,11 +27,11 @@
   },
   "homepage": "https://github.com/vuejs/vue/tree/dev/packages/compiler-sfc#readme",
   "peerDependencies": {
-    "vue": "3.0.0-alpha.5"
+    "vue": "3.0.0-alpha.6"
   },
   "dependencies": {
-    "@vue/compiler-core": "3.0.0-alpha.5",
-    "@vue/compiler-dom": "3.0.0-alpha.5",
+    "@vue/compiler-core": "3.0.0-alpha.6",
+    "@vue/compiler-dom": "3.0.0-alpha.6",
     "consolidate": "^0.15.1",
     "hash-sum": "^2.0.0",
     "lru-cache": "^5.1.1",

+ 2 - 2
packages/compiler-ssr/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vue/compiler-ssr",
-  "version": "3.0.0-alpha.5",
+  "version": "3.0.0-alpha.6",
   "description": "@vue/compiler-ssr",
   "main": "dist/compiler-ssr.cjs.js",
   "types": "dist/compiler-ssr.d.ts",
@@ -27,6 +27,6 @@
   },
   "homepage": "https://github.com/vuejs/vue/tree/dev/packages/compiler-ssr#readme",
   "dependencies": {
-    "@vue/compiler-dom": "3.0.0-alpha.5"
+    "@vue/compiler-dom": "3.0.0-alpha.6"
   }
 }

+ 1 - 1
packages/reactivity/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vue/reactivity",
-  "version": "3.0.0-alpha.5",
+  "version": "3.0.0-alpha.6",
   "description": "@vue/reactivity",
   "main": "index.js",
   "module": "dist/reactivity.esm-bundler.js",

+ 2 - 2
packages/runtime-core/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vue/runtime-core",
-  "version": "3.0.0-alpha.5",
+  "version": "3.0.0-alpha.6",
   "description": "@vue/runtime-core",
   "main": "index.js",
   "module": "dist/runtime-core.esm-bundler.js",
@@ -31,6 +31,6 @@
   },
   "homepage": "https://github.com/vuejs/vue/tree/dev/packages/runtime-core#readme",
   "dependencies": {
-    "@vue/reactivity": "3.0.0-alpha.5"
+    "@vue/reactivity": "3.0.0-alpha.6"
   }
 }

+ 2 - 2
packages/runtime-dom/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vue/runtime-dom",
-  "version": "3.0.0-alpha.5",
+  "version": "3.0.0-alpha.6",
   "description": "@vue/runtime-dom",
   "main": "index.js",
   "module": "dist/runtime-dom.esm-bundler.js",
@@ -37,7 +37,7 @@
   },
   "homepage": "https://github.com/vuejs/vue/tree/dev/packages/runtime-dom#readme",
   "dependencies": {
-    "@vue/runtime-core": "3.0.0-alpha.5",
+    "@vue/runtime-core": "3.0.0-alpha.6",
     "csstype": "^2.6.8"
   }
 }

+ 2 - 2
packages/runtime-test/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vue/runtime-test",
-  "version": "3.0.0-alpha.5",
+  "version": "3.0.0-alpha.6",
   "description": "@vue/runtime-test",
   "private": true,
   "main": "index.js",
@@ -30,6 +30,6 @@
   },
   "homepage": "https://github.com/vuejs/vue/tree/dev/packages/runtime-test#readme",
   "dependencies": {
-    "@vue/runtime-core": "3.0.0-alpha.5"
+    "@vue/runtime-core": "3.0.0-alpha.6"
   }
 }

+ 3 - 3
packages/server-renderer/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vue/server-renderer",
-  "version": "3.0.0-alpha.5",
+  "version": "3.0.0-alpha.6",
   "description": "@vue/server-renderer",
   "main": "index.js",
   "types": "dist/server-renderer.d.ts",
@@ -27,9 +27,9 @@
   },
   "homepage": "https://github.com/vuejs/vue/tree/dev/packages/server-renderer#readme",
   "peerDependencies": {
-    "vue": "3.0.0-alpha.5"
+    "vue": "3.0.0-alpha.6"
   },
   "dependencies": {
-    "@vue/compiler-ssr": "3.0.0-alpha.5"
+    "@vue/compiler-ssr": "3.0.0-alpha.6"
   }
 }

+ 1 - 1
packages/shared/package.json

@@ -1,5 +1,5 @@
 {
   "name": "@vue/shared",
-  "version": "3.0.0-alpha.5",
+  "version": "3.0.0-alpha.6",
   "private": true
 }

+ 1 - 1
packages/size-check/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vue/size-check",
-  "version": "3.0.0-alpha.5",
+  "version": "3.0.0-alpha.6",
   "private": true,
   "buildOptions": {
     "name": "Vue",

+ 1 - 1
packages/template-explorer/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vue/template-explorer",
-  "version": "3.0.0-alpha.5",
+  "version": "3.0.0-alpha.6",
   "private": true,
   "buildOptions": {
     "formats": [

+ 3 - 3
packages/vue/package.json

@@ -1,6 +1,6 @@
 {
   "name": "vue",
-  "version": "3.0.0-alpha.5",
+  "version": "3.0.0-alpha.6",
   "description": "vue",
   "main": "index.js",
   "module": "dist/vue.runtime.esm-bundler.js",
@@ -36,8 +36,8 @@
   },
   "homepage": "https://github.com/vuejs/vue/tree/dev/packages/vue#readme",
   "dependencies": {
-    "@vue/compiler-dom": "3.0.0-alpha.5",
-    "@vue/runtime-dom": "3.0.0-alpha.5"
+    "@vue/compiler-dom": "3.0.0-alpha.6",
+    "@vue/runtime-dom": "3.0.0-alpha.6"
   },
   "devDependencies": {
     "lodash": "^4.17.15",