diff --git a/CHANGELOG.md b/CHANGELOG.md index 4998dfd75..8f7b4c8f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ * **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)) +* **sfc:** inherit parent scopeId on child root ([#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) @@ -44,10 +44,10 @@ instead of moving it (see #737). Ensuring correct behavior for all possible Array methods while - retaining the ref unwrapping behavior is exceedinly complicated; In + retaining the ref unwrapping behavior is exceedingly 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. + function (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. @@ -145,7 +145,7 @@ behaves exactly the same as 2.x. - When using the effect signature or `{ immediate: true }`, the - intital execution is now performed synchronously instead of + initial execution is now performed synchronously instead of deferred until the component is mounted. This is necessary for certain use cases to work properly with `async setup()` and Suspense. diff --git a/packages/compiler-core/src/transforms/hoistStatic.ts b/packages/compiler-core/src/transforms/hoistStatic.ts index a25691643..3d2afb6ca 100644 --- a/packages/compiler-core/src/transforms/hoistStatic.ts +++ b/packages/compiler-core/src/transforms/hoistStatic.ts @@ -126,9 +126,9 @@ export function isStaticNode( return false } } - // only svg/foeignObject could be block here, however if they are static + // only svg/foreignObject could be block here, however if they are static // then they don't need to be blocks since there will be no nested - // udpates. + // updates. if (codegenNode.isBlock) { codegenNode.isBlock = false } diff --git a/packages/runtime-core/src/renderer.ts b/packages/runtime-core/src/renderer.ts index 9d1c2a414..ab5b58cec 100644 --- a/packages/runtime-core/src/renderer.ts +++ b/packages/runtime-core/src/renderer.ts @@ -128,7 +128,7 @@ export interface RendererInternals { c: ProcessTextOrCommentFn } -// These functions are created inside a closure and therefore there types cannot +// These functions are created inside a closure and therefore their types cannot // be directly exported. In order to avoid maintaining function signatures in // two places, we declare them once here and use them inside the closure. type PatchFn = ( @@ -651,7 +651,6 @@ function baseCreateRenderer< // generated by the compiler and can take the fast path. // in this path old node and new node are guaranteed to have the same shape // (i.e. at the exact same position in the source template) - if (patchFlag & PatchFlags.FULL_PROPS) { // element props contain dynamic keys, full diff needed patchProps( diff --git a/packages/shared/src/patchFlags.ts b/packages/shared/src/patchFlags.ts index 374a22b52..9e499abf7 100644 --- a/packages/shared/src/patchFlags.ts +++ b/packages/shared/src/patchFlags.ts @@ -55,7 +55,7 @@ export const enum PatchFlags { // Indicates an element that only needs non-props patching, e.g. ref or // directives (onVnodeXXX hooks). since every patched vnode checks for refs - // and onVnodeXXX hooks, itt simply marks the vnode so that a parent block + // and onVnodeXXX hooks, it simply marks the vnode so that a parent block // will track it. NEED_PATCH = 1 << 9,