Commit Graph

4921 Commits

Author SHA1 Message Date
Evan You be84f33ab0
chore(sfc-playground): default isCustomElement for sfc playground 2024-08-08 16:49:16 +08:00
Evan You a07e7bf553
fix(custom-element): support early-set domProps for async custom elements
close #11081
close #11082
2024-08-08 16:26:48 +08:00
Evan You 9b531d5716
test: rectify accidentally passing test 2024-08-08 15:57:07 +08:00
Evan You 7d5743223f
chore: use fresh containers for app mount tests 2024-08-08 14:42:16 +08:00
Evan You 1ef8f46af0
feat(custom-element): expose this.$host in Options API 2024-08-08 12:40:40 +08:00
Evan You 775103af37
feat(custom-element): useHost() helper 2024-08-08 12:35:00 +08:00
Alex e044b6e737
feat(reactivity): store value cache on CustomRefs impls (#11539)
Co-authored-by: Evan You <evan@vuejs.org>
2024-08-07 22:24:28 +08:00
Cédric Exbrayat 5753a10fc5
chore: fix wrong test name for useShadowRoot (#11550) 2024-08-07 21:29:56 +08:00
三咲智子 Kevin Deng 95b9550f73
style: format html files 2024-08-07 19:58:07 +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 3a56315f94
fix: Revert "fix(types/ref): correct type inference for nested refs (#11536)"
This reverts commit 536f62332c.
2024-08-07 18:11:39 +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
Evan You 197afc2c1f
chore: fix useShadowRoot warning method name 2024-08-07 17:21:36 +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
linzhe fdc2a31dbd
fix(runtime-dom): apply css vars before mount (#11538)
fix #11533
2024-08-07 11:51:44 +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
Tycho 536f62332c
fix(types/ref): correct type inference for nested refs (#11536)
close #11532
close #11537
2024-08-07 11:20:04 +08:00
sq800 139548e0e0
chore: fix typo (#11535) [ci skip] 2024-08-07 10:57:39 +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
Evan You 37ccb9b9a0
fix(custom-element): delay mounting of custom elements with async parent
close #8127
close #9341
close #9351

the fix is based on #9351 with reused tests
2024-08-07 02:18:54 +08:00
白雾三语 03a9ea2b88
feat(custom-element): support css `:host` selector by applying css vars on host element (#8830)
close #8826
2024-08-06 23:33:57 +08:00
vue-bot 1cbbb04008 release: v3.4.36 2024-08-06 14:00:05 +00:00
edison 275354caba
fix(compiler-ssr): don't render v-if comments in TransitionGroup + static tag (#11515)
close #11514
2024-08-06 18:25:13 +08:00
edison 917c0631cc
chore: fix typo (#11522) 2024-08-06 18:20:40 +08:00
Evan You 79602f9ecd
fix(ssr): respect textContent/innerHTML from getSSRProps in optimized SSR output
close #8112
2024-08-06 18:14:59 +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 bb4a02a70c
feat(custom-element): support nonce option for injected style tags
close #6530
2024-08-06 15:41:54 +08:00
Evan You 60a88a2b12
feat(custom-element): support passing custom-element-specific options via 2nd argument of defineCustomElement 2024-08-06 15:37:28 +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
Evan You 6e541db29f
chore: warn style injection in shadowRoot: false mode 2024-08-05 16:33:05 +08:00
renovate[bot] ed1bf72715
chore(deps): update build (#11495)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-05 14:49:04 +08:00
Evan You 7ecf91f760
chore(deps): limit minimatch range
minimatch 10+ only supports Node 20+
2024-08-05 14:48:22 +08:00
Evan You ea190f24e4
chore(deps): upgrade to entities 5.0
close #11507
2024-08-05 14:14:52 +08:00
Evan You 67bb820904
fix(compiler-core): properly handle for loop variable declarations in expression transforms
ref https://github.com/vuejs/core/pull/11467#issuecomment-2263069794
2024-08-05 14:07:44 +08:00
Evan You 077a1aeb3c
fix(compiler-core): fix expression transform for try...catch block params
close #11465
close #11467
2024-08-05 13:46:51 +08:00
Andy Li e94b01bd8a
fix(types/custome-element): `defineCustomElement` props inference with array emits (#11384)
close #11353
2024-08-05 11:14:36 +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
远方os a01675ef8f
feat(types): allow computed getter and setter types to be unrelated (#11472)
close #7271
2024-08-05 10:51:56 +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