Commit Graph

67 Commits

Author SHA1 Message Date
Evan You b20350ded5 fix(compiler-sfc): fix co-usage of defineModel transform options and props destructure
close #9972
2024-01-04 17:07:29 +08:00
Evan You c3fd577177 chore: fix snapshot 2023-12-30 18:57:22 +08:00
Evan You dce99c12df fix(compiler-sfc): fix dev regression for dot / namespace component usage
close #9947
2023-12-30 18:20:14 +08:00
Evan You 63c3e621ce test: split import usage check tests into dedicated file 2023-12-30 18:13:35 +08:00
Evan You a772031ea8 feat(defineModel): support modifiers and transformers 2023-12-26 22:13:04 +08:00
三咲智子 Kevin Deng bfe6b459d3
style: update format & lint config (#9162)
Co-authored-by: 丶远方 <yangpanteng@gmail.com>
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
Co-authored-by: Guo Xingjun <99574369+Plumbiu@users.noreply.github.com>
2023-12-26 19:39:47 +08:00
Evan You 5ec937723a chore: Merge branch 'main' into minor 2023-12-24 22:50:06 +08:00
Evan You a8d0b1b38b fix(compiler-sfc): fix type resolution for shared type w/ different generic parameters
close #9871
2023-12-23 00:44:26 +08:00
三咲智子 Kevin Deng ef688ba92b
feat(compiler-sfc): promote defineModel stable (#9598) 2023-12-12 17:28:40 +08:00
Evan You 982a145d38 chore: Merge branch 'main' into minor 2023-12-11 22:03:28 +08:00
三咲智子 Kevin Deng aa954b969b
test: update snapshot 2023-12-08 18:16:22 +08:00
白雾三语 d74d364d62
fix(custom-element): correctly handle number type props in prod (#8989)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-06 08:16:16 +01:00
Evan You a817883c26 chore: Merge branch 'main' into minor 2023-12-05 10:54:20 +08:00
Evan You e2f2b75b62 chore(deps): bump vitest to 1.0 2023-12-05 10:48:04 +08:00
Evan You e12b10ac3e chore: Merge branch 'main' into minor 2023-12-04 23:17:41 +08:00
edison eb5e307c0b
fix(compiler-sfc): support inferring generic types (#8511)
close #8482
2023-12-01 21:21:12 +08:00
edison 8d74ca0e6f
fix(compiler-sfc): generate more treeshaking friendly code (#9507)
close #9500
2023-12-01 02:52:26 +08:00
Evan You e8e3ec6ca7 perf(compiler-sfc): remove magic-string trim on script
magic-string's trim method uses a regex check for aborting which turns
out to be extremely expensive - it cna take up to 10% time in total SFC
compilation! The usage here is purely aesthetic so simply removing it
for a big perf gain is well worth it.
2023-11-25 16:18:29 +08:00
三咲智子 Kevin Deng 79b8a0905b
feat!: remove reactivity transform (#9321)
BREAKING CHANGE: Reactivity Transform was marked deprecated in 3.3 and is now removed in 3.4. This change does not require a major due to the feature being experimental. Users who wish to continue using the feature can do so via the external plugin at https://vue-macros.dev/features/reactivity-transform.html
2023-11-21 18:06:42 +08:00
Bogdan Kolesnyk f18a174979
fix(compiler-sfc): malformed filename on windows using path.posix.join() (#9478)
Closes: #8671, #9583

Not fixed with: #9446

Related: #9473
2023-11-13 15:48:25 +08:00
auvred 3e08d246df
fix(compiler-sfc): consistently escape type-only prop names (#8654)
close #8635
close #8910
close vitejs/vite-plugin-vue#184
2023-11-10 16:23:47 +08:00
edison 9e1b74bcd5
fix(compiler-sfc): support resolve extends interface for defineEmits (#8470)
close #8465
2023-11-10 16:00:04 +08:00
木杉 a9893458ec
fix(compile-sfc): support `Error` type in `defineProps` (#5955) 2023-10-30 15:45:58 +08:00
Haoqun Jiang 089d36d167
fix: correctly resolve types from relative paths on Windows (#9446)
close #8671
close https://github.com/vuejs/vue-loader/issues/2048
2023-10-21 10:35:16 +08:00
三咲智子 Kevin Deng df81da8be9
fix(compiler-sfc): model name conflict (#8798) 2023-10-20 17:36:36 +08:00
三咲智子 Kevin Deng 24db9516d8
fix(compiler-sfc): don't hoist props and emit (#8535)
fix #7805
close #7812
2023-07-12 11:03:14 +08:00
Evan You d2c3d8b70b perf(compiler-sfc): lazy require typescript 2023-06-15 16:38:44 +08:00
edison 4fa8da8576
fix(compiler-sfc): support resolve multiple re-export /w same source type name (#8365)
close #8364
2023-05-19 07:45:28 +08:00
Evan You 5aec717a24 fix(compiler-sfc): handle imported types from default exports
close #8355
2023-05-18 16:15:27 +08:00
三咲智子 Kevin Deng b133e0fd97
fix(compiler-sfc): support defineEmits type reference with unions (#8299)
close #7943
2023-05-18 12:59:12 +08:00
Evan You fab9c72780 fix(compiler-sfc): fix type import from path aliased vue file
close #8348
2023-05-18 12:50:47 +08:00
三咲智子 Kevin Deng 8ec73a3aea
fix(compiler-sfc): don't hoist regexp literial (#8300) 2023-05-18 11:09:40 +08:00
Evan You b36addd3bd fix(compiler-sfc): handle ts files with relative imports with .js extension
close #8339
2023-05-17 10:14:44 +08:00
Evan You 82350721a4 fix(compiler-sfc): raise specific warning for failed extends and allow ignoring extends
ref #8286
2023-05-12 13:17:55 +01:00
Evan You f25bd37c67 fix(compiler-sfc): fix regression on props destructure when transform is not enabled
close #8289
2023-05-12 12:53:36 +01:00
白雾三语 690ef29635
fix(compiler-sfc): handle prop keys that need escaping (#7803)
close #8291
2023-05-12 18:24:59 +08:00
Evan You aa1e77d532 fix(compiler-sfc): properly parse d.ts files when resolving types
close #8285
2023-05-12 11:08:29 +01:00
Cédric Exbrayat ab9256a4bb
chore: fix typos in defineOptions (#8277) 2023-05-11 19:34:27 +08:00
Evan You 6b194bcf3b fix(compiler-sfc): fix built-in type resolving in external files
close #8244
2023-05-08 12:30:19 +08:00
Evan You 4e2607a3d3 chore: move files into correct test block 2023-05-01 14:01:38 +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 2d9f6f9264 fix(compiler-sfc): avoid all hard errors when inferring runtime type 2023-04-21 16:48:21 +08:00
edison 1d1d728949 feat(compiler-sfc): improve utility type Partial and Required (#8103) 2023-04-20 21:17:10 +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 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 d53e157805 fix(compiler-sfc): handle type merging + fix namespace access when inferring type
close #8102
2023-04-20 14:13:08 +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