Commit Graph

3557 Commits

Author SHA1 Message Date
webfansplz
b8c8b3fc7a
fix(compiler-sfc): Resolve object expression parsing errors in v-on (#12862) 2023-10-23 15:08:58 +08:00
webfansplz
d27c128b7c
fix(compiler-sfc): fix macro usage in multi-variable declaration (#12873) 2023-10-23 15:08:34 +08:00
webfansplz
bb59751dd4
fix(compiler-sfc): Optimize the value of emitIdentifier (#12851) 2023-10-23 15:08:17 +08:00
webfansplz
099401e227
fix(types/sfc): improve the type inference using withDefaults (#12872) 2023-10-23 15:06:28 +08:00
xonx
67c1d26cb0
fix(types): correct serverPrefetch this type (#13068)
close #12488
2023-10-23 14:58:47 +08:00
Red Huang
74ca5a13ba
fix(lifecycle): scope might changed when call hook (#13070) 2023-10-22 10:52:10 +08:00
Evan You
1399ee6aa0 test: pin esbuild to 0.16 for karma-esbuild compat 2023-10-22 10:46:45 +08:00
Evan You
78ef6271d2 test: upgrade vitest + fix ssr tests for Node 18+ 2023-10-22 10:32:47 +08:00
Evan You
6149048ce9 chore: update node version task name 2023-10-22 09:47:16 +08:00
Evan You
18cc5479f6 chore: bump required node and pnpm versions for maintenance 2023-10-22 09:40:18 +08:00
mikoloism
49b6bd4264
refactor(shared): update genStaticKeys (#13010) 2023-04-27 11:43:19 +02:00
rj1
a9ca2d8519
chore: typos (#12949) 2023-02-04 19:16:38 +01:00
星宿君
d52fbff7a7
chore: fix typo in utils.ts (#12927) [skip ci] 2023-01-12 15:47:00 +01:00
Vadim
0e8511a8be
chore: fix typo in apiAsyncComponent.ts (#12912) 2022-12-27 22:38:05 +01:00
Ihor Sychevskyi
34c6192f4a
chore: update links (http=https) (#12911) 2022-12-27 10:19:37 +01:00
Caichong
2e57061766
chore: comment typos (#12878)
Co-authored-by: 方恒 <fangheng@shwpg.com>
2022-12-14 09:43:02 +01:00
董雨航
ca11dc6a86
chore: fix typo (#12894) 2022-12-06 15:35:28 +01:00
Evan You
9dd006b481 release: v2.7.14 2022-11-09 20:39:52 +08: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
a161803398
5e3d4e90cd
fix(compiler-sfc): fix template usage check edge case for v-slot destructured default value (#12842)
fix #12841
2022-11-09 04:52:35 -05:00
Evan You
5aed733ab6 test: add test case for #12778 2022-11-09 17:35:45 +08:00
k-furusho
f7db7f361b
fix(types): fix spreading VNodeData in tsx (#12789)
fix #12778
2022-11-09 04:34:55 -05:00
webfansplz
0b3cf7dda9
fix(types): stricter type condition for EventHandlers (#12840)
fix #12832
2022-11-09 04:25:28 -05:00
webfansplz
a5afc4d0a4
chore: fix typo (#12863) 2022-11-09 09:07:36 +01:00
Jinjiang
6d9aac8bd3
chore: fix some broken links to v2 docs (#12839) 2022-10-19 12:45:59 +08:00
Jinjiang
a7a71ad990
Update the dev to main in the PR template (#12834) 2022-10-16 20:13:22 +08:00
Evan You
259c7060da chore: fix changelog rendering [ci skip] 2022-10-15 17:39:04 +08:00
Evan You
df281b0e4c release: v2.7.13 2022-10-14 11:41:56 +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
不见月
5960f05c69 fix(watch): avoid traversing objects that are marked non-reactive (#12806) 2022-10-12 21:43:46 +08:00
Blake Newman
8e262618cd fix(types): style attribute svg (#12800)
Set style attribute on svg to use `StyleValue`
2022-10-12 21:43:42 +08:00
Evan You
4cad410071 release: v2.7.12 2022-10-12 21:41:36 +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
c61395d3f1 release: v2.7.11 2022-10-11 19:13:06 +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
738f4b3c57 fix(build): enforce LF line ending in built files
fix #12819
2022-10-11 17:51:46 +08:00
Evan You
cc14d4452c chore: bump build deps 2022-10-11 17:39:59 +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
0d6d972b32 fix(compiler-sfc): export parseComponent for compat with fork-ts-checker-webpack-plugin
fix #12719
2022-10-11 14:58:24 +08:00
fukang wang
bc5b92adde
fix(types): fix error with options watch (#12779)
fix #12780
2022-10-11 02:43:33 -04:00
Evan You
fb13930096 fix(sfc): prune returned bindings for non-TS as well
In Vue 3, pruning is only done for TS to produce valid code and
tree-shaking is done by inlining the template for production.
In Vue 2 we do not inline the template in production, so return binding
pruning is needed in all cases.

fix #12765
2022-10-11 14:10:48 +08:00
Shiluo34
87f69aa26f
fix(types): support Ref and function types in tsx ref attribute (#12759)
fix #12758
2022-10-11 01:36:50 -04:00
Xiersa
5d26f815c6
fix(reactivity): check skip first before checking ref when creating observer (#12813)
fix #12812
2022-10-11 01:26:20 -04: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
ZHAO Jinxiang
27eed829cc
fix(types): vue 3 directive type compatibility (#12792) 2022-10-10 23:51:05 -04:00
Evan You
2f335b2f9d fix(sfc): remove sfc scoped deep syntax deprecation warnings 2022-10-11 11:41:31 +08:00
Evan You
60d268c426 chore: cache bust svg [ci skip] 2022-09-01 14:31:31 +08:00
Evan You
d189b4beaa chore: special sponsor [ci skip] 2022-09-01 14:30:09 +08:00
Evan You
ee57d9fd1d release: v2.7.10 2022-08-23 09:29:42 +08:00