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
Evan You
ebaeb2e0aa
release: v3.4.0-alpha.2
2023-11-27 17:26:22 +08:00
Evan You
fb619cf9a4
fix(compiler-sfc): fix ast reuse for ssr
2023-11-27 15:38:30 +08:00
Evan You
678378afd5
fix(compiler-sfc): use correct compiler when re-parsing in ssr mode
2023-11-27 15:06:07 +08:00
Evan You
2e65ea481f
fix(compiler-core): fix line/column tracking when fast forwarding
2023-11-27 14:49:13 +08:00
Evan You
50cde7cfbc
perf(compiler-sfc): use faster source map addMapping
2023-11-27 14:42:12 +08:00
Evan You
f15d2f6cf6
perf: avoid sfc source map unnecessary serialization and parsing
2023-11-27 12:26:51 +08:00
Evan You
08f0baa2ad
refactor: preserve source location convention in sfc mode for base parser
...
For compatibility w/ usage like https://github.com/vue-macros/vue-macros/blob/main/packages/setup-block/src/core/index.ts
2023-11-25 18:07:29 +08:00
Evan You
ceec69c8cc
fix: avoid confusing breakage in @vitejs/plugin-vue
2023-11-25 16:39:42 +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
Evan You
79d3cc6cec
wip: should not reuse AST when using custom compiler
2023-11-25 16:18:29 +08:00
Evan You
b6886a80b1
wip: force re-parse on reused sfc template ast
2023-11-25 16:18:29 +08:00
Evan You
b59eabdc0d
refactor: use more efficient walk for importUsageCheck
2023-11-25 16:18:29 +08:00
Evan You
37f9d3da8f
wip: compiler-sfc should not attach ast on template with src import
2023-11-25 16:18:29 +08:00
Evan You
e5afca6c1e
wip: treat template with preprocessor as plain text
2023-11-25 16:18:29 +08:00
Evan You
5fc695be26
wip: support reusing template ast from sfc descriptor
2023-11-25 16:18:29 +08:00
Evan You
059caafc13
wip: pass all compiler-sfc tests
2023-11-25 16:18:29 +08:00
Evan You
a60ad9180d
refactor: swap to new template parser
...
- get rid of SourceLocation.source for memory efficiency
- move source location generation logic transform phase into the parser
itself so that SourceLocation.source is no longer needed
- move v-for expression parsing into the parser itself
- added nameLoc on AttributeNode for use in transformElement
Tests are not passing yet.
2023-11-25 16:18:29 +08:00
Evan You
069f838691
release: v3.3.9
2023-11-25 16:11:31 +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
Evan You
1ea775633d
chore: Merge branch 'main' into minor
2023-11-21 09:48:26 +08:00
Evan You
8fddb19c3a
workflow: use workspace deps
2023-11-21 09:22:12 +08:00
renovate[bot]
32fb79df41
chore(deps): update all non-major dependencies ( #9636 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-20 17:38:13 +08:00
renovate[bot]
16a6438236
chore(deps): update lint ( #9627 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-18 10:33:24 +08:00
三咲智子 Kevin Deng
83e618f316
docs: replace rollup-plugin-vue with vite version
2023-11-15 21:43:18 +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
renovate[bot]
e422023686
chore(deps): update compiler to ^7.23.3 ( #9590 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-13 15:45:51 +08:00
renovate[bot]
2b00fd9ad2
chore(deps): update all non-major dependencies ( #9589 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-13 15:45:29 +08:00
Cong
3227e50b32
fix(compiler-sfc): support `:is` and `:where` selector in scoped css rewrite ( #8929 )
2023-11-10 16:44:53 +08:00
Cong
c6083dcad3
fix(compiler-sfc): support `:is` and `:where` selector in scoped css rewrite ( #8929 )
2023-11-10 16:44:08 +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
Tycho
d5fd343555
refactor(compiler-sfc): reuse `forAliasRE` regex from compiler-core ( #9568 )
2023-11-10 14:22:00 +08:00
丶远方
9d0eba916f
fix(compiler-core): fix `resolveParserPlugins` decorators check ( #9566 )
...
close #9560
2023-11-09 14:32:08 +08:00
Evan You
bc5846939c
release: v3.3.8
2023-11-06 18:54:26 +08:00
edison
b39fa1f815
fix(compiler-sfc): fix dynamic directive arguments usage check for slots ( #9495 )
...
close #9493
2023-11-06 17:46:48 +08:00
Evan You
462aeb3b60
fix(types): avoid exposing lru-cache types in generated dts
...
close #9521
2023-11-06 17:36:02 +08:00
zhiyuanzmj
26399aa6fa
feat(compiler-core): support v-bind shorthand for key and value with the same name ( #9451 )
2023-11-02 17:48:11 +08:00
renovate[bot]
d261ad73ae
chore(deps): update all non-major dependencies ( #9501 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-31 22:07:38 +08:00
木杉
a9893458ec
fix(compile-sfc): support `Error` type in `defineProps` ( #5955 )
2023-10-30 15:45:58 +08:00
Evan You
3c828f3cfb
release: v3.4.0-alpha.1
2023-10-28 11:33:46 +09:00
三咲智子 Kevin Deng
9e77580c0c
feat(compiler-sfc): expose resolve type-based props and emits ( #8874 )
2023-10-27 23:28:40 +09:00
Evan You
1789c1caac
release: v3.3.7
2023-10-25 07:35:08 +08:00
Evan You
733437691f
fix(hmr): fix hmr error for hoisted children array in v-for
...
fix #6978
close #7114
2023-10-21 21:08:49 +08:00
edison
c568778ea3
fix(compiler-sfc): avoid gen useCssVars when targeting SSR ( #6979 )
...
close #6926
2023-10-21 12:11:41 +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
Evan You
a09ed44446
release: v3.3.6
2023-10-20 21:04:11 +08:00
三咲智子 Kevin Deng
df81da8be9
fix(compiler-sfc): model name conflict ( #8798 )
2023-10-20 17:36:36 +08:00
Jeff Tian
36c99a9c6b
fix(compiler-sfc): support asset paths containing spaces ( #8752 )
...
By decoding them before generating them as JavaScript import paths
fix https://github.com/vuejs/vitepress/issues/2596
fix https://github.com/vuejs/vitepress/issues/573
2023-10-20 15:49:58 +08:00
三咲智子 Kevin Deng
f0ef0425b8
chore: remove @types/estree ( #9158 )
2023-10-20 15:40:32 +08:00
Evan You
5ebb459fc7
release: v3.3.5
2023-10-20 11:50:49 +08:00
dependabot[bot]
13d8b060c1
chore: bump postcss from 8.4.30 to 8.4.31 ( #9354 )
...
Bumps [postcss](https://github.com/postcss/postcss ) from 8.4.30 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases )
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md )
- [Commits](https://github.com/postcss/postcss/compare/8.4.30...8.4.31 )
---
updated-dependencies:
- dependency-name: postcss
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-20 10:56:44 +08:00
renovate[bot]
93b79e6314
chore(deps): update compiler ( #9322 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-20 10:46:13 +08:00
renovate[bot]
2ac90512ac
chore(deps): update all non-major dependencies ( #9286 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-20 10:45:54 +08:00
Evan You
f5a253f69f
chore(deps): update lru-cache to v10
...
ref #9267
2023-10-20 10:38:41 +08:00
renovate[bot]
021a47ac02
chore(deps): update compiler ( #9157 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2023-09-20 11:16:58 -05:00
renovate[bot]
8b44316118
chore(deps): update all non-major dependencies ( #9180 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-19 15:33:33 +08:00
三咲智子 Kevin Deng
623ba514ec
chore: format code
2023-08-11 17:30:04 +08:00
三咲智子 Kevin Deng
70c3ac746d
dx(compiler-sfc): warn when disabled defineModel ( #8534 )
2023-07-12 11:05:43 +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
Artyom Tuchkov
e404a699f4
fix(compiler-sfc): handle dynamic directive arguments in template usage check ( #8538 )
...
close #8537
2023-07-11 18:38:27 +08:00
白雾三语
701fa735fc
dx(compiler-sfc): enhance `:deep` warnings ( #8328 )
...
close #8313
2023-07-11 17:36:54 +08:00
vaakian X
776ebf25b2
fix(compiler-sfc): fix using imported ref as template ref during dev ( #7593 )
...
close #7567
2023-07-11 17:26:31 +08:00
Eavan
381b4977af
fix(compiler-sfc): ignore style v-bind in double slash comments ( #5409 )
2023-07-10 17:56:26 +08:00
zouhang
d6446a6d40
fix(compiler-sfc): pass options directly to stylus ( #3848 )
2023-07-10 17:52:56 +08:00
Evan You
ae7453f0f1
chore: use moduleResolution: bundler + shim estree-walker
2023-06-23 08:54:25 +08:00
Evan You
d2c3d8b70b
perf(compiler-sfc): lazy require typescript
2023-06-15 16:38:44 +08:00
Cédric Exbrayat
fd1a3f9599
fix(compiler-sfc): typo in experimental feature warnings ( #8513 )
2023-06-10 17:17:21 +08:00
Vadim
23c81691d9
chore: fix typo ( #7416 )
2023-06-10 17:10:20 +08:00
Evan You
372ec35482
chore: mark reactivity transform apis as deprecated
2023-05-19 08:26:44 +08:00
丶远方
702711e771
chore(compiler-sfc): break in switch statement ( #8347 )
2023-05-19 07:46:39 +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
0e8bbe873e
release: v3.3.4
2023-05-18 16:31:03 +08:00
Evan You
5aec717a24
fix(compiler-sfc): handle imported types from default exports
...
close #8355
2023-05-18 16:15:27 +08:00
Evan You
fecd5c4044
release: v3.3.3
2023-05-18 13:10:52 +08:00
白雾三语
ecbd42a144
fix(compiler-sfc): parses correctly when inline mode is off ( #8337 )
...
close #6088
2023-05-18 13:07:08 +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
Kalven Schraut
f69dbabf87
fix(compiler-sfc): fix props destructing default value type checking with unresolved type ( #8340 )
...
close #8326
2023-05-17 09:59:49 +08:00
Evan You
a374d7e6ed
release: v3.3.2
2023-05-12 13:25:05 +01: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
Evan You
574c83b522
refactor(compiler-sfc): move prop key escape logic to utils
2023-05-12 11:26:33 +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
6e1966a92f
release: v3.3.1
2023-05-11 09:00:14 +01:00
Evan You
483a4e7e3b
release: v3.3.0
2023-05-11 08:44:38 +01:00
Evan You
847658b7a2
release: v3.3.0-beta.5
2023-05-08 16:40:41 +08:00
Haoqun Jiang
287bd99994
fix(compiler-sfc): transform destructured props when reactivity transform option is enabled ( #8252 )
...
fixup 862edfd91a
2023-05-08 15:27:28 +08:00
LiuSeen
8ccc570022
chore(compileScript): remove unused methods ( #8211 )
2023-05-08 14:43:39 +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
862edfd91a
fix(compiler-sfc): enable props destructure when reactivity transform option is enabled
...
...to retain backwards compatible behavior before removal
2023-05-06 16:55:38 +08:00
Evan You
cc09cc7e28
release: v3.3.0-beta.4
2023-05-05 17:15:14 +08:00
Evan You
d40d4a3380
chore: experimental warnings for reactive props destructure and defineModel
2023-05-02 16:23:02 +08:00
Evan You
bff63c5498
feat(types): provide ExtractPublicPropTypes utility type
...
ref #5272
close #8168
2023-05-02 11:06:32 +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
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
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
7b2ff1e207
chore: remove deprecated ref sugar warning
2023-04-21 15:54:51 +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
d53e157805
fix(compiler-sfc): handle type merging + fix namespace access when inferring type
...
close #8102
2023-04-20 14:13:08 +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
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
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
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
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
三咲智子 Kevin Deng
14f3d747a3
feat(sfc): introduce `defineModel` macro and `useModel` helper ( #8018 )
2023-04-08 12:13:05 +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
-isum
3ccbea08e0
fix(compiler-sfc): accept `StringLiteral` node in `defineEmit` tuple syntax ( #8041 )
...
close #8040
2023-04-06 17:13:34 +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
b2c874e3b9
refactor(compiler-sfc): move related files into separate directories
2023-04-05 16:35:10 +08:00
Evan You
036914c10b
release: v3.3.0-alpha.8
2023-04-04 18:23:06 +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
Roland Hummel
c346af2b6a
docs: comments on reactivity functions ( fixes #4832 ) ( #4836 )
...
close #4832
2023-03-31 17:06:10 +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
8ac0620c1b
release: v3.3.0-alpha.6
2023-03-30 18:22:42 +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
三咲智子 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
三咲智子 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
三咲智子 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
efb54e7315
feat(sfc): deprecate reactivity transform
2023-03-27 21:01:36 +08:00
Evan You
27e1e38641
release: v3.3.0-alpha.5
2023-03-26 16:52:46 +08:00
Evan You
e60ebd07a4
chore: bump vite & vitest
2023-03-23 16:36:33 +08: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
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