Commit Graph

1027 Commits

Author SHA1 Message Date
Evan You e5ca13a3af
release: v3.4.29 2024-06-14 18:02:36 +02:00
Evan You a23e99bedf
fix(compiler-sfc): support @vue-ignore comment on more type sources 2024-06-14 17:46:50 +02:00
Evan You a476692ed2
fix(compiler-sfc): fix parsing of mts, d.mts, and mtsx files 2024-06-14 16:47:24 +02:00
Evan You 4ec387b100
fix(compiler-sfc): fix missing scope for extends error message 2024-06-14 16:46:26 +02:00
Evan You 26356264d2
chore: Merge branch 'main' into minor 2024-06-14 12:32:28 +02:00
Evan You 3e89a0da21
release: v3.4.28 2024-06-14 11:30:16 +02:00
Zhaolin Liang 495263a9cb
fix(compiler-sfc): support type resolve for keyof for intersection & union types (#11132)
close #11129
2024-06-14 17:10:46 +08:00
Tycho 8cf357ec04
chore(perf): replace startsWith with === (#11124) 2024-06-14 16:09:39 +08:00
cyrilluce bdeac377c7
fix(compile-sfc): Support project reference with folder, (#10908)
close #10907
2024-06-10 15:25:47 +08:00
Zhaolin Liang 2594b1df57
fix(compiler-sfc): support as keyword with template literal types (#11100)
close #10962
2024-06-10 15:19:39 +08:00
renovate[bot] 2438b75ed6
fix(deps): update compiler to ^7.24.7 (#11101)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-10 15:06:09 +08:00
No Two 2c78f8921d
chore: improve compileTemplate warn message (#11085) 2024-06-07 17:30:35 +08:00
Tycho 293cf4e131
fix(compiler-sfc): improve type resolving for the keyof operator (#10921)
close #10920 
close #11002
2024-06-07 16:27:43 +08:00
Evan You cd0ea0d479
fix(compiler-core): change node hoisting to caching per instance (#11067)
close #5256
close #9219
close #10959
2024-06-04 20:09:54 +08:00
renovate[bot] a1ff7a80d8
chore(deps): update all non-major dependencies (#11058)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-03 15:23:32 +08:00
Kevin Deng 三咲智子 34a97edd2c
fix(compiler-sfc): throw error when import macro as alias (#11041) 2024-05-31 17:08:54 +08:00
Evan You 1d8727ec97
chore: Merge branch 'main' into minor 2024-05-30 11:21:12 +08:00
Simon He 56f5692fb6
refactor(compiler-sfc): defineOptions avoid redundant conditional judgments (#9453) 2024-05-27 17:59:29 +08:00
Haoqun Jiang 07b3c4b786
fix(compat): correctly transform non-identifier expressions in legacy filter syntax (#10896)
close #10852
2024-05-27 17:04:48 +08:00
renovate[bot] b63566aaeb
fix(deps): update compiler (#11024)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-27 16:51:43 +08:00
renovate[bot] b487acdf44
chore(deps): update all non-major dependencies (#11020)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-27 16:27:59 +08:00
renovate[bot] 90cbcfefd1
chore(deps): update all non-major dependencies (#10980)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-20 21:40:41 +08:00
renovate[bot] 7cef876afa
fix(deps): update compiler to ^7.24.5 (#10924)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-13 17:10:34 +08:00
renovate[bot] 7cb3db6faf
chore(deps): update all non-major dependencies (#10923)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-13 17:09:13 +08:00
edison b2b5f57c2c
fix(compile-sfc): register props destructure rest id as setup bindings (#10888)
close #10885
2024-05-09 07:43:17 +08:00
Evan You 461946175d
release: v3.4.27 2024-05-06 16:59:48 -07:00
Tycho 10d34a5624
fix(compiler-sfc): handle keyof operator (#10874)
close #10871
2024-05-07 07:16:14 +08:00
renovate[bot] bead21a2f6
chore(deps): update all non-major dependencies (#10866)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-07 06:14:19 +08:00
Evan You b295cdf4e9
release: v3.5.0-alpha.2 2024-05-03 17:03:13 -07:00
Evan You 241790937c
release: v3.4.26 2024-04-29 16:36:54 +08:00
Evan You 5590ca3694
release: v3.5.0-alpha.1 2024-04-29 10:49:53 +08:00
Evan You d2dac0e359
feat(compiler-sfc): enable reactive props destructure by default
Also allow prohibiting usage via config.
RFC: https://github.com/vuejs/rfcs/discussions/502
2024-04-29 10:45:48 +08:00
Evan You 574c3e63bb
release: v3.4.25 2024-04-24 18:37:52 +08:00
Evan You 4253a57f17
fix(defineModel): align prod mode runtime type generation with defineProps
close #10769
2024-04-24 18:21:57 +08:00
Evan You 958286e3f0
release: v3.4.24 2024-04-22 23:29:58 +08:00
Evan You 5cef52a5c2
fix(compiler-sfc): handle readonly operator and ReadonlyArray/Map/Set types
close #10726
2024-04-22 15:36:38 +08:00
renovate[bot] 15df5c1b26
fix(deps): update compiler (#10760)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-22 15:04:41 +08:00
renovate[bot] b0d00958e0
chore(deps): update all non-major dependencies (#10758)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-22 14:52:58 +08:00
Evan You 46c2b63981
release: v3.4.23 2024-04-16 22:55:56 +08:00
Evan You b4b856b3f0
release: v3.4.22 2024-04-15 23:59:36 +08:00
yangxiuxiu 0cef65cee4
fix(compiler-sfc): fix defineModel coercion for boolean + string union types (#9603)
close #9587 
close #10676
2024-04-15 21:18:59 +08:00
Doctor Wu 54a6afa75a
fix(compiler-sfc): fix universal selector scope (#10551)
close #10548
2024-04-15 19:36:13 +08:00
edison e5919d4658
fix(compile-sfc): analyze v-bind shorthand usage in template (#10518)
close #10515
2024-04-15 16:32:04 +08:00
Evan You 2ae908d00c
chore(types): perform strict es2016 lib check when building dts 2024-04-15 15:52:48 +08:00
Evan You 7ae9dbf57d
chore(deps): bump TS to 5.4 2024-04-15 13:36:43 +08:00
liudaodanOo 34106bc9c7
fix(compiler-sfc): also search for `.tsx` when type import's extension is omitted (#10637)
Co-authored-by: liuxiaofei <liuxfb@digiwin.com>

Closes #10635
2024-04-09 16:14:11 +08:00
renovate[bot] d4b767a1a5
chore(deps): update all non-major dependencies (#10658)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-08 13:16:33 +08:00
renovate[bot] 5aaa758867
chore(deps): update all non-major dependencies (#10627)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-01 22:51:05 +08:00
renovate[bot] 01172fdb77
fix(deps): update compiler (#10581)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-25 16:22:58 +08:00
renovate[bot] c6e245efe4
chore(deps): update all non-major dependencies (#10580)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-25 15:10:49 +08:00
Doctor Wu 660cadc7aa
fix(compiler-sfc): :is() and :where() in compound selectors (#10522)
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>

Closes #10511
2024-03-25 14:12:33 +08:00
renovate[bot] c3dd9378b0
chore(deps): update all non-major dependencies (#10539)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-18 15:14:20 +08:00
renovate[bot] de0336a7c3
fix(deps): update compiler (#10492)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-11 16:08:51 +08:00
Doctor Wu e76d7430aa
fix(compiler-sfc): use options module name if options provide runtimeModuleName options (#10457)
close #10454
2024-03-06 10:45:42 +08:00
Evan You f66a75ea75 release: v3.4.21 2024-02-28 12:12:15 +01:00
三咲智子 Kevin Deng 1f6a1102aa
test: clean snapshot 2024-02-28 15:19:24 +08:00
Evan You 89de26cdcd release: v3.4.20 2024-02-26 10:07:13 +08:00
renovate[bot] bcf16659c8
chore(deps): update compiler (#10322)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-26 09:16:38 +08:00
renovate[bot] 2529b97ebd
chore(deps): update all non-major dependencies (#10320)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-26 09:15:57 +08:00
Evan You 272ab9fbdc release: v3.4.19 2024-02-13 18:08:22 +08:00
Evan You df4a6e1dd8 chore(deps): bump @vue/consolidate 2024-02-13 17:42:31 +08:00
Evan You b8be99018c fix(deps): pin lru-cache to avoid hashing error
close #10300
2024-02-13 17:14:26 +08:00
Evan You 64f431aab0 release: v3.4.18 2024-02-09 10:31:29 +08:00
Evan You dfb271a293 release: v3.4.17 2024-02-09 08:38:19 +08:00
Evan You 1339330850 release: v3.4.16 2024-02-08 11:45:34 +08:00
renovate[bot] 336bb65820
fix(deps): update compiler (#10269)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-05 11:34:34 +08:00
renovate[bot] 26c79cc8fa
chore(deps): update all non-major dependencies (#10175)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-29 09:41:48 +08:00
Evan You ee4cd78a06 release: v3.4.15 2024-01-18 21:34:34 +08:00
Evan You 75e866bd4e fix(compiler-sfc): fix type resolution for symlinked node_modules structure w/ pnpm
close #10121
2024-01-18 13:52:42 +08:00
Evan You 07922dacc7 release: v3.4.14 2024-01-15 23:41:12 +08:00
renovate[bot] a557006f8e
fix(deps): update dependency postcss to ^8.4.33 (#10110)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-15 18:15:24 +08:00
三咲智子 Kevin Deng 48bf8e4c70
fix(compiler-sfc): enable prefixIdentifiers by default when reparsing on consumed AST (#10105) 2024-01-14 09:36:04 +08:00
Evan You 3a642fb95c release: v3.4.13 2024-01-13 16:03:45 +08:00
Evan You ffd0473e0f release: v3.4.12 2024-01-13 10:41:29 +08:00
Evan You fd337dddd1 release: v3.4.11 2024-01-12 22:15:16 +08:00
Evan You c60479146a dx(defineModel): warn against reference of setup scope variables in defineModel options
close #10093
2024-01-12 22:07:16 +08:00
Evan You bb6b7a297e release: v3.4.10 2024-01-11 23:04:20 +08:00
Evan You 9636357c89 release: v3.4.9 2024-01-11 18:49:05 +08:00
Evan You bceccf9e21 chore(build): rename __NODE_JS__ build flag to __CJS__ 2024-01-11 18:24:21 +08:00
Evan You 92514db708
build: add node production/development condition in package exports (#10036)
follow up of #9977
2024-01-11 18:04:32 +08:00
Evan You 8d656ce88d release: v3.4.8 2024-01-11 01:03:51 +08:00
Evan You a3725a729c release: v3.4.7 2024-01-09 18:15:03 +08:00
Evan You dc91463eb6 release: v3.4.6 2024-01-08 23:01:54 +08:00
Evan You 7bd4e90506 fix(build): revert "build: add production/development export conditions (#9977)"
This reverts commit e790e1bdd7.

close #10012
close #10020
2024-01-08 22:29:08 +08:00
Evan You 0275dd329d release: v3.4.5 2024-01-04 17:21:24 +08:00
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 ae60a91cc2 fix(compiler-sfc): fix sfc template unref rewrite for class instantiation
close #6483
close #6491
2024-01-04 15:58:13 +08:00
Daniel Roe e790e1bdd7
build: add production/development export conditions (#9977) 2024-01-04 11:24:17 +08:00
edison 7dbdb3edf0
fix(compiler-ssr): fix node clone edge case caused by AST reuse (#9983)
close #9981
2024-01-04 10:52:09 +08:00
Evan You f70f7ca9ae release: v3.4.4 2024-01-03 18:40:28 +08:00
Evan You 71d3121b72 fix(compiler-sfc): fix scss source map regression
close #9970
close #9969
2024-01-03 17:45:57 +08:00
renovate[bot] 7b8c95a43d
chore(deps): update dependency postcss-selector-parser to ^6.0.15 (#9960)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-03 17:35:34 +08:00
renovate[bot] 4331af9093
chore(deps): update all non-major dependencies (#9959)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-03 17:35:15 +08:00
Evan You d94d8d4bff fix(compiler-sfc): use compilerOptions when re-parsing consumed AST
fixes hydration error for custom elements
2024-01-02 21:38:13 +08:00
Evan You 8f85b6da44 release: v3.4.3 2023-12-30 21:34:23 +08:00
Evan You 274f6f71fc test: test case for sfc parse options cache invalidation 2023-12-30 21:09:15 +08:00
Evan You b8d58ec4f4 fix(compiler-sfc): respect sfc parse options in cache key 2023-12-30 20:38:58 +08:00
Evan You b010cb9939 release: v3.4.2 2023-12-30 19:41:35 +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 f787337b47 release: v3.4.1 2023-12-30 09:02:48 +08:00
Evan You 6fab8551e4 feat(compiler-sfc): support passing template parsing options when parsing sfc
- This is released in a patch because it is an relatively internal API
  but required to properly fix https://github.com/vitejs/vite-plugin-vue/issues/322

- `parseExpressions` is now deprecated because it can be passed using
  original template parsing options (`prefixIdentifiers`)
2023-12-30 08:44:39 +08:00
Evan You d702b66482 release: v3.4.0 2023-12-29 10:50:32 +08:00
Evan You ef90a99208 release: v3.4.0-rc.3 2023-12-27 10:15:44 +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 947aacf5ea release: v3.4.0-rc.2 2023-12-26 15:52:53 +08:00
Evan You 25c726eca8 feat(compiler-sfc): export aggregated error messages for compiler-core and compiler-dom 2023-12-26 15:06:56 +08:00
Evan You 9cbb27745d release: v3.4.0-rc.1 2023-12-25 16:42:12 +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
Evan You 7aa3f250f2 fix(compiler-core): fix parsing `<script setup>` generics with >
close #9890
2023-12-22 22:49:30 +08:00
renovate[bot] e01bb5bdaf
chore(deps): update compiler to ^7.23.6 (#9858)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-20 10:38:35 +08:00
Evan You 048dffd7ee release: v3.4.0-beta.4 2023-12-19 18:23:57 +08:00
Evan You 7c49a9c4d8 release: v3.3.13 2023-12-19 18:12:48 +08:00
Evan You 8f339ea144 chore: reuse descriptor ast in compileScript inlineTemplate mode by default 2023-12-19 18:06:04 +08:00
edison eb51b23d85
fix(compile-sfc): fix identifier prefixing edge case caused by reused AST (#9867)
close #9853
close #9863
2023-12-19 18:04:36 +08:00
Evan You 317b783a53 release: v3.4.0-beta.3 2023-12-16 14:41:29 +08:00
Evan You 4e7967f016 release: v3.3.12 2023-12-16 14:23:40 +08:00
Evan You c51ab4c765 release: v3.4.0-beta.2 2023-12-14 10:28:34 +08:00
Evan You e00b160435 release: v3.4.0-beta.1 2023-12-13 18:52:16 +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
丶远方 9d1ca320c4
refactor(compiler-sfc): avoid unnecessary switch case fallthrough (#8998) 2023-12-11 18:23:02 +08:00
三咲智子 Kevin Deng cf77435338
refactor(compiler-core): reuse unwrapTS utility function (#9795) 2023-12-11 10:46:28 +08:00
三咲智子 Kevin Deng aa954b969b
test: update snapshot 2023-12-08 18:16:22 +08:00
三咲智子 Kevin Deng 5b2bd1df78
feat(compiler-sfc): support import attributes and `using` syntax (#8786) 2023-12-08 15:22:27 +08:00
Evan You 19b590fa3a release: v3.3.11 2023-12-08 14:13:52 +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 c0d396b785 release: v3.4.0-alpha.4 2023-12-04 23:24:43 +08:00
Evan You e12b10ac3e chore: Merge branch 'main' into minor 2023-12-04 23:17:41 +08:00
Evan You d5a88ef9d7 release: v3.3.10 2023-12-04 21:42:18 +08:00
yangxiuxiu c3e2c556b5
fix(compiler-sfc): fix :where and :is selector in scoped mode with multiple selectors (#9735)
close #9707
2023-12-04 16:53:21 +08:00
renovate[bot] bf7269ac47
chore(deps): update compiler (#9745)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-04 16:43:47 +08:00
Evan You f12db7fb56 fix(compiler-sfc): avoid passing forEach index to genMap 2023-12-04 15:43:29 +08:00
edison eb5e307c0b
fix(compiler-sfc): support inferring generic types (#8511)
close #8482
2023-12-01 21:21:12 +08:00
Evan You 634519720a fix(compiler-sfc): deindent pug/jade templates
close #3231
close #3842
close #7723
2023-12-01 16:45:53 +08:00
Evan You e8bbc946cb
feat(compiler-sfc): analyze import usage in template via AST (#9729)
close #8897
close nuxt/nuxt#22416
2023-12-01 11:14:48 +08:00
edison 8d74ca0e6f
fix(compiler-sfc): generate more treeshaking friendly code (#9507)
close #9500
2023-12-01 02:52:26 +08:00
三咲智子 Kevin Deng 4936d2e11a
fix(compiler-sfc): throw error when failing to load TS during type resolution (#8883) 2023-11-30 18:41:21 +08:00
edison 5199a12f88
fix(cssVars): cssVar names should be double-escaped when generating code for ssr (#8824)
close #7823
2023-11-30 18:35:20 +08:00
Evan You 2a507e32f0 feat(compiler-sfc): bump postcss-modules to v6 2023-11-30 16:37:40 +08:00
ZHAO Jin-Xiang fff7b864f4
feat: use enum to replace const enum (#9261)
close #1228
2023-11-29 12:24:50 +08:00
Evan You 7d89887f71 release: v3.4.0-alpha.3 2023-11-28 08:26:01 +08:00
Evan You 5afd04cbb8 chore: Merge branch 'main' into minor 2023-11-28 08:14:04 +08:00
renovate[bot] 3a65134360
chore(deps): update all non-major dependencies (#9682)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-28 08:03:07 +08:00
renovate[bot] 31f6ebc4df
fix(deps): update compiler to ^7.23.4 (#9681)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-28 08:02:38 +08:00