]> git.ipfire.org Git - thirdparty/vuejs/core.git/log
thirdparty/vuejs/core.git
19 months agorefactor: codegen indent
三咲智子 Kevin Deng [Fri, 1 Dec 2023 14:45:08 +0000 (22:45 +0800)] 
refactor: codegen indent

19 months agofeat: push codegen
三咲智子 Kevin Deng [Fri, 1 Dec 2023 14:12:19 +0000 (22:12 +0800)] 
feat: push codegen

19 months agorefactor(compiler-vapor): import alias
三咲智子 Kevin Deng [Fri, 1 Dec 2023 00:26:01 +0000 (08:26 +0800)] 
refactor(compiler-vapor): import alias

19 months agoMerge remote-tracking branch 'upstream/minor'
三咲智子 Kevin Deng [Fri, 1 Dec 2023 00:16:50 +0000 (08:16 +0800)] 
Merge remote-tracking branch 'upstream/minor'

19 months agorefactor(compiler-vapor): errors
三咲智子 Kevin Deng [Fri, 1 Dec 2023 00:05:43 +0000 (08:05 +0800)] 
refactor(compiler-vapor): errors

19 months agofeat(compiler-vapor): node transform
三咲智子 Kevin Deng [Thu, 30 Nov 2023 23:34:18 +0000 (07:34 +0800)] 
feat(compiler-vapor): node transform

19 months agofeat: codegen context
三咲智子 Kevin Deng [Thu, 30 Nov 2023 21:18:20 +0000 (05:18 +0800)] 
feat: codegen context

19 months agofix(compiler-vapor): prefix identifiers
三咲智子 Kevin Deng [Thu, 30 Nov 2023 21:17:19 +0000 (05:17 +0800)] 
fix(compiler-vapor): prefix identifiers

19 months agostyle: format
三咲智子 Kevin Deng [Thu, 30 Nov 2023 17:28:16 +0000 (01:28 +0800)] 
style: format

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 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 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 agorefactor(playground): extract vite-hyper-config
三咲智子 Kevin Deng [Thu, 30 Nov 2023 00:09:44 +0000 (08:09 +0800)] 
refactor(playground): extract vite-hyper-config

19 months agorefactor(playground): extract logic
三咲智子 Kevin Deng [Wed, 29 Nov 2023 21:54:27 +0000 (05:54 +0800)] 
refactor(playground): extract logic

19 months agochore: update todo
三咲智子 Kevin Deng [Wed, 29 Nov 2023 21:40:28 +0000 (05:40 +0800)] 
chore: update todo

19 months agotest: v-pre (#14)
Rizumu Ayaka [Wed, 29 Nov 2023 21:31:26 +0000 (05:31 +0800)] 
test: v-pre (#14)

Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
19 months agofeat(compiler): v-on event modifier (#8)
ubugeeei [Wed, 29 Nov 2023 21:11:59 +0000 (06:11 +0900)] 
feat(compiler): v-on  event modifier (#8)

19 months agochore: update todo
三咲智子 Kevin Deng [Wed, 29 Nov 2023 21:00:16 +0000 (05:00 +0800)] 
chore: update todo

19 months agofeat(playground): use vite-node
三咲智子 Kevin Deng [Wed, 29 Nov 2023 20:44:28 +0000 (04:44 +0800)] 
feat(playground): use vite-node

19 months agofeat: vapor component base (#5)
ubugeeei [Wed, 29 Nov 2023 18:11:21 +0000 (03:11 +0900)] 
feat: vapor component base (#5)

Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
19 months agorefactor: use enum
三咲智子 Kevin Deng [Wed, 29 Nov 2023 14:09:46 +0000 (22:09 +0800)] 
refactor: use enum

19 months agorefactor: remove InsertPosition
三咲智子 Kevin Deng [Wed, 29 Nov 2023 13:20:05 +0000 (21:20 +0800)] 
refactor: remove InsertPosition

19 months agoMerge remote-tracking branch 'upstream/minor'
三咲智子 Kevin Deng [Wed, 29 Nov 2023 13:16:14 +0000 (21:16 +0800)] 
Merge remote-tracking branch 'upstream/minor'

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 agoMerge remote-tracking branch 'upstream/minor'
三咲智子 Kevin Deng [Wed, 29 Nov 2023 13:10:26 +0000 (21:10 +0800)] 
Merge remote-tracking branch 'upstream/minor'

19 months agofix(compiler-sfc): vue import
三咲智子 Kevin Deng [Wed, 29 Nov 2023 12:58:10 +0000 (20:58 +0800)] 
fix(compiler-sfc): vue import

19 months agochore: fix typo in compiler-vapor (#10)
Jeff Yang [Wed, 29 Nov 2023 12:54:45 +0000 (20:54 +0800)] 
chore: fix typo in compiler-vapor (#10)

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 agofeat(playground): dev
三咲智子 Kevin Deng [Tue, 28 Nov 2023 19:05:09 +0000 (03:05 +0800)] 
feat(playground): dev

19 months agofix: playground
三咲智子 Kevin Deng [Tue, 28 Nov 2023 18:38:01 +0000 (02:38 +0800)] 
fix: playground

19 months agofeat: build vapor & add @vue/vapor package
三咲智子 Kevin Deng [Tue, 28 Nov 2023 17:25:46 +0000 (01:25 +0800)] 
feat: build vapor & add @vue/vapor package

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 agofeat: add vapor errors of `v-bind` / `v-on` (#3)
Rizumu Ayaka [Tue, 28 Nov 2023 10:17:41 +0000 (18:17 +0800)] 
feat: add vapor errors of `v-bind` / `v-on` (#3)

Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
19 months agochore: update component todo
三咲智子 Kevin Deng [Tue, 28 Nov 2023 05:07:57 +0000 (13:07 +0800)] 
chore: update component todo

19 months agotest: add dynamic root nodes and interpolation (#1)
白雾三语 [Tue, 28 Nov 2023 05:06:44 +0000 (13:06 +0800)] 
test: add dynamic root nodes and interpolation (#1)

Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
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 agofeat: scheduler
三咲智子 Kevin Deng [Mon, 27 Nov 2023 15:47:21 +0000 (23:47 +0800)] 
feat: scheduler

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 agorefactor: extract dynamicChildren
三咲智子 Kevin Deng [Mon, 27 Nov 2023 06:16:05 +0000 (14:16 +0800)] 
refactor: extract dynamicChildren

19 months agofix: use parser from runtime-dom
三咲智子 Kevin Deng [Mon, 27 Nov 2023 06:13:09 +0000 (14:13 +0800)] 
fix: use parser from runtime-dom

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

20 months agofeat: add size report for compiler vapor
三咲智子 Kevin Deng [Sun, 26 Nov 2023 23:16:24 +0000 (07:16 +0800)] 
feat: add size report for compiler vapor

20 months agochore: add todo comment for prepend append
三咲智子 Kevin Deng [Sun, 26 Nov 2023 22:34:37 +0000 (06:34 +0800)] 
chore: add todo comment for prepend append

20 months agofeat: append & prepend multiple elements
三咲智子 Kevin Deng [Sun, 26 Nov 2023 22:22:10 +0000 (06:22 +0800)] 
feat: append & prepend multiple elements

20 months agofeat: use Array for Fragment, instead of native DocumentFragment
三咲智子 Kevin Deng [Sun, 26 Nov 2023 21:28:50 +0000 (05:28 +0800)] 
feat: use Array for Fragment, instead of native DocumentFragment

20 months agofeat: append multiple node
三咲智子 Kevin Deng [Sun, 26 Nov 2023 21:16:21 +0000 (05:16 +0800)] 
feat: append multiple node

20 months agochore: remove issue template
三咲智子 Kevin Deng [Sun, 26 Nov 2023 16:24:19 +0000 (00:24 +0800)] 
chore: remove issue template

20 months agotest: fix template
三咲智子 Kevin Deng [Sun, 26 Nov 2023 16:23:19 +0000 (00:23 +0800)] 
test: fix template

20 months agofeat: dynamic root nodes
三咲智子 Kevin Deng [Sat, 25 Nov 2023 19:53:47 +0000 (03:53 +0800)] 
feat: dynamic root nodes

20 months agofix: root
三咲智子 Kevin Deng [Sat, 25 Nov 2023 19:24:12 +0000 (03:24 +0800)] 
fix: root

20 months agofeat: add api for document.createTextNode
三咲智子 Kevin Deng [Sat, 25 Nov 2023 19:12:02 +0000 (03:12 +0800)] 
feat: add api for document.createTextNode

20 months agofix: static + dynamic root nodes
三咲智子 Kevin Deng [Sat, 25 Nov 2023 19:08:35 +0000 (03:08 +0800)] 
fix: static + dynamic root nodes

20 months agofeat: fragment
三咲智子 Kevin Deng [Sat, 25 Nov 2023 18:13:59 +0000 (02:13 +0800)] 
feat: fragment

20 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

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

20 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

20 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

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

20 months agotest: v-once as root node (#2)
Rizumu Ayaka [Sat, 25 Nov 2023 09:05:00 +0000 (17:05 +0800)] 
test: v-once as root node (#2)

20 months agoMerge remote-tracking branch 'upstream/main'
三咲智子 Kevin Deng [Sat, 25 Nov 2023 09:04:03 +0000 (17:04 +0800)] 
Merge remote-tracking branch 'upstream/main'

20 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

20 months agochore: enable format on save
三咲智子 Kevin Deng [Sat, 25 Nov 2023 08:26:08 +0000 (16:26 +0800)] 
chore: enable format on save

20 months agochore: update todo
三咲智子 Kevin Deng [Sat, 25 Nov 2023 08:25:43 +0000 (16:25 +0800)] 
chore: update todo

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

20 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

20 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%.

20 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.

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

20 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

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

20 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

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

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

20 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

20 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

20 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

20 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

20 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

20 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

20 months agowip: treat template with preprocessor as plain text
Evan You [Mon, 20 Nov 2023 14:49:16 +0000 (22:49 +0800)] 
wip: treat template with preprocessor as plain text

20 months agowip: support reusing template ast from sfc descriptor
Evan You [Mon, 20 Nov 2023 14:05:27 +0000 (22:05 +0800)] 
wip: support reusing template ast from sfc descriptor

20 months agowip: decodeEntities test
Evan You [Mon, 20 Nov 2023 13:43:05 +0000 (21:43 +0800)] 
wip: decodeEntities test

20 months agowip: pass all compiler-sfc tests
Evan You [Mon, 20 Nov 2023 09:38:00 +0000 (17:38 +0800)] 
wip: pass all compiler-sfc tests

20 months agowip: pass all compiler-ssr tests
Evan You [Mon, 20 Nov 2023 07:33:03 +0000 (15:33 +0800)] 
wip: pass all compiler-ssr tests