1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Update version of injectable for

- Allow hierarchy of setuppables
- Detection of circular injections
- Detection of circular setuppables
- Better error messages for injecting non-registered injectables
- Introduce injectMany as new pattern
- Introduce keyed singletons as new lifecycle
- Allow instantiation parameter of any type

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2022-02-09 10:50:07 +02:00
parent 668ac58cb3
commit 7c9a7ca8b4
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A
2 changed files with 17 additions and 17 deletions

View File

@ -194,8 +194,8 @@
"@hapi/call": "^8.0.1",
"@hapi/subtext": "^7.0.3",
"@kubernetes/client-node": "^0.16.1",
"@ogre-tools/injectable": "3.2.1",
"@ogre-tools/injectable-react": "3.2.1",
"@ogre-tools/injectable": "5.0.0",
"@ogre-tools/injectable-react": "5.0.0",
"@sentry/electron": "^2.5.4",
"@sentry/integrations": "^6.15.0",
"@types/circular-dependency-plugin": "5.0.4",

View File

@ -946,28 +946,28 @@
"@nodelib/fs.scandir" "2.1.3"
fastq "^1.6.0"
"@ogre-tools/fp@^3.0.0":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@ogre-tools/fp/-/fp-3.0.0.tgz#808292075644590a0f875211361f8650dee0587b"
integrity sha512-fZdeMY7Jj690V/RnJ2Lc3hnEGATJ1rp1R4pb1k0tiQgDC4Q9Neekv76z4HereOTG1SjpdF6tJTIaff/vJ/vYqA==
"@ogre-tools/fp@^5.0.0":
version "5.0.0"
resolved "https://registry.yarnpkg.com/@ogre-tools/fp/-/fp-5.0.0.tgz#5ad4ce56cc7002c927aa94415dea2c971da31cb8"
integrity sha512-ASZw9uSpKAOFQzY4oIfHtKaIJFX9LX7EjlkMgw4QEzl7S9S3mvncAxEDpGP5ZuMrndyjUP2nV61FKgQBlA2K1Q==
dependencies:
lodash "^4.17.21"
"@ogre-tools/injectable-react@3.2.1":
version "3.2.1"
resolved "https://registry.yarnpkg.com/@ogre-tools/injectable-react/-/injectable-react-3.2.1.tgz#b0bff8c32a2eb77653cc4b0496cd123c80cfaae5"
integrity sha512-ufC9bR5nnO/cQJ6TiIxKdg0j2liGPTb6XvuK/0QGeGwd534giMHHL5L4CxF6qRLX6QDQ3FejhOTUn7+DV5uugg==
"@ogre-tools/injectable-react@5.0.0":
version "5.0.0"
resolved "https://registry.yarnpkg.com/@ogre-tools/injectable-react/-/injectable-react-5.0.0.tgz#6997baf41dfaf7bc80f135315816ccfaa3f12ace"
integrity sha512-Np4ecJW3R5gxKORBZwSTF1HImmtAw13gKioaIDBYKyF/bqPM6udGSGPgX20Faa91gd9B9KIz7TkN2Cg7oZpdQA==
dependencies:
"@ogre-tools/fp" "^3.0.0"
"@ogre-tools/injectable" "^3.2.1"
"@ogre-tools/fp" "^5.0.0"
"@ogre-tools/injectable" "^5.0.0"
lodash "^4.17.21"
"@ogre-tools/injectable@3.2.1", "@ogre-tools/injectable@^3.2.1":
version "3.2.1"
resolved "https://registry.yarnpkg.com/@ogre-tools/injectable/-/injectable-3.2.1.tgz#30ca60f47b84c91219acb333d4342df4ccd2827c"
integrity sha512-IEG3IIYTrTkKemDkxcI+qL8EDDQB3RS8k1qxy4obQ9g3SAURWUfB1j02dBbcIYmtOHEXWtP3AY57HE5sPG0prQ==
"@ogre-tools/injectable@5.0.0", "@ogre-tools/injectable@^5.0.0":
version "5.0.0"
resolved "https://registry.yarnpkg.com/@ogre-tools/injectable/-/injectable-5.0.0.tgz#1f63a631bd7c55202cb2c528ca6517ae99af5b1d"
integrity sha512-6bAHVAOhKgyewyPUAmxBLH1t/vwiwW9wG1rMyjy2N+8oX6MkQVJK2KQQXdTYytDX6yfY2VJ61L/bsQCRggPdbw==
dependencies:
"@ogre-tools/fp" "^3.0.0"
"@ogre-tools/fp" "^5.0.0"
lodash "^4.17.21"
"@panva/asn1.js@^1.0.0":