Commit Graph

140 Commits

Author SHA1 Message Date
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
Tycho fe07f70736
fix(types/defineModel): allow getter and setter types to be unrelated (#11699)
close #11697
2024-09-03 17:47:50 +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
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
Yuyao Nie 6c90324870
fix(ssr): ensure content is valid when rendering normal slot (#11491)
fix #11326
2024-08-07 11:56:00 +08:00
Evan You b74687c0bb
refactor: isCE -> ce 2024-08-05 16:33:48 +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
Tycho 55acabe88c
dx(useTemplateRef): warn when declaring with the same key (#11462) 2024-08-02 13:18:58 +08:00
Evan You 1fbfa6962b
feat: support specifying allowed keys via generic argument in useTemplateRef() 2024-08-01 11:13:56 +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 fa6c5d8d32
chore: Merge branch 'main' into minor 2024-07-24 23:37:31 +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 73ef1561f6
feat(runtime-core): useId() (#11404) 2024-07-19 18:06:02 +08:00
Evan You 68bb48c04e
refactor: move useTemplateRef file 2024-07-19 10:50:06 +08:00
Evan You f15ba2c2e2
chore: Merge branch 'main' into minor 2024-07-17 17:32:31 +08:00
yangxiuxiu f1bb0aef08
fix(runtime-core): do not emit when defineModel ref is set with same value (#11162)
close #11125
2024-07-17 16:46:10 +08:00
Evan You 2815531fd5
refactor: memoIndex -> cacheIndex 2024-07-13 21:05:06 +08:00
skirtle 7fb6eb882b
fix(v-model): component v-model modifiers trim and number when cases don't match (#9609)
close #4848
close #4850 (based on commits from #4850)

Co-authored-by: zhaozhongyu <zhaozhongyu@xunlei.com>
Co-authored-by: Evan You <evan@vuejs.org>
2024-07-13 14:57:37 +08:00
Evan You d76dd9c58d
fix(runtime-core): force diff slot fallback content and provided content
fix #7256
fix #9200
fix #9308

close #7266
close #9213
2024-07-12 18:26:11 +08:00
Evan You de174e1aa7
fix(defineModel): force local update when setter results in same emitted value
fix #10279
fix #10301
2024-07-11 17:00:39 +08:00
Evan You 26356264d2
chore: Merge branch 'main' into minor 2024-06-14 12:32:28 +02: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
tomasvn 32262a9af5
chore: use PropertyKey type (#11056)
close #8559
2024-06-06 18:23:21 +08:00
Evan You 1d8727ec97
chore: Merge branch 'main' into minor 2024-05-30 11:21:12 +08:00
Alexandre Ferrera 9fead52343
fix(compiler-core): change v-for key type to match Object.keys (#10963)
close #8819
2024-05-20 19:33:18 +08:00
jods 70196a40cc
perf(reactivity): optimize array tracking (#9511)
close #4318
2024-02-26 18:25:52 +08:00
Evan You 8fda856a82 refactor: split out useModel implementation and tests 2024-01-11 18:04:47 +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 34ad609bd7 refactor(runtime-core): use Symbol.for for runtime Symbols 2023-02-21 17:42:06 +08:00
Evan You ffef822869 fix(custom-elements): respect slot props in custom element mode 2022-11-11 16:06:05 +08:00
Evan You 8dbf083133 build: put ssrContext warning behind __DEV__ flag 2022-11-09 11:41:26 +08:00
Anthony Fu 534593cfa8 chore: format 2022-10-03 15:30:43 +08:00
Evan You cae1aa82cc chore: use stricter slots type in createSlots 2022-09-28 10:38:27 +08:00
Evan You 8963c5508c fix(ssr): fix dynamic slot regression in ssr
fix #6651
2022-09-28 10:25:01 +08:00
Evan You 00036bb52c fix(slots): ensure different branches of dynamic slots have different keys
fix #6202
2022-08-30 15:55:09 +08:00
Evan You 0739f8909a fix(custom-element): fix event listeners with capital letter event names on custom elements
close https://github.com/vuejs/docs/issues/1708
close https://github.com/vuejs/docs/pull/1890
2022-08-30 14:07:35 +08:00
Evan You 9734b31c31 fix(sfc): avoid auto name inference leading to unwanted recursion
fix #5965
fix #6027
fix #6029
2022-06-06 17:36:49 +08:00
huangcheng a3881299e9
fix(runtime-core): handle NaN identity check in v-memo (#5852)
fix #5853
2022-05-12 19:49:51 -04:00
Evan You 67099fe202 fix(runtime-core): ensure consistent behavior between dev/prod on invalid v-for range
close #5867
2022-05-06 16:49:15 +08:00
edison f4d2c9fc6a
fix(custom-elements): work with async component + slots (#4657)
close #4639
2022-04-13 05:58:29 -04:00
Evan You 6cfd72e760 refactor: move type utils to shared 2022-01-16 15:47:00 +08:00
fishDog 3c449cd408
fix(types): fix propType<any> type inference (#4985)
fix #4983
2021-11-25 04:52:13 -05:00
Evan You 71f22061a6 chore: improve component resolution failure message 2021-09-17 10:01:04 -04:00
Evan You b40845153c feat(experimental): expose ref macro types using separate d.ts file 2021-08-23 20:35:12 -04:00
Evan You 62f752552a refactor(compiler): extract shared ast transform utils
Also improve referenced identifier check using isReferenced from  @babel/types
2021-08-22 13:24:16 -04:00
Evan You 4adc5042f9 types: improve ref sugar $computed typing 2021-08-20 00:07:16 -04:00
Evan You 00b76d3dc1 feat(sfc): support $shallowRef ref sugar 2021-08-11 10:19:58 -04:00