Commit Graph

334 Commits

Author SHA1 Message Date
skirtle 1755ac0a10
perf(runtime-core): use feature flag for call to resolveMergedOptions (#12163)
Reduce bundle size when using `__VUE_OPTIONS_API__: false`
2024-10-14 08:18:18 +08:00
yangxiuxiu b4d35349d8
fix(useId): ensure useId consistency when using serverPrefetch (#12128)
close #12102
2024-10-11 10:49:14 +08:00
linzhe f2d8019188
fix(custom-element): handle nested customElement mount w/ shadowRoot false (#11861)
close #11851
close #11871
2024-09-13 20:18:10 +08:00
Evan You 40193696b3
chore(build): use /*@__PURE__*/ annotation consistently 2024-09-04 20:24:33 +08:00
Evan You ac9e7e8bfa
test: adjust coverage config, use v8 coverage 2024-08-29 10:41:29 +08:00
Evan You 42e8df6203
fix(types): GlobalDirective / GlobalComponents should not be records 2024-08-28 15:00:36 +08:00
Evan You e19fc27042
fix(custom-element): keep instance.isCE for backwards compat 2024-08-15 15:18:19 +08:00
Kevin Deng 三咲智子 928af5fe2f
refactor(types): enable `isolatedDeclarations` (#11178) 2024-08-08 23:05:21 +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
edison 917c0631cc
chore: fix typo (#11522) 2024-08-06 18:20:40 +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 5a1a89bd61
feat(custom-element): useShadowRoot() helper
close #6113
close #8195
2024-08-03 14:19:19 +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 66579ea544
chore: Merge branch 'main' into minor 2024-07-19 18:07:42 +08:00
Evan You 73ef1561f6
feat(runtime-core): useId() (#11404) 2024-07-19 18:06:02 +08:00
edison 1b81d14bfd
refactor(runtime-core): remove attrsProxy and slotsProxy from instance (#11390) 2024-07-19 17:02:14 +08:00
Evan You f15ba2c2e2
chore: Merge branch 'main' into minor 2024-07-17 17:32:31 +08:00
Evan You 3d34f406ac
fix(runtime-core): bail manually rendered compiler slot fragments in all cases
Previously this bail was only applied on updates but not on initial mount,
and leads to different patch code paths between mount and update in edge
cases.

close #10870
2024-07-12 00:34:23 +08:00
Tycho 00341e8d66
chore: fix typo (#11195) [ci skip] 2024-06-24 10:26:17 +08:00
Evan You 26356264d2
chore: Merge branch 'main' into minor 2024-06-14 12:32:28 +02:00
Evan You 9daf90e29f
refactor(runtime-core): extract getComponentPublicInstance helper 2024-06-10 17:37:32 +08:00
edison edf263847e
fix(runtime-core): fix stale v-memo after v-if toggle (#6606)
close #6593
2024-06-07 17:29:28 +08:00
edison aa156ed5c4
fix(runtime-core): do not fire mount/activated hooks if unmounted before mounted (#9370)
close #8898
close #9264
close #9617
2024-06-07 13:48:50 +08:00
Evan You 8d606c44ec
chore: format 2024-06-05 23:41:40 +08:00
Noel De Martin 635a59b96f
fix(types): support generic argument in setup context expose method (#8507) 2024-06-05 23:36:52 +08:00
Evan You 1d8727ec97
chore: Merge branch 'main' into minor 2024-05-30 11:21:12 +08:00
skirtle 7d4e5750ba
dx(runtime-core): log the component object when warning about missing template/render function (#10263) 2024-05-27 18:01:25 +08:00
Carlos Rodrigues 4cc9ca870c
types(defineComponent): support for GlobalComponents, typed Directives and respect `expose` on defineComponent (#3399)
close #3367
2024-04-25 16:04:03 +08:00
Evan You bb5c31e614
chore: Merge branch 'main' into minor 2024-04-16 00:05:37 +08:00
Evan You d58d133b1c
fix(compat): fix $options mutation + adjust private API initialization
close #10626
close #10636
2024-04-15 19:28:37 +08:00
Evan You ca84316bfb perf(ssr): optimize setup context creation for ssr in v8 2024-04-12 16:02:52 +08:00
Evan You 4bc9f39f02 perf(ssr): avoid calling markRaw on component instance proxy
The previous behavior invokes the definePropery proxy trap on the
instance proxy and has massive overhead. This change improves Vue
ops/sec by 40% in https://github.com/eknkc/ssr-benchmark
2024-04-12 11:49:45 +08:00
Evan You 58d827cb71 chore: Merge branch 'main' into minor 2024-02-26 10:13:44 +08:00
Wick 76c9c742e9
chore(runtime-core): optimize validateComponentName (#10378) 2024-02-25 20:41:08 +08:00
Evan You 05eb4e0fef
Refactor reactivity system to use version counting and doubly-linked list tracking (#10397)
Bug fixes
close #10236
close #10069

PRs made stale by this one
close #10290
close #10354
close #10189
close #9480
2024-02-25 16:51:49 +08:00
yangxiuxiu f0b5f7ed8d
fix(hydration): fix SFC style v-bind hydration mismatch warnings (#10250)
close #10215
2024-02-06 17:38:41 +08:00
Evan You 2fd3905738 revert: "dx(computed): warn incorrect use of getCurrentInstance inside computed"
This reverts commit 324e817ef8.
2024-01-09 16:37:50 +08:00
Evan You 7976f7044e refactor(runtime-core): safer currentInstance reset 2024-01-09 07:22:13 +08:00
Evan You 324e817ef8 dx(computed): warn incorrect use of getCurrentInstance inside computed
ref #9974
close #10001
2024-01-08 18:12:40 +08:00
三咲智子 Kevin Deng bfe6b459d3
style: update format & lint config (#9162)
Co-authored-by: 丶远方 <yangpanteng@gmail.com>
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
Co-authored-by: Guo Xingjun <99574369+Plumbiu@users.noreply.github.com>
2023-12-26 19:39:47 +08:00
Evan You e04d821422 fix(ssr): make isInSSRComponentSetup state sharable across copies of Vue
This also fixes the issue when rendering async components in
the SFC playground with SSR enabled.
2023-12-12 21:37:52 +08:00
Evan You c95ab62936 chore: fix types 2023-12-08 22:34:47 +08:00
三咲智子 Kevin Deng 927ab17cfc
feat(types): add emits and slots type to `FunctionalComponent` (#8644) 2023-12-08 22:24:58 +08:00
Carlos Rodrigues bfb856565d
feat(types): provide ComponentInstance type (#5408) 2023-12-08 22:24:38 +08:00
Blake Newman 887e54c347
fix(types): expose emits as props in functional components (#9234) 2023-12-01 02:37:51 +08:00
renovate[bot] 16a6438236
chore(deps): update lint (#9627)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-18 10:33:24 +08:00
Lioness100 6277cb994a
chore: fix typo (#7693) 2023-06-10 17:17:41 +08:00
Simon Johansson 020851e57d
fix(ssr): reset current instance if setting up options component errors (#7743)
close #7733
2023-05-19 09:09:21 +08:00