cylc-ui
cylc-ui copied to clipboard
fix(deps): update dependency vue to v3.5.4
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
vue (source) | 3.4.11 -> 3.5.4 |
Release Notes
vuejs/core (vue)
v3.5.4
Bug Fixes
- compiler-sfc: correct scoped injection for nesting selector (#11854) (b1de75e), closes #10567
- reactivity: fix markRaw error on already marked object (#11864) (67d6596), closes #11862
- Revert "fix: Revert "fix(reactivity): self-referencing computed should refresh"" (e596378)
- runtime-core: handle shallow reactive arrays in renderList correctly (#11870) (ced59ab), closes #11869
-
types: correctly infer
TypeEmits
with both tuple and function syntax (#11840) (dad6738), closes #11836
Performance Improvements
v3.5.3
Bug Fixes
- hydration: check __asyncHydrate presence for vue3-lazy-hydration compat (#11825) (8e6c337), closes #11793
- Revert "fix(reactivity): self-referencing computed should refresh" (35c760f)
- ssr: respect app.config.warnHandler during ssr (bf3d9a2), closes #11830
- Transition: handle KeepAlive child unmount in Transition out-in mode (#11833) (6b7901d), closes #11775
- useId: make generated IDs selector compatible (babfb4c), closes #11828
v3.5.2
Bug Fixes
- reactivity: make toRaw work on proxies created by proxyRef (46c3ab1)
- reactivity: pass oldValue to computed getter (#11813) (98864a7), closes #11812
- reactivity: prevent endless recursion in computed getters (#11797) (716275d)
- reactivity: self-referencing computed should refresh (e84c4a6), closes /github.com/vuejs/core/pull/11797#issuecomment-2330738633
- scheduler: prevent duplicate jobs being queued (#11826) (df56cc5), closes #11712 #11807
- suspense: avoid updating anchor if activeBranch has not been rendered to the actual container (#11818) (3c0d531), closes #11806
- Transition: handle KeepAlive child unmount in Transition out-in mode (#11778) (3116553), closes #11775
- types: add HTMLDialogElement missing close event (#11811) (3634f7a)
- types: added name attribute support to details tag (#11823) (c74176e), closes #11821
- types: fix defineComponent props inference when setup() has explicit annotation (fca20a3), closes #11803
- useTemplateRef: properly fix readonly warning in dev and ensure prod behavior consistency (9b7797d), closes #11808 #11816 #11810
Features
v3.5.1
Bug Fixes
- build: improve built-in components treeshakability (4eee630)
-
reactivity: handle non-array arguments in reactive
concat
method (#11794) (475977a), closes #11792 - Transition: avoid applying transition hooks on comment vnode (#11788) (51912f8), closes #11782
-
types: avoid using intersection type in
Readonly<...>
to fix JSDoc emit (#11799) (7518bc1) - useTemplateRef: fix readonly warning when useTemplateRef has same variable name as template ref (bc63df0), closes #11795 #11802 #11804
v3.5.0
Aggregated Features List for 3.5 (alpha to stable)
Reactivity
- reactivity: Refactor reactivity system to use version counting and doubly-linked list tracking (#10397) (05eb4e0)
- reactivity: Optimize array tracking (#9511) (70196a4)
- compiler-sfc: enable reactive props destructure by default (d2dac0e)
-
reactivity:
onEffectCleanup
API (2cc5615), closes #10173 -
reactivity: add
failSilently
argument foronScopeDispose
(9a936aa) -
reactivity/watch: base
watch
,getCurrentWatcher
, andonWatcherCleanup
(#9927) (205e5b5) - reactivity/watch: add pause/resume for ReactiveEffect, EffectScope, and WatchHandle (#9651) (267093c)
-
watch: support passing number to
deep
option to control the watch depth (#9572) (22f7d96) -
types: export
MultiWatchSources
type (#9563) (998dca5) - types: allow computed getter and setter types to be unrelated (#11472) (a01675e), closes #7271
SSR
-
runtime-core:
useId()
andapp.config.idPrefix
(#11404) (73ef156) - hydration: lazy hydration strategies for async components (#11458) (d14a11c)
- hydration: support suppressing hydration mismatch via data-allow-mismatch (94fb2b8)
Custom Element
-
custom-element:
useHost()
helper (775103a) -
custom-element:
useShadowRoot()
helper (5a1a89b), closes #6113 #8195 -
custom-element: expose
this.$host
in Options API (1ef8f46) - custom-element: inject child components styles to custom element shadow root (#11517) (56c76a8), closes #4662 #7941 #7942
- custom-element: support configurable app instance in defineCustomElement (6758c3c), closes #4356 #4635
-
custom-element: support css
:host
selector by applying css vars on host element (#8830) (03a9ea2), closes #8826 - custom-element: support emit with options (e181bff), closes #7605
- custom-element: support expose on customElement (#6256) (af838c1), closes #5540
-
custom-element: support
nonce
option for injected style tags (bb4a02a), closes #6530 - custom-element: support passing custom-element-specific options via 2nd argument of defineCustomElement (60a88a2)
-
custom-element: support
shadowRoot: false
indefineCustomElement()
(37d2ce5), closes #4314 #4404
Teleport
- teleport: support deferred Teleport (#11387) (59a3e88), closes #2015 #11386
- teleport/transition: support directly nesting Teleport inside Transition (#6548) (0e6e3c7), closes #5836
Misc
-
runtime-core:
useTemplateRef()
(3ba70e4) -
runtime-core: add
app.onUnmount()
for registering cleanup functions (#4619) (582a3a3), closes #4516 -
runtime-core: add
app.config.throwUnhandledErrorInProduction
(f476b7f), closes #7876 - runtime-dom: Trusted Types compatibility (#10844) (6d4eb94)
-
compiler-core: support
Symbol
global in template expressions (#9069) (a501a85) - types: export more emit related types (#11017) (189573d)
Internals
- reactivity: store value cache on CustomRefs impls (#11539) (e044b6e)
- types: provide internal options for directly using user types in language tools (#10801) (75c8cf6)
- types: provide internal options for using refs type in language tools (#11492) (5ffd1a8)
Bug Fixes
- compiler-sfc: fix import usage check for kebab-case same name shorthand binding (0f7c0e5), closes #11745 #11754
- cssVars: correctly escape double quotes in SSR (#11784) (7b5b6e0), closes #11779
- deps: update dependency postcss to ^8.4.44 (#11774) (cb843e0)
- hydration: escape css var name to avoid mismatch (#11739) (ca12e77), closes #11735
- hydration: handle text nodes with 0 during hydration (#11772) (c756da2), closes #11771
- reactivity: correctly handle method calls on user-extended arrays (#11760) (9817c80), closes #11759
- runtime-dom: avoid unnecessary prop patch for checkbox (#11657) (c3ce9fe), closes #11647
- runtime-dom: prevent unnecessary DOM update from v-model (#11656) (b1be9bd), closes #11647
- server-renderer: Fix call to serverPrefetch in server renderer with an async setup (#10893) (6039e25)
-
server-renderer: render
className
during SSR (#11722) (52cdb0f) - types/defineModel: allow getter and setter types to be unrelated (#11699) (fe07f70), closes #11697
v3.4.38
For stable releases, please refer to CHANGELOG.md for details.
For pre-releases, please refer to CHANGELOG.md of the minor
branch.
v3.4.37
Bug Fixes
-
compiler-core: use
isProp.arg.loc
instead ofisProp.loc
(#11547) (236fb7a) - custom-element: fix custom-element double render on immediate prop change (978ff3c), closes #9885 #11335
- defineModel: detect changes respect custom getter and setter (#11543) (e042888), closes #11541 #11526 #11527
- keep-alive: avoid cache suspense comment root (#11479) (a917c05)
- keep-alive: fix render error in cached is undefined (#11496) (81351dc), closes #11427 #11431
- Revert "fix(types/ref): allow getter and setter types to be unrelated (#11442)" (b1abac0)
- Revert "fix(types/ref): correct type inference for nested refs (#11536)" (3a56315)
- runtime-core: fix warning for missing event handler (#11489) (e359ff0), closes #4803 #8268
- runtime-core: prioritize using the provides from currentApp in nested createApp (#11502) (7e75de0), closes #11488
- runtime-dom: apply css vars before mount (#11538) (fdc2a31), closes #11533
- ssr: ensure content is valid when rendering normal slot (#11491) (6c90324), closes #11326
- types/ref: correct type inference for nested refs (#11536) (536f623), closes #11532 #11537
-
types: allow
DirectiveArguments
third parameter to accept undefined (#11540) (1058ce8)
v3.4.36
v3.4.35
Bug Fixes
- teleport/ssr: fix Teleport hydration regression due to targetStart anchor addition (7b18cdb)
- teleport/ssr: ensure targetAnchor and targetStart not null during hydration (#11456) (12667da), closes #11400
- types/ref: allow getter and setter types to be unrelated (#11442) (e0b2975)
Performance Improvements
v3.4.34
Bug Fixes
v3.4.33
Bug Fixes
v3.4.32
Bug Fixes
- build: use consistent minify options from previous terser config (789675f)
- compiler-sfc: correctly resolve type annotation for declared function (#11279) (b287aee), closes #11266
- defineModel: force local update when setter results in same emitted value (de174e1), closes #10279 #10301
- hmr: hmr reload should work with async component (#11248) (c8b9794)
- hydration: fix tracking of reactive style objects in production (c10e40a), closes #11372
- hydration: handle consectuvie text nodes during hydration (f44c3b3), closes #7285 #7301
-
reactivity: ensure
unref
correctly resolves type forShallowRef
(#11360) (a509e30), closes #11356 - reactivity: shallowReactive map "unwraps" the nested refs (#8503) (50ddafe), closes #8501 #11249
- runtime-core: avoid recursive warning (3ee7b4c), closes #8074
- runtime-core: bail manually rendered compiler slot fragments in all cases (3d34f40), closes #10870
- runtime-core: do not emit when defineModel ref is set with same value (#11162) (f1bb0ae), closes #11125
- runtime-core: errors during component patch should be caught by error handlers (ee0248a)
- runtime-core: force diff slot fallback content and provided content (d76dd9c), closes #7256 #9200 #9308 #7266 #9213
- runtime-core: more edge case fix for manually rendered compiled slot (685e3f3), closes #11336
- runtime-core: use separate prop caches for components and mixins (#11350) (b0aa234), closes #7998
- runtime-dom: properly handle innerHTML unmount into new children (#11159) (3e9e32e), closes #9135
- teleport: skip teleported nodes when locating patch anchor (8655ced), closes #9071 #9134 #9313 #9313
- v-model: component v-model modifiers trim and number when cases don't match (#9609) (7fb6eb8), closes #4848 #4850 #4850
- v-once: properly unmount v-once cached trees (d343a0d), closes #5154 #8809
Performance Improvements
-
server-renderer: avoid unnecessary checks in
createBuffer
(#11364) (fc205bf) -
server-renderer: optimize
unrollBuffer
by avoiding promises (#11340) (05779a7)
v3.4.31
Bug Fixes
- compiler-core: handle inline comments with undefined bindings (#11217) (746352a), closes #11216
- shared: unwrap refs in toDisplayString (#7306) (0126cff), closes #5578 #5593 #11199 #11201
Reverts
- Revert "fix(reactivity): avoid infinite loop when render access a side effect computed (#11135)" (e0df985)
- Revert "fix(reactivity): fix side effect computed dirty level (#11183)" (6c303ea), closes #11183
v3.4.30
Bug Fixes
-
compiler-core: should not remove slot node with
v-else
(#11150) (e102670) - hydration: fix css vars hydration mismatch false positive on attr-fallthrough (#11190) (7ad67ce), closes #11188
- hydration: skip prop mismatch check for directives that mutate DOM in created (3169c91), closes #11189
- reactivity: fix side effect computed dirty level (#11183) (3bd79e3), closes #11181 #11169
- runtime-core: ensure unmount dynamic components in optimized mode (#11171) (220fe24), closes #11168
- runtime-core: update devtool __vnode on patch, avoid memory leak during dev (a959781), closes #11192
- runtime-dom: ensure only symbols are explicitly stringified during attribute patching (#11182) (a2e35d6), closes #11177
- runtime-dom: prevent setting state as attribute for custom elements (#11165) (8ae4c29), closes #11163
Performance Improvements
v3.4.29
Bug Fixes
- build: fix accidental inclusion of runtime-core in server-renderer cjs build (11cc12b), closes #11137
- compiler-sfc: fix missing scope for extends error message (4ec387b)
- compiler-sfc: fix parsing of mts, d.mts, and mtsx files (a476692)
- compiler-sfc: support @vue-ignore comment on more type sources (a23e99b)
- custom-element: support same direct setup function signature in defineCustomElement (7c8b126), closes #11116
- reactivity: avoid infinite loop when render access a side effect computed (#11135) (8296e19), closes #11121
v3.4.28
Bug Fixes
- compat: correctly transform non-identifier expressions in legacy filter syntax (#10896) (07b3c4b), closes #10852
- compat: ensure proper handling of render fuction from SFC using Vue.extend (#7781) (c73847f), closes #7766
- compat: only warn ATTR_FALSE_VALUE when enabled (04729ba), closes #11126
- compile-sfc: register props destructure rest id as setup bindings (#10888) (b2b5f57), closes #10885
- compile-sfc: Support project reference with folder, (#10908) (bdeac37), closes #10907
- compiler-core: allow unicode to appear in simple identifiers (#6765) (3ea9644), closes #6367
- compiler-core: change v-for key type to match Object.keys (#10963) (9fead52), closes #8819
- compiler-core: emit TS-compatible function declaration when requested (#9363) (5d25850)
- compiler-core: fix :key shorthand on v-for (#10942) (29425df), closes #10882 #10939
-
compiler-core: make
ForIteratorExpression
'sreturns
property optional (#11011) (5b8c1af) -
compiler-core: should set
<math>
tag as block to retain MathML namespace after patching (#10891) (87c5443) - compiler-core: v-for expression missing source with spaces should emit error (#5821) (b9ca202), closes #5819
- compiler-sfc: improve type resolving for the keyof operator (#10921) (293cf4e), closes #10920 #11002
- compiler-sfc: support as keyword with template literal types (#11100) (2594b1d), closes #10962
- compiler-sfc: support type resolve for keyof for intersection & union types (#11132) (495263a), closes #11129
- compiler-sfc: throw error when import macro as alias (#11041) (34a97ed)
- correct the type of
<details>
'sonToggle
event handler (#10938) (fd18ce7), closes #10928 - custom-element: disconnect MutationObserver in nextTick in case that custom elements are moved (#10613) (bbb5be2), closes #10610
- custom-elements: compatibility of createElement in older versions of Chrome (#9615) (a88295d), closes #9614
- hmr: avoid infinite recursion when reloading hmr components (#6936) (36bd9b0), closes #6930
- hydration: log hydration error even when using async components (#9403) (5afc76c), closes #9369
- KeepAlive: properly cache nested Suspense subtree (#10912) (07764fe)
-
npm: explicitly add
@vue/reactivity
as dependency of@vue/runtime-dom
(#10468) (ec424f6) - reactivity: pass oldValue in debug info when triggering refs (#8210) (3b0a56a), closes vuejs/pinia#2061
- runtime-core: avoid traversing static children for vnodes w/ PatchFlags.BAIL (#11115) (b557d3f), closes #10547
- runtime-core: do not fire mount/activated hooks if unmounted before mounted (#9370) (aa156ed), closes #8898 #9264 #9617
- runtime-core: ensure suspense creates dep component's render effect with correct optimized flag (#7689) (c521f95), closes #7688
-
runtime-core: fix missed updates when passing text vnode to
<component :is>
(#8304) (b310ec3), closes #8298 - runtime-core: fix stale v-memo after v-if toggle (#6606) (edf2638), closes #6593
- runtime-core: fix Transition for components with root-level v-if (#7678) (ef2e737), closes #7649
- runtime-dom: also set attribute for form element state (537a571), closes #6007 #6012
- runtime-dom: support Symbol for input value bindings (#10608) (188f3ae), closes #10597
- shared: ensure invokeArrayFns handles undefined arguments (#10869) (9b40d0f), closes #10863
- ssr: directive binding.instance should respect exposed during ssr (df686ab), closes #7499 #7502
- ssr: fix hydration for node with empty text node (#7216) (d1011c0)
- ssr: fix the bug that multi slot scope id does not work on component (#6100) (4c74302), closes #6093
- teleport: do not throw target warning when teleport is disabled (#9818) (15ee43f)
- transition: ensure Transition enterHooks are updated after clone (#11066) (671cf29), closes #11061
- types/apiWatch: correct type inference for reactive array (#11036) (aae2d78), closes #9416
-
types: improve
app.provide
type checking (#10603) (612bbf0), closes #10602 - types: support generic argument in setup context expose method (#8507) (635a59b)
- v-model: fix the lazy modifier is not reset by other modifications (#8547) (a52a02f), closes #8546 #6564 #6773
- watch: support traversing symbol properties in deep watcher (#10969) (a3e8aaf), closes #402
v3.4.27
Bug Fixes
- compat: include legacy scoped slots (#10868) (8366126), closes #8869
- compiler-core: add support for arrow aysnc function with unbracketed (#5789) (ca7d421), closes #5788
- compiler-dom: restrict createStaticVNode usage with option elements (#10846) (0e3d617), closes #6568 #7434
- compiler-sfc: handle keyof operator (#10874) (10d34a5), closes #10871
- hydration: handle edge case of style mismatch without style attribute (f2c1412), closes #10786
v3.4.26
Bug Fixes
- compiler-core: fix bail constant for globals (fefce06)
- compiler-core: remove unnecessary constant bail check (09b4df8), closes #10807
- runtime-core: attrs should be readonly in functional components (#10767) (e8fd644)
- runtime-core: ensure slot compiler marker writable (#10825) (9c2de62), closes #10818
- runtime-core: properly handle inherit transition during clone VNode (#10809) (638a79f), closes #3716 #10497 #4091
- Transition: re-fix #10620 ([#10832](https://redirect.github.com/v
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Never, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.
For some reason we are getting a recursion error in the tree view with this version
Maximum call stack size exceeded
(Chrome)
too much recursion
(Firefox)
I've searched for both on the Vue issues but not found anything recent
Seeing as no-one else is screaming about this, I suspect we have a genuine recursion problem here ☹
For some reason we are getting a recursion error in the tree view with this version
Seeing as no-one else is screaming about this, I suspect we have a genuine recursion problem here ☹
... Or not anymore, with Vue 3.5.4? 🤞
Maybe fixed by vuejs/core#11135?
Will test locally.
However we do now have a call to the requestIdleCallback
API in our build, which is not supported by Safari at all (as of 18.0)
/home/runner/work/cylc-ui/cylc-ui/dist/assets/index-Ct6ZOA0K.js
14:15600 error requestIdleCallback is not supported in Safari 15.6 compat/compat
In the output of yarn build --minify false --mode production
:
const hydrateOnIdle = (timeout = 1e4) => (hydrate2) => {
const id = requestIdleCallback(hydrate2, { timeout });
return () => cancelIdleCallback(id);
};
This function is only imported in the vue3-apexcharts chunk, for some reason.
Updating to the latest vue3-apexcharts
fixes this, but breaks the analysis view plots 😩 (see https://github.com/cylc/cylc-ui/pull/1499).
I think the hydrateOnIdle
function is not actually used, it's just not being tree-shaken properly in vue3-apexcharts
v1.4.1 (see https://github.com/apexcharts/vue3-apexcharts/pull/92)
Other than that, I've tested the tree view expand/collapse and don't get the recursion error :+1:
TLDR blocked by #1499