]> git.ipfire.org Git - thirdparty/vuejs/core.git/log
thirdparty/vuejs/core.git
19 months agorefactor(compiler-core): reuse unwrapTS utility function (#9795)
三咲智子 Kevin Deng [Mon, 11 Dec 2023 02:46:28 +0000 (10:46 +0800)] 
refactor(compiler-core): reuse unwrapTS utility function (#9795)

19 months agofeat(types): expose `DefineProps` type
三咲智子 Kevin Deng [Fri, 8 Dec 2023 16:34:28 +0000 (00:34 +0800)] 
feat(types): expose `DefineProps` type

19 months agochore: fix types
Evan You [Fri, 8 Dec 2023 14:34:47 +0000 (22:34 +0800)] 
chore: fix types

19 months agofeat(types): add emits and slots type to `FunctionalComponent` (#8644)
三咲智子 Kevin Deng [Fri, 8 Dec 2023 14:24:58 +0000 (22:24 +0800)] 
feat(types): add emits and slots type to `FunctionalComponent` (#8644)

19 months agofeat(types): provide ComponentInstance type (#5408)
Carlos Rodrigues [Fri, 8 Dec 2023 14:24:38 +0000 (14:24 +0000)] 
feat(types): provide ComponentInstance type (#5408)

19 months agofeat(types): expose `PublicProps` type (#2403)
Carlos Rodrigues [Fri, 8 Dec 2023 14:17:46 +0000 (14:17 +0000)] 
feat(types): expose `PublicProps` type (#2403)

19 months agofeat: MathML support (#7836)
Fabian Gündel [Fri, 8 Dec 2023 10:25:01 +0000 (11:25 +0100)] 
feat: MathML support (#7836)

close #7820

19 months agofeat(ssr): add `__VUE_PROD_HYDRATION_MISMATCH_DETAILS__` feature flag (#9550)
Divyansh Singh [Fri, 8 Dec 2023 08:41:15 +0000 (14:11 +0530)] 
feat(ssr): add `__VUE_PROD_HYDRATION_MISMATCH_DETAILS__` feature flag (#9550)

19 months agofeat(ssr): improve ssr hydration mismatch checks (#5953)
Evan You [Fri, 8 Dec 2023 07:49:09 +0000 (15:49 +0800)] 
feat(ssr): improve ssr hydration mismatch checks (#5953)

- Include the actual element in the warning message
- Also warn class/style/attribute mismatches

Note: class/style/attribute mismatches are check-only and will not be
rectified.

close #5063

19 months agofeat(compiler-core): add current filename to TransformContext (#8950)
Adrien Foulon [Fri, 8 Dec 2023 07:23:50 +0000 (08:23 +0100)] 
feat(compiler-core): add current filename to TransformContext (#8950)

19 months agofeat(compiler-sfc): support import attributes and `using` syntax (#8786)
三咲智子 Kevin Deng [Fri, 8 Dec 2023 07:22:27 +0000 (15:22 +0800)] 
feat(compiler-sfc): support import attributes and `using` syntax (#8786)

19 months agofix(compiler-core): use the same resolved options for all compile stages (#9760)
三咲智子 Kevin Deng [Wed, 6 Dec 2023 06:41:21 +0000 (14:41 +0800)] 
fix(compiler-core): use the same resolved options for all compile stages (#9760)

19 months agofeat(runtime-core): provide full props to props validator functions (#3258)
nandi95 [Tue, 5 Dec 2023 09:14:17 +0000 (09:14 +0000)] 
feat(runtime-core): provide full props to props validator functions (#3258)

19 months agochore: Merge branch 'main' into minor
Evan You [Tue, 5 Dec 2023 02:54:20 +0000 (10:54 +0800)] 
chore: Merge branch 'main' into minor

19 months agochore(deps): bump vitest to 1.0
Evan You [Tue, 5 Dec 2023 02:47:38 +0000 (10:47 +0800)] 
chore(deps): bump vitest to 1.0

19 months agochore(playground): expose esm-browser files (#9725)
Carlos Rodrigues [Mon, 4 Dec 2023 19:08:21 +0000 (19:08 +0000)] 
chore(playground): expose esm-browser files (#9725)

19 months agorelease: v3.4.0-alpha.4 v3.4.0-alpha.4
Evan You [Mon, 4 Dec 2023 15:24:43 +0000 (23:24 +0800)] 
release: v3.4.0-alpha.4

19 months agochore: Merge branch 'main' into minor
Evan You [Mon, 4 Dec 2023 15:17:41 +0000 (23:17 +0800)] 
chore: Merge branch 'main' into minor

19 months agofix(parser): fix interpolation parsing in v-pre
Evan You [Mon, 4 Dec 2023 15:06:56 +0000 (23:06 +0800)] 
fix(parser): fix interpolation parsing in v-pre

ref: https://github.com/vuejs/docs/issues/2586

19 months agorelease: v3.3.10 v3.3.10
Evan You [Mon, 4 Dec 2023 13:42:18 +0000 (21:42 +0800)] 
release: v3.3.10

19 months agofix(compiler-sfc): fix :where and :is selector in scoped mode with multiple selectors...
yangxiuxiu [Mon, 4 Dec 2023 08:53:21 +0000 (16:53 +0800)] 
fix(compiler-sfc): fix :where and :is selector in scoped mode with multiple selectors (#9735)

close #9707

19 months agochore(deps): update compiler (#9745)
renovate[bot] [Mon, 4 Dec 2023 08:43:47 +0000 (16:43 +0800)] 
chore(deps): update compiler (#9745)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
19 months agofix(app): prevent template from being cached between apps with different options...
Carlos Rodrigues [Mon, 4 Dec 2023 08:43:30 +0000 (08:43 +0000)] 
fix(app): prevent template from being cached between apps with different options (#9724)

close #9618

19 months agochore(deps): update all non-major dependencies (#9744)
renovate[bot] [Mon, 4 Dec 2023 08:42:40 +0000 (16:42 +0800)] 
chore(deps): update all non-major dependencies (#9744)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
19 months agochore: fix typos in CHANGELOG.md (#9746) [ci skip]
xiaoming young [Mon, 4 Dec 2023 08:42:24 +0000 (16:42 +0800)] 
chore: fix typos in CHANGELOG.md (#9746) [ci skip]

19 months agofix(runtime-core): Suspense get anchor properly in Transition (#9309)
edison [Mon, 4 Dec 2023 08:41:55 +0000 (16:41 +0800)] 
fix(runtime-core): Suspense get anchor properly in Transition (#9309)

close #8105

19 months agofix(compiler-sfc): avoid passing forEach index to genMap
Evan You [Mon, 4 Dec 2023 07:43:29 +0000 (15:43 +0800)] 
fix(compiler-sfc): avoid passing forEach index to genMap

19 months agofix(types): improve return type withKeys and withModifiers (#9734)
Carlos Rodrigues [Sun, 3 Dec 2023 23:59:01 +0000 (23:59 +0000)] 
fix(types): improve return type withKeys and withModifiers (#9734)

19 months agochore(template-explorer): fix overflow screen problem (#7282) [ci skip]
Reii [Fri, 1 Dec 2023 13:28:48 +0000 (21:28 +0800)] 
chore(template-explorer): fix overflow screen problem (#7282) [ci skip]

19 months agofix(compiler-sfc): support inferring generic types (#8511)
edison [Fri, 1 Dec 2023 13:21:12 +0000 (21:21 +0800)] 
fix(compiler-sfc): support inferring generic types (#8511)

close #8482

19 months agofix(compiler-sfc): deindent pug/jade templates
Evan You [Fri, 1 Dec 2023 08:45:53 +0000 (16:45 +0800)] 
fix(compiler-sfc): deindent pug/jade templates

close #3231
close #3842
close #7723

19 months agofix(ssr): avoid computed being accidentally cached before server render (#9688)
edison [Fri, 1 Dec 2023 07:54:40 +0000 (15:54 +0800)] 
fix(ssr): avoid computed being accidentally cached before server render (#9688)

close #5300

19 months agochore: remove v-is deprecation enum
Evan You [Fri, 1 Dec 2023 03:57:22 +0000 (11:57 +0800)] 
chore: remove v-is deprecation enum

support is already removed during parser rewrite

19 months agofeat(compiler): lift vnode hooks deprecation warning to error
Evan You [Fri, 1 Dec 2023 03:56:29 +0000 (11:56 +0800)] 
feat(compiler): lift vnode hooks deprecation warning to error

19 months agochore: remove deprecated AppConfig.unwrapInjectedRef option
Evan You [Fri, 1 Dec 2023 03:32:05 +0000 (11:32 +0800)] 
chore: remove deprecated AppConfig.unwrapInjectedRef option

19 months agofeat(compiler-sfc): analyze import usage in template via AST (#9729)
Evan You [Fri, 1 Dec 2023 03:14:48 +0000 (11:14 +0800)] 
feat(compiler-sfc): analyze import usage in template via AST (#9729)

close #8897
close nuxt/nuxt#22416

19 months agofix(compiler-sfc): generate more treeshaking friendly code (#9507)
edison [Thu, 30 Nov 2023 18:52:26 +0000 (02:52 +0800)] 
fix(compiler-sfc): generate more treeshaking friendly code (#9507)

close #9500

19 months agochore(dx): improve color contrast in dark mode for custom formatter (#8704)
花果山大圣 [Thu, 30 Nov 2023 18:45:03 +0000 (02:45 +0800)] 
chore(dx): improve color contrast in dark mode for custom formatter (#8704)

19 months agochore: improve comment readability (#8598) [ci skip]
Abhay Chauhan [Thu, 30 Nov 2023 18:43:56 +0000 (00:13 +0530)] 
chore: improve comment readability (#8598) [ci skip]

19 months agofix(types): expose emits as props in functional components (#9234)
Blake Newman [Thu, 30 Nov 2023 18:37:51 +0000 (18:37 +0000)] 
fix(types): expose emits as props in functional components (#9234)

19 months agofix(types): fix reactive collection types (#8960)
三咲智子 Kevin Deng [Thu, 30 Nov 2023 18:33:09 +0000 (02:33 +0800)] 
fix(types): fix reactive collection types (#8960)

close #8904

19 months agochore: group parser edge case tests
Evan You [Thu, 30 Nov 2023 14:39:55 +0000 (22:39 +0800)] 
chore: group parser edge case tests

19 months agochore(playground): use CodeMirror during local dev
Evan You [Thu, 30 Nov 2023 13:44:28 +0000 (21:44 +0800)] 
chore(playground): use CodeMirror during local dev

19 months agoperf(v-on): constant handlers with modifiers should not be treated as dynamic
Evan You [Thu, 30 Nov 2023 11:26:36 +0000 (19:26 +0800)] 
perf(v-on): constant handlers with modifiers should not be treated as dynamic

19 months agoperf(runtime-dom): cache modifier wrapper functions
Evan You [Thu, 30 Nov 2023 11:00:00 +0000 (19:00 +0800)] 
perf(runtime-dom): cache modifier wrapper functions

close #8882

19 months agofix(compiler-sfc): throw error when failing to load TS during type resolution (#8883)
三咲智子 Kevin Deng [Thu, 30 Nov 2023 10:41:21 +0000 (18:41 +0800)] 
fix(compiler-sfc): throw error when failing to load TS during type resolution (#8883)

19 months agofix(cssVars): cssVar names should be double-escaped when generating code for ssr...
edison [Thu, 30 Nov 2023 10:35:20 +0000 (18:35 +0800)] 
fix(cssVars): cssVar names should be double-escaped when generating code for ssr (#8824)

close #7823

19 months agochore: fix width/height check condition
Evan You [Thu, 30 Nov 2023 10:33:53 +0000 (18:33 +0800)] 
chore: fix width/height check condition

19 months agofix(compiler-sfc): support resolving components from props (#8785)
edison [Thu, 30 Nov 2023 10:03:23 +0000 (18:03 +0800)] 
fix(compiler-sfc): support resolving components from props (#8785)

19 months agochore: optimize widht/height element check
Evan You [Thu, 30 Nov 2023 09:59:27 +0000 (17:59 +0800)] 
chore: optimize widht/height element check

19 months agoperf: optimize on* prop check
Evan You [Thu, 30 Nov 2023 09:51:58 +0000 (17:51 +0800)] 
perf: optimize on* prop check

19 months agofix(runtime-dom): set width/height with units as attribute (#8781)
zhoulixiang [Thu, 30 Nov 2023 09:27:23 +0000 (17:27 +0800)] 
fix(runtime-dom): set width/height with units as attribute (#8781)

Technically, width / height on `<img>`, `<video>` etc must be integers and cannot contain units. When set as a DOM property, the DOM force converts strings with units to 0. However, this is such a common mistake that most browsers nowadays supports such usage, and it makes sense for Vue to at least let it be set as an attribute.

19 months agofeat(compiler-core): support accessing Error as global in template expressions (...
Eduardo San Martin Morote [Thu, 30 Nov 2023 08:39:40 +0000 (09:39 +0100)] 
feat(compiler-core): support accessing Error as global in template expressions (#7018)

19 months agochore(deps): update dependency puppeteer to ~21.5.2 (#9637)
renovate[bot] [Thu, 30 Nov 2023 08:38:33 +0000 (16:38 +0800)] 
chore(deps): update dependency puppeteer to ~21.5.2 (#9637)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
19 months agofeat(compiler-sfc): bump postcss-modules to v6
Evan You [Thu, 30 Nov 2023 08:37:17 +0000 (16:37 +0800)] 
feat(compiler-sfc): bump postcss-modules to v6

19 months agochore: improve typing for scripts (#9709)
ZHAO Jin-Xiang [Thu, 30 Nov 2023 06:17:51 +0000 (14:17 +0800)] 
chore: improve typing for scripts (#9709)

19 months agochore: bump @vue/repl
Evan You [Thu, 30 Nov 2023 05:11:27 +0000 (13:11 +0800)] 
chore: bump @vue/repl

19 months agofix(compiler-core): fix referencing typo (#9708)
ZHAO Jin-Xiang [Wed, 29 Nov 2023 13:15:44 +0000 (21:15 +0800)] 
fix(compiler-core): fix referencing typo (#9708)

19 months agochore: fix typo (#9689)
edison [Wed, 29 Nov 2023 04:26:10 +0000 (12:26 +0800)] 
chore: fix typo (#9689)

19 months agofeat: use enum to replace const enum (#9261)
ZHAO Jin-Xiang [Wed, 29 Nov 2023 04:24:50 +0000 (12:24 +0800)] 
feat: use enum to replace const enum (#9261)

close #1228

19 months agofix(parser): properly set initial inXML state based on root ns
Evan You [Tue, 28 Nov 2023 10:37:17 +0000 (18:37 +0800)] 
fix(parser): properly set initial inXML state based on root ns

19 months agofix(parser): should reset inRCDATA state
Evan You [Tue, 28 Nov 2023 10:31:17 +0000 (18:31 +0800)] 
fix(parser): should reset inRCDATA state

19 months agorelease: v3.4.0-alpha.3 v3.4.0-alpha.3
Evan You [Tue, 28 Nov 2023 00:26:01 +0000 (08:26 +0800)] 
release: v3.4.0-alpha.3

19 months agochore: Merge branch 'main' into minor
Evan You [Tue, 28 Nov 2023 00:14:04 +0000 (08:14 +0800)] 
chore: Merge branch 'main' into minor

19 months agochore(deps): update dependency @typescript-eslint/parser to ^6.13.0 (#9683)
renovate[bot] [Tue, 28 Nov 2023 00:10:11 +0000 (08:10 +0800)] 
chore(deps): update dependency @typescript-eslint/parser to ^6.13.0 (#9683)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
19 months agochore(deps): update all non-major dependencies (#9682)
renovate[bot] [Tue, 28 Nov 2023 00:03:07 +0000 (08:03 +0800)] 
chore(deps): update all non-major dependencies (#9682)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
19 months agofix(deps): update compiler to ^7.23.4 (#9681)
renovate[bot] [Tue, 28 Nov 2023 00:02:38 +0000 (08:02 +0800)] 
fix(deps): update compiler to ^7.23.4 (#9681)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
19 months agofeat(dx): link errors to docs in prod build (#9165)
三咲智子 Kevin Deng [Mon, 27 Nov 2023 23:38:36 +0000 (07:38 +0800)] 
feat(dx): link errors to docs in prod build (#9165)

19 months agofix(parser): directive arg should be undefined on shorthands with no arg
Evan You [Mon, 27 Nov 2023 10:10:00 +0000 (18:10 +0800)] 
fix(parser): directive arg should be undefined on shorthands with no arg

19 months agorelease: v3.4.0-alpha.2 v3.4.0-alpha.2
Evan You [Mon, 27 Nov 2023 09:26:22 +0000 (17:26 +0800)] 
release: v3.4.0-alpha.2

19 months agofeat(compiler): improve parsing tolerance for language-tools
Evan You [Mon, 27 Nov 2023 08:55:54 +0000 (16:55 +0800)] 
feat(compiler): improve parsing tolerance for language-tools

19 months agochore: Merge branch 'main' into minor
Evan You [Mon, 27 Nov 2023 07:59:07 +0000 (15:59 +0800)] 
chore: Merge branch 'main' into minor

19 months agofix(compiler-sfc): fix ast reuse for ssr
Evan You [Mon, 27 Nov 2023 07:38:30 +0000 (15:38 +0800)] 
fix(compiler-sfc): fix ast reuse for ssr

19 months agofix(compiler-sfc): use correct compiler when re-parsing in ssr mode
Evan You [Mon, 27 Nov 2023 07:06:07 +0000 (15:06 +0800)] 
fix(compiler-sfc): use correct compiler when re-parsing in ssr mode

19 months agofix(compiler-core): fix line/column tracking when fast forwarding
Evan You [Mon, 27 Nov 2023 06:49:13 +0000 (14:49 +0800)] 
fix(compiler-core): fix line/column tracking when fast forwarding

19 months agoperf(compiler-sfc): use faster source map addMapping
Evan You [Mon, 27 Nov 2023 06:42:12 +0000 (14:42 +0800)] 
perf(compiler-sfc): use faster source map addMapping

19 months agochore: use MappingItem type
Evan You [Mon, 27 Nov 2023 06:16:16 +0000 (14:16 +0800)] 
chore: use MappingItem type

19 months agoperf: avoid sfc source map unnecessary serialization and parsing
Evan You [Mon, 27 Nov 2023 04:18:01 +0000 (12:18 +0800)] 
perf: avoid sfc source map unnecessary serialization and parsing

19 months agorefactor: restore isSelfClosing as optional property
Evan You [Sat, 25 Nov 2023 14:55:39 +0000 (22:55 +0800)] 
refactor: restore isSelfClosing as optional property

19 months agochore: fix tests with rawExp
Evan You [Sat, 25 Nov 2023 14:50:40 +0000 (22:50 +0800)] 
chore: fix tests with rawExp

19 months agorefactor: restore SourceLocation.source
Evan You [Sat, 25 Nov 2023 11:22:39 +0000 (19:22 +0800)] 
refactor: restore SourceLocation.source

this is used extensively in @vue/language-tools and does not have
noticeable impact on performance

19 months agorefactor: preserve source location convention in sfc mode for base parser
Evan You [Sat, 25 Nov 2023 10:07:17 +0000 (18:07 +0800)] 
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

19 months agochore: remove isSelfClosing property
Evan You [Sat, 25 Nov 2023 10:03:22 +0000 (18:03 +0800)] 
chore: remove isSelfClosing property

19 months agofix: avoid confusing breakage in @vitejs/plugin-vue
Evan You [Sat, 25 Nov 2023 08:39:30 +0000 (16:39 +0800)] 
fix: avoid confusing breakage in @vitejs/plugin-vue

19 months agochore: restructure parser files
Evan You [Fri, 24 Nov 2023 13:53:35 +0000 (21:53 +0800)] 
chore: restructure parser files

19 months agoperf(codegen): optimize source map generation
Evan You [Fri, 24 Nov 2023 12:48:12 +0000 (20:48 +0800)] 
perf(codegen): optimize source map generation

19 months agoperf(codegen): optimize line / column calculation during codegen
Evan You [Thu, 23 Nov 2023 16:58:47 +0000 (00:58 +0800)] 
perf(codegen): optimize line / column calculation during codegen

Previously, many CodegenContext.push() calls were unnecessarily
iterating through the entire pushed string to find newlines, when we
already know the newline positions for most of calls. Providing fast
paths for these calls significantly improves codegen performance when
source map is needed.

In benchmarks, this PR improves full SFC compilation performance by ~6%.

19 months agoperf(compiler-sfc): remove magic-string trim on script
Evan You [Thu, 23 Nov 2023 15:18:23 +0000 (23:18 +0800)] 
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.

19 months agoperf: optimize position cloning
Evan You [Thu, 23 Nov 2023 15:07:51 +0000 (23:07 +0800)] 
perf: optimize position cloning

19 months agowip: should not reuse AST when using custom compiler
Evan You [Wed, 22 Nov 2023 09:00:39 +0000 (17:00 +0800)] 
wip: should not reuse AST when using custom compiler

19 months agowip: parser v2 compat
Evan You [Wed, 22 Nov 2023 07:19:06 +0000 (15:19 +0800)] 
wip: parser v2 compat

19 months agochore: document rationale for ignoring some parsing errors
Evan You [Wed, 22 Nov 2023 06:04:31 +0000 (14:04 +0800)] 
chore: document rationale for ignoring some parsing errors

19 months agowip: shorten some method names
Evan You [Wed, 22 Nov 2023 06:01:20 +0000 (14:01 +0800)] 
wip: shorten some method names

19 months agowip: parse error tests
Evan You [Wed, 22 Nov 2023 05:58:50 +0000 (13:58 +0800)] 
wip: parse error tests

19 months agowip: force re-parse on reused sfc template ast
Evan You [Tue, 21 Nov 2023 14:28:06 +0000 (22:28 +0800)] 
wip: force re-parse on reused sfc template ast

19 months agowip: should parse sfc template with lang=html
Evan You [Tue, 21 Nov 2023 14:27:35 +0000 (22:27 +0800)] 
wip: should parse sfc template with lang=html

19 months agorefactor: use more efficient walk for importUsageCheck
Evan You [Tue, 21 Nov 2023 14:10:00 +0000 (22:10 +0800)] 
refactor: use more efficient walk for importUsageCheck

19 months agowip: compiler-sfc should not attach ast on template with src import
Evan You [Tue, 21 Nov 2023 14:09:38 +0000 (22:09 +0800)] 
wip: compiler-sfc should not attach ast on template with src import

19 months agorefactor: better naming for baseCompile argument
Evan You [Tue, 21 Nov 2023 14:08:49 +0000 (22:08 +0800)] 
refactor: better naming for baseCompile argument

19 months agorefactor: fix v-bind no-exp shorthand for new parser
Evan You [Tue, 21 Nov 2023 10:37:47 +0000 (18:37 +0800)] 
refactor: fix v-bind no-exp shorthand for new parser