Commit Graph

34 Commits

Author SHA1 Message Date
Evan You eaf5455d77
chore: Merge branch 'main' into minor 2024-08-07 18:25:58 +08:00
edison 7e75de002f
fix(runtime-core): prioritize using the provides from currentApp in nested createApp (#11502)
close #11488
2024-08-07 12:02:38 +08:00
Evan You 321d80758c
fix(types): allow using InjectionKey as valid property key
close #5089
2024-08-02 11:11:03 +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 038cd830d5 fix(types): retain compatibility for provide() usage with explicit type parameter 2023-05-02 21:35:28 +08:00
Evan You de87e6e405 fix(types): fix provide type checking for ref value
fix #8201
2023-05-01 11:27:05 +08:00
Eduardo San Martin Morote 5510ce385a
feat: hasInjectionContext() for libraries (#8111) 2023-04-20 10:12:18 +08:00
Eduardo San Martin Morote 869f3fb93e
feat(app): app.runWithContext() (#7451) 2023-04-05 15:18:13 +08:00
Yugang Cao e603fd258c
chore: fix typo (#5261) [ci skip] 2022-01-21 01:18:34 -05:00
Eunjae Lee db1dc1c630
fix(runtime-core): bind default function of inject to instance (#3925)
fix #3923
2021-06-09 12:02:05 -04:00
Evan You aea88c3280 refactor: fix implementation of SFC :slotted id handling
fix #2892
2021-03-05 18:28:12 -05:00
hiroki 7a1a782642
fix(provide): support symbols in applyOptions (#2616)
fix #2615
2020-11-30 16:36:02 -05:00
Hunter 111d04f119
fix(runtime-core): prevent self-injection (#2424)
fix #2400
2020-10-19 20:45:48 -04:00
Evan You b2dc95378d types: fix + test inject API typing
ref: #2052
2020-09-14 21:26:28 -04:00
Evan You d4724619fc fix(inject): fix support for inject option default function
fix #2050
2020-09-04 12:07:30 -04:00
Evan You 7454e2a52b build(deps): upgrade to TypeScript 4 2020-08-20 17:48:28 -04:00
Eduardo San Martin Morote 94562daea7
fix(inject): allow default value to be `undefined` (#894)
Close #892
2020-03-30 15:24:55 -04:00
Evan You e79c918676 feat(inject): allow usage in functional components 2019-11-06 12:51:26 -05:00
Dmitry Sharshakov 7394f7ec42 fix(apiInject): fix stringifying of symbol injection key (#383) 2019-10-26 10:52:29 -04:00
Evan You b5886189ba types: massive refactor 2019-10-22 11:53:32 -04:00
Evan You 8da5b007b1 types: improve typing 2019-10-08 12:43:13 -04:00
Evan You 98d1406214 test: test for app-level APIs 2019-09-03 18:11:04 -04:00
Evan You 966d7b5487 feat: error handling for setup / render / watch / event handlers 2019-08-30 15:05:39 -04:00
Evan You 62e07a1b7e test: coverage 2019-08-27 14:42:05 -04:00
Evan You 7691c06520 wip: warn when injection not found 2019-08-20 15:51:55 -04:00
Evan You c5558b7ed1 wip: remove immutability conversion in inject 2019-08-20 14:28:44 -04:00
Evan You b218678c66 feat: toRefs 2019-08-20 09:38:00 -04:00
Evan You 10a2cf47ea wip: make injected values immutable 2019-08-19 15:06:03 -04:00
Evan You 685348f818 wip: adjust inject API 2019-08-19 14:45:11 -04:00
Evan You e1e4a3854c wip: update runtime core to updated reactivity api names 2019-08-16 10:02:53 -04:00
Evan You 1cfa2da78a types: allow string keys in provide/inject 2019-08-13 11:17:55 -04:00
Evan You 8eb20eede9 chore: todo 2019-06-19 22:50:14 +08:00
Evan You 117630fb92 perf: improve inject performance 2019-06-19 22:48:22 +08:00
Evan You 0952d4cf51 wip: provide/inject 2019-06-19 17:31:49 +08:00