Evan You
bff63c5498
feat(types): provide ExtractPublicPropTypes utility type
...
ref #5272
close #8168
2023-05-02 11:06:32 +08:00
Joaquín Sánchez
918ec8a5cb
feat(compiler-dom): treat inert as boolean attribute ( #8209 )
...
close #8208
2023-05-02 10:21:19 +08:00
Evan You
4e2607a3d3
chore: move files into correct test block
2023-05-01 14:01:38 +08:00
Evan You
5d4c3c60a8
release: v3.3.0-beta.3
2023-05-01 12:28:29 +08:00
Evan You
c117d9c257
fix(hmr): keep slots proxy mutable for hmr
...
close #8188
2023-05-01 12:21:10 +08:00
Evan You
45765488d4
feat(compiler-sfc): expose parseCache
...
So that users can adjust cache's max size.
close #8202
2023-05-01 11:33:07 +08:00
Evan You
de87e6e405
fix(types): fix provide type checking for ref value
...
fix #8201
2023-05-01 11:27:05 +08:00
Evan You
b434d12bf6
fix(compiler-core): handle slot argument parsing edge case
...
ref https://github.com/vuejs/language-tools/issues/2710
2023-04-27 16:55:37 +08:00
Evan You
a778034a3e
release: v3.3.0-beta.2
2023-04-25 16:41:04 +08:00
Evan You
1c0be5c744
feat(compiler-sfc): support project references when resolving types
...
close #8140
2023-04-25 16:30:11 +08:00
Evan You
a370e8006a
perf(compiler-sfc): infer ref binding type for more built-in methods
2023-04-25 09:29:30 +08:00
Evan You
433a58ccb6
fix(compiler-sfc): props bindings should not override user declared bindings
...
fix #8148
2023-04-25 09:21:14 +08:00
Evan You
01f43c1741
ci: setup windows ci for compiler and SSR tests ( #8143 )
2023-04-24 11:31:13 +08:00
edison
29da504687
fix(compiler-sfc): normalize windows paths when resolving types ( #8136 )
2023-04-24 11:03:57 +08:00
Evan You
2d9f6f9264
fix(compiler-sfc): avoid all hard errors when inferring runtime type
2023-04-21 16:48:21 +08:00
Evan You
1447596bf4
release: v3.3.0-beta.1
2023-04-21 16:26:10 +08:00
Evan You
1849b9940f
test: update tests for deprecations
2023-04-21 16:06:08 +08:00
Evan You
7670bb9a3f
chore: bump repl
2023-04-21 16:03:05 +08:00
Evan You
7b2ff1e207
chore: remove deprecated ref sugar warning
2023-04-21 15:54:51 +08:00
Evan You
526fa3b2cc
feat(deprecation): unwrap injected refs in Options API by default, deprecate app.config.unwrapInjectedRefs
2023-04-21 15:54:03 +08:00
Evan You
bbd8301a13
feat(deprecation): deprecate v-is directive
2023-04-21 15:30:26 +08:00
Evan You
5f0394a5ab
feat(deprecation): deprecate @vnode hooks in favor of vue: prefix
2023-04-21 15:20:12 +08:00
zhangenming
fe762247f8
feat: allow accessing console in template ( #6508 )
...
close #7939
2023-04-21 15:10:36 +08:00
Anthony Fu
cb37d0b9ff
feat(suspense): introduce suspensible option for `<Suspense>` ( #6736 )
...
close #5513
2023-04-21 14:43:30 +08:00
Evan You
15847f38a0
chore: bump vite & vitest
2023-04-21 14:41:41 +08:00
edison
1d1d728949
feat(compiler-sfc): improve utility type Partial and Required ( #8103 )
2023-04-20 21:17:10 +08:00
Evan You
5cdaac2590
release: v3.3.0-alpha.13
2023-04-20 21:13:34 +08:00
Evan You
50c0bbe522
feat(compiler-sfc): support ExtractPropTypes when resolving types
...
close #8104
2023-04-20 21:02:50 +08:00
Evan You
5c6989557d
chore: avoid hard error when inferring types
2023-04-20 16:57:36 +08:00
Evan You
4496456d7d
feat(compiler-sfc): support dynamic imports when resolving types
2023-04-20 16:18:35 +08:00
Evan You
7c3ca3cc3e
feat(compiler-sfc): support export * when resolving types
2023-04-20 15:56:24 +08:00
Evan You
f17a82c769
fix(hmr): always traverse static children in dev
...
fix #7921
close #8100
2023-04-20 14:31:54 +08:00
Evan You
d53e157805
fix(compiler-sfc): handle type merging + fix namespace access when inferring type
...
close #8102
2023-04-20 14:13:08 +08:00
Eduardo San Martin Morote
5510ce385a
feat: hasInjectionContext() for libraries ( #8111 )
2023-04-20 10:12:18 +08:00
白雾三语
2f9f6eceb9
chore: delete outdated content in readme ( #8093 ) [ci skip]
...
close #8084
2023-04-20 10:11:22 +08:00
n028
f630555caa
chore: fix typo ( #8113 ) [ci skip]
2023-04-20 10:08:00 +08:00
agoni1212
a58785945d
chore: typo ( #8108 ) [ci skip]
2023-04-20 10:07:31 +08:00
Evan You
94fa67a4f7
fix(hmr): force update cached slots during HMR
...
close #7155
close #7158
2023-04-20 10:06:06 +08:00
Evan You
9b5a34bf8c
fix(compiler-sfc): normalize filename when invalidating cache
2023-04-18 22:21:29 +08:00
Evan You
72be89423d
release: v3.3.0-alpha.12
2023-04-18 22:18:56 +08:00
Evan You
0f77a2b1d1
fix(compiler): fix expression codegen for literal const bindings in non-inline mode
2023-04-18 11:39:53 +08:00
Evan You
57f0fbe76a
release: v3.3.0-alpha.11
2023-04-17 21:17:17 +08:00
Evan You
271df09470
fix(compiler-sfc): normalize windows paths when resolving types
2023-04-17 21:11:22 +08:00
Evan You
33adc2a17a
release: v3.3.0-alpha.10
2023-04-17 18:15:17 +08:00
Evan You
4b5b384485
fix(hmr): invalidate cached props/emits options on hmr
2023-04-17 18:05:17 +08:00
Evan You
4e028b9669
feat(compiler-sfc): support specifying global types for sfc macros
...
ref: https://github.com/vuejs/core/pull/8083#issuecomment-1508468713
2023-04-16 15:49:41 +08:00
Evan You
f22e32e365
feat(compiler-sfc): expose type resolve APIs
2023-04-16 11:11:26 +08:00
Evan You
6b13e04b4c
feat(compiler-sfc): mark props destructure as experimental and require explicit opt-in
2023-04-15 22:09:08 +08:00
Evan You
760755f4f8
feat(compiler-sfc): support string/number indexed types in macros
2023-04-15 22:08:39 +08:00
Evan You
8d8ddd686c
feat(compiler-sfc): expose type import deps on compiled script block
2023-04-15 22:08:39 +08:00
Evan You
075498c959
refactor: avoid hard error when inferring runtime type
2023-04-15 22:08:39 +08:00
Evan You
a9f5e14c7c
chore: comments [ci skip]
2023-04-15 22:08:39 +08:00
Evan You
34a007d00d
test: refactor resolveType test
2023-04-15 22:08:39 +08:00
Evan You
3982bef533
feat(compiler-sfc): support resolving type imports from modules
2023-04-15 22:08:39 +08:00
Evan You
8451b92a7a
wip: cache fileToScope + improve vue file offset
2023-04-15 22:08:39 +08:00
Evan You
c93c11710e
refactor: improve type resolve error output
2023-04-15 22:08:39 +08:00
Evan You
8aa4ea81d6
feat(compiler-sfc): support relative imported types in macros
2023-04-15 22:08:39 +08:00
Evan You
1c06fe1d02
chore: improve sfc-playground typing + bump repl for 3.3 external type resolve support
...
close #8051
2023-04-13 15:45:58 +08:00
Evan You
5ff40bb0dc
feat(compiler-sfc): support namespace members type in macros
2023-04-13 12:32:52 +08:00
Evan You
3f779ddbf8
feat(compiler-sfc): support string indexed type in macros
2023-04-13 11:21:09 +08:00
Evan You
51773d5d1d
refactor: adjust ResolvedElements shape
2023-04-13 10:42:15 +08:00
Evan You
1cfab4c695
feat(compiler-sfc): support limited built-in utility types in macros
2023-04-13 10:28:22 +08:00
Evan You
fb8ecc803e
feat(compiler-sfc): support mapped types, string types & template type in macros
2023-04-13 09:59:54 +08:00
Evan You
d1f973bff8
feat(compiler-sfc): support intersection and union types in macros
...
close #7553
2023-04-12 21:34:13 +08:00
Evan You
a6dedc33ba
test: split compileScript macro tests
2023-04-12 16:46:26 +08:00
Evan You
b2cdb2645f
refactor(compiler-sfc): rework macro type resolution
2023-04-11 23:00:28 +08:00
Evan You
ae5a9323b7
refactor(compiler-sfc): split normal script logic
2023-04-11 16:05:00 +08:00
Evan You
3da1bb36b1
refactor(compiler-sfc): split all macros
2023-04-11 16:05:00 +08:00
Evan You
c52157c87d
refactor(compiler-sfc): split more logic
2023-04-11 16:05:00 +08:00
Evan You
0232c00e11
refactor(compiler-sfc): simplify props destructure arguments
2023-04-11 16:05:00 +08:00
Evan You
5a529bbf23
refactor(compiler-sfc): extract defineEmits logic
2023-04-11 16:05:00 +08:00
Evan You
9f2ca5155e
refactor(compiler-sfc): extract processDefineModel, move main magic string instance to context
2023-04-11 16:05:00 +08:00
Evan You
9f5692e052
refactor(compiler-sfc): collapse genRuntimeProps logic
2023-04-11 16:05:00 +08:00
Evan You
d0ac57872c
refactor(compiler-sfc): extract more defineProps logic
2023-04-11 16:05:00 +08:00
Evan You
fe9760188d
refactor(compiler-sfc): remove useless type generation
...
we are no longer type-checking generated code
2023-04-11 16:05:00 +08:00
Evan You
acd7eb22cf
refactor(compiler-sfc): (wip) split compileScript logic, use context, move defineProps
2023-04-11 16:05:00 +08:00
Himself65
c94ef02421
fix(runtime-core): properly merge props and emits options from mixins ( #8052 )
...
close #7989
2023-04-10 15:06:21 +08:00
丶远方
2ce23f0e09
chore(reactivity): remove unnecessary type assertions. ( #8046 )
2023-04-10 14:06:56 +08:00
JayFate
37701a88c0
chore: replace brotli with node:zlib ( #8045 )
...
Signed-off-by: JayFate <48240828+JayFate@users.noreply.github.com>
2023-04-10 14:06:28 +08:00
Evan You
19e17a951c
perf(compiler): use source-map-js
2023-04-09 16:50:20 +08:00
Evan You
681ac7c896
release: v3.3.0-alpha.9
2023-04-08 13:33:46 +08:00
Evan You
851635157f
chore: make vercel silent
2023-04-08 12:28:30 +08:00
三咲智子 Kevin Deng
14f3d747a3
feat(sfc): introduce `defineModel` macro and `useModel` helper ( #8018 )
2023-04-08 12:13:05 +08:00
Evan You
3b02c27e6d
chore: bump repl for sfc playground
2023-04-06 18:10:10 +08:00
三咲智子 Kevin Deng
f7f4624191
fix(compiler-sfc): fix binding type for constants when hoistStatic is disabled ( #8029 )
2023-04-06 17:19:00 +08:00
丶远方
cac1512390
chore(reactive): remove unref type assertion ( #8007 )
2023-04-06 17:15:27 +08:00
-isum
3ccbea08e0
fix(compiler-sfc): accept `StringLiteral` node in `defineEmit` tuple syntax ( #8041 )
...
close #8040
2023-04-06 17:13:34 +08:00
Evan You
6e540d6ac7
chore: enable cors for sfc as temporary fix
2023-04-06 13:02:55 +08:00
Evan You
4c022ccb01
chore: enable cors for sfc as temporary fix
2023-04-06 12:46:19 +08:00
Evan You
593da4069a
chore: update playground url
2023-04-06 12:42:07 +08:00
Evan You
af563bf428
fix(types): more public type argument order fix
2023-04-06 11:12:49 +08:00
Evan You
bdf557f6f2
fix(types): retain type parameters order for public types
2023-04-05 22:30:50 +08:00
Evan You
b117b88448
Revert "chore: remove unused args passed to ssrRender"
...
This reverts commit 2a9e379655
.
2023-04-05 20:39:59 +08:00
三咲智子 Kevin Deng
955752951e
fix(compiler-sfc): skip empty `defineOptions` and support TypeScript type assertions ( #8028 )
2023-04-05 17:33:29 +08:00
Evan You
91a931ae87
fix(types): improve defineProps return type with generic arguments
2023-04-05 17:21:31 +08:00
Evan You
b2c874e3b9
refactor(compiler-sfc): move related files into separate directories
2023-04-05 16:35:10 +08:00
Eduardo San Martin Morote
869f3fb93e
feat(app): app.runWithContext() ( #7451 )
2023-04-05 15:18:13 +08:00
Evan You
2a9e379655
chore: remove unused args passed to ssrRender
2023-04-05 11:16:08 +08:00
Evan You
05f94cf7b0
fix(compiler-ssr): disable v-once transform in ssr vdom fallback branch
...
fix #7644
2023-04-05 11:10:21 +08:00
Evan You
036914c10b
release: v3.3.0-alpha.8
2023-04-04 18:23:06 +08:00
魏
6003ef74c7
chore: remove duplicate test ( #8003 )
2023-04-04 18:20:56 +08:00
Evan You
f3145a915a
fix(compiler-sfc): check binding is prop before erroring
...
fix #8017
2023-04-04 18:10:13 +08:00
Evan You
9a09e47667
release: v3.3.0-alpha.7
2023-04-03 18:19:11 +08:00
三咲智子 Kevin Deng
5a2f5d59cf
feat(types/slots): support slot presence / props type checks via `defineSlots` macro and `slots` option ( #7982 )
2023-04-03 16:49:16 +08:00
Evan You
59e828448e
feat(reactivity): improve support of getter usage in reactivity APIs ( #7997 )
2023-04-02 10:17:51 +08:00
Evan You
dfb21a5363
chore: add docs links for sfc macros
2023-04-02 10:02:33 +08:00
Roland Hummel
c346af2b6a
docs: comments on reactivity functions ( fixes #4832 ) ( #4836 )
...
close #4832
2023-03-31 17:06:10 +08:00
白雾三语
5261085113
fix(compiler-dom): handle newlines when evaluating constants during stringification ( #7995 )
...
fix #7994
2023-03-31 16:33:00 +08:00
Evan You
482f2e3434
fix(compiler-sfc): use dynamic defaults merging for methods with computed keys
...
ref #7113
2023-03-31 09:08:23 +08:00
Evan You
fe619443d2
feat(compiler-sfc): support arbitrary expression as withDefaults argument
...
ref #6459
2023-03-31 09:04:27 +08:00
Evan You
566748c1ed
chore: remove unused param
2023-03-31 08:58:03 +08:00
Evan You
4af5d1b075
feat(sfc): revert withDefaults() deprecation
...
In some cases, the user still needs access to the full props object,
in such cases withDefaults() is still needed.
2023-03-31 08:53:15 +08:00
Evan You
f5971468e5
refactor(compiler-sfc): remove unnecessary emits type codegen
...
This is no longer necessary as we no longer recommend type checking generated code
2023-03-30 20:06:11 +08:00
Evan You
ef73ea53ea
feat(compiler-sfc): codegen support for defineEmits() short syntax (followup of #7992 )
2023-03-30 19:59:07 +08:00
Evan You
8876dccf42
feat(sfc): support more ergnomic defineEmits type syntax ( #7992 )
2023-03-30 19:24:32 +08:00
Evan You
8ac0620c1b
release: v3.3.0-alpha.6
2023-03-30 18:22:42 +08:00
Evan You
15810c30d7
chore: bump csstype version
2023-03-30 18:06:28 +08:00
Evan You
71635be68d
feat(compiler-sfc): support generating variable instead of default export in compileScript
2023-03-30 16:58:41 +08:00
Evan You
6bda4b6688
fix(compiler-core): fix codegen for literal const in non-inline mode
2023-03-30 15:19:27 +08:00
三咲智子 Kevin Deng
ba4cec31b9
fix(compiler-sfc): infer runtime type in defineProps ( #7972 )
2023-03-30 14:49:28 +08:00
Evan You
ba9c2ae247
feat(compiler-sfc): enable reactive props destructure by default and deprecate withDefaults() ( #7986 )
2023-03-30 11:58:16 +08:00
Evan You
e10a89e608
fix(compiler-sfc): fix function default value handling w/ props destructure
2023-03-29 22:21:27 +08:00
Evan You
1a04fba10b
fix(compiler-sfc): infer object type for empty type literal
2023-03-29 21:01:52 +08:00
Evan You
a94072dd2c
fix(compiler-sfc): fix defineExpose() codegen regression from #7949
2023-03-29 20:31:25 +08:00
Haoqun Jiang
ffe679c490
fix(types/jsx): move JSX DOM types back to `@vue/runtime-dom` ( #7979 )
2023-03-29 20:22:29 +08:00
Leonardo Piccioni de Almeida
ff60b933ae
fix(jsx-runtime): handle keys ( #7976 )
2023-03-29 16:17:34 +08:00
Haoqun Jiang
0f73f394da
fix(types/jsx): jsx-runtime types for global JSX namespace registration ( #7978 )
2023-03-29 16:15:08 +08:00
三咲智子 Kevin Deng
77686cf476
fix(compiler-core): check if expression is constant ( #7974 )
...
close #7973
2023-03-29 09:02:16 +08:00
三咲智子 Kevin Deng
63ad77f6f6
feat(runtime-core): add skipCheck for prop ( #7548 )
2023-03-28 22:29:54 +08:00
Evan You
1bde9fbc91
chore: fix accidentally replaced comments [ci skip]
2023-03-28 21:22:11 +08:00
白雾三语
ddba46ae6d
chore: update snapshots by #7766 ( #7970 )
2023-03-28 12:27:09 +02:00
白雾三语
139104ba26
fix(compiler-sfc): use prependLeft to handle CSSVars ( #7760 )
2023-03-28 17:47:10 +08:00
Evan You
b9dc1adefb
chore: update snapshots
2023-03-28 17:35:42 +08:00
三咲智子 Kevin Deng
c839129ab9
fix(compiler-sfc): avoid codegen conflict with user variable named `expose` ( #7949 )
...
rename `expose` to `__expose` to avoid duplicate identifier
relate #7890
2023-03-28 17:34:23 +08:00
三咲智子 Kevin Deng
93f77292c9
fix(compiler-sfc): disallow `expose` property in `defineOptions` ( #7967 )
2023-03-28 17:32:37 +08:00
三咲智子 Kevin Deng
b7bd50f505
feat(compiler-core): support parsing `const` modifier in type parameters ( #7912 )
2023-03-28 17:31:23 +08:00
Evan You
eded94712e
feat(compiler-sfc): improve runtime props inference for enum
2023-03-28 17:29:31 +08:00
Evan You
5fb406e3e1
fix(compiler-sfc): properly handle unknown types in runtime prop inference
...
fix #7511
2023-03-28 17:15:25 +08:00
Evan You
6f5698c932
Revert "fix(compiler-sfc): infer correct type for enums"
...
This reverts commit 2e074a7009
.
2023-03-28 16:55:19 +08:00
Evan You
2e074a7009
fix(compiler-sfc): infer correct type for enums
...
fix #7511
2023-03-28 16:39:13 +08:00
三咲智子 Kevin Deng
0002567728
feat(compiler-sfc): support module string names syntax ( #7428 )
...
https://github.com/tc39/ecma262/pull/2154
2023-03-28 16:28:06 +08:00
三咲智子 Kevin Deng
d60e58c9f6
fix(compiler-sfc): fix edge case of default export call with no args ( #7536 )
...
closes #7534
2023-03-28 16:27:34 +08:00
三咲智子 Kevin Deng
336a3d7b91
fix(compiler-sfc): properly remove comma of multiple macros in the same declaration ( #7423 )
...
closes #7422
reverts #6778
2023-03-28 16:23:39 +08:00
三咲智子 Kevin Deng
9f5e20ccff
fix(compiler-sfc): allow `<script>` with lang='js' ( #7398 )
2023-03-28 15:48:41 +08:00
Evan You
4355d2492d
fix(compiler-sfc): handle more TS built-in utilities in defineProps inference
2023-03-28 15:41:24 +08:00
三咲智子 Kevin Deng
151a8ad6b9
fix(compiler-sfc): infer TSIntersectionType in defineProps ( #7394 )
2023-03-28 15:40:03 +08:00
三咲智子 Kevin Deng
1b69d5f2f4
fix(compiler-sfc): unwrap TS node for defineProps ( #7340 )
2023-03-28 15:22:01 +08:00
三咲智子 Kevin Deng
6391daf658
fix(compiler-sfc): infer TS Extract&Exclude runtime type ( #7339 )
...
closes #7337
closes #6252
2023-03-28 15:19:14 +08:00
三咲智子 Kevin Deng
3a7572cdb2
fix(compiler-sfc): infer function prop type from type literal w/ callable signature ( #7119 )
2023-03-28 11:59:21 +08:00
三咲智子 Kevin Deng
701b95ff3d
fix(compiler-sfc): rewrite default export with AST analysis instead of regex ( #7068 )
...
closes #7038
closes #7041
closes #7078
2023-03-28 11:54:22 +08:00
三咲智子 Kevin Deng
7def8b15b8
feat(complier-sfc): hoist literal constants for script ( #5752 )
...
- Support using literal constants in macros
- fix useCssVars insert position edge case
- fix non-literal-const enum hoisting
close #5750
2023-03-28 11:34:29 +08:00
Evan You
e224922e97
fix(types): revert jsx global removal (to be removed in 3.4)
2023-03-28 11:17:38 +08:00
Remco Haszing
5838950ecf
fix(jsx-runtime): fix automatic runtime implementation ( #7959 )
2023-03-28 11:06:49 +08:00
三咲智子 Kevin Deng
bcf5841dde
feat(compiler-sfc): add defineOptions macro ( #5738 )
2023-03-28 10:43:51 +08:00
三咲智子 Kevin Deng
703f8c22e5
chore(deps): upgrade rollup & magic-string ( #7326 )
2023-03-28 09:52:06 +08:00
Evan You
e3de9a6911
test: add test for defineComponent function syntax with object emits
2023-03-28 08:57:56 +08:00
Evan You
efb54e7315
feat(sfc): deprecate reactivity transform
2023-03-27 21:01:36 +08:00
Evan You
d77557c403
feat(types): `defineComponent()` with generics support ( #7963 )
...
BREAKING CHANGE: The type of `defineComponent()` when passing in a function has changed. This overload signature is rarely used in practice and the breakage will be minimal, so repurposing it to something more useful should be worth it.
close #3102
2023-03-27 18:28:43 +08:00
Evan You
9a8073d0ae
chore: fix type
2023-03-27 18:03:02 +08:00
Evan You
28e30c819d
fix(types/jsx): remove $slots children override
2023-03-26 17:44:01 +08:00
Evan You
27e1e38641
release: v3.3.0-alpha.5
2023-03-26 16:52:46 +08:00
Evan You
d0b7ef3b61
feat(types/jsx): support jsxImportSource, avoid global JSX conflict ( #7958 )
...
- No longer implicitly register global JSX types by default
- This avoid conflict when using Vue in the same project with React
- Global registration must now be done by explicitly importing /
referencing `vue/jsx`, or listing it in `compilerOptions.types`.
- Add `vue/jsx-runtime` to support `jsxImportSource` usage
- Can enable globally by setting `compilerOptions.jsxImportSource` to `'vue'`
- Can also opt-in per-file with `/** @jsxImportSource vue */`
2023-03-26 16:40:53 +08:00
Evan You
c288c7b0bd
fix(types): ensure defineProps with generics return correct types
2023-03-26 15:58:04 +08:00
Evan You
f61499da7f
chore: add redirect for template explorer
2023-03-26 10:01:53 +08:00
Himself65
cbc2733953
test: improve test case on `$el` ( #7922 )
2023-03-25 09:01:10 +08:00
Evan You
4c9bfd2b99
feat(dx): improve readability of displayed types for props
2023-03-24 15:06:43 +08:00
Evan You
58e5c51149
build: upgrade to TypeScript 5.x
2023-03-23 17:11:35 +08:00
Evan You
e60ebd07a4
chore: bump vite & vitest
2023-03-23 16:36:33 +08:00
Evan You
aac163110f
refactor: remove circular dependencies in compiler
2023-03-23 16:30:42 +08:00
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