Commit Graph

2390 Commits

Author SHA1 Message Date
Evan You babfb4cbcb
fix(useId): make generated IDs selector compatible
close #11828
2024-09-06 08:46:47 +08:00
Evan You 72263fa12e
release: v3.5.2 2024-09-05 21:11:36 +08:00
山吹色御守 7a64b6734d
types(internal): provide internal options for using `$el` type in language tools (#11814) 2024-09-05 20:58:13 +08:00
edison 3c0d531fa7
fix(suspense): avoid updating anchor if activeBranch has not been rendered to the actual container (#11818)
close #11806
2024-09-05 20:56:34 +08:00
skirtle df56cc5287
fix(scheduler): prevent duplicate jobs being queued (#11826)
Fix #11712
Fix #11807
2024-09-05 20:51:26 +08:00
Evan You 9b7797d0d1
fix(useTemplateRef): properly fix readonly warning in dev and ensure prod behavior consistency
close #11808
close #11816
close #11810
2024-09-05 17:47:03 +08:00
edison 3116553529
fix(Transition): handle KeepAlive child unmount in Transition out-in mode (#11778)
close #11775
2024-09-05 16:47:50 +08:00
Evan You fca20a39aa
fix(types): fix defineComponent props inference when setup() has explicit annotation
close #11803
2024-09-05 16:44:47 +08:00
远方os c518517cb3
chore(types): removed the Awaited compatibility type tool (#11820) 2024-09-05 16:09:10 +08:00
Evan You 1b6bc2374d
release: v3.5.1 2024-09-04 21:07:29 +08:00
edison 51912f8a02
fix(Transition): avoid applying transition hooks on comment vnode (#11788)
close #11782
2024-09-04 20:54:04 +08:00
Evan You bc63df0199
fix(useTemplateRef): fix readonly warning when useTemplateRef has same variable name as template ref
close #11795
close #11802
close #11804
2024-09-04 20:53:12 +08:00
Johnson Chu 7518bc19dc
fix(types): avoid using intersection type in `Readonly<...>` to fix JSDoc emit (#11799) 2024-09-04 20:34:36 +08:00
Evan You 40193696b3
chore(build): use /*@__PURE__*/ annotation consistently 2024-09-04 20:24:33 +08:00
Evan You 4eee630b31
fix(build): improve built-in components treeshakability 2024-09-04 20:22:33 +08:00
Evan You 6402b98408
release: v3.5.0 2024-09-03 21:13:50 +08:00
Tycho fe07f70736
fix(types/defineModel): allow getter and setter types to be unrelated (#11699)
close #11697
2024-09-03 17:47:50 +08:00
edison ca12e776bc
fix(hydration): escape css var name to avoid mismatch (#11739)
close #11735
2024-09-03 08:25:00 +08:00
edison c756da24b2
fix(hydration): handle text nodes with 0 during hydration (#11772)
close #11771
2024-09-02 17:09:38 +08:00
Evan You d298c431cc
release: v3.5.0-rc.1 2024-08-29 15:25:43 +08:00
Evan You ac9e7e8bfa
test: adjust coverage config, use v8 coverage 2024-08-29 10:41:29 +08:00
linzhe 29c321bfd3
fix(keep-alive): reset keep alive flag when the component is removed from include (#11718)
close #11717
2024-08-29 10:41:19 +08:00
Evan You 42e8df6203
fix(types): GlobalDirective / GlobalComponents should not be records 2024-08-28 15:00:36 +08:00
edison 342657b717
chore: correct the issue number (#11715) [ci skip] 2024-08-26 18:08:46 +08:00
yangxiuxiu fbc0c42bcf
fix(reactivity): ensure watcher with once: true are properly removed from effect scope (#11665) 2024-08-20 16:35:08 +08:00
Evan You f2ea25dc54
refactor(watch): reuse watch types 2024-08-20 16:16:25 +08:00
Evan You 8c3fdd1a7d
release: v3.5.0-beta.3 2024-08-20 08:24:06 +08:00
Rizumu Ayaka 205e5b5e27
feat(reactivity): base `watch`, `getCurrentWatcher`, and `onWatcherCleanup` (#9927) 2024-08-20 08:21:44 +08:00
yangxiuxiu 44973bb3e7
fix(types): strip non-prop default values from return type of withDefaults (#9998)
close #9899
2024-08-19 16:29:43 +08:00
zhangenming bb6babca8f
perf( runtime-core): use `apply` to avoid spreading. (#5985) 2024-08-19 16:25:01 +08:00
edison ac2a410e46
fix(runtime-core): ensure suspense content inherit scopeId (#10652)
close #5148
2024-08-19 16:19:24 +08:00
skirtle 4b608a9449
refactor(scheduler): remove invalidateJob (#11650)
Co-authored-by: Evan You <evan@vuejs.org>
2024-08-19 10:49:59 +08:00
skirtle 7fbf4964e4
refactor(scheduler): remove redundant sorting (#11646) 2024-08-19 10:17:45 +08:00
skirtle b332f80f0e
fix(runtime-core): pre jobs without an id should run first (#7746) 2024-08-19 10:13:50 +08:00
Jakob 8bcaad4a32
fix(watch): handle errors in computed used as watch source (#11626)
close #11624
2024-08-16 16:14:08 +08:00
山吹色御守 d7d0371e74
fix(runtime-core): correct type inference for PascalCase emits (#11579)
fix vuejs/language-tools#4269
2024-08-15 17:49:43 +08:00
Evan You 7d700c215d
release: v3.5.0-beta.2 2024-08-15 15:29:43 +08:00
Evan You e19fc27042
fix(custom-element): keep instance.isCE for backwards compat 2024-08-15 15:18:19 +08:00
Raman Paulau c96ec67c87
chore(types): update examples in JSDoc for augmenting global properties and custom options to align with docs (#11609) 2024-08-14 15:12:13 +08:00
Tycho 5cf5a1620d
fix(types/computed): ensure type safety for `WritableComputedRef` (#11608) 2024-08-14 15:11:10 +08:00
linzhe 3bda3e83fd
fix(reactivity): sync watch should be executed correctly (#11589)
close #11577
2024-08-13 22:54:08 +08:00
btea 3653bc0f45
fix(keep-alive): ensure include/exclude regexp work with global flag (#11595) 2024-08-13 22:07:35 +08:00
edison 73fa91fabd
refactor: remove unnecessary check as filter is always non-null (#11599) 2024-08-13 22:05:14 +08:00
Evan You 90caac473d
test(custom-element): test custom element hydration w/ declarative shadow dom 2024-08-10 16:39:20 +08:00
Evan You 23e098807b
release: v3.5.0-beta.1 2024-08-08 23:31:46 +08:00
Evan You 741d8a0710
chore: Merge branch 'main' into minor 2024-08-08 23:06:53 +08:00
Kevin Deng 三咲智子 928af5fe2f
refactor(types): enable `isolatedDeclarations` (#11178) 2024-08-08 23:05:21 +08:00
Evan You 28db2e69f4
release: v3.4.37 2024-08-08 22:36:10 +08:00
Evan You 1ef8f46af0
feat(custom-element): expose this.$host in Options API 2024-08-08 12:40:40 +08:00
LiuSeen e0428884b5
fix(defineModel): detect changes respect custom getter and setter (#11543)
fix: #11541
fix: #11526
close: #11527
2024-08-07 22:10:01 +08:00
Evan You eaf5455d77
chore: Merge branch 'main' into minor 2024-08-07 18:25:58 +08:00
Evan You b1abac06cd
fix: Revert "fix(types/ref): allow getter and setter types to be unrelated (#11442)"
This reverts commit e0b2975ef6.

This change requires TypeScript 5.1 so it is moved to a minor release.
2024-08-07 18:12:07 +08:00
Evan You 978ff3c1db
fix(custom-element): fix custom-element double render on immediate prop change
fix #9885
close #11335
2024-08-07 17:44:11 +08:00
Alex Liu 1058ce8e74
fix(types): allow `DirectiveArguments` third parameter to accept undefined (#11540) 2024-08-07 17:02:15 +08:00
Evan You 6758c3cd04
feat(custom-element): support configurable app instance in defineCustomElement
Support configuring via `configureApp` option:

```js
defineCustomElement({
  // ...
}, {
  configureApp(app) {
    // ...
  }
})
```

close #4356
close #4635
2024-08-07 16:08:06 +08:00
Michael Brevard 261c8b111d
feat(hydration): allow fine tuning of lazy hydration strategy triggers (#11530) 2024-08-07 12:06:15 +08:00
edison 7e75de002f
fix(runtime-core): prioritize using the provides from currentApp in nested createApp (#11502)
close #11488
2024-08-07 12:02:38 +08:00
かっこかり 81351dc7fb
fix(keep-alive): fix render error in cached is undefined (#11496)
fix #11427
close #11431
2024-08-07 11:58:44 +08:00
Yuyao Nie 6c90324870
fix(ssr): ensure content is valid when rendering normal slot (#11491)
fix #11326
2024-08-07 11:56:00 +08:00
skirtle e359ff0046
fix(runtime-core): fix warning for missing event handler (#11489)
fix #4803
close #8268
2024-08-07 11:29:41 +08:00
edison a917c0539c
fix(keep-alive): avoid cache suspense comment root (#11479) 2024-08-07 11:24:17 +08:00
Kevin Deng 三咲智子 8a99f903db
style: format html&markdown files (#11531) 2024-08-07 10:57:18 +08:00
Evan You 63689ed776
fix(custom-element): reflect prop default value on custom element
close #9006
close #10537
2024-08-07 02:51:29 +08:00
Evan You bcb9a70290
types: custom element interface should be internal 2024-08-07 02:33:20 +08:00
vue-bot 1cbbb04008 release: v3.4.36 2024-08-06 14:00:05 +00:00
edison 917c0631cc
chore: fix typo (#11522) 2024-08-06 18:20:40 +08:00
Evan You 7d473b7721
fix(hydration): force hydrate custom element dynamic props
close #7203
close #8038
2024-08-06 15:58:45 +08:00
Evan You 56c76a8b05
feat(custom-element): inject child components styles to custom element shadow root (#11517)
close #4662
close #7941
close #7942
2024-08-05 20:49:28 +08:00
Evan You b74687c0bb
refactor: isCE -> ce 2024-08-05 16:33:48 +08:00
Tycho 4592b63c6a
fix(types/withDefaults): ensure default values of type `any` do not include `undefined` (#11490) 2024-08-05 10:59:44 +08:00
btea 3430bffa4b
test(runtime-core): test cases when the value of the `$stable` flag is false (#11485) 2024-08-05 10:53:21 +08:00
Tycho 5ffd1a8945
feat(types): provide internal options for using refs type in language tools (#11492) 2024-08-05 10:50:43 +08:00
Evan You 5a1a89bd61
feat(custom-element): useShadowRoot() helper
close #6113
close #8195
2024-08-03 14:19:19 +08:00
Evan You 37d2ce5d8e
feat(custom-element): support shadowRoot: false in defineCustomElement()
close #4314
close #4404
2024-08-03 13:14:22 +08:00
远方os 267093c314
feat(reactivity/watch): add pause/resume for ReactiveEffect, EffectScope, and WatchHandle (#9651) 2024-08-02 14:41:27 +08:00
Tycho 55acabe88c
dx(useTemplateRef): warn when declaring with the same key (#11462) 2024-08-02 13:18:58 +08:00
Haoqun Jiang 6d4eb94853
feat(runtime-dom): Trusted Types compatibility (#10844) 2024-08-02 12:46:12 +08:00
Damian Głowala 998dca59f1
feat(types): export `MultiWatchSources` type (#9563) 2024-08-02 12:43:22 +08:00
远方os 22f7d96757
feat(watch): support passing number to `deep` option to control the watch depth (#9572) 2024-08-02 11:38:07 +08:00
Evan You 321d80758c
fix(types): allow using InjectionKey as valid property key
close #5089
2024-08-02 11:11:03 +08:00
Evan You 1fbfa6962b
feat: support specifying allowed keys via generic argument in useTemplateRef() 2024-08-01 11:13:56 +08:00
Evan You f6babf3236
release: v3.5.0-alpha.5 2024-07-31 16:57:19 +08:00
Evan You f35080daf5
chore: Merge branch 'main' into minor 2024-07-31 16:49:22 +08:00
Evan You 0b8ba6320e
release: v3.4.35 2024-07-31 16:42:04 +08:00
Evan You 7b18cdb0b5
fix(teleport/ssr): fix Teleport hydration regression due to targetStart anchor addition 2024-07-31 16:10:23 +08:00
edison 12667da487
fix(Teleport): ensure targetAnchor and targetStart not null during hydration (#11456)
close #11400
2024-07-31 15:46:39 +08:00
Evan You d14a11c1cd
feat: lazy hydration strategies for async components (#11458) 2024-07-31 12:14:51 +08:00
skirtle 5680142e68
perf(runtime-core): improve efficiency of normalizePropsOptions (#11409)
close #9739
2024-07-29 21:47:23 +08:00
Tycho e0b2975ef6
fix(types/ref): allow getter and setter types to be unrelated (#11442) 2024-07-29 10:52:38 +08:00
Tycho e28c58138c
refactor(reactivity): simplify the wrapping logic for returned values in array instrumentations (#11434) 2024-07-29 09:22:18 +08:00
Evan You 94fb2b8106
feat(hydration): support suppressing hydration mismatch via data-allow-mismatch 2024-07-25 11:22:27 +08:00
Evan You 4ffd9db703
release: v3.5.0-alpha.4 2024-07-24 23:41:40 +08:00
Evan You fa6c5d8d32
chore: Merge branch 'main' into minor 2024-07-24 23:37:31 +08:00
Evan You 9111252042
release: v3.4.34 2024-07-24 23:30:30 +08:00
Evan You b5cad0e91c
refactor: use hasChanged for useModel comparisons 2024-07-24 23:26:13 +08:00
Tycho a18f1ecf05
fix(defineModel): correct update with multiple changes in same tick (#11430)
close #11429
2024-07-24 23:25:22 +08:00
Evan You cd28172578
fix(useId): properly mark async boundary for already resolved async component 2024-07-24 23:08:56 +08:00
Evan You 2a55f2267d
test: add test case for useId 2024-07-24 22:50:31 +08:00
Evan You 1b8e197a5b
fix(suspense/hydration): fix hydration timing of async component inside suspense
close #6638
2024-07-24 22:15:25 +08:00
Evan You e255c31c88
refactor: remove unnecessary else 2024-07-24 21:58:04 +08:00