Commit Graph

3525 Commits

Author SHA1 Message Date
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
不见月
e0b26c483a
fix: fix parent of multi-nested HOC $el not updating (#12757)
fix #12589
2022-08-22 21:22:45 -04:00
Evan You
46ca7bcddc fix(compiler-sfc): avoid deindent when lang is jsx/tsx
fix #12755
2022-08-23 09:18:36 +08:00
Nathan Shively-Sanders
810f6d12ed
fix(types): Add missing type parameter constraints (#12754) 2022-08-22 10:28:39 +08:00
Evan You
15618888cb release: v2.7.9 2022-08-19 12:27:12 +08:00
Evan You
8521f9d3f6 fix(types): fix missing error for accessing undefined instance properties
fix #12718
2022-08-19 12:22:51 +08:00
Evan You
7161176cd0 fix: fix effect scope tracking for manually created instances
fix #12705
2022-08-18 18:14:50 +08:00
Alexander Lichter
165a14a6c6
fix(ssr): fix on-component directives rendering (#12661)
fix #10733
2022-08-18 04:22:55 -04:00
不见月
bba6b3d6b4
feat(types): enhance type for onErrorCaptured (#12735) 2022-08-18 04:20:27 -04:00
GU Yiling
9eb8ea5b63
chore: fix some legacy doc urls in warnings and readme (#12725) [ci skip] 2022-08-18 04:12:20 -04:00
JuniorTour
2263948c24
fix: directives shorthand normalize error (#12744)
fix #12743
2022-08-18 04:11:47 -04:00
林烁壕
5221d4d3b6
fix(compiler-sfc): rewriteDefault for class with decorators (#12747) 2022-08-18 04:01:00 -04:00
gu
89a6b5e865
feat(types): support mixins inference for new Vue() (#12737)
close #12730
2022-08-18 03:56:37 -04:00
Evan You
b4bf4c52ad fix(types): allow attaching unknown options to defined component
fix #12742
2022-08-18 15:32:12 +08:00
Evan You
80d1baf920 feat(types): export DefineComponent
close #12748
2022-08-18 15:23:47 +08:00
Evan You
f0057b101e fix(watch): avoid pre watcher firing on unmount
fix #12703
2022-08-15 19:06:38 +08:00
Evan You
bd89ce53a9 fix: ensure render watcher of manually created instance is correctly tracked in owner scope
fix #12701
2022-08-15 15:37:13 +08:00
Evan You
4b37b568c7 fix(types): fix options suggestions when using defineComponent
functional component overloads should be moved last

fix #12736
2022-08-15 09:53:12 +08:00
Jonas
5c742eb2e0
fix(compiler-sfc): allow full hostnames in asset url base (#12732)
fix #12731
2022-08-14 21:37:08 -04:00
jf-paradis
00458cd38d
fix(types): Make SetupBindings optional on ExtendedVue and CombinedVueInstance (#12727)
fix #12726
fix #12717
2022-08-08 20:50:53 -04:00
Evan You
1d8b892fcd release: v2.7.8 2022-07-22 11:24:39 +08:00
Evan You
2af751b6ef fix(reactivity): fix shallowReactive nested ref setting edge cases
ref #12688
2022-07-22 11:20:40 +08:00
Daniel Roe
ba7dd2c4ed
fix(types): export defineAsyncComponent type (#12684) 2022-07-21 22:18:52 -04:00
edison
a695c5a6df
fix(sfc): align <script setup> component resolution edge case with v3 (#12687)
fix #12685
2022-07-21 22:18:27 -04:00
Evan You
fabc1cf89f fix(types): avoid circular type inference between v2 and v3 instance types
fix #12683
2022-07-22 10:06:43 +08:00
Evan You
ce6fc149e3 types: fix manual api types for useAttrs/useListeners 2022-07-22 10:05:35 +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
fc16281cf5 release: v2.7.7 2022-07-16 22:45:31 +08: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