Evan You
c02d8d097d
chore: remove warnings due to potential false-positives
2023-02-21 22:43:45 +08:00
Evan You
8d2d5bf48a
fix(runtime-core): support `getCurrentInstance` across mutiple builds of Vue
2023-02-21 21:59:41 +08:00
Evan You
34ad609bd7
refactor(runtime-core): use Symbol.for for runtime Symbols
2023-02-21 17:42:06 +08:00
丶远方
a0e7dc3343
chore: fix typo ( #7680 )
2023-02-11 17:55:21 +01:00
Evan You
78b86150b8
release: v3.3.0-alpha.4
2023-02-06 14:10:56 +08:00
Evan You
097f6beca2
release: v3.3.0-alpha.3
2023-02-06 10:27:25 +08:00
Evan You
d1181ad692
fix(build): avoid const enum conflicts
2023-02-06 09:44:12 +08:00
Evan You
37ec04b984
release: v3.3.0-alpha.2
2023-02-05 16:23:54 +08:00
Evan You
85f4d8ccb9
release: v3.3.0-alpha.1
2023-02-05 11:20:39 +08:00
Evan You
2774ba5f0f
chore: use workspace vue dep for sfc-playground
2023-02-03 21:49:18 +08:00
Evan You
1e0251a377
test: more strict linking in dts tests
2023-02-03 21:41:33 +08:00
Evan You
7a0a6658c6
docs: update contributing guide
2023-02-03 17:47:34 +08:00
Evan You
40dab4d9dd
build: fix size check
2023-02-03 17:22:01 +08:00
Evan You
1ddde63b40
build: adjust dts test setup
2023-02-03 17:10:31 +08:00
Evan You
eb0c1e7025
build: remove api-extractor
2023-02-03 15:57:00 +08:00
Evan You
6213b73cd2
build: custom const enum processing
2023-02-03 09:54:15 +08:00
Evan You
53e3533b75
chore: bump deps
2023-02-03 05:47:40 +08:00
Evan You
e22b5c510d
chore: remove hanging slash from import
2023-02-03 04:31:17 +08:00
Evan You
124373db50
wip: isolatedModules + use rollup-plugin-esbuild
2023-02-03 04:30:19 +08:00
Evan You
e077e6f5f3
workflow: disable threads during tests
2023-02-02 22:08:37 +08:00
Evan You
1487d81160
chore: define compile time flags during size check
2023-02-02 21:39:04 +08:00
Evan You
3a6f5eb0f7
fix(build): ensure BaseTransition functions can be tree-shaken
2023-02-02 21:38:57 +08:00
Evan You
c1cbb747b5
chore: fix types
2023-02-02 15:27:29 +08:00
Evan You
45984d559f
release: v3.2.47
2023-02-02 13:48:18 +08:00
Evan You
29f8cf8b07
release: v3.2.46
2023-02-02 11:32:04 +08:00
三咲智子 Kevin Deng
a0a010ddc9
fix(types): optional boolean props should have boolean type in return type of defineProps ( #7619 )
...
close #7116
fix #5847
fix #7487
2023-02-01 21:57:28 -05:00
edison
30399d46b1
fix(compiler-sfc): support resolving type declaration from normal script ( #5831 )
...
fix #5830
2023-02-01 04:24:50 -05:00
李想
1fde49c0f5
fix(runtime-core): fix keep-alive cache prune logic on vnodes with same type but different keys ( #7510 )
...
fix #7355
2023-02-01 04:02:03 -05:00
Evan You
f19f803ea8
chore: fix jest reference in merged test case
2023-02-01 16:50:13 +08:00
René Koller
efe2efd210
fix(compat): fix custom transition classes in compat mode ( #7435 )
...
fix #6253
2023-02-01 03:21:50 -05:00
Anthony Fu
e64c9ae957
fix(reactivity): `triggerRef` working with `toRef` from reactive ( #7507 )
...
* fix(reactivity): `triggerRef` working with `toRef` from reactive
* chore: refactor
2023-02-01 03:20:47 -05:00
Anthony Fu
5f1883ec53
fix(types): accept sync `serverPrefetch()` ( #7000 )
2023-02-01 03:15:51 -05:00
三咲智子 Kevin Deng
734b06a124
test: fix await patch prop case ( #7600 )
2023-02-01 08:59:50 +01:00
Evan You
957722c418
fix(build): ensure type exports is first
2023-02-01 10:49:31 +08:00
Evan You
a1b3057c4d
test: configure test hooks sequence order, remove workaround
2023-01-27 14:52:41 +08:00
Evan You
28b95daa70
workflow: complete migration from jest to vitest
2023-01-26 22:53:39 +08:00
Evan You
158db33611
wip(vitest-migration): all tests passing
2023-01-26 22:22:43 +08:00
Evan You
4ee0dad0fe
wip(vitest-migration): runtime-dom tests passing + use environmentMatchGlobs
2023-01-26 21:35:50 +08:00
Evan You
a6be280fc3
chore: only wrap during tests
2023-01-26 20:59:30 +08:00
Evan You
7e8f175db7
wip(vitest-migration): runtime-core tests passing
2023-01-26 20:48:47 +08:00
Evan You
e478755c7d
wip(vitest-migration): compat tests passing
2023-01-26 20:24:54 +08:00
Evan You
dca4224c2c
wip(vitest-migration): compiler-ssr tests passing
2023-01-26 16:50:19 +08:00
Evan You
0cd2213e6b
wip(vitest-migration): compiler-sfc tests passing
2023-01-26 16:49:10 +08:00
Evan You
8599242bb4
wip(vitest-migration): compiler-dom tests passing
2023-01-26 16:48:19 +08:00
Evan You
5804406fac
wip(vitest-migration): compiler-core tests passing
2023-01-26 16:20:59 +08:00
Evan You
f0d78e8c8f
wip(vitest-migration): ssr tests passing
2023-01-26 16:18:40 +08:00
Evan You
3db69af53d
wip(vitest-migration): shared tests passing
2023-01-26 15:31:52 +08:00
Evan You
8867bb259a
wip(vitest-migration): reactivity tests passing
2023-01-26 15:25:55 +08:00
Evan You
ab45f6f8a2
build: update build scripts to esm
2023-01-26 14:24:49 +08:00
Evan You
ec4531a6b3
chore: bump vite and esbuild
2023-01-26 13:33:28 +08:00
白雾三语
bef85e7975
fix(shared): `feDistanceLight` changed to `feDistantLight` ( #7540 )
...
close https://github.com/vuejs/core/issues/7535
2023-01-16 09:46:56 +01:00
Anthony Fu
4a16b204be
chore: run format
2023-01-12 12:58:11 +01:00
skirtle
4902354925
dx(runtime-core): warn when expose() is misused ( #7221 )
2023-01-09 15:23:10 +01:00
魏
13dc28aeff
refactor(reactivity): hasOwnProperty add this parameter ( #7233 )
...
hasOwnProperty adds this parameter and delete @ts-ignore
2023-01-09 15:21:32 +01:00
Thorsten Lünborg
cd7c887b75
fix(reactivity): ensure watch(Effect) can run independent of unmounted instance if created in a detatched effectScope ( fix #7319 ) ( #7330 )
...
* fix(reactivity): ensure watch(Effect) can run independent of unmounted instance if created in a detatched effectScope
* test: use separate counters for each watcher to make test more robust
2023-01-09 15:20:21 +01:00
魏
8731852919
test(reactivity): Using toRaw on a raw Array ( #7354 )
2023-01-09 15:19:19 +01:00
yurj26
b7cfa6f539
fix(runtime-dom): style update error when component use shorthand properties ( #7425 )
...
* fix(runtime-dom): style update error when component use shorthand properties
* test(runtime-dom): style update with shorthand properties
2023-01-09 15:16:08 +01:00
Julien Huang
686c829fec
fix(compiler-sfc): allow declaring variables after defineProps ( #7461 )
...
* fix(compiler-sfc): allow declaring variables after defineProps
* test(compiler-sfc): test defineProps in multiple variable declaration
2023-01-09 15:13:58 +01:00
Yue Yang
1fa3d95730
fix(types): add or update referrerpolicy ( #7199 )
2023-01-01 11:44:20 +01:00
白雾三语
c6e5bda27d
fix(customElement): customElement can emit event ( #7296 )
...
close https://github.com/vuejs/core/issues/7293
2022-12-23 22:32:21 +01:00
白雾三语
620327d527
fix(runtime-core): ensure prop type validation warning shows custom class names ( #7198 )
...
* fix(runtime-core):
* fix(runtime-core): update
* fix(runtime-core): update reg
* test(runtime-core): add test case for warnings about prop type mismatches
Co-authored-by: Thorsten Luenborg <t.luenborg@googlemail.com>
2022-11-25 20:52:39 +01:00
Evan You
2913bbfdee
chore: add script notes for SFC playgound [ci skip]
2022-11-14 19:14:15 +08:00
CHOYSEN
80a4c3000f
chore(sfc-playground): add README to link to its website ( #6346 ) [ci skip]
2022-11-14 06:12:05 -05:00
Evan You
f0645a9b2f
chore: remove yarn reference
...
close #6709
2022-11-14 19:03:51 +08:00
Evan You
9d5e30d911
build: bump jest, puppeteer and use official rollup terser plugin
2022-11-14 18:21:58 +08:00
Evan You
b55846f05c
fix(shared): toNumber should only coerce strings
2022-11-14 17:50:56 +08:00
翠 / green
eb2a83283c
fix(types): allow assigning wider SetupContext type ( #2818 )
...
fix #2362
2022-11-14 04:33:29 -05:00
Evan You
588bd44f03
fix(reactivity): track hasOwnProperty
...
fix #2619
close #2621
2022-11-14 17:17:35 +08:00
Evan You
ce363e55a8
chore: fix assertNumber for undefined value
2022-11-14 16:57:44 +08:00
Evan You
7d0c63ff43
fix(custom-elements): use strict number casting
...
close #4946
close #2598
close #2604
This commit also refactors internal usage of previous loose
implementation of `toNumber` to the stricter version where applicable.
Use of `looseToNumber` is preserved for `v-model.number` modifier to
ensure backwards compatibility and consistency with Vue 2 behavior.
2022-11-14 16:20:12 +08:00
Evan You
efa2ac54d9
refactor: use Number constructor when coercing array length
2022-11-14 16:10:05 +08:00
三咲智子 Kevin Deng
3427052229
fix(reactivity-transform): prohibit const assignment at compile time ( #6993 )
...
close #6992
2022-11-14 02:54:41 -05:00
三咲智子 Kevin Deng
87c72ae49a
fix(v-model): ensure v-model listener casing is consistent with manual v-on listener ( #7067 )
...
fix #7066
2022-11-14 02:21:29 -05:00
Cédric Exbrayat
b46ba6e2ad
chore(compiler-core): missing space in v-slot mixed usage error message ( #7076 )
2022-11-14 02:06:24 -05:00
Samuel Rigaud
378386694b
fix(compiler-core): typeof should be allowed in browser expression validation ( #7037 )
2022-11-14 01:50:35 -05:00
webfansplz
11bd8db768
chore(types): remove unnecessary type assertions ( #7032 )
2022-11-14 01:44:06 -05:00
Zollero
da2ced1533
fix(runtime-core): set scope id before props ( #6948 )
...
close #6923
Also ensure consistency with Vue 2
2022-11-13 22:53:46 -05:00
Evan You
a1099afe1b
chore: snapshot
2022-11-14 11:41:44 +08:00
Evan You
e06d3b614e
fix(reactivity-transform): fix $$ escape edge cases
...
fix #6312
close #6944
2022-11-14 11:36:24 +08:00
被雨水过滤的空气-Rairn
d01c091967
test(Transition): events with arguments ( #6823 )
2022-11-13 20:45:44 -05:00
三咲智子 Kevin Deng
9060bf0353
refactor(compiler-core): make ast.helpers a Set ( #6774 )
2022-11-13 20:44:02 -05:00
Tamay Eser Uysal
7443174e2a
fix(compiler): add `hgroup` to supported `HTML_TAGS` ( #6321 )
...
close #6313
2022-11-13 20:28:56 -05:00
webfansplz
59ffe5ee1f
fix(types/effectScope): re-expose `active` as readonly property ( #6187 )
...
close #6186
2022-11-13 20:27:52 -05:00
三咲智子 Kevin Deng
4e5d9cdb82
refactor(compiler-sfc): drop Function prop type when no static default value ( #7125 )
2022-11-13 20:15:17 -05:00
webfansplz
0187f998f7
chore(runtime-core): add `isRegExp` to check `RegExp` ( #6041 )
2022-11-13 20:14:28 -05:00
Tony Trinh
c513126c5d
types(runtime-core): support plugin options type inference ( #3969 )
2022-11-13 20:13:32 -05:00
三咲智子 Kevin Deng
584eae60d1
fix(compiler-sfc): always generate runtime prop type for Function ( #7112 )
...
fix #7111
2022-11-13 19:36:03 -05:00
Evan You
6f663d47e5
release: v3.2.45
2022-11-11 17:35:27 +08:00
Evan You
24964dab25
test: test case for #6966
2022-11-11 17:06:50 +08:00
ysy945
67890daad1
fix(custom-elements): custom element should re-instantiate when inserted again ( #6966 )
...
fix #6934
2022-11-11 04:06:21 -05:00
Evan You
ffef822869
fix(custom-elements): respect slot props in custom element mode
2022-11-11 16:06:05 +08:00
Thorsten Lünborg
55382aed58
fix(custom-elements): define declared properties in constructor ( #5328 )
2022-11-11 02:46:01 -05:00
Evan You
89f37ceb62
fix(custom-elements): fix number type props casting check
...
fix #5793
adapted from #5794
2022-11-11 15:20:28 +08:00
Evan You
afe889999c
fix(custom-elements): properties set pre-upgrade should not show up in $attrs
2022-11-11 14:42:42 +08:00
Evan You
5e50909100
fix(custom-elements): should not reflect non-decalred properties set before upgrade
2022-11-11 14:14:55 +08:00
Thorsten Lünborg
665f2ae121
fix(custom-elements): fix event emitting for async custom elements ( #5601 )
...
fix #5599
2022-11-10 23:33:17 -05:00
Thorsten Lünborg
0b39e46192
fix(custom-elements): also dispatch hyphenated version of emitted events ( #5378 )
...
fix #5373
2022-11-10 23:01:10 -05:00
Thorsten Lünborg
192dcb648c
fix(custom-elements): ensure custom elements can inherit provides from ancestors ( #5098 )
...
fix #5096
2022-11-10 21:33:17 -05:00
花果山大圣
4798a9f704
refactor: more concise bitwise operations for flag removal ( #7092 )
2022-11-10 20:15:37 -05:00
被雨水过滤的空气(Rairn)
4049ffcf29
fix(runtime-core): fix move/removal of static fragments containing text nodes ( #6858 )
...
fix #6852
2022-11-10 05:03:10 -05:00
被雨水过滤的空气(Rairn)
a54bff2c9c
fix(hmr/keep-alive): fix error in reload component ( #7049 )
...
fix #7042
2022-11-10 05:01:31 -05:00
Evan You
0594400980
fix(sfc): also generate getter for import bindings during dev
2022-11-10 17:32:06 +08:00
Evan You
5a3d45ae29
fix(sfc): ensure consistent dev/prod behavior for non-reactive variables declared in `<script setup>`
...
fix #5655
2022-11-10 17:02:45 +08:00
Evan You
f73925d76a
fix(sfc): ensure `<script setup>` binding behavior consistency on `this` between prod and dev
...
close #6248
2022-11-10 16:02:45 +08:00
Evan You
15e889afaf
fix(v-model): fix incorrect codegen for non-ref bindings
...
fix #6241
2022-11-10 15:32:58 +08:00
Evan You
11214eedd2
fix(teleport/css-v-bind): fix css v-bind in teleport in child component slot
2022-11-10 15:08:25 +08:00
Evan You
42239cf284
fix(teleport/css-v-bind): fix css v-bind for teleported content
...
fix #4605
close #4609 (used tests from this PR)
2022-11-10 14:41:45 +08:00
Evan You
9ca8b7c1b5
chore: fix test
2022-11-10 14:30:50 +08:00
Evan You
d45cbfcdfb
chore(types): mark more internal component instance properties
2022-11-10 14:11:55 +08:00
Evan You
001184e6bb
fix(compiler/v-model): catch incorrect v-model usage on prop bindings
...
close #5584
2022-11-10 10:42:27 +08:00
Evan You
ec795bfc51
release: v3.2.44
2022-11-10 07:25:22 +08:00
Thorsten Lünborg
5dc593ba28
fix(watch): for immediate watch with single source, ensure cb is called with undefined as oldValue ( #7075 )
...
fix : #7074
2022-11-09 18:19:35 -05:00
skirtle
9a816dcec0
dx(runtime-dom): warn when a style value ends in a semicolon ( #7062 )
2022-11-09 08:16:34 -05:00
skirtle
fccfb1821f
chore(compat): change 'vnode-' to 'vue:' in event hooks warning ( #7063 )
2022-11-09 08:15:41 -05:00
Evan You
71977ec972
release: v3.2.43
2022-11-09 21:00:57 +08:00
Evan You
23e85e21a5
fix(watch): ensure oldValue in multi-source watcher is always an array
...
fix #7070
2022-11-09 20:50:02 +08:00
Evan You
d33292dd47
chore: return early in warn() in prod
2022-11-09 11:48:35 +08:00
Evan You
8dbf083133
build: put ssrContext warning behind __DEV__ flag
2022-11-09 11:41:26 +08:00
Evan You
f023d49a49
release: v3.2.42
2022-11-09 11:36:09 +08:00
三咲智子 Kevin Deng
57c9013837
fix(compiler-sfc): only escape parsing-breaking characters in v-bind css var names ( #6816 )
...
close #6803
2022-11-08 22:30:05 -05:00
白雾三语
2c27556fe5
fix(compiler): avoid namespace collisions when transforming template refs in inline mode ( #6975 )
...
fix #6964
2022-11-08 22:22:29 -05:00
三咲智子 Kevin Deng
8a882ce0a1
fix(compiler-sfc): handle method shorthand syntax in withDefaults ( #6972 )
...
fix #6971
2022-11-08 22:12:54 -05:00
白雾三语
5bfe438ef3
fix(compiler-core/v-on): only apply case preservation on native elements ( #6902 )
...
fix #6900
2022-11-08 21:58:22 -05:00
三咲智子 Kevin Deng
910fa7677f
fix(compiler-sfc): resolve computed object key ( #6963 )
2022-11-08 21:57:40 -05:00
三咲智子 Kevin Deng
7663a79a29
fix(reactivity-transform): respect user defined symbols that conflict with macros ( #6840 )
...
closes #6838
2022-11-08 20:26:43 -05:00
Johnson Chu
bad3f3ce46
fix(types): stricter type condition for `EventHandlers` ( #6855 )
...
fix #6899
2022-11-08 10:37:37 -05:00
Evan You
dd3354c4c7
fix(compiler-core): fix parsing error on comments between v-if in prod
...
close #6843
2022-11-08 23:35:35 +08:00
被雨水过滤的空气(Rairn)
64e6d9221d
fix(transition/keep-alive): fix unmount bug for component with out-in transition ( #6839 )
...
fix #6835
2022-11-08 10:01:43 -05:00
Rudy
48876182db
fix(compiler-core): keep whitespaces between interpolation and comment ( #6828 )
...
fix #6352
2022-11-08 09:50:43 -05:00
Evan You
6861d2380b
refactor(compiler-sfc): optimize import alias check for binding analysis
2022-11-08 17:47:47 +08:00
Evan You
8d1f526174
fix(compiler-sfc): fix binding analysis for aliased late import
2022-11-08 17:19:45 +08:00
三咲智子 Kevin Deng
4a00fddfed
fix(compiler-sfc): check import source during binding analysation ( #6826 )
...
fix #6825
2022-11-08 04:07:28 -05:00
三咲智子 Kevin Deng
fdc5902cce
fix(types/reactivity-transform): fix type when initial value is not used ( #6821 )
...
fix #6820
2022-11-08 01:38:53 -05:00
Evan You
9906e3a82a
chore: remove blank line [ci skip]
2022-11-08 14:29:13 +08:00
花果山大圣
bdaf83aae7
fix(hmr): fix hmr for components managed by keep-alive ( #6809 )
...
fix #6222
2022-11-08 01:26:56 -05:00
Evan You
4c3203b9b7
chore: run prettier
2022-11-08 14:25:48 +08:00
三咲智子 Kevin Deng
e049772247
workflow(sfc-playground): set all scopes to production mode ( #6815 )
2022-11-08 01:10:56 -05:00
Rudy
e4de623ea7
fix(types): support inferring injected properties in options api ( #6804 )
...
close #3031
close #5931
2022-11-08 01:09:53 -05:00
Rudy
50e2253057
fix(compiler/runtime-dom): ignore comments in inline styles ( #6808 )
...
fix #6807
2022-11-07 22:42:32 -05:00
Evan You
1c292e19af
chore: fix snapshot
2022-11-08 11:36:16 +08:00
花果山大圣
a0c7f271a2
fix(compiler-sfc): require <template> or <script> in SFC ( #6781 )
...
fix #6676
2022-11-07 22:34:39 -05:00
三咲智子 Kevin Deng
9768949ce0
fix(shared): fix parsing of multi-line inline style ( #6777 )
2022-11-07 22:17:50 -05:00
花果山大圣
99b6697fb4
fix(compiler-sfc): fix macro usage in multi-variable declaration ( #6778 )
...
fix #6757
2022-11-07 22:16:21 -05:00
Travis
bcfe480d75
fix(compiler-core/v-on): support inline handler with return type annotation ( #6769 )
...
fix #6378
2022-11-07 22:09:15 -05:00
被雨水过滤的空气(Rairn)
640cfce4ff
fix(compiler-core): avoid duplicate keys in codegen with `v-if` ( #6689 )
...
fix #6641
2022-11-07 22:04:31 -05:00
Evan You
f55cfe6d3b
chore: prettier
2022-11-08 11:03:37 +08:00
littleboarx
168c857247
fix(sfc/types): improve the type inference using withDefaults ( #6764 )
...
fix #6552
2022-11-07 21:59:31 -05:00
btea
79e7c1ee43
fix(ssr): remove css number value check ( #6636 )
...
Previously this prevented custom properties and vendor-prefixed properties to be rendered correctly.
fix #6625
2022-11-07 21:53:44 -05:00
Cédric Exbrayat
04553786e4
fix(runtime-core): do not throw on unknown directives ( #6671 )
...
fix #6340
This commit improves the case when a directive is not found in a template.
As `resolveDirective` returns `undefined`, some code was failing with the following error:
```
TypeError: Cannot read properties of undefined (reading 'deep')
```
2022-11-07 21:49:49 -05:00
三咲智子 Kevin Deng
b72a4af38a
fix(compiler-sfc): add semicolon after `defineProps` statement ( #6461 )
...
fix #6428
2022-11-07 21:17:48 -05:00