Wick
28841fee43
fix(reactivity): fix call sequence of ontrigger in effect ( #10501 )
2024-04-25 10:30:51 +08:00
Doctor Wu
b7b652eb71
feat(runtime-vapor): template ref on component ( #185 )
2024-04-25 04:57:45 +08:00
三咲智子 Kevin Deng
7fe4712831
Merge remote-tracking branch 'upstream/main'
2024-04-25 01:59:41 +08:00
Evan You
574c3e63bb
release: v3.4.25
2024-04-24 18:37:52 +08:00
Evan You
064e82f585
fix(runtime-core): use normal object as internal prototype for attrs and slots
...
to allow use of hasOwnProperty()
ref 6df53d85a2 (r141304923)
2024-04-24 18:28:49 +08:00
Evan You
4253a57f17
fix(defineModel): align prod mode runtime type generation with defineProps
...
close #10769
2024-04-24 18:21:57 +08:00
Evan You
85f3592725
refactor: should throw errors in computed getters
2024-04-24 17:27:51 +08:00
edison
3724693a25
fix(runtime-core): properly get keepAlive child ( #10772 )
...
close #10771
2024-04-24 16:32:39 +08:00
Evan You
9fd1284ca4
chore: Merge branch 'main' into minor
2024-04-22 23:32:45 +08:00
Evan You
958286e3f0
release: v3.4.24
2024-04-22 23:29:58 +08:00
Evan You
b92c25f53d
fix(compiler-core): properly parse await expressions in edge cases
...
close #10754
2024-04-22 23:21:18 +08:00
Evan You
f12c81efca
fix(compiler-ssr): fix hydration mismatch for conditional slot in transition
...
close #10743
2024-04-22 22:23:09 +08:00
Evan You
a7cf74277e
test: fix test case broken by b93f264
2024-04-22 21:05:00 +08:00
Evan You
b93f264647
fix(runtime-core): props should be readonly via direct template access
...
close #8216
close #10736
2024-04-22 20:47:45 +08:00
Vadim Kruglov
da7adefa84
fix(compiler-core): handle template ref bound via v-bind object on v-for ( #10706 )
...
close #10696
2024-04-22 20:46:11 +08:00
Evan You
5cef52a5c2
fix(compiler-sfc): handle readonly operator and ReadonlyArray/Map/Set types
...
close #10726
2024-04-22 15:36:38 +08:00
Vadim Kruglov
65109a70f1
fix(transition): transition is breaking/flickering when enter is canceled ( #10688 )
...
Co-authored-by: Vadim Kruglov <vadim.kruglov@libertexgroup.com>
2024-04-22 15:10:08 +08:00
renovate[bot]
88c9d264ea
chore(deps): update build ( #10761 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-22 15:09:14 +08:00
renovate[bot]
15df5c1b26
fix(deps): update compiler ( #10760 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-22 15:04:41 +08:00
Kevin Deng 三咲智子
a084df1515
dx(compiler-dom): warn on invalid html nesting ( #10734 )
2024-04-22 15:03:39 +08:00
renovate[bot]
b0d00958e0
chore(deps): update all non-major dependencies ( #10758 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-22 14:52:58 +08:00
GaoNeng
d6c5bcf833
feat(runtime-core): implement debug hook ( #183 )
2024-04-21 20:30:47 +08:00
Doctor Wu
d490bf2ed7
feat(runtime-vapor): implement expose ( #181 )
...
Co-authored-by: Kevin Deng 三咲智子 <sxzz@sxzz.moe>
2024-04-20 22:17:30 +08:00
三咲智子 Kevin Deng
e67e6432f0
refactor: merge createTextNode & setText
2024-04-20 21:48:44 +08:00
Evan You
5f0c6e4a05
chore: Merge branch 'main' into minor
2024-04-19 22:09:34 +08:00
三咲智子 Kevin Deng
b9b3e021de
feat(compiler-vapor): extract `resolveComponent`
...
Avoid call `resolveComponent` repeatly for the same component
2024-04-19 20:09:03 +08:00
Jevon
1f28ae15cd
feat(compiler-vapor): v-model for component ( #180 )
...
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-04-19 19:43:30 +08:00
Jevon
37df043adc
feat(runtime-vapor): runtime for v-on in component ( #178 )
...
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-04-19 16:49:21 +08:00
三咲智子 Kevin Deng
7cacb655e0
fix(runtime-vapor): flush post jobs after unmount
2024-04-19 16:19:56 +08:00
三咲智子 Kevin Deng
af1581be28
fix(compiler-vapor): v-model argument on native element
2024-04-19 01:15:43 +08:00
三咲智子 Kevin Deng
75488653d3
refactor(compiler-vapor): inline `validate-html-nesting`
2024-04-18 23:01:48 +08:00
三咲智子 Kevin Deng
1af1f40247
fix(compiler-vapor): TS error
2024-04-18 14:54:33 +08:00
三咲智子 Kevin Deng
98b701c82c
Merge remote-tracking branch 'upstream/main'
2024-04-18 14:48:04 +08:00
三咲智子 Kevin Deng
b8c609f437
Merge remote-tracking branch 'upstream/minor'
2024-04-18 14:43:54 +08:00
Evan You
1ff407676f
fix(compiler-ssr): fix v-html SSR for nullish values
...
close #10725
2024-04-18 12:49:56 +08:00
Evan You
cde7f05787
fix(runtime-core): further fix slots _ctx check
...
close #10724
2024-04-18 12:27:15 +08:00
yangxiuxiu
e51ca61ca0
fix(runtime-core): fix edge case of KeepAlive inside Transition with slot children ( #10719 )
...
close #10708
2024-04-18 12:00:06 +08:00
三咲智子 Kevin Deng
761f785b30
feat(compiler-vapor): invalid html nesting
2024-04-18 02:42:59 +08:00
三咲智子 Kevin Deng
a68445bdac
test: add template abbreviation
2024-04-18 01:30:56 +08:00
Haoqun Jiang
ea494af993
chore: update to ESLint 9 ( #10705 )
2024-04-17 21:58:35 +08:00
Evan You
46c2b63981
release: v3.4.23
2024-04-16 22:55:56 +08:00
Evan You
6df53d85a2
fix(runtime-core): use same internal object mechanism for slots
...
close #10709
2024-04-16 22:47:24 +08:00
Evan You
6930e60787
fix(runtime-core): fix regression for $attrs tracking in slots
...
close #10710
2024-04-16 21:53:47 +08:00
Rizumu Ayaka
b447aceac5
fix(runtime-vapor): detach effect scope & component instance ( #174 )
2024-04-16 16:55:44 +08:00
Jevon
e640ec6088
fix(compiler-vapor): v-on for component support `$event` argument ( #177 )
...
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-04-16 16:46:22 +08:00
Evan You
bb5c31e614
chore: Merge branch 'main' into minor
2024-04-16 00:05:37 +08:00
Evan You
b4b856b3f0
release: v3.4.22
2024-04-15 23:59:36 +08:00
Evan You
f26d56601c
chore: improve event value validation message
2024-04-15 23:39:59 +08:00
Wick
9da34d7af8
fix(reactivity): computed should not be detected as true by isProxy ( #10401 )
2024-04-15 22:55:37 +08:00
Thimo Sietsma
37ba93c213
fix(types): avoid merging object union types when using withDefaults ( #10596 )
...
close #10594
2024-04-15 22:50:34 +08:00
edison
fc99e4d3f0
fix(Transition): ensure the KeepAlive children unmount w/ out-in mode ( #10632 )
...
close #10620
2024-04-15 22:40:38 +08:00
caomingrui
53d15d3f76
fix(runtime-core): handle invalid values in callWithAsyncErrorHandling
2024-04-15 22:37:16 +08:00
Adrien Foulon
7ccd453dd0
fix(runtime-dom): sanitize wrongly passed string value as event handler ( #8953 )
...
close #8818
2024-04-15 22:28:34 +08:00
Wick
15ffe8f2c9
fix(runtime-dom): force update v-model number with leading 0 ( #10506 )
...
close #10503
close #10615
2024-04-15 22:02:57 +08:00
Jonas
5a9626708e
fix(ssr): don't render v-if comments in TransitionGroup ( #6732 )
...
close #6715
2024-04-15 21:26:19 +08:00
edison
2ec06fd6c8
fix(hydration): properly handle optimized mode during hydrate node ( #10638 )
...
close #10607
2024-04-15 21:23:30 +08:00
yangxiuxiu
0cef65cee4
fix(compiler-sfc): fix defineModel coercion for boolean + string union types ( #9603 )
...
close #9587
close #10676
2024-04-15 21:18:59 +08:00
白雾三语
67722ba23b
fix(runtime-dom): fix css v-bind for suspensed components ( #8523 )
...
close #8520
2024-04-15 20:23:28 +08:00
Doctor Wu
54a6afa75a
fix(compiler-sfc): fix universal selector scope ( #10551 )
...
close #10548
2024-04-15 19:36:13 +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
04af9504a7
fix(compiler-core): fix v-bind shorthand for component :is
...
close #10469
close #10471
2024-04-15 17:36:05 +08:00
Evan You
969c5fb30f
fix(reactivity): fix hasOwnProperty key coercion edge cases
2024-04-15 17:18:53 +08:00
edison
e5919d4658
fix(compile-sfc): analyze v-bind shorthand usage in template ( #10518 )
...
close #10515
2024-04-15 16:32:04 +08:00
Evan You
2ae908d00c
chore(types): perform strict es2016 lib check when building dts
2024-04-15 15:52:48 +08:00
Evan You
7ae9dbf57d
chore(deps): bump TS to 5.4
2024-04-15 13:36:43 +08:00
Evan You
16174da21d
fix(compiler-core): fix loc.source for end tags with whitespace before >
...
close #10694
close #10695
2024-04-15 11:50:57 +08:00
Evan You
f709238c30
chore: use correct parse in parser tests for whitespace: condense
2024-04-15 11:35:05 +08:00
三咲智子 Kevin Deng
9e0cd20da0
feat(compiler-vapor): support v-on for component
2024-04-15 04:43:37 +08:00
三咲智子 Kevin Deng
3787a430f6
test(compiler-vapor): add props & emits for component
2024-04-15 04:43:26 +08:00
三咲智子 Kevin Deng
e95811887a
fix(compiler-vapor): resolve component & unit tests
2024-04-15 04:43:23 +08:00
三咲智子 Kevin Deng
dce9b61ae1
refactor(runtime-vapor): extract firstEffect
2024-04-15 04:41:56 +08:00
Doctor Wu
a49b6f91ca
feat(compiler-vapor): support v-on for component ( #175 )
...
Co-authored-by: Kevin Deng 三咲智子 <sxzz@sxzz.moe>
2024-04-15 02:40:59 +08:00
edison
140a7681cc
fix(TransitionGroup): avoid set transition hooks for comment nodes and text nodes ( #9421 )
...
close #4621
close #4622
close #5153
close #5168
close #7898
close #9067
2024-04-14 23:16:01 +08:00
Evan You
c4684d3161
chore: amend test case name [ci skip]
2024-04-14 22:49:16 +08:00
Evan You
c3c5dc93fb
fix(reactivity): fix tracking when hasOwnProperty is called with non-string value
...
close #10455
close #10464
2024-04-14 22:46:48 +08:00
三咲智子 Kevin Deng
bdc43226a0
refactor(runtime-vapor): export function
2024-04-14 17:43:22 +08:00
Rizumu Ayaka
07926564fc
feat(runtime-vapor): `createSlot` ( #170 )
2024-04-14 17:41:58 +08:00
Jevon
a0bd0e9c5f
feat(compiler-vapor): ref for `v-for` ( #167 )
...
Co-authored-by: Rizumu Ayaka <rizumu@ayaka.moe>
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-04-13 02:54:34 +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
6af733d68e
perf: optimize component props/slots internal object checks
2024-04-12 14:41:03 +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
liudaodanOo
34106bc9c7
fix(compiler-sfc): also search for `.tsx` when type import's extension is omitted ( #10637 )
...
Co-authored-by: liuxiaofei <liuxfb@digiwin.com>
Closes #10635
2024-04-09 16:14:11 +08:00
renovate[bot]
d4b767a1a5
chore(deps): update all non-major dependencies ( #10658 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-08 13:16:33 +08:00
三咲智子 Kevin Deng
98bae0c4a9
refactor(compiler-vapor): group directive
2024-04-07 14:00:36 +08:00
Rizumu Ayaka
9a33d79963
feat(runtime-vapor): attach current instance to render slot ( #168 )
2024-04-06 22:10:45 +08:00
Divyansh Singh
0dea7f9a26
fix(runtime-core): show hydration mismatch details for non-rectified mismatches too when __PROD_HYDRATION_MISMATCH_DETAILS__ is set ( #10599 )
2024-04-02 16:36:52 +08:00
renovate[bot]
5aaa758867
chore(deps): update all non-major dependencies ( #10627 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-01 22:51:05 +08:00
renovate[bot]
413cd28ed1
chore(deps): update build ( #10624 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-01 22:44:34 +08:00
Wes Cook
a653a8c125
chore: fix typo ( #10621 )
2024-04-01 16:20:01 +08:00
ubugeeei
db140a1e37
feat(runtime-vapor): setup helpers useAttrs & useSlots ( #172 )
2024-04-01 03:51:37 +08:00
Jevon
9f8bf4fc82
fix(compiler-core): generate `updateEffect` for nested v-for ( #171 )
...
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-03-29 21:36:19 +08:00
yangxiuxiu
db374e54c9
fix(runtime-dom): `v-model` string/number coercion for multiselect options ( #10576 )
...
Co-authored-by: RicardoErii <‘1974364190@qq.com’>
Co-authored-by: yangchangtao <yangchangtao@kuaishou.com>
2024-03-28 22:09:16 +08:00
renovate[bot]
01172fdb77
fix(deps): update compiler ( #10581 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-25 16:22:58 +08:00
renovate[bot]
cb7195a533
fix(deps): update playground ( #10586 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-25 15:36:17 +08:00
renovate[bot]
c6e245efe4
chore(deps): update all non-major dependencies ( #10580 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-25 15:10:49 +08:00
renovate[bot]
6fed247029
chore(deps): update dependency vite to ^5.2.6 ( #10582 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-25 15:03:29 +08:00
Doctor Wu
660cadc7aa
fix(compiler-sfc): :is() and :where() in compound selectors ( #10522 )
...
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
Closes #10511
2024-03-25 14:12:33 +08:00
ubugeeei
ba17fb9910
fix(runtime-vapor): trigger updated hooks across components ( #165 )
2024-03-24 20:30:14 +08:00
ubugeeei
78f74ce241
feat(runtime-vapor): component slot ( #143 )
...
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-03-24 20:29:00 +08:00
Doctor Wu
bd888b9b1e
feat(runtime-vapor): add app-level error handler ( #160 )
...
Co-authored-by: Kevin Deng 三咲智子 <sxzz@sxzz.moe>
2024-03-23 00:38:34 +08:00
ubugeeei
5c9a15140d
feat(runtime-vapor): provide and inject ( #158 )
...
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-03-22 23:41:16 +08:00
Jevon
ed6b1718d2
fix(compiler-vapor): SET_REF operation should be registered last ( #159 )
...
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-03-22 23:33:55 +08:00
Doctor Wu
9a2c12e3cd
feat(runtime-vapor): implement setupContext ( #157 )
2024-03-22 23:28:18 +08:00
Haoqun Jiang
caeb8a6881
chore: dedupe dependencies ( #10562 )
2024-03-21 11:12:50 +08:00
丶远方
ab59bedae4
fix(runtime-core): fix errorHandler causes an infinite loop during execution ( #9575 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
2024-03-19 20:47:52 +08:00
Doctor Wu
38e167ceb8
feat: implement inheritAttrs ( #153 )
...
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-03-19 00:24:58 +08:00
FireBushtree
6fc5cfbc65
test(runtime-vapor): delegate events ( #147 )
2024-03-18 22:00:06 +08:00
Rizumu Ayaka
2661cb2474
refactor(reactivity): remove middleware ( #156 )
2024-03-18 21:57:18 +08:00
Rizumu Ayaka
64e83689a0
refactor(runtime-vapor): `renderEffect` based on `ReactiveEffect` + remove `renderWatch` ( #155 )
2024-03-18 20:13:40 +08:00
renovate[bot]
ed37dcd108
chore(deps): update build ( #10540 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-18 19:38:41 +08:00
renovate[bot]
c3dd9378b0
chore(deps): update all non-major dependencies ( #10539 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-18 15:14:20 +08:00
Rizumu Ayaka
46761880e9
refactor(baseWatch): rename onEffectCleanup to onWatcherCleanup and getCurrentEffect to getCurrentWatcher for clarity
2024-03-17 22:39:11 +08:00
Rizumu Ayaka
db4040d13a
refactor(scheduler): use bitwise flags for scheduler jobs + move scheduler into reactivity
...
related: https://github.com/vuejs/core/pull/10407
2024-03-17 22:33:36 +08:00
Rizumu Ayaka
174118ae40
Merge remote-tracking branch 'upstream/main'
2024-03-17 22:14:01 +08:00
Kevin Deng 三咲智子
463b47e83d
feat: create component & component lifecycle/props/attrs ( #151 )
2024-03-16 18:54:36 +08:00
edison
b49306adff
fix(custom-element): avoid setting attr to null if it is removed ( #9012 )
...
Partially fixes #9006
Fixes #10324
2024-03-16 16:28:03 +08:00
三咲智子 Kevin Deng
5d15314c4e
refactor(runtime-vapor): remove created & beforeCreate hooks
2024-03-16 03:32:19 +08:00
丶远方
cde47bfa97
test: create `EffectScope` using a factory function ( #8844 )
2024-03-15 22:27:32 +08:00
三咲智子 Kevin Deng
d282af9430
refactor(compiler-vapor): check reserved prop on compiler only
2024-03-15 22:26:03 +08:00
三咲智子 Kevin Deng
808d17dbd1
refactor(runtime-vapor): split create component & render
2024-03-14 16:32:22 +08:00
三咲智子 Kevin Deng
7e0f15fa7c
refactor(runtime-vapor): re-organize
2024-03-14 16:02:46 +08:00
三咲智子 Kevin Deng
b4da5a8da6
feat(runtime-vapor): support v-bind for event
2024-03-14 14:25:54 +08:00
三咲智子 Kevin Deng
b4aa5f98d7
Merge remote-tracking branch 'upstream/main'
2024-03-14 14:17:25 +08:00
Jevon
9412c20531
feat: support v-on="obj" ( #149 )
...
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-03-14 14:15:45 +08:00
丶远方
384591a2a1
types: make instrumentations' types more succinct ( #8558 )
...
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
2024-03-13 22:57:33 +08:00
chenfan
d46df6bdb1
perf: add `__NO_SIDE_EFFECTS__` comments ( #9053 )
...
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
2024-03-13 21:48:45 +08:00
丶远方
9e8ac0c367
chore(playground): save `tsconfig.json` to the root directory; update Node.js version requirement ( #9086 )
...
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
2024-03-12 21:46:26 +08:00
三咲智子 Kevin Deng
421eba3e01
refactor(compiler-vapor): simplify genExpression
2024-03-12 15:50:23 +08:00
Rizumu Ayaka
c79629f0ef
fix(compiler-vapor): member expression with assignment ( #146 )
2024-03-12 15:46:30 +08:00
renovate[bot]
a3828239c2
chore(deps): update build ( #10490 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-11 17:55:46 +08:00
renovate[bot]
de0336a7c3
fix(deps): update compiler ( #10492 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-11 16:08:51 +08:00
Evan You
9a936aaec4
feat(reactivity): add failSilently argument for onScopeDispose
2024-03-07 17:54:18 +08:00
Evan You
ef2eaef3aa
refactor: inline recordEffectScope
2024-03-07 17:53:10 +08:00
三咲智子 Kevin Deng
ebd3710d72
refactor(runtime-vapor): don't record metadata for `on`
2024-03-07 17:44:42 +08:00
三咲智子 Kevin Deng
280b8cbdab
refactor: remove getCurrentEffect, add effect flag for on
...
Use the effect flag to distinguish whether it is in the effect of a v-for block.
2024-03-07 17:41:07 +08:00
chirokas
dec8a5294b
types: fix `scroll` event type; add support for `scrollend` ( #10443 )
2024-03-06 17:23:50 +08:00
Doctor Wu
e76d7430aa
fix(compiler-sfc): use options module name if options provide runtimeModuleName options ( #10457 )
...
close #10454
2024-03-06 10:45:42 +08:00
三咲智子 Kevin Deng
03d1d0a956
refactor: delegate set modelValue event
2024-03-06 00:48:34 +08:00
三咲智子 Kevin Deng
11b99ba9ab
fix(runtime-vapor): clean event handler in current effect
2024-03-05 23:43:19 +08:00
Evan You
2cc5615590
feat(reactivity): `onEffectCleanup` API
...
ref #10173
Instead of exposing `getCurrentEffect`, this version accepts a second
argument to suppress the no-active-effect warning.
2024-03-05 22:53:20 +08:00
FireBushtree
d3ca3f7492
test(runtime-vapor): v-model directive ( #142 )
2024-03-04 13:52:14 +08:00
Rizumu Ayaka
b925c6290b
perf(runtime-vapor): don't wrap `Array.from` for array in v-for ( #141 )
2024-03-03 00:40:02 +08:00
三咲智子 Kevin Deng
5a0365d944
Merge remote-tracking branch 'upstream/main'
2024-03-01 21:50:49 +08:00
FireBushtree
ccd3f3923f
fix(runtime-vapor): trigger event after `v-model` ( #137 )
2024-03-01 18:23:49 +08:00
三咲智子 Kevin Deng
5a0bc110d9
refactor(runtime-vapor): record event metadata as array
2024-03-01 18:16:17 +08:00
三咲智子 Kevin Deng
7f861441d7
refactor(runtime-vapor): extract metadata kind
2024-03-01 17:50:54 +08:00
三咲智子 Kevin Deng
4af8e87953
feat: support more source types for v-for
...
closes #139
Co-authored-by: wangjie36 <826036140@qq.com>
2024-03-01 06:37:53 +08:00
三咲智子 Kevin Deng
d51d55843f
refactor(runtime-vapor): tweak createFor
2024-03-01 04:22:17 +08:00
Evan You
f66a75ea75
release: v3.4.21
2024-02-28 12:12:15 +01:00
Doctor Wu
b3f8b5a4e7
fix(runtime-dom): avoid unset option's value ( #10416 )
...
close #10412
re-fix #10396
2024-02-28 19:07:12 +08:00
edison
bc37258caa
fix(warning): stringify args in warn handler ( #10414 )
...
close #10409
2024-02-28 19:06:18 +08:00
edison
7c97778aec
fix(suspense): ensure nested suspense patching if in fallback state ( #10417 )
...
close #10415
2024-02-28 19:05:22 +08:00
三咲智子 Kevin Deng
1f6a1102aa
test: clean snapshot
2024-02-28 15:19:24 +08:00
三咲智子 Kevin Deng
65909f6e60
Merge remote-tracking branch 'upstream/main'
2024-02-27 18:48:24 +08:00
三咲智子 Kevin Deng
fac30af9ec
refactor(runtime-vapor): tweak types
2024-02-27 16:48:33 +08:00
三咲智子 Kevin Deng
0e57653183
test(runtime-vapor): add template tests
...
[skip-release]
2024-02-26 22:57:35 +08:00
三咲智子 Kevin Deng
2c15171dcf
feat: add next helper for sibilings
2024-02-26 22:37:08 +08:00
三咲智子 Kevin Deng
2075042956
refactor: remove append helper
...
replace `append` with `insertBefore`
2024-02-26 21:38:04 +08:00
三咲智子 Kevin Deng
11bda8a088
refactor(runtime-vapor): move template to dom
...
[skip release]
2024-02-26 21:19:28 +08:00
jods
70196a40cc
perf(reactivity): optimize array tracking ( #9511 )
...
close #4318
2024-02-26 18:25:52 +08:00
Evan You
72bde94e66
types: fix ComputedRefImpl type build
2024-02-26 17:46:28 +08:00
三咲智子 Kevin Deng
e5c1f8d1a2
refactor: split delegate & register event
2024-02-26 15:18:16 +08:00
Evan You
5d303660b1
chore(types): fix ComputedRefImpl type build
2024-02-26 10:25:44 +08:00
Evan You
55660b0cfc
refactor(scheduler): use bitwise flags for scheduler jobs + optimize queueJob ( #10407 )
...
related: https://github.com/vuejs/core-vapor/pull/138
2024-02-26 10:22:12 +08:00
Evan You
58d827cb71
chore: Merge branch 'main' into minor
2024-02-26 10:13:44 +08:00
Evan You
89de26cdcd
release: v3.4.20
2024-02-26 10:07:13 +08:00
Evan You
b97ad0ee9a
chore: update e2eUtils puppeteer options
2024-02-26 09:54:12 +08:00
三咲智子 Kevin Deng
a24809fbd2
chore: limit typescript lib to es2016 ( #10164 )
...
* chore: limit typescript lib to es2015
* chore: set target to es2015
* chore: update
2024-02-26 09:37:05 +08:00
renovate[bot]
b92e6ce1ca
chore(deps): update build ( #10321 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-26 09:34:09 +08:00
renovate[bot]
bcf16659c8
chore(deps): update compiler ( #10322 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-26 09:16:38 +08:00
renovate[bot]
2529b97ebd
chore(deps): update all non-major dependencies ( #10320 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-26 09:15:57 +08:00
Evan You
364f8902c8
fix(runtime-dom): fix nested v-show priority regression
...
close #10338
2024-02-26 09:11:05 +08:00
Evan You
6c74fb07a7
chore: rename and export DefineSetupFnComponent
2024-02-25 23:38:39 +08:00
Evan You
e0e02535cd
fix(parser): should not treat uppercase components as special tags
...
close #10395
2024-02-25 23:05:15 +08:00
Evan You
9a365fe00d
refactor: use more descriptive name for v-show original display key
2024-02-25 21:50:47 +08:00
Evan You
c6defc8df1
chore: remove unused ts-expect-error
2024-02-25 21:50:35 +08:00
Elodie Hill
edbbb6da12
refactor(transition): remove unused getTransitionKey logic ( #10283 )
2024-02-25 21:14:46 +08:00
Wick
ede2e3f030
test: remove unnecessary code in apiCreateApp tests ( #10388 )
2024-02-25 21:11:04 +08:00
Shean de Montigny-Desautels
eadce5b753
fix(types): better typing for direct setup signature of defineComponent ( #10357 )
...
close #8604
close #8855
2024-02-25 21:10:08 +08:00
Wick
a4098d587b
chore(reactivity): consistent variable naming ( #10350 )
2024-02-25 21:08:06 +08:00
三咲智子 Kevin Deng
5819dc9001
Merge remote-tracking branch 'upstream/main'
2024-02-25 21:07:09 +08:00
三咲智子 Kevin Deng
67e785afd7
chore(runtime-vapor): simplify
2024-02-25 21:06:19 +08:00
zhoulixiang
e2d323538e
fix(runtime-dom): v-bind style should clear previous css string value ( #10373 )
...
close #10352
2024-02-25 20:53:00 +08:00
Wick
76c9c742e9
chore(runtime-core): optimize validateComponentName ( #10378 )
2024-02-25 20:41:08 +08:00
renovate[bot]
c131ebae45
chore(deps): update playground ( #10356 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-25 20:40:09 +08:00
Evan You
b31dd7468b
dx(reactivity): disable recursive computed warning by default
...
Now can be enabled with app.config.warnRecursiveComputed option.
close #10341
2024-02-25 20:38:33 +08:00
Doctor Wu
21e0d6b145
dx(reactivity): add getter into computed side effect warning ( #10386 )
2024-02-25 20:27:33 +08:00
edison
0f3da05ea2
fix(suspense): handle suspense switching with nested suspense ( #10184 )
...
close #10098
2024-02-25 20:22:12 +08:00
Wick
411596c07b
chore(reactivity): replace console.warn() to warn function ( #10394 )
2024-02-25 20:17:30 +08:00
Evan You
ff130c4702
fix(runtime-dom): avoid always resetting nullish option value
...
close #10396
2024-02-25 17:35:19 +08:00
Evan You
6bef15f094
chore: remove unused argument
2024-02-25 17:30:20 +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
三咲智子 Kevin Deng
c1d9b64b7b
refactor: re-organize exports
2024-02-25 15:23:29 +08:00
三咲智子 Kevin Deng
fb3e8ee8c0
refactor: merge delegate & modifier options of event
2024-02-25 15:11:25 +08:00
Evan You
ff943f4ddf
perf: optimize scheduler queueJob performance ( #138 )
2024-02-25 11:29:45 +08:00
三咲智子 Kevin Deng
669fec8dad
feat: delegate event for vapor
...
closes #136
2024-02-25 02:07:20 +08:00
三咲智子 Kevin Deng
e91dde5d22
refactor(compiler-vapor): don't reference root element
2024-02-23 14:03:21 +08:00
三咲智子 Kevin Deng
7aae631d8c
Merge remote-tracking branch 'upstream/main'
2024-02-23 13:48:27 +08:00
三咲智子 Kevin Deng
cb3dfc61ad
test(runtime-vapor): organize directives
...
[skip release]
2024-02-23 13:34:23 +08:00
三咲智子 Kevin Deng
23653cc447
refactor(runtime-vapor): split props & event metadata
2024-02-23 13:31:32 +08:00
三咲智子 Kevin Deng
88123e56d0
fix(compiler-vapor): register event for v-model
2024-02-23 13:31:32 +08:00
三咲智子 Kevin Deng
26f29b2529
refactor(runtime-vapor): move metadata from instance to node
2024-02-23 01:21:00 +08:00
三咲智子 Kevin Deng
a87d2120e0
refactor(runtime-vapor): drop array parent
2024-02-23 00:53:42 +08:00
三咲智子 Kevin Deng
d7bd6c99da
refactor(compiler-vapor): generate fragment for only one element
...
closes #133
2024-02-23 00:52:02 +08:00
三咲智子 Kevin Deng
004edd3bac
refactor(compiler-vapor): move `templateIndex` to dynamic
2024-02-22 11:46:40 +08:00
三咲智子 Kevin Deng
0e0ee5b85e
refactor(compiler-vapor): split block & root ir node
2024-02-22 11:30:29 +08:00
三咲智子 Kevin Deng
531f4f0052
perf(runtime-vapor): improve traverse children
2024-02-22 02:08:05 +08:00
三咲智子 Kevin Deng
fa0ca8a5af
refactor(compiler-vapor): required returns
2024-02-22 00:18:19 +08:00
三咲智子 Kevin Deng
66c0e82d4b
refactor(compiler-vapor): remove template ir node
2024-02-21 17:43:52 +08:00
FireBushtree
ba29b4c89a
test(compiler-vapor): v-model ( #132 )
...
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-02-21 17:08:20 +08:00
三咲智子 Kevin Deng
fe5d919b0f
refactor(sfc-playground): upgrade `@vue/repl` ( #10310 )
2024-02-20 21:47:09 +08:00
孟世博
3199189901
chore: standardize the spelling of TypeScript ( #10186 ) [ci skip]
2024-02-20 21:43:45 +08:00
三咲智子 Kevin Deng
0ecb0ea1b0
chore: fix type error
2024-02-20 21:41:09 +08:00
ygj6
b11ecbda69
feat(runtime-vapor): reset old props when setting dynamic props ( #131 )
...
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-02-20 21:13:48 +08:00
FireBushtree
1710bfdd21
test(compiler-vapor): v-show directive ( #130 )
...
* test(compiler-vapor): v-show
* fix(compiler-vapor): use DOMErrorCodes in vShow test
2024-02-19 16:52:21 +08:00
三咲智子 Kevin Deng
7fd7742639
Merge remote-tracking branch 'upstream/main'
2024-02-14 14:46:29 +08:00
三咲智子 Kevin Deng
e10f7d1689
refactor(runtime-vapor): fix component type
2024-02-14 14:43:18 +08:00
Evan You
272ab9fbdc
release: v3.4.19
2024-02-13 18:08:22 +08:00
Evan You
995d2fdcca
fix(hydration): fix css vars hydration mismatch false positive on non-root nodes
...
close #10317
test case from #10325
2024-02-13 18:00:23 +08:00
Evan You
df4a6e1dd8
chore(deps): bump @vue/consolidate
2024-02-13 17:42:31 +08:00
Doctor Wu
f7ba97f975
feat(dx): warn users when computed is self-triggering ( #10299 )
2024-02-13 17:38:26 +08:00
OnlyWick
5f7a0a08b2
chore(errorHandling): directly return value in callWithErrorHandling function ( #10315 )
2024-02-13 17:15:18 +08:00
Evan You
b8be99018c
fix(deps): pin lru-cache to avoid hashing error
...
close #10300
2024-02-13 17:14:26 +08:00
zhoulixiang
e50963903d
fix(runtime-dom): should not trigger transition when v-show value is falsy ( #10311 )
2024-02-13 12:56:52 +08:00
João Carmona
603a1e1f5a
perf(runtime): improve `getType()` GC and speed ( #10327 )
2024-02-13 11:54:59 +08:00
三咲智子 Kevin Deng
66cea4b325
revert: "refactor: remove update function from compiler"
...
Bad for performance, so revert it temporarily
This reverts commit be65b98a33
.
2024-02-12 22:01:42 +08:00
三咲智子 Kevin Deng
bf5f7c389b
refactor(compiler): move `expressionPlugins` to shared options
2024-02-10 21:50:00 +08:00
三咲智子 Kevin Deng
0c8153eca8
fix(compiler): add `vaporRuntimeModuleName` option
2024-02-10 21:43:09 +08:00
FireBushtree
3d10925c53
feat(runtime-vapor): support patch style ( #126 )
...
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-02-10 21:31:44 +08:00
三咲智子 Kevin Deng
b5e12eaca7
refactor(sfc-playground): upgrade `@vue/repl`
2024-02-10 17:29:06 +08:00
三咲智子 Kevin Deng
184d72e747
feat(runtime-vapor): implement vModelRadio
...
Fully supported v-model for native elements.
2024-02-10 16:15:23 +08:00
三咲智子 Kevin Deng
f7080efa5d
feat(compiler-vapor): support <style scoped>
2024-02-10 16:04:09 +08:00
三咲智子 Kevin Deng
3550765147
refactor: add isVaporReservedProp
2024-02-10 14:41:51 +08:00
三咲智子 Kevin Deng
afa7ee2fb1
feat(compiler-sfc): add vapor option to script
2024-02-10 14:25:33 +08:00
三咲智子 Kevin Deng
b640bb70fc
feat(compiler-sfc): respect vapor attr
2024-02-10 14:04:54 +08:00
ubugeeei
52311fa7ae
feat(runtime-vapor): component attrs ( #124 )
2024-02-10 13:07:13 +08:00
三咲智子 Kevin Deng
ab1121e512
Merge remote-tracking branch 'upstream/main'
2024-02-10 13:05:19 +08:00
三咲智子 Kevin Deng
5019aac6ca
fix: vapor major version
2024-02-10 01:23:48 +08:00
三咲智子 Kevin Deng
9bc333e239
fix(vue-vapor): exports types
2024-02-09 21:09:31 +08:00
三咲智子 Kevin Deng
6cd9298adc
fix(vue): publish vapor entry
2024-02-09 20:56:22 +08:00
Evan You
64f431aab0
release: v3.4.18
2024-02-09 10:31:29 +08:00
zhoulixiang
c224897dd4
fix(runtime-dom): ensure v-show respects display value set via v-bind ( #10297 )
...
close #10151
2024-02-09 10:17:35 +08:00
Evan You
77a804b1d0
fix(dx): warn against reserved keys as prop name
...
close #10281
2024-02-09 08:47:06 +08:00
Evan You
dfb271a293
release: v3.4.17
2024-02-09 08:38:19 +08:00
Evan You
2cd5b05c3b
revert: fix(runtime-dom): ensure v-show respects display value set via v-bind ( #10161 )
...
This reverts commit 9b19f09121
.
close #10294
reopen #10151
2024-02-09 08:30:51 +08:00
三咲智子 Kevin Deng
edaa3a0649
refactor(compiler-vapor): re-organize
2024-02-09 02:40:01 +08:00
三咲智子 Kevin Deng
e050646079
fix(compiler-vapor): generate assignment for v-model
2024-02-09 00:09:05 +08:00
三咲智子 Kevin Deng
d16359c45b
feat(runtime-vapor): add no side effects annotation
2024-02-08 23:22:03 +08:00
三咲智子 Kevin Deng
985d4c7422
refactor: return only one node from children helper
2024-02-08 23:03:42 +08:00
三咲智子 Kevin Deng
c70661c8a3
refactor(compiler-vapor): don't convert event name
2024-02-08 21:56:57 +08:00