Commit Graph

1018 Commits

Author SHA1 Message Date
Evan You
f5ef882a78 fix(style): always set new styles
close #12901
close #12946
2023-12-06 23:17:02 +08:00
Evan You
ae3e4b1c70 fix(utils): unwrap refs when stringifying values in template
close #12884
close #12888
2023-12-06 16:40:49 +08:00
Evan You
d30f6fd25f test: fix tests 2023-12-06 15:21:00 +08:00
Evan You
08382f0080 fix(props): should not unwrap props that are raw refs
close #12930
2023-12-06 15:10:49 +08:00
xdm
c22363425a
fix(patch): clone insert hooks to avoid being mutated during iteration (#12905) 2023-10-23 15:11:13 +08:00
Red Huang
74ca5a13ba
fix(lifecycle): scope might changed when call hook (#13070) 2023-10-22 10:52:10 +08:00
rj1
a9ca2d8519
chore: typos (#12949) 2023-02-04 19:16:38 +01:00
Evan You
29b5f58803 fix(reactivity): avoid using WeakMap for IE compatibility
Using a WeakMap polyfill isn't ideal because the reason we tried to use
WeakMap was to work with non-extensible objects. However, WeakMap
polyfill for non-extensible objects are non-weak and could lead to
memory leaks.

The trade-off is that we remove support for `readonly()` on
non-extensible objects, which seems reasonable.

close #12837
2022-11-09 20:33:11 +08:00
Evan You
d1899caf68 fix(provide/inject): do not mutate original provide options during merge
fix #12854
2022-11-09 20:04:55 +08:00
Evan You
800207c473 fix(effectScope): calling off() of a detached scope should not break currentScope
fix #12825
2022-10-14 10:51:07 +08:00
Evan You
e80cd09fff Revert "fix(setup): setup hook should be called before beforeCreate"
This reverts commit e1342df784.

reopen #12802
close #12821
close #12822
2022-10-12 21:22:26 +08:00
Evan You
8880b55d52 perf: improve unsub perf for deps with massive amount of subs
close #12696
2022-10-11 19:02:47 +08:00
Evan You
e1342df784 fix(setup): setup hook should be called before beforeCreate
fix #12802

Note this commit moves the initialization of injections and props to
before the invocation of beforeCreate. This should not cause breakage
because props and inject normalization has always been done before
beforeCreate, so code that attempts to modifiy props/inject options
inside beforeCreate should have never worked.
2022-10-11 16:29:30 +08:00
Evan You
4a0d88e46e fix(reactivity): use WeakMap for proxy/raw checks, compat with non-extensible objects
fix #12799
close #12798
2022-10-11 12:26:32 +08:00
不见月
e0b26c483a
fix: fix parent of multi-nested HOC $el not updating (#12757)
fix #12589
2022-08-22 21:22:45 -04:00
JuniorTour
2263948c24
fix: directives shorthand normalize error (#12744)
fix #12743
2022-08-18 04:11:47 -04:00
Evan You
f0057b101e fix(watch): avoid pre watcher firing on unmount
fix #12703
2022-08-15 19:06:38 +08:00
Evan You
2af751b6ef fix(reactivity): fix shallowReactive nested ref setting edge cases
ref #12688
2022-07-22 11:20:40 +08:00
Evan You
adf3ac8adc feat(setup): support listeners on setup context + useListeners() helper
These are added because Vue 2 does not include listeners in
`context.attrs` so there is no way to access the equivalent of
`this.$listeners` in `setup()`.
2022-07-20 12:13:04 +08:00
troy351
135d07442a
chore(sfc): remove useless vue-template-es2015-compiler (#12677) 2022-07-19 23:16:01 -04:00
Evan You
e8d3a7d7a1 fix(codegen): script setup should not attempt to resolve native elements as component
fix #12674
2022-07-16 22:08:07 +08:00
Evan You
67760f8d30 fix(setup): ensure setup context slots can be accessed immediately
fix #12672
2022-07-16 21:45:03 +08:00
Evan You
ea5d0f3fbf fix(inject): fix edge case of provided with async-mutated getters
fix #12667
2022-07-16 21:33:48 +08:00
Evan You
25ffdb62d2 fix(watch): fix queueing multiple post watchers
fix #12664
2022-07-16 20:46:39 +08:00
Evan You
1a2c3c2d77 fix(watch): fix deep watch for structures containing raw refs
fix #12652
2022-07-13 11:01:10 +08:00
Evan You
98fb01c79c fix(reactivity): fix watch behavior inconsistency + deep ref shallow check
fix #12643
2022-07-12 18:50:12 +08:00
Evan You
8904ca77c2 fix(watch): fix watchers triggered in mounted hook
fix #12624
2022-07-08 14:47:03 +08:00
Evan You
9d12106e21 feat: defineAsyncComponent
close #12608
2022-07-08 10:55:23 +08:00
Evan You
bcb62d1a00 test: test case for #12597 2022-07-04 10:39:36 +08:00
Evan You
ff5acb12cf fix: fix NaN comparison on state change
fix #12595
2022-07-04 10:37:22 +08:00
Evan You
089b27c30b fix(watch): template ref watcher should fire after owner instance mounted hook
fix #12578
2022-06-26 16:36:47 +08:00
Evan You
44ab1cda74 fix(reactivity): readonly() compat with classes
fix #12574
2022-06-23 08:34:26 +08:00
Evan You
7a3aa3faac fix(watch): fix pre watchers not flushed on mount for nested component
fix #12569
2022-06-22 10:20:02 +08:00
Evan You
fb7f5f0b67 chore: remove unused code
Vue 2 has no inline mode so template ref ref_key logic is unnecessary
2022-06-22 10:12:52 +08:00
Evan You
8ab0074bab feat(sfc): css v-bind 2022-06-20 15:46:57 +08:00
Evan You
2d67641656 fix: remove wrong observe toggle, properly disable tracking in setup() 2022-06-20 14:40:03 +08:00
Evan You
9d54f8bdfe chore: remove .only from tests 2022-06-20 14:14:41 +08:00
Evan You
52cf912d85 fix(setup): setup props should pass isReactive check
close #12561
2022-06-20 13:09:56 +08:00
Evan You
2533a360a8 fix(template-ref): preserve ref removal behavior in non-composition-api usage
close #12554
2022-06-20 12:42:32 +08:00
Evan You
bd8409bc98 wip: fix component resolution check 2022-06-15 21:38:05 +08:00
Evan You
aa2b1f4d93 feat: directive resolution for <script setup> 2022-06-15 21:21:59 +08:00
Evan You
06594f68b7 wip: port @vue/component-compiler-utils 2022-06-10 16:50:17 +08:00
Evan You
4f2a04e6a8 fix: fix scopedSlots regression 2022-06-06 15:25:41 +08:00
Evan You
1b49c75e2a chore: fix unit test 2022-05-31 17:45:10 +08:00
Evan You
d6bdff8903 refactor: move src types folder 2022-05-31 16:33:48 +08:00
Evan You
460856510d wip: setup() template refs support 2022-05-30 16:47:00 +08:00
Evan You
1a13c63ff5 wip: provide/inject 2022-05-29 18:43:36 +08:00
Evan You
dae380dc24 wip: renderTriggered/renderTracked 2022-05-29 16:01:38 +08:00
Evan You
075f215edf wip: onTrack/onTrigger debugger options 2022-05-29 15:39:49 +08:00
Evan You
15c5c43ca6 wip: onTrack debugger option 2022-05-29 15:05:35 +08:00