]> git.ipfire.org Git - thirdparty/vuejs/core.git/log
thirdparty/vuejs/core.git
2 years agofix(types): stricter type condition for `EventHandlers` (#6855)
Johnson Chu [Tue, 8 Nov 2022 15:37:37 +0000 (23:37 +0800)] 
fix(types): stricter type condition for `EventHandlers` (#6855)

fix #6899

2 years agofix(compiler-core): fix parsing error on comments between v-if in prod
Evan You [Tue, 8 Nov 2022 15:35:35 +0000 (23:35 +0800)] 
fix(compiler-core): fix parsing error on comments between v-if in prod

close #6843

2 years agofix(transition/keep-alive): fix unmount bug for component with out-in transition...
被雨水过滤的空气(Rairn) [Tue, 8 Nov 2022 15:01:43 +0000 (23:01 +0800)] 
fix(transition/keep-alive): fix unmount bug for component with out-in transition (#6839)

fix #6835

2 years agofix(compiler-core): keep whitespaces between interpolation and comment (#6828)
Rudy [Tue, 8 Nov 2022 14:50:43 +0000 (22:50 +0800)] 
fix(compiler-core): keep whitespaces between interpolation and comment (#6828)

fix #6352

2 years agoci: upgrade node to 18 (#6983)
三咲智子 Kevin Deng [Tue, 8 Nov 2022 14:13:45 +0000 (22:13 +0800)] 
ci: upgrade node to 18 (#6983)

2 years agorefactor(compiler-sfc): optimize import alias check for binding analysis
Evan You [Tue, 8 Nov 2022 09:47:47 +0000 (17:47 +0800)] 
refactor(compiler-sfc): optimize import alias check for binding analysis

2 years agofix(compiler-sfc): fix binding analysis for aliased late import
Evan You [Tue, 8 Nov 2022 09:19:45 +0000 (17:19 +0800)] 
fix(compiler-sfc): fix binding analysis for aliased late import

2 years agofix(compiler-sfc): check import source during binding analysation (#6826)
三咲智子 Kevin Deng [Tue, 8 Nov 2022 09:07:28 +0000 (17:07 +0800)] 
fix(compiler-sfc): check import source during binding analysation (#6826)

fix #6825

2 years agofix(types/reactivity-transform): fix type when initial value is not used (#6821)
三咲智子 Kevin Deng [Tue, 8 Nov 2022 06:38:53 +0000 (14:38 +0800)] 
fix(types/reactivity-transform): fix type when initial value is not used (#6821)

fix #6820

2 years agoci: disable format-check on ci
Evan You [Tue, 8 Nov 2022 06:31:45 +0000 (14:31 +0800)] 
ci: disable format-check on ci

this causes too many unintended fails on PR merges
the task should just be manually run periodically

2 years agochore: remove blank line [ci skip]
Evan You [Tue, 8 Nov 2022 06:29:13 +0000 (14:29 +0800)] 
chore: remove blank line [ci skip]

2 years agofix(hmr): fix hmr for components managed by keep-alive (#6809)
花果山大圣 [Tue, 8 Nov 2022 06:26:56 +0000 (14:26 +0800)] 
fix(hmr): fix hmr for components managed by keep-alive (#6809)

fix #6222

2 years agochore: run prettier
Evan You [Tue, 8 Nov 2022 06:25:48 +0000 (14:25 +0800)] 
chore: run prettier

2 years agoworkflow(sfc-playground): set all scopes to production mode (#6815)
三咲智子 Kevin Deng [Tue, 8 Nov 2022 06:10:56 +0000 (14:10 +0800)] 
workflow(sfc-playground): set all scopes to production mode (#6815)

2 years agofix(types): support inferring injected properties in options api (#6804)
Rudy [Tue, 8 Nov 2022 06:09:53 +0000 (14:09 +0800)] 
fix(types): support inferring injected properties in options api (#6804)

close #3031
close #5931

2 years agofix(compiler/runtime-dom): ignore comments in inline styles (#6808)
Rudy [Tue, 8 Nov 2022 03:42:32 +0000 (11:42 +0800)] 
fix(compiler/runtime-dom): ignore comments in inline styles (#6808)

fix #6807

2 years agochore: fix snapshot
Evan You [Tue, 8 Nov 2022 03:36:16 +0000 (11:36 +0800)] 
chore: fix snapshot

2 years agofix(compiler-sfc): require <template> or <script> in SFC (#6781)
花果山大圣 [Tue, 8 Nov 2022 03:34:39 +0000 (11:34 +0800)] 
fix(compiler-sfc): require <template> or <script> in SFC (#6781)

fix #6676

2 years agofix(shared): fix parsing of multi-line inline style (#6777)
三咲智子 Kevin Deng [Tue, 8 Nov 2022 03:17:50 +0000 (11:17 +0800)] 
fix(shared): fix parsing of multi-line inline style (#6777)

2 years agofix(compiler-sfc): fix macro usage in multi-variable declaration (#6778)
花果山大圣 [Tue, 8 Nov 2022 03:16:21 +0000 (11:16 +0800)] 
fix(compiler-sfc): fix macro usage in multi-variable declaration (#6778)

fix #6757

2 years agofix(compiler-core/v-on): support inline handler with return type annotation (#6769)
Travis [Tue, 8 Nov 2022 03:09:15 +0000 (11:09 +0800)] 
fix(compiler-core/v-on): support inline handler with return type annotation (#6769)

fix #6378

2 years agofix(compiler-core): avoid duplicate keys in codegen with `v-if` (#6689)
被雨水过滤的空气(Rairn) [Tue, 8 Nov 2022 03:04:31 +0000 (11:04 +0800)] 
fix(compiler-core): avoid duplicate keys in codegen with `v-if` (#6689)

fix #6641

2 years agochore: pretty ignore dist files
Evan You [Tue, 8 Nov 2022 03:03:51 +0000 (11:03 +0800)] 
chore: pretty ignore dist files

2 years agochore: prettier
Evan You [Tue, 8 Nov 2022 03:03:27 +0000 (11:03 +0800)] 
chore: prettier

2 years agofix(sfc/types): improve the type inference using withDefaults (#6764)
littleboarx [Tue, 8 Nov 2022 02:59:31 +0000 (10:59 +0800)] 
fix(sfc/types): improve the type inference using withDefaults (#6764)

fix #6552

2 years agofix(ssr): remove css number value check (#6636)
btea [Tue, 8 Nov 2022 02:53:44 +0000 (10:53 +0800)] 
fix(ssr): remove css number value check (#6636)

Previously this prevented custom properties and vendor-prefixed properties to be rendered correctly.

fix #6625

2 years agofix(runtime-core): do not throw on unknown directives (#6671)
Cédric Exbrayat [Tue, 8 Nov 2022 02:49:49 +0000 (03:49 +0100)] 
fix(runtime-core): do not throw on unknown directives (#6671)

fix #6340

This commit improves the case when a directive is not found in a template.
As `resolveDirective` returns `undefined`, some code was failing with the following error:

```
TypeError: Cannot read properties of undefined (reading 'deep')
```

2 years agofix(compiler-sfc): add semicolon after `defineProps` statement (#6461)
三咲智子 Kevin Deng [Tue, 8 Nov 2022 02:17:48 +0000 (10:17 +0800)] 
fix(compiler-sfc): add semicolon after `defineProps` statement (#6461)

fix #6428

2 years agotypes: use actual type for script block ASTs (#6457)
三咲智子 Kevin Deng [Tue, 8 Nov 2022 02:14:10 +0000 (10:14 +0800)] 
types: use actual type for script block ASTs (#6457)

2 years agofix(types): export `Raw` type (#6380)
三咲智子 Kevin Deng [Tue, 8 Nov 2022 02:03:49 +0000 (10:03 +0800)] 
fix(types): export `Raw` type (#6380)

fix #7048

2 years agofix(reactivity-transform): add semicolon after statements (#6303)
三咲智子 Kevin Deng [Tue, 8 Nov 2022 01:38:47 +0000 (09:38 +0800)] 
fix(reactivity-transform): add semicolon after statements (#6303)

2 years agofix(runtime-dom): ensure customElement handles empty props correctly. (#6182)
Thorsten Lünborg [Tue, 1 Nov 2022 08:49:06 +0000 (09:49 +0100)] 
fix(runtime-dom): ensure customElement handles empty props correctly. (#6182)

fix Scoped attribute in Vue file affects the use of web component #6163,#6895

2 years agofix:spell checker (#6982)
HakimLu [Fri, 28 Oct 2022 07:29:30 +0000 (15:29 +0800)] 
fix:spell checker (#6982)

Co-authored-by: hakim <hakim.lu@yunlsp.com>
2 years agoci: check prettier format (#6830)
三咲智子 (Kevin) [Fri, 28 Oct 2022 01:39:34 +0000 (09:39 +0800)] 
ci: check prettier format (#6830)

2 years agoci: fix pnpm action version
Evan You [Thu, 27 Oct 2022 00:58:38 +0000 (08:58 +0800)] 
ci: fix pnpm action version

2 years agoci: bump actions versions
Evan You [Wed, 26 Oct 2022 10:32:34 +0000 (18:32 +0800)] 
ci: bump actions versions

2 years agofix(ssr/watch) flush: sync watchers should work in ssr (#6139)
webfansplz [Wed, 26 Oct 2022 10:30:15 +0000 (18:30 +0800)] 
fix(ssr/watch) flush: sync watchers should work in ssr (#6139)

fix #6013

2 years agofix(runtime-core): `in` operator returning `false` for built-in instance properties...
Julian Meinking [Wed, 26 Oct 2022 09:54:10 +0000 (11:54 +0200)] 
fix(runtime-core): `in` operator returning `false` for built-in instance properties in `exposeProxy` (#6138)

fix #6137

2 years agofix(v-model): fix trim modifier on events with non-string args ( (#5770)
shadowings-zy [Wed, 26 Oct 2022 09:47:05 +0000 (17:47 +0800)] 
fix(v-model): fix trim modifier on events with non-string args ( (#5770)

fix #5765

2 years agochore: fix snapshot
Evan You [Wed, 26 Oct 2022 09:46:17 +0000 (17:46 +0800)] 
chore: fix snapshot

2 years agofix(types): `$watch` callback parameters type (#6136)
webfansplz [Wed, 26 Oct 2022 09:43:42 +0000 (17:43 +0800)] 
fix(types): `$watch` callback parameters type (#6136)

fix #6135

2 years agofix(compiler-sfc): allow type annotation for defineEmits variable (#5394)
ygj6 [Wed, 26 Oct 2022 09:12:55 +0000 (17:12 +0800)] 
fix(compiler-sfc): allow type annotation for defineEmits variable (#5394)

fix #5393

2 years agotypes(runtime-core): added `ComponentCustomProperties` type to `globalProperties...
nandi95 [Wed, 26 Oct 2022 09:00:47 +0000 (10:00 +0100)] 
types(runtime-core): added `ComponentCustomProperties` type to `globalProperties` (#5389)

2 years agofix(compiler-sfc): support using extends interface with defineProps() (#4512)
edison [Wed, 26 Oct 2022 08:44:30 +0000 (16:44 +0800)] 
fix(compiler-sfc): support using extends interface with defineProps() (#4512)

fix #4498

2 years agorefactor(types): use template literal types insteads of any (#4166)
webfansplz [Wed, 26 Oct 2022 08:31:09 +0000 (16:31 +0800)] 
refactor(types): use template literal types insteads of any (#4166)

2 years agofix(types): should unwrap tuple correctly (#3820)
HeYunfei [Wed, 26 Oct 2022 08:27:42 +0000 (16:27 +0800)] 
fix(types): should unwrap tuple correctly (#3820)

fix #3819

2 years agofix(compiler-ssr): fix invalid codegen when v-slot name is explicit empty attr (...
Evan You [Wed, 26 Oct 2022 08:18:19 +0000 (16:18 +0800)] 
fix(compiler-ssr): fix invalid codegen when v-slot name is explicit empty attr (#3326)

squashed from fix by @tjk

2 years agorefactor: move toNumber call out of loop
Evan You [Wed, 26 Oct 2022 07:17:25 +0000 (15:17 +0800)] 
refactor: move toNumber call out of loop

2 years agotypes(h): Support passing `props` to `Component` when using `h` (#3219)
Carlos Rodrigues [Wed, 26 Oct 2022 07:07:44 +0000 (08:07 +0100)] 
types(h): Support passing `props` to `Component` when using `h` (#3219)

2 years agotypes(shared): Improve LooseRequired<T> (#6244)
引证 [Wed, 26 Oct 2022 07:01:37 +0000 (15:01 +0800)] 
types(shared): Improve LooseRequired<T> (#6244)

2 years agofix(runtime-core): custom-element: ensure number casting of camelCase props. (fix...
Thorsten Lünborg [Sat, 22 Oct 2022 09:20:46 +0000 (11:20 +0200)] 
fix(runtime-core): custom-element: ensure number casting of camelCase props. (fix: #5374) (#5377)

2 years agofix(runtime-core): ensure props definition objects are not mutated during props norma...
Thorsten Lünborg [Sat, 22 Oct 2022 09:20:02 +0000 (11:20 +0200)] 
fix(runtime-core): ensure props definition objects are not mutated during props normalization (close: #6915) (#6916)

2 years agofix(reactivity): enable trigger when use str to set length of arr (#6810)
bcq028 [Fri, 21 Oct 2022 07:25:06 +0000 (15:25 +0800)] 
fix(reactivity): enable trigger when use str to set length of arr (#6810)

Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2 years agofix(types): ensure createBlock() helper accepts Teleport and Supsense types (fix...
Thorsten Lünborg [Thu, 20 Oct 2022 19:45:51 +0000 (21:45 +0200)] 
fix(types): ensure createBlock() helper accepts Teleport and Supsense types (fix: #2855) (#5458)

Co-authored-by: Carlos Rodrigues <carlos@hypermob.co.uk>
2 years agofix(runtime-core): watching multiple values - handle `undefined` as initial values...
Thorsten Lünborg [Thu, 20 Oct 2022 19:45:05 +0000 (21:45 +0200)] 
fix(runtime-core): watching multiple values - handle `undefined` as initial values (fix: #5032) (#5033)

2 years agorelease: v3.2.41 v3.2.41
Evan You [Fri, 14 Oct 2022 10:41:15 +0000 (18:41 +0800)] 
release: v3.2.41

2 years agofix(runtime-core): fix v-for ref reactivity behavior difference between prod and...
白雾三语 [Fri, 14 Oct 2022 09:23:01 +0000 (17:23 +0800)] 
fix(runtime-core): fix v-for ref reactivity behavior difference between prod and dev (#6714)

fix #6697

2 years agofix(runtime-core): ensure that errors in slot function execution do not affect block...
似水微寒 [Fri, 14 Oct 2022 08:08:32 +0000 (16:08 +0800)] 
fix(runtime-core): ensure that errors in slot function execution do not affect block tracking (#5670)

fix #5657

2 years agofix(runtime-dom): fix event timestamp check in iframes
Evan You [Fri, 14 Oct 2022 08:00:03 +0000 (16:00 +0800)] 
fix(runtime-dom): fix event timestamp check in iframes

fix #2513
fix #3933
close #5474

2 years agofix(effectScope): calling off() of a detached scope should not break currentScope
Evan You [Fri, 14 Oct 2022 02:53:23 +0000 (10:53 +0800)] 
fix(effectScope): calling off() of a detached scope should not break currentScope

2 years agobuild: enforce LF line break for built files
Evan You [Tue, 11 Oct 2022 09:54:22 +0000 (17:54 +0800)] 
build: enforce LF line break for built files

2 years agochore: symbols as helperNameMap index type (#6622)
世新 [Wed, 5 Oct 2022 21:26:16 +0000 (05:26 +0800)] 
chore: symbols as helperNameMap index type (#6622)

2 years agochore: more pr tips in contribution guide [ci skip]
Evan You [Wed, 5 Oct 2022 07:48:37 +0000 (15:48 +0800)] 
chore: more pr tips in contribution guide [ci skip]

2 years agochore: add cache for prettier and eslint (#6813)
三咲智子 [Tue, 4 Oct 2022 06:27:54 +0000 (14:27 +0800)] 
chore: add cache for prettier and eslint (#6813)

2 years agofix(devtools): use cleanupBuffer instead of modifying _buffer (#6812)
Eduardo San Martin Morote [Mon, 3 Oct 2022 09:29:34 +0000 (11:29 +0200)] 
fix(devtools): use cleanupBuffer instead of modifying _buffer (#6812)

Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2 years agotypes: creating Teleport with h and RawSlots #2613 (#2614)
edison [Mon, 3 Oct 2022 08:40:37 +0000 (16:40 +0800)] 
types: creating Teleport with h and RawSlots #2613 (#2614)

2 years agorefactor(types): improve of type assertion (#4177)
webfansplz [Mon, 3 Oct 2022 08:37:54 +0000 (16:37 +0800)] 
refactor(types): improve of type assertion (#4177)

Co-authored-by: webfansplz <>
2 years agochore: eslint rules overrides (#6729)
pengbo [Mon, 3 Oct 2022 07:37:57 +0000 (15:37 +0800)] 
chore: eslint rules overrides (#6729)

Co-authored-by: pengbo43 <pengbo43@jd.com>
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2 years agochore: format
Anthony Fu [Mon, 3 Oct 2022 07:30:43 +0000 (15:30 +0800)] 
chore: format

2 years agofix(devtools): avoid memory leak caused by devtools event buffer
Evan You [Wed, 28 Sep 2022 10:19:19 +0000 (18:19 +0800)] 
fix(devtools): avoid memory leak caused by devtools event buffer

fix #6591

2 years agorelease: v3.2.40 v3.2.40
Evan You [Wed, 28 Sep 2022 03:40:24 +0000 (11:40 +0800)] 
release: v3.2.40

2 years agofix(compat): list cjs dependencies for compat build
Evan You [Wed, 28 Sep 2022 03:05:07 +0000 (11:05 +0800)] 
fix(compat): list cjs dependencies for compat build

Previously the cjs build implicitly relies on hoisted versions of the
deps, causing it to resolve to newer versions of estree-walker when
present.

fix #6602

2 years agorefactor(compiler-core): extract props merging helper
Evan You [Wed, 28 Sep 2022 02:59:13 +0000 (10:59 +0800)] 
refactor(compiler-core): extract props merging helper

2 years agofix(compilre-core): dynamic v-on and static v-on should be merged (#6747)
Dunqing [Wed, 28 Sep 2022 02:46:55 +0000 (10:46 +0800)] 
fix(compilre-core): dynamic v-on and static v-on should be merged (#6747)

fix #6742

2 years agochore: use stricter slots type in createSlots
Evan You [Wed, 28 Sep 2022 02:38:19 +0000 (10:38 +0800)] 
chore: use stricter slots type in createSlots

2 years agoci: GitHub workflows security hardening (#6743)
Alex [Wed, 28 Sep 2022 02:36:47 +0000 (05:36 +0300)] 
ci: GitHub workflows security hardening (#6743)

2 years agotest(slots): ensure createSlots helper work with ssr slots (#6660)
Shigma [Wed, 28 Sep 2022 02:36:11 +0000 (10:36 +0800)] 
test(slots): ensure createSlots helper work with ssr slots (#6660)

2 years agofix(ssr): fix dynamic slot regression in ssr
Evan You [Wed, 28 Sep 2022 02:24:57 +0000 (10:24 +0800)] 
fix(ssr): fix dynamic slot regression in ssr

fix #6651

2 years agofix(ssr): fix hydration mismatch when entire multi-root template is stringified
Evan You [Wed, 28 Sep 2022 01:33:17 +0000 (09:33 +0800)] 
fix(ssr): fix hydration mismatch when entire multi-root template is stringified

fix #6637

2 years agofix(ssr): fix pre tag windows newline hydration mismatch
Evan You [Wed, 28 Sep 2022 00:45:32 +0000 (08:45 +0800)] 
fix(ssr): fix pre tag windows newline hydration mismatch

fix #6410

2 years agofix(ssr): respect case when rendering dynamic attrs on svg
Evan You [Tue, 27 Sep 2022 09:40:22 +0000 (17:40 +0800)] 
fix(ssr): respect case when rendering dynamic attrs on svg

fix #6755

2 years agofix(compiler-sfc): fix expression check for v-on with object literal value (#6652)
Travis [Tue, 27 Sep 2022 09:30:10 +0000 (17:30 +0800)] 
fix(compiler-sfc): fix expression check for v-on with object literal value (#6652)

fix #6650
fix #6674

2 years agofix(compiler-dom): remove v-bind boolean attribute with literal false value when...
某时橙 [Tue, 27 Sep 2022 09:18:29 +0000 (17:18 +0800)] 
fix(compiler-dom): remove v-bind boolean attribute with literal false value when stringifying (#6635)

fix #6617

2 years agofix(ssr): avoid ast.helpers duplication (#6664)
Anthony Fu [Tue, 27 Sep 2022 09:06:24 +0000 (17:06 +0800)] 
fix(ssr): avoid ast.helpers duplication (#6664)

2 years agofix(runtime-dom): fix unnecessary warning when setting coerced dom property value
Evan You [Tue, 27 Sep 2022 08:39:15 +0000 (16:39 +0800)] 
fix(runtime-dom): fix unnecessary warning when setting coerced dom property value

fix #6616

2 years agofix(runtime-core): avoid hoisted vnodes retaining detached DOM nodes
Evan You [Tue, 27 Sep 2022 08:20:43 +0000 (16:20 +0800)] 
fix(runtime-core): avoid hoisted vnodes retaining detached DOM nodes

fix #6591

2 years agochore: remove no longer used cloneNode implementation in nodeOps
Evan You [Tue, 27 Sep 2022 07:50:26 +0000 (15:50 +0800)] 
chore: remove no longer used cloneNode implementation in nodeOps

2 years agofix(runtime-core): remove prod-only hoisted clone behavior for manual DOM manipulatio...
Evan You [Tue, 27 Sep 2022 07:24:46 +0000 (15:24 +0800)] 
fix(runtime-core): remove prod-only hoisted clone behavior for manual DOM manipulation compat

fix #6727
fix #6739

2 years agofix(runtime-core): unset removed props first in full diff mode
Evan You [Tue, 27 Sep 2022 02:24:13 +0000 (10:24 +0800)] 
fix(runtime-core): unset removed props first in full diff mode

fix #6571

2 years agofix(runtime-core): Lifecycle hooks should support callbacks shared by reference ...
Thorsten Lünborg [Tue, 27 Sep 2022 02:18:22 +0000 (04:18 +0200)] 
fix(runtime-core): Lifecycle hooks should support callbacks shared by reference (#6687)

fix #6686

2 years agochore: fix typos (#6708)
Kid [Sat, 24 Sep 2022 07:13:39 +0000 (15:13 +0800)] 
chore: fix typos (#6708)

2 years agochore: allow sfc playground in iframes
Evan You [Wed, 21 Sep 2022 09:36:15 +0000 (17:36 +0800)] 
chore: allow sfc playground in iframes

2 years agochore: add headers for sfc playground
Evan You [Tue, 13 Sep 2022 08:27:44 +0000 (16:27 +0800)] 
chore: add headers for sfc playground

2 years agorelease: v3.2.39 v3.2.39
Evan You [Thu, 8 Sep 2022 02:12:39 +0000 (10:12 +0800)] 
release: v3.2.39

2 years agochore: fix sfc playground deps
Evan You [Thu, 8 Sep 2022 02:02:15 +0000 (10:02 +0800)] 
chore: fix sfc playground deps

2 years agofix(runtime-core): avoid double firing when mounting inside a watcher callback
Evan You [Thu, 8 Sep 2022 01:59:51 +0000 (09:59 +0800)] 
fix(runtime-core): avoid double firing when mounting inside a watcher callback

fix #6614

2 years agofix(ssr): reset current instance (#6184)
似水微寒 [Wed, 7 Sep 2022 09:08:52 +0000 (17:08 +0800)] 
fix(ssr): reset current instance (#6184)

fix #6110

2 years agochore: cache bust svg [ci skip]
Evan You [Thu, 1 Sep 2022 06:31:53 +0000 (14:31 +0800)] 
chore: cache bust svg [ci skip]

2 years agochore: special sponsor
Evan You [Thu, 1 Sep 2022 06:29:12 +0000 (14:29 +0800)] 
chore: special sponsor

2 years agochore: upgrade to vite 3
Evan You [Wed, 31 Aug 2022 07:24:31 +0000 (15:24 +0800)] 
chore: upgrade to vite 3