]> git.ipfire.org Git - thirdparty/vuejs/core.git/log
thirdparty/vuejs/core.git
3 years agofix(compiler-sfc): fix whitespace preservation when block contains single self-closin...
Evan You [Mon, 19 Jul 2021 22:54:35 +0000 (18:54 -0400)] 
fix(compiler-sfc): fix whitespace preservation when block contains single self-closing tag

3 years agochore: run updated prettier
Evan You [Mon, 19 Jul 2021 22:24:18 +0000 (18:24 -0400)] 
chore: run updated prettier

3 years agofeat(types): map declared emits to onXXX props in inferred prop types (#3926)
Amour1688 [Mon, 19 Jul 2021 22:22:19 +0000 (06:22 +0800)] 
feat(types): map declared emits to onXXX props in inferred prop types (#3926)

3 years agochore(reactivity): correct the description of the test case (#4135)
Pick [Mon, 19 Jul 2021 21:59:30 +0000 (05:59 +0800)] 
chore(reactivity): correct the description of the test case (#4135)

3 years agofix(v-model): properly detect input type=number
Evan You [Mon, 19 Jul 2021 21:46:04 +0000 (17:46 -0400)] 
fix(v-model): properly detect input type=number

fix #3813

3 years agofix(compiler-sfc): support const enum
Evan You [Mon, 19 Jul 2021 21:31:13 +0000 (17:31 -0400)] 
fix(compiler-sfc): support const enum

3 years agoperf(compiler-sfc): ignore empty blocks (#3520)
Cédric Exbrayat [Mon, 19 Jul 2021 21:24:40 +0000 (23:24 +0200)] 
perf(compiler-sfc): ignore empty blocks (#3520)

3 years agochore(shared): remove extra NaN logic (#3837)
Homyee King [Mon, 19 Jul 2021 21:22:21 +0000 (05:22 +0800)] 
chore(shared): remove extra NaN logic (#3837)

3 years agofix(ssr): update initial old value to watch callback in ssr usage (#4103)
ioslh [Mon, 19 Jul 2021 21:13:37 +0000 (05:13 +0800)] 
fix(ssr): update initial old value to watch callback in ssr usage (#4103)

3 years agofix(compiler-sfc): expose correct range for empty blocks
Evan You [Mon, 19 Jul 2021 21:05:37 +0000 (17:05 -0400)] 
fix(compiler-sfc): expose correct range for empty blocks

3 years agofix(scheduler): fix insertion for id-less job
Evan You [Mon, 19 Jul 2021 17:37:35 +0000 (13:37 -0400)] 
fix(scheduler): fix insertion for id-less job

fix #4148

3 years agofix(reactivity): computed should not trigger scheduler if stopped
Evan You [Mon, 19 Jul 2021 17:37:03 +0000 (13:37 -0400)] 
fix(reactivity): computed should not trigger scheduler if stopped

fix #4149

3 years agofeat(compiler): allow 'comments' option to affect comment inclusion in dev (#4115)
Austin Keener [Mon, 19 Jul 2021 15:40:37 +0000 (11:40 -0400)] 
feat(compiler): allow 'comments' option to affect comment inclusion in dev (#4115)

Close: #3392
Replace: #3395

3 years agochore(shared): remove deprecated html tags (#4130)
webfansplz [Mon, 19 Jul 2021 15:30:43 +0000 (23:30 +0800)] 
chore(shared): remove deprecated html tags (#4130)

3 years agofix(runtime-core): fix null type in required + multi-type prop declarations
Evan You [Mon, 19 Jul 2021 15:20:28 +0000 (11:20 -0400)] 
fix(runtime-core): fix null type in required + multi-type prop declarations

fix #4146 (in combination with #4147)

3 years agochore: fix type issue
Evan You [Mon, 19 Jul 2021 15:11:17 +0000 (11:11 -0400)] 
chore: fix type issue

3 years agofix(compiler-sfc): defineProps infer TSParenthesizedType (#4147)
edison [Mon, 19 Jul 2021 15:09:24 +0000 (23:09 +0800)] 
fix(compiler-sfc): defineProps infer TSParenthesizedType (#4147)

3 years agorefactor: improve the fix for #4138
Evan You [Mon, 19 Jul 2021 14:43:14 +0000 (10:43 -0400)] 
refactor: improve the fix for #4138

3 years agofix(shared): normalizeStyle should handle strings
Evan You [Mon, 19 Jul 2021 14:37:12 +0000 (10:37 -0400)] 
fix(shared): normalizeStyle should handle strings

fix #4138

3 years agochore(runtime-core): use bit operations instead (#4142)
leno [Mon, 19 Jul 2021 14:32:14 +0000 (22:32 +0800)] 
chore(runtime-core): use bit operations instead (#4142)

3 years agochore(types): improve of type assertion (#4141)
webfansplz [Mon, 19 Jul 2021 14:32:07 +0000 (22:32 +0800)] 
chore(types): improve of type assertion (#4141)

3 years agochore(sfc-playground): remove compiler macro imports (#4134)
Cédric Exbrayat [Mon, 19 Jul 2021 14:08:51 +0000 (16:08 +0200)] 
chore(sfc-playground): remove compiler macro imports (#4134)

Importing `defineEmits` and `defineProps` is no longer needed since v3.1.3

3 years agotypes: typing for ref macros
Evan You [Fri, 16 Jul 2021 21:35:04 +0000 (17:35 -0400)] 
types: typing for ref macros

3 years agochore: remove deprecated defineEmit & useContext APIs
Evan You [Fri, 16 Jul 2021 20:56:51 +0000 (16:56 -0400)] 
chore: remove deprecated defineEmit & useContext APIs

3 years agorelease: v3.2.0-beta.1 v3.2.0-beta.1
Evan You [Fri, 16 Jul 2021 18:44:06 +0000 (14:44 -0400)] 
release: v3.2.0-beta.1

3 years agofix(sfc/style-vars): properly re-apply style vars on component root elements change
Evan You [Fri, 16 Jul 2021 16:29:09 +0000 (12:29 -0400)] 
fix(sfc/style-vars): properly re-apply style vars on component root elements change

Now uses MutationObserver to ensure it works even for HOCs

fix #3894

3 years agochore: fix codegen error due to scopeId deprecation change
Evan You [Fri, 16 Jul 2021 16:24:30 +0000 (12:24 -0400)] 
chore: fix codegen error due to scopeId deprecation change

3 years agoworkflow: also rebuild runtime-dom when working on sfc playground
Evan You [Fri, 16 Jul 2021 16:22:40 +0000 (12:22 -0400)] 
workflow: also rebuild runtime-dom when working on sfc playground

3 years agochore: expose watchPostEffect
Evan You [Fri, 16 Jul 2021 16:00:17 +0000 (12:00 -0400)] 
chore: expose watchPostEffect

3 years agofix: ensure customElements API ssr compatibility
Evan You [Fri, 16 Jul 2021 14:40:06 +0000 (10:40 -0400)] 
fix: ensure customElements API ssr compatibility

fix #4129

3 years agochore(compiler-core): reduce unnecessary cache inside v-once (#4112)
fishDog [Thu, 15 Jul 2021 20:50:54 +0000 (04:50 +0800)] 
chore(compiler-core): reduce unnecessary cache inside v-once (#4112)

3 years agofeat(sfc): support namespaced component tags when using `<script setup>`
Evan You [Thu, 15 Jul 2021 15:17:59 +0000 (11:17 -0400)] 
feat(sfc): support namespaced component tags when using `<script setup>`

3 years agorefactor: remove outdated slot ctx wrapper codegen
Evan You [Wed, 14 Jul 2021 22:12:38 +0000 (18:12 -0400)] 
refactor: remove outdated slot ctx wrapper codegen

3 years agofix(runtime-core): fix default shapeFlag for fragments
Evan You [Wed, 14 Jul 2021 21:54:19 +0000 (17:54 -0400)] 
fix(runtime-core): fix default shapeFlag for fragments

3 years agofix: ignore .prop/.attr modifiers in ssr
Evan You [Wed, 14 Jul 2021 19:53:46 +0000 (15:53 -0400)] 
fix: ignore .prop/.attr modifiers in ssr

3 years agorefactor: remove deprecated defineEmit() support
Evan You [Wed, 14 Jul 2021 19:40:09 +0000 (15:40 -0400)] 
refactor: remove deprecated defineEmit() support

3 years agofeat(sfc): (experimental) new ref sugar
Evan You [Wed, 14 Jul 2021 19:35:34 +0000 (15:35 -0400)] 
feat(sfc): (experimental) new ref sugar

3 years agofeat: remove experimental status of `<script setup>`
Evan You [Wed, 14 Jul 2021 16:07:55 +0000 (12:07 -0400)] 
feat: remove experimental status of `<script setup>`

3 years agorefactor: remove deprecated scopeId codegen
Evan You [Wed, 14 Jul 2021 14:04:35 +0000 (10:04 -0400)] 
refactor: remove deprecated scopeId codegen

BREAKING CHANGE: Output of SFC using `<style scoped>` generated by 3.2+
will be incompatible w/ runtime <3.2.

3 years agofeat: support v-bind .prop & .attr modifiers
Evan You [Tue, 13 Jul 2021 19:58:18 +0000 (15:58 -0400)] 
feat: support v-bind .prop & .attr modifiers

Also allows render function usage like the following:

```js
h({
  '.prop': 1, // force set as property
  '^attr': 'foo' // force set as attribute
})
```

3 years agofeat: custom element reflection, casting and edge cases
Evan You [Tue, 13 Jul 2021 16:23:51 +0000 (12:23 -0400)] 
feat: custom element reflection, casting and edge cases

3 years agotypes: fix dts tests
Evan You [Tue, 13 Jul 2021 14:57:41 +0000 (10:57 -0400)] 
types: fix dts tests

3 years agotest: fix renderSlot tests
Evan You [Tue, 13 Jul 2021 14:52:15 +0000 (10:52 -0400)] 
test: fix renderSlot tests

3 years agofeat(runtime-dom): defineCustomElement
Evan You [Mon, 12 Jul 2021 19:32:38 +0000 (15:32 -0400)] 
feat(runtime-dom): defineCustomElement

3 years agofeat: watchPostEffect
Evan You [Sat, 10 Jul 2021 01:47:15 +0000 (21:47 -0400)] 
feat: watchPostEffect

3 years agofeat: v-memo
Evan You [Sat, 10 Jul 2021 01:41:44 +0000 (21:41 -0400)] 
feat: v-memo

3 years agofeat(reactivity): support onTrack/onTrigger debug options for computed
Evan You [Thu, 8 Jul 2021 21:09:23 +0000 (17:09 -0400)] 
feat(reactivity): support onTrack/onTrigger debug options for computed

3 years agoperf: also hoist all-static children array
Evan You [Thu, 8 Jul 2021 20:12:04 +0000 (16:12 -0400)] 
perf: also hoist all-static children array

3 years agochore: bump serve
Evan You [Thu, 8 Jul 2021 19:21:33 +0000 (15:21 -0400)] 
chore: bump serve

3 years agotest: more test cases for computed w/ scheduler
Evan You [Thu, 8 Jul 2021 17:41:38 +0000 (13:41 -0400)] 
test: more test cases for computed w/ scheduler

3 years agorefactor: sync value access for chained computed w/ scheduler
Evan You [Thu, 8 Jul 2021 04:31:26 +0000 (00:31 -0400)] 
refactor: sync value access for chained computed w/ scheduler

3 years agoperf: hoist dynamic props lists
Evan You [Wed, 7 Jul 2021 18:47:59 +0000 (14:47 -0400)] 
perf: hoist dynamic props lists

3 years agochore: use consistent file naming
Evan You [Wed, 7 Jul 2021 18:37:28 +0000 (14:37 -0400)] 
chore: use consistent file naming

3 years agorefactor: reduce bundle size
Evan You [Wed, 7 Jul 2021 16:33:37 +0000 (12:33 -0400)] 
refactor: reduce bundle size

3 years agoperf(reactivity): use bitwise dep markers to optimize re-tracking (#4017)
Bas van Meurs [Wed, 7 Jul 2021 18:13:23 +0000 (20:13 +0200)] 
perf(reactivity): use bitwise dep markers to optimize re-tracking (#4017)

3 years agochore: remove unncessary property on ComputedRef interface
Evan You [Wed, 7 Jul 2021 14:32:06 +0000 (10:32 -0400)] 
chore: remove unncessary property on ComputedRef interface

3 years agotest: test for computed optimization
Evan You [Wed, 7 Jul 2021 14:10:56 +0000 (10:10 -0400)] 
test: test for computed optimization

3 years agoperf(reactivity): avoid triggering re-render if computed value did not change
Evan You [Wed, 7 Jul 2021 02:01:59 +0000 (22:01 -0400)] 
perf(reactivity): avoid triggering re-render if computed value did not change

3 years agofeat(reactivity): new effectScope API (#2195)
Anthony Fu [Wed, 7 Jul 2021 13:07:19 +0000 (21:07 +0800)] 
feat(reactivity): new effectScope API (#2195)

3 years agoperf(reactivity): improve reactive effect memory usage (#4001)
Evan You [Thu, 24 Jun 2021 21:44:32 +0000 (17:44 -0400)] 
perf(reactivity): improve reactive effect memory usage (#4001)

Based on #2345 , but with smaller API change

- Use class implementation for `ReactiveEffect`
- Switch internal creation of effects to use the class constructor
- Avoid options object allocation
- Avoid creating bound effect runner function (used in schedulers) when not necessary.
- Consumes ~17% less memory compared to last commit
- Introduces a very minor breaking change: the `scheduler` option passed to `effect` no longer receives the runner function.

3 years agochore: fix test failing types
Evan You [Thu, 24 Jun 2021 13:23:59 +0000 (09:23 -0400)] 
chore: fix test failing types

3 years agorefactor: small bundle size / readability optimization
Evan You [Wed, 23 Jun 2021 21:20:38 +0000 (17:20 -0400)] 
refactor: small bundle size / readability optimization

3 years agoperf(reactivity): ref-specific track/trigger and miscellaneous optimizations (#3995)
Bas van Meurs [Wed, 23 Jun 2021 21:22:21 +0000 (23:22 +0200)] 
perf(reactivity): ref-specific track/trigger and miscellaneous optimizations (#3995)

3 years agoperf: improve VNode creation performance with compiler hints (#3334)
HcySunYang [Tue, 22 Jun 2021 23:15:20 +0000 (07:15 +0800)] 
perf: improve VNode creation performance with compiler hints (#3334)

3 years agorelease: v3.1.5 v3.1.5
Evan You [Fri, 16 Jul 2021 16:38:01 +0000 (12:38 -0400)] 
release: v3.1.5

3 years agotest: test for compat mode v3 render fn detection
Evan You [Fri, 16 Jul 2021 14:23:25 +0000 (10:23 -0400)] 
test: test for compat mode v3 render fn detection

3 years agofix(compat): fix v3 compiled fn detection in production
Evan You [Fri, 16 Jul 2021 14:17:38 +0000 (10:17 -0400)] 
fix(compat): fix v3 compiled fn detection in production

3 years agofix(runtime-core): enter optimized mode for component as root
Evan You [Thu, 15 Jul 2021 22:51:59 +0000 (18:51 -0400)] 
fix(runtime-core): enter optimized mode for component as root

fix #3943

3 years agofix(reactivity): call array subclass methods (#3624)
TheDro [Thu, 15 Jul 2021 21:17:13 +0000 (17:17 -0400)] 
fix(reactivity): call array subclass methods (#3624)

fix #2314, close #2315

3 years agochore: fix snapshot from merge
Evan You [Thu, 15 Jul 2021 20:57:30 +0000 (16:57 -0400)] 
chore: fix snapshot from merge

3 years agofix(compiler-sfc): duplicated injected css var with repeated vars in style (#2802)
patak [Thu, 15 Jul 2021 20:45:37 +0000 (22:45 +0200)] 
fix(compiler-sfc): duplicated injected css var with repeated vars in style (#2802)

3 years agotest(teleport): fix meaningless test case (#2872)
[Thu, 15 Jul 2021 20:36:36 +0000 (04:36 +0800)] 
test(teleport): fix meaningless test case (#2872)

3 years agofix(runtime-dom): capture errors when setting value for IDL (#3578)
HcySunYang [Thu, 15 Jul 2021 20:32:25 +0000 (04:32 +0800)] 
fix(runtime-dom): capture errors when setting value for IDL (#3578)

fix #3576

3 years agofix(type): infer parent as `this` on `nextTick` function (#3608)
Carlos Rodrigues [Thu, 15 Jul 2021 20:28:20 +0000 (21:28 +0100)] 
fix(type): infer parent as `this` on `nextTick` function (#3608)

fix #3599

3 years agofix(ref): should not trigger when setting value to same proxy (#3658)
Yang Mingshan [Thu, 15 Jul 2021 20:28:01 +0000 (04:28 +0800)] 
fix(ref): should not trigger when setting value to same proxy (#3658)

3 years agotypes(defineComponent): fix unwrap when returning `Ref<T>|undefined` from `setup...
Carlos Rodrigues [Thu, 15 Jul 2021 19:58:20 +0000 (20:58 +0100)] 
types(defineComponent): fix unwrap when returning `Ref<T>|undefined` from `setup` (#4100)

3 years agochore: fix typo in inherit-attrs warning (#4094)
Tan Zhen Yong [Thu, 15 Jul 2021 19:45:23 +0000 (03:45 +0800)] 
chore: fix typo in inherit-attrs warning (#4094)

3 years agofix(compiler): Addressed infinite loop in compiler (#3992)
Austin Keener [Thu, 15 Jul 2021 18:57:47 +0000 (14:57 -0400)] 
fix(compiler): Addressed infinite loop in compiler (#3992)

close #3987

3 years agofix(runtime-dom): remove class attribute on nullish values
Evan You [Thu, 15 Jul 2021 17:45:43 +0000 (13:45 -0400)] 
fix(runtime-dom): remove class attribute on nullish values

close #3173

3 years agofix(v-model): support calling methods in v-model expression
Evan You [Thu, 15 Jul 2021 17:34:42 +0000 (13:34 -0400)] 
fix(v-model): support calling methods in v-model expression

close #3993

3 years agofix(v-on): proper member exp detection for bracket assignment
Evan You [Thu, 15 Jul 2021 17:26:09 +0000 (13:26 -0400)] 
fix(v-on): proper member exp detection for bracket assignment

fix #4097

3 years agorefactor: simplify static content insertion
Evan You [Fri, 9 Jul 2021 20:18:36 +0000 (16:18 -0400)] 
refactor: simplify static content insertion

3 years agofix(sfc): only enable jsx parser plugin when explicitly using tsx
Evan You [Thu, 15 Jul 2021 17:12:06 +0000 (13:12 -0400)] 
fix(sfc): only enable jsx parser plugin when explicitly using tsx

fix #4106

3 years agofix(v-on): properly detect member expressions with optional chaining
Evan You [Thu, 15 Jul 2021 16:23:07 +0000 (12:23 -0400)] 
fix(v-on): properly detect member expressions with optional chaining

fix #4107

3 years agofix(v-model): handle mutations of v-model bound array/sets
Evan You [Thu, 15 Jul 2021 16:14:19 +0000 (12:14 -0400)] 
fix(v-model): handle mutations of v-model bound array/sets

fix #4096

3 years agofix(compiler-core): fix forwarded slots detection on template slots (#4124)
edison [Thu, 15 Jul 2021 15:37:11 +0000 (23:37 +0800)] 
fix(compiler-core): fix forwarded slots detection on template slots (#4124)

fix #4123

4 years agofix(sfc): fix style variables injection on static vnode (#3847)
edison [Wed, 14 Jul 2021 22:08:12 +0000 (06:08 +0800)] 
fix(sfc): fix style variables injection on static vnode (#3847)

fix #3841

4 years agofix(sfc): fix `<script setup>` async context preservation logic
Evan You [Tue, 6 Jul 2021 18:31:53 +0000 (14:31 -0400)] 
fix(sfc): fix `<script setup>` async context preservation logic

fix #4050

4 years agoworkflow: dev-sfc script
Evan You [Tue, 6 Jul 2021 16:02:53 +0000 (12:02 -0400)] 
workflow: dev-sfc script

4 years agotest: add test case for proper effect teardown w/ withAsyncContext
Evan You [Tue, 6 Jul 2021 15:39:27 +0000 (11:39 -0400)] 
test: add test case for proper effect teardown w/ withAsyncContext

4 years agofix(compiler-sfc): should not rewrite ref sugar identifiers in types
Evan You [Mon, 5 Jul 2021 18:41:53 +0000 (14:41 -0400)] 
fix(compiler-sfc): should not rewrite ref sugar identifiers in types

fix #4062

4 years agochore: bump vite
Evan You [Mon, 5 Jul 2021 18:41:09 +0000 (14:41 -0400)] 
chore: bump vite

4 years agofix(compat): fix props check for v-model compat warning (#4056)
Austin Keener [Sun, 4 Jul 2021 22:32:44 +0000 (18:32 -0400)] 
fix(compat): fix props check for v-model compat warning (#4056)

4 years agorelease: v3.1.4 v3.1.4
Evan You [Fri, 2 Jul 2021 12:37:50 +0000 (08:37 -0400)] 
release: v3.1.4

4 years agotest: fix test ts target
Evan You [Fri, 2 Jul 2021 12:27:52 +0000 (08:27 -0400)] 
test: fix test ts target

4 years agofix(compiler-sfc): fix parse-only mode when there is no script setup block
Evan You [Fri, 2 Jul 2021 12:24:24 +0000 (08:24 -0400)] 
fix(compiler-sfc): fix parse-only mode when there is no script setup block

4 years agochore: fix lint script
Evan You [Fri, 2 Jul 2021 12:19:05 +0000 (08:19 -0400)] 
chore: fix lint script

4 years agochore: disallow async/await usage in src
Evan You [Fri, 2 Jul 2021 12:11:30 +0000 (08:11 -0400)] 
chore: disallow async/await usage in src

4 years agofix(build): avoid using async/await syntax
Evan You [Fri, 2 Jul 2021 12:06:22 +0000 (08:06 -0400)] 
fix(build): avoid using async/await syntax

4 years agofix(codegen): ensure valid types in genreated code when using global directives
Evan You [Fri, 2 Jul 2021 11:59:47 +0000 (07:59 -0400)] 
fix(codegen): ensure valid types in genreated code when using global directives

fix #4054