vue3-yuanma/packages
Evan You 775a7c2b41 refactor: preserve refs in reactive arrays
BREAKING CHANGE: 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
    instead of moving it (see #737).

    Ensuring correct behavior for all possible Array methods while
    retaining the ref unwrapping behavior is exceedinly complicated; In
    addition, even if Vue handles the built-in methods internally, it
    would still break when the user attempts to use a 3rd party utility
    functioon (e.g. lodash) on a reactive array containing refs.

    After this commit, similar to other collection types like Map and
    Set, Arrays will no longer automatically unwrap contained refs.

    The usage of mixed refs and plain values in Arrays should be rare in
    practice. In cases where this is necessary, the user can create a
    computed property that performs the unwrapping.
2020-02-21 17:48:39 +01:00
..
compiler-core fix(compiler-dom): properly stringify class/style bindings when hoisting static strings 2020-02-21 13:10:13 +01:00
compiler-dom fix(compiler-dom): properly stringify class/style bindings when hoisting static strings 2020-02-21 13:10:13 +01:00
compiler-sfc release: v3.0.0-alpha.5 2020-02-18 15:00:55 -05:00
compiler-ssr fix(compiler-dom): properly stringify class/style bindings when hoisting static strings 2020-02-21 13:10:13 +01:00
reactivity refactor: preserve refs in reactive arrays 2020-02-21 17:48:39 +01:00
runtime-core fix(sfc): inherit parent scopeId on child rooot (#756) 2020-02-21 14:44:13 +01:00
runtime-dom chore: use undefined for TS 3.8 compat 2020-02-21 11:38:41 +01:00
runtime-test release: v3.0.0-alpha.5 2020-02-18 15:00:55 -05:00
server-renderer fix(sfc): inherit parent scopeId on child rooot (#756) 2020-02-21 14:44:13 +01:00
shared fix(compiler-dom): properly stringify class/style bindings when hoisting static strings 2020-02-21 13:10:13 +01:00
size-check release: v3.0.0-alpha.5 2020-02-18 15:00:55 -05:00
template-explorer release: v3.0.0-alpha.5 2020-02-18 15:00:55 -05:00
vue build: use buildOption to determine runtime compile build (#742) 2020-02-19 09:50:24 -05:00
global.d.ts build: avoid runtime wildcard import in global build 2020-02-13 18:50:36 -05:00