Commit Graph

4502 Commits

Author SHA1 Message Date
btea 79e7c1ee43
fix(ssr): remove css number value check (#6636)
Previously this prevented custom properties and vendor-prefixed properties to be rendered correctly.

fix #6625
2022-11-07 21:53:44 -05:00
Cédric Exbrayat 04553786e4
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')
```
2022-11-07 21:49:49 -05:00
三咲智子 Kevin Deng b72a4af38a
fix(compiler-sfc): add semicolon after `defineProps` statement (#6461)
fix #6428
2022-11-07 21:17:48 -05:00
三咲智子 Kevin Deng 97aadd8290
types: use actual type for script block ASTs (#6457) 2022-11-07 21:14:10 -05:00
三咲智子 Kevin Deng e9172db68b
fix(types): export `Raw` type (#6380)
fix #7048
2022-11-07 21:03:49 -05:00
三咲智子 Kevin Deng c4f213b425
fix(reactivity-transform): add semicolon after statements (#6303) 2022-11-07 20:38:47 -05:00
Thorsten Lünborg f67bb500b6
fix(runtime-dom): ensure customElement handles empty props correctly. (#6182)
fix Scoped attribute in Vue file affects the use of web component #6163,#6895
2022-11-01 09:49:06 +01:00
HakimLu 3bed82be32
fix:spell checker (#6982)
Co-authored-by: hakim <hakim.lu@yunlsp.com>
2022-10-28 09:29:30 +02:00
三咲智子 (Kevin) bbb66d7ac7
ci: check prettier format (#6830) 2022-10-28 09:39:34 +08:00
Evan You 830454ae56 ci: fix pnpm action version 2022-10-27 08:58:38 +08:00
Evan You e3bc21f39a ci: bump actions versions 2022-10-26 18:32:34 +08:00
webfansplz 0e0976168f
fix(ssr/watch) flush: sync watchers should work in ssr (#6139)
fix #6013
2022-10-26 06:30:15 -04:00
Julian Meinking 32b51249bf
fix(runtime-core): `in` operator returning `false` for built-in instance properties in `exposeProxy` (#6138)
fix #6137
2022-10-26 05:54:10 -04:00
shadowings-zy 018b850399
fix(v-model): fix trim modifier on events with non-string args ( (#5770)
fix #5765
2022-10-26 05:47:05 -04:00
Evan You bb06819d83 chore: fix snapshot 2022-10-26 17:46:17 +08:00
webfansplz 41d9c47300
fix(types): `$watch` callback parameters type (#6136)
fix #6135
2022-10-26 05:43:42 -04:00
ygj6 eab76046e3
fix(compiler-sfc): allow type annotation for defineEmits variable (#5394)
fix #5393
2022-10-26 05:12:55 -04:00
nandi95 506a42a9a5
types(runtime-core): added `ComponentCustomProperties` type to `globalProperties` (#5389) 2022-10-26 05:00:47 -04:00
edison 83f7e6f8a6
fix(compiler-sfc): support using extends interface with defineProps() (#4512)
fix #4498
2022-10-26 04:44:30 -04:00
webfansplz 183e4e6152
refactor(types): use template literal types insteads of any (#4166) 2022-10-26 04:31:09 -04:00
HeYunfei e816812f10
fix(types): should unwrap tuple correctly (#3820)
fix #3819
2022-10-26 04:27:42 -04:00
Evan You 09bb3e996e fix(compiler-ssr): fix invalid codegen when v-slot name is explicit empty attr (#3326)
squashed from fix by @tjk
2022-10-26 16:18:19 +08:00
Evan You d9de6caecd refactor: move toNumber call out of loop 2022-10-26 15:17:25 +08:00
Carlos Rodrigues 8e792d93a8
types(h): Support passing `props` to `Component` when using `h` (#3219) 2022-10-26 03:07:44 -04:00
引证 cbc3e67c37
types(shared): Improve LooseRequired<T> (#6244) 2022-10-26 03:01:37 -04:00
Thorsten Lünborg b0b74a160c
fix(runtime-core): custom-element: ensure number casting of camelCase props. (fix: #5374) (#5377) 2022-10-22 11:20:46 +02:00
Thorsten Lünborg 54b6ba32ca
fix(runtime-core): ensure props definition objects are not mutated during props normalization (close: #6915) (#6916) 2022-10-22 11:20:02 +02:00
bcq028 e6224f4256
fix(reactivity): enable trigger when use str to set length of arr (#6810)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-10-21 09:25:06 +02:00
Thorsten Lünborg e5fc7dcc02
fix(types): ensure createBlock() helper accepts Teleport and Supsense types (fix: #2855) (#5458)
Co-authored-by: Carlos Rodrigues <carlos@hypermob.co.uk>
2022-10-20 21:45:51 +02:00
Thorsten Lünborg bc167b5c6c
fix(runtime-core): watching multiple values - handle `undefined` as initial values (fix: #5032) (#5033) 2022-10-20 21:45:05 +02:00
Evan You 9617dd4b2a release: v3.2.41 2022-10-14 18:41:15 +08:00
白雾三语 9ae796d156
fix(runtime-core): fix v-for ref reactivity behavior difference between prod and dev (#6714)
fix #6697
2022-10-14 05:23:01 -04:00
似水微寒 82a73da351
fix(runtime-core): ensure that errors in slot function execution do not affect block tracking (#5670)
fix #5657
2022-10-14 04:08:32 -04:00
Evan You 5ee40532a6 fix(runtime-dom): fix event timestamp check in iframes
fix #2513
fix #3933
close #5474
2022-10-14 16:00:03 +08:00
Evan You a71f9ac41a fix(effectScope): calling off() of a detached scope should not break currentScope 2022-10-14 10:53:23 +08:00
Evan You 35dc2bbe7d build: enforce LF line break for built files 2022-10-11 17:54:22 +08:00
世新 82e3f2dc30
chore: symbols as helperNameMap index type (#6622) 2022-10-06 05:26:16 +08:00
Evan You c454aa5cd0 chore: more pr tips in contribution guide [ci skip] 2022-10-05 15:48:57 +08:00
三咲智子 45782df349
chore: add cache for prettier and eslint (#6813) 2022-10-04 14:27:54 +08:00
Eduardo San Martin Morote 35a113eda4
fix(devtools): use cleanupBuffer instead of modifying _buffer (#6812)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-10-03 11:29:34 +02:00
edison 824174915f
types: creating Teleport with h and RawSlots #2613 (#2614) 2022-10-03 16:40:37 +08:00
webfansplz a9e3fa4e21
refactor(types): improve of type assertion (#4177)
Co-authored-by: webfansplz <>
2022-10-03 16:37:54 +08:00
pengbo 3a13074292
chore: eslint rules overrides (#6729)
Co-authored-by: pengbo43 <pengbo43@jd.com>
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-10-03 15:37:57 +08:00
Anthony Fu 534593cfa8 chore: format 2022-10-03 15:30:43 +08:00
Evan You 24f4c479d6 fix(devtools): avoid memory leak caused by devtools event buffer
fix #6591
2022-09-28 18:19:19 +08:00
Evan You 551f606d98 release: v3.2.40 2022-09-28 11:40:24 +08:00
Evan You 96cd924e44 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
2022-09-28 11:05:09 +08:00
Evan You f402d416b8 refactor(compiler-core): extract props merging helper 2022-09-28 10:59:13 +08:00
Dunqing f9d43b99f8
fix(compilre-core): dynamic v-on and static v-on should be merged (#6747)
fix #6742
2022-09-27 22:46:55 -04:00
Evan You cae1aa82cc chore: use stricter slots type in createSlots 2022-09-28 10:38:27 +08:00