Commit Graph

42 Commits

Author SHA1 Message Date
Kevin Deng 三咲智子 cdb1d1795d
chore: disallow optional chaining (#10919) 2024-05-29 15:03:20 +08:00
edison bc37258caa
fix(warning): stringify args in warn handler (#10414)
close #10409
2024-02-28 19:06:18 +08:00
三咲智子 Kevin Deng bfe6b459d3
style: update format & lint config (#9162)
Co-authored-by: 丶远方 <yangpanteng@gmail.com>
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
Co-authored-by: Guo Xingjun <99574369+Plumbiu@users.noreply.github.com>
2023-12-26 19:39:47 +08:00
Evan You 73ae6adbb1 refactor: adjust warn method treeshaking 2023-12-26 15:26:29 +08:00
Evan You b4ebe7ae8b fix(warning): ensure prod hydration warnings actually work 2023-12-26 10:52:45 +08:00
Evan You ce363e55a8 chore: fix assertNumber for undefined value 2022-11-14 16:57:44 +08:00
Evan You 7d0c63ff43 fix(custom-elements): use strict number casting
close #4946
close #2598
close #2604

This commit also refactors internal usage of previous loose
implementation of `toNumber` to the stricter version where applicable.
Use of `looseToNumber` is preserved for `v-model.number` modifier to
ensure backwards compatibility and consistency with Vue 2 behavior.
2022-11-14 16:20:12 +08:00
Evan You d33292dd47 chore: return early in warn() in prod 2022-11-09 11:48:35 +08:00
Evan You d0da0028f2 wip: data option compat 2021-04-07 16:19:24 -04:00
Evan You eb2ae44d94 refactor(types): widen `Component` type to include consutructor types
returned from `defineComponent`

ref: https://github.com/vuejs/vue-router-next/pull/421
also close #1880

Previous `Component` type is now exported as `ConcreteComponent`.

This introduces a minor breaking change when calling `h(comp, { ... })`
will now fail if `comp` is a of generic `Component` type, since it does
not specify what props it expects.
2020-08-19 16:19:25 -04:00
Evan You 32a4cb804b test: improve coverage 2020-07-15 10:38:45 -04:00
Evan You e765d81404 fix(runtime-core): fix component name inference in warnings
Should not pollute component definition name property
fix #1418
2020-06-26 09:28:15 -04:00
Evan You a0e2c12874 fix(warning): always check for component instance presence when formatting traces 2020-04-29 14:41:22 -04:00
Evan You 0278992f78 fix(warn): fix component name inference in warning trace 2020-04-20 16:06:51 -04:00
Evan You e93e426bfa feat(runtime-core): config.performance tracing support 2020-04-01 21:36:50 -04:00
Evan You d9d63f21b1 fix(reactivity): avoid cross-component dependency leaks in setup() 2020-02-17 23:14:07 -05:00
Evan You c97d83aff2 refactor(runtime-core): tweak component proxy implementation 2019-12-10 11:14:29 -05:00
Evan You bdafa1dfc4 refactor: adjust warning for fn props and component with many props 2019-11-23 22:17:46 -05:00
Evan You dfc7c0f12a refactor: adjust internal vnode types + more dts tests 2019-11-04 18:38:55 -05:00
Evan You 300a705221 refactor: use __TEST__ flag 2019-11-04 14:28:01 -05:00
Evan You 25af8dc73b refactor: improve warning output 2019-11-02 23:21:02 -04:00
Evan You 5cdeeaa702 types: fix types 2019-11-01 23:04:28 -04:00
Dmitry Sharshakov db7666d0f3 fix(warning): handle errors in warn handler (#396) 2019-10-27 20:55:50 -04:00
fisker Cheung 1fbb4d22fa chore: use `const` instead of `let` (#283) 2019-10-14 23:15:36 -04:00
Evan You 1393ee52ca types: improve typing 2019-10-08 10:50:10 -04:00
Vladimir f48a2ffc76 chore: fix typos (#103) 2019-10-05 10:48:54 -04:00
Carlos Rodrigues fbabae0c0a chore: replace some type casts and fix variable and filename typos (#93) 2019-10-05 10:38:02 -04:00
月迷津渡 9d6783053c types: simplify types (#104) 2019-10-05 10:09:34 -04:00
Evan You 360f3b4f37 types: improve type exports 2019-09-06 12:58:31 -04:00
Evan You cbc8dddd15 chore: fix test 2019-09-03 20:31:53 -04:00
Evan You 40d33a3973 wip: remove config.silent 2019-09-03 20:17:25 -04:00
Evan You 98d1406214 test: test for app-level APIs 2019-09-03 18:11:04 -04:00
Evan You aac807bc63 test: test for directives 2019-09-02 12:09:29 -04:00
Evan You 966d7b5487 feat: error handling for setup / render / watch / event handlers 2019-08-30 15:05:39 -04:00
Evan You fd018b83b5 feat: warning context 2019-08-30 10:36:30 -04:00
Evan You 62e07a1b7e test: coverage 2019-08-27 14:42:05 -04:00
Evan You 9dd133b1e9 wip: props resolving 2019-05-28 18:06:00 +08:00
Evan You 3cded86b98 wip: switch to new implementation 2019-05-25 23:51:20 +08:00
Evan You ccc835caff chore: fix warning indent 2018-11-03 05:59:29 +09:00
Evan You 3e31de3742 chore: fix warning newline 2018-11-03 05:37:01 +09:00
Evan You a7bcb7898f refactor: improve error logging 2018-10-28 12:09:38 -04:00
Evan You e05673f4d3 refactor: rename packages 2018-10-26 15:44:50 -04:00