Commit Graph

37 Commits

Author SHA1 Message Date
fisker Cheung 92b02dc48f chore: comment typo (#506) 2019-11-28 10:01:53 +01:00
Evan You 08bf9976ae types: ensure props are readonly 2019-11-09 18:40:25 -05:00
Evan You dfc7c0f12a refactor: adjust internal vnode types + more dts tests 2019-11-04 18:38:55 -05:00
Evan You 5cdeeaa702 types: fix types 2019-11-01 23:04:28 -04:00
Evan You 66ecd8b47f types: setup tests for built d.ts files 2019-11-01 22:54:01 -04:00
Evan You 7b7b8ef221 types: improve h inference + infer required props without need for as const 2019-11-01 17:06:19 -04:00
Evan You 3a6dcd3aba types: improve h() and TSX type inference
- Should allow extraneous props as attrs in TSX
- Should check props when using constructor type returned by
  createComponent() in h()
2019-10-31 12:43:05 -04:00
Evan You c6cbca25fe feat(core): keep-alive 2019-10-29 22:28:38 -04:00
Evan You 8edfbf9df9 feat(core): adjust attrs fallthrough behavior 2019-10-25 12:12:17 -04:00
likui 532b5eebd7 feat(runtime-core): support array in watch option (#376) 2019-10-25 10:25:52 -04:00
Evan You af57ad110f chore: revert prettier 2019-10-22 11:53:32 -04:00
Evan You b5886189ba types: massive refactor 2019-10-22 11:53:32 -04:00
Cr a23e03f01e feat(apiOptions): add warning for duplicated properties declared by options (#329) 2019-10-21 23:47:16 -04:00
Evan You a25b1371ab types: improve types 2019-10-21 23:37:03 -04:00
Dmitry Sharshakov 74d8c5919d types: improve computed types (#343) 2019-10-21 13:57:20 -04:00
Dmitry Sharshakov 1f4937c2fd types: use RenderFunction type (#342) 2019-10-21 13:44:01 -04:00
fisker Cheung e5d60a0f7a types: use hook type in options (#284) 2019-10-14 23:15:09 -04:00
Cr d2bcedb213 feat(apiOptions): warn invalid computed options (#225) 2019-10-14 02:15:31 -04:00
Tim van den Eijnden 0177355242 fix: add warnings (#82)
* fix: add warnings

- invalid watch handler path
- attempting to mutate readonly computed value
- attempt of mutating public property
- attempt of mutating prop

* fix: more descriptive warnings + details

* fix: test apiOptions warnings

* fix: update warning in componentProxy

* fix: update warnings in componentProxy & apiOptions

* fix: update warning in componentProxy

* fix: implemented tests for componentProxy

* fix: remove comment + small refactor
2019-10-09 14:03:21 -04:00
Evan You 8da5b007b1 types: improve typing 2019-10-08 12:43:13 -04:00
Evan You 1393ee52ca types: improve typing 2019-10-08 10:50:10 -04:00
扩散性百万甜面包 016231d09f types: improve type for WatchHandler (#160) 2019-10-08 10:48:24 -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
Evan You d87255ce46 fix(options): data options should preserve original object if possible 2019-10-02 10:03:43 -04:00
Evan You 0f25c29119 refactor: reorganize component related code and types 2019-09-06 11:19:22 -04:00
Evan You 4c075803b5 test: test for app.mixin & warnHandler 2019-09-05 20:59:45 -04:00
Evan You 7eed0df3c2 wip: $data should only expose properties from data() 2019-09-05 20:36:35 -04:00
Evan You 94a05561f8 feat: fix all cases for h and options type inference 2019-09-05 18:48:49 -04:00
Evan You 9b90e673e8 wip: improve options typing 2019-09-05 16:09:30 -04:00
Evan You 369b9eb583 types: props validation for h 2019-09-05 11:11:33 -04:00
Evan You 81a31f79dc feat: created/beforeCreate 2019-09-05 10:20:40 -04:00
Evan You 13298bc4fa test: test for options API 2019-09-04 18:16:11 -04:00
Evan You 7cd33587ba types: errorCaptured can return void 2019-09-04 13:50:57 -04:00
Evan You 02de984f1f feat: mixins/extends/assets options 2019-09-04 11:37:00 -04:00
Evan You b4c909c260 feat: $nextTick, $forceUpdate, $watch 2019-09-03 23:04:11 -04:00
Evan You a6616e4210 feat: 2.x options support 2019-09-03 22:25:38 -04:00