三咲智子 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