inversify 7.6.1 → 7.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/lib/cjs/index.d.ts +1 -1
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +1 -1
- package/lib/esm/index.d.ts.map +1 -1
- package/package.json +30 -18
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
12
12
|
|
|
13
13
|
### Removed
|
|
14
14
|
|
|
15
|
+
## [7.7.0]
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
- Added `Bind` type.
|
|
19
|
+
- Added `IsBound` type.
|
|
20
|
+
- Added `OnActivation` type.
|
|
21
|
+
- Added `OnDeactivation` type.
|
|
22
|
+
- Added `Rebind` type.
|
|
23
|
+
- Added `RebindSync` type.
|
|
24
|
+
- Added `Unbind` type.
|
|
25
|
+
- Added `UnbindSync` type.
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
- Updated `BindOnFluentSyntaxImplementation.onDeactivation` to throw an error on non singleton scoped bindings.
|
|
29
|
+
- Updated `ServiceResolutionManager` to provide right `getChained` operation after computed properties are reset.
|
|
30
|
+
- Updated `Container` to properly manage bindings bindings on child containers after a parent container restores a snapshot.
|
|
31
|
+
|
|
15
32
|
## [7.6.1]
|
|
16
33
|
|
|
17
34
|
### Changed
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
2
|
export { Newable, LazyServiceIdentifier, ServiceIdentifier, } from '@inversifyjs/common';
|
|
3
|
-
export { BindInFluentSyntax, BindingIdentifier, BindInWhenOnFluentSyntax, BindOnFluentSyntax, BindToFluentSyntax, BindWhenFluentSyntax, BindWhenOnFluentSyntax, BoundServiceSyntax, Container, ContainerModule, ContainerModuleLoadOptions, ContainerOptions, IsBoundOptions, ResolvedValueInjectOptions, ResolvedValueMetadataInjectOptions, ResolvedValueMetadataInjectTagOptions, } from '@inversifyjs/container';
|
|
3
|
+
export { Bind, BindInFluentSyntax, BindingIdentifier, BindInWhenOnFluentSyntax, BindOnFluentSyntax, BindToFluentSyntax, BindWhenFluentSyntax, BindWhenOnFluentSyntax, BoundServiceSyntax, Container, ContainerModule, ContainerModuleLoadOptions, ContainerOptions, IsBound, IsBoundOptions, OnActivation, OnDeactivation, Rebind, RebindSync, ResolvedValueInjectOptions, ResolvedValueMetadataInjectOptions, ResolvedValueMetadataInjectTagOptions, Unbind, UnbindSync, } from '@inversifyjs/container';
|
|
4
4
|
export { BindingActivation, BindingConstraints, BindingDeactivation, BindingScope, DynamicValueBuilder, Factory, GetAllOptions, GetOptions, GetOptionsTagConstraint, MetadataName, MetadataTag, MultiInjectOptions, OptionalGetOptions, Provider, ResolutionContext, bindingScopeValues, bindingTypeValues, decorate, inject, injectFromBase, injectable, multiInject, named, optional, unmanaged, tagged, postConstruct, preDestroy, } from '@inversifyjs/core';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EACL,OAAO,EACP,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,SAAS,EACT,eAAe,EACf,0BAA0B,EAC1B,gBAAgB,EAChB,cAAc,EACd,0BAA0B,EAC1B,kCAAkC,EAClC,qCAAqC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EACL,OAAO,EACP,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,IAAI,EACJ,kBAAkB,EAClB,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,SAAS,EACT,eAAe,EACf,0BAA0B,EAC1B,gBAAgB,EAChB,OAAO,EACP,cAAc,EACd,YAAY,EACZ,cAAc,EACd,MAAM,EACN,UAAU,EACV,0BAA0B,EAC1B,kCAAkC,EAClC,qCAAqC,EACrC,MAAM,EACN,UAAU,GACX,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACnB,OAAO,EACP,aAAa,EACb,UAAU,EACV,uBAAuB,EACvB,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,QAAQ,EACR,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,QAAQ,EACR,MAAM,EACN,cAAc,EACd,UAAU,EACV,WAAW,EACX,KAAK,EACL,QAAQ,EACR,SAAS,EACT,MAAM,EACN,aAAa,EACb,UAAU,GACX,MAAM,mBAAmB,CAAC"}
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,4BAA0B;AAE1B,8CAI6B;AAF3B,+GAAA,qBAAqB,OAAA;AAGvB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,4BAA0B;AAE1B,8CAI6B;AAF3B,+GAAA,qBAAqB,OAAA;AAGvB,oDAyBgC;AAf9B,sGAAA,SAAS,OAAA;AACT,4GAAA,eAAe,OAAA;AAejB,0CA6B2B;AAbzB,0GAAA,kBAAkB,OAAA;AAClB,yGAAA,iBAAiB,OAAA;AACjB,gGAAA,QAAQ,OAAA;AACR,8FAAA,MAAM,OAAA;AACN,sGAAA,cAAc,OAAA;AACd,kGAAA,UAAU,OAAA;AACV,mGAAA,WAAW,OAAA;AACX,6FAAA,KAAK,OAAA;AACL,gGAAA,QAAQ,OAAA;AACR,iGAAA,SAAS,OAAA;AACT,8FAAA,MAAM,OAAA;AACN,qGAAA,aAAa,OAAA;AACb,kGAAA,UAAU,OAAA"}
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { LazyServiceIdentifier, Newable, ServiceIdentifier } from '@inversifyjs/common';
|
|
2
|
-
export { BindInFluentSyntax, BindInWhenOnFluentSyntax, BindOnFluentSyntax, BindToFluentSyntax, BindWhenFluentSyntax, BindWhenOnFluentSyntax, BindingIdentifier, BoundServiceSyntax, Container, ContainerModule, ContainerModuleLoadOptions, ContainerOptions, IsBoundOptions, ResolvedValueInjectOptions, ResolvedValueMetadataInjectOptions, ResolvedValueMetadataInjectTagOptions } from '@inversifyjs/container';
|
|
2
|
+
export { Bind, BindInFluentSyntax, BindInWhenOnFluentSyntax, BindOnFluentSyntax, BindToFluentSyntax, BindWhenFluentSyntax, BindWhenOnFluentSyntax, BindingIdentifier, BoundServiceSyntax, Container, ContainerModule, ContainerModuleLoadOptions, ContainerOptions, IsBound, IsBoundOptions, OnActivation, OnDeactivation, Rebind, RebindSync, ResolvedValueInjectOptions, ResolvedValueMetadataInjectOptions, ResolvedValueMetadataInjectTagOptions, Unbind, UnbindSync } from '@inversifyjs/container';
|
|
3
3
|
export { BindingActivation, BindingConstraints, BindingDeactivation, BindingScope, DynamicValueBuilder, Factory, GetAllOptions, GetOptions, GetOptionsTagConstraint, MetadataName, MetadataTag, MultiInjectOptions, OptionalGetOptions, Provider, ResolutionContext, bindingScopeValues, bindingTypeValues, decorate, inject, injectFromBase, injectable, multiInject, named, optional, postConstruct, preDestroy, tagged, unmanaged } from '@inversifyjs/core';
|
package/lib/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EACL,OAAO,EACP,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,SAAS,EACT,eAAe,EACf,0BAA0B,EAC1B,gBAAgB,EAChB,cAAc,EACd,0BAA0B,EAC1B,kCAAkC,EAClC,qCAAqC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EACL,OAAO,EACP,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,IAAI,EACJ,kBAAkB,EAClB,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,SAAS,EACT,eAAe,EACf,0BAA0B,EAC1B,gBAAgB,EAChB,OAAO,EACP,cAAc,EACd,YAAY,EACZ,cAAc,EACd,MAAM,EACN,UAAU,EACV,0BAA0B,EAC1B,kCAAkC,EAClC,qCAAqC,EACrC,MAAM,EACN,UAAU,GACX,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACnB,OAAO,EACP,aAAa,EACb,UAAU,EACV,uBAAuB,EACvB,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,QAAQ,EACR,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,QAAQ,EACR,MAAM,EACN,cAAc,EACd,UAAU,EACV,WAAW,EACX,KAAK,EACL,QAAQ,EACR,SAAS,EACT,MAAM,EACN,aAAa,EACb,UAAU,GACX,MAAM,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -6,40 +6,53 @@
|
|
|
6
6
|
"description": "A powerful and lightweight inversion of control container for JavaScript and Node.js apps powered by TypeScript.",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@inversifyjs/common": "1.5.2",
|
|
9
|
-
"@inversifyjs/container": "1.
|
|
10
|
-
"@inversifyjs/core": "
|
|
9
|
+
"@inversifyjs/container": "1.12.1",
|
|
10
|
+
"@inversifyjs/core": "6.0.1"
|
|
11
|
+
},
|
|
12
|
+
"devEngines": {
|
|
13
|
+
"packageManager": {
|
|
14
|
+
"name": "pnpm",
|
|
15
|
+
"version": "^10.13.1",
|
|
16
|
+
"onFail": "warn"
|
|
17
|
+
},
|
|
18
|
+
"runtime": {
|
|
19
|
+
"name": "node",
|
|
20
|
+
"version": "^22.10.2",
|
|
21
|
+
"onFail": "warn"
|
|
22
|
+
}
|
|
11
23
|
},
|
|
12
24
|
"devDependencies": {
|
|
13
|
-
"@eslint/js": "9.
|
|
25
|
+
"@eslint/js": "9.32.0",
|
|
14
26
|
"@rollup/plugin-terser": "0.4.4",
|
|
15
27
|
"@rollup/plugin-typescript": "12.1.4",
|
|
16
28
|
"@types/chai": "4.3.20",
|
|
17
29
|
"@types/mocha": "10.0.10",
|
|
30
|
+
"@types/node": "22.17.0",
|
|
18
31
|
"@types/sinon": "17.0.4",
|
|
19
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
20
|
-
"@typescript-eslint/parser": "8.
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "8.38.0",
|
|
33
|
+
"@typescript-eslint/parser": "8.38.0",
|
|
21
34
|
"chai": "4.5.0",
|
|
22
|
-
"eslint": "9.
|
|
23
|
-
"eslint-config-prettier": "10.1.
|
|
24
|
-
"eslint-plugin-prettier": "5.5.
|
|
35
|
+
"eslint": "9.32.0",
|
|
36
|
+
"eslint-config-prettier": "10.1.8",
|
|
37
|
+
"eslint-plugin-prettier": "5.5.3",
|
|
25
38
|
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
26
39
|
"mocha": "11.7.1",
|
|
27
40
|
"nyc": "17.1.0",
|
|
28
41
|
"prettier": "3.6.2",
|
|
29
42
|
"rimraf": "6.0.1",
|
|
43
|
+
"rollup": "4.46.2",
|
|
30
44
|
"rollup-plugin-dts": "6.2.1",
|
|
31
45
|
"sinon": "21.0.0",
|
|
32
46
|
"ts-loader": "9.5.2",
|
|
47
|
+
"tslib": "2.8.1",
|
|
33
48
|
"ts-node": "10.9.2",
|
|
34
49
|
"typescript": "5.8.3",
|
|
35
|
-
"typescript-eslint": "8.
|
|
50
|
+
"typescript-eslint": "8.38.0"
|
|
36
51
|
},
|
|
37
52
|
"peerDependencies": {
|
|
38
53
|
"reflect-metadata": "~0.2.2"
|
|
39
54
|
},
|
|
40
|
-
"engines": {},
|
|
41
55
|
"homepage": "http://inversify.io",
|
|
42
|
-
"jsnext:main": "es/inversify.js",
|
|
43
56
|
"keywords": [
|
|
44
57
|
"dependency injection",
|
|
45
58
|
"dependency inversion",
|
|
@@ -64,18 +77,17 @@
|
|
|
64
77
|
"type": "git",
|
|
65
78
|
"url": "https://github.com/inversify/InversifyJS.git"
|
|
66
79
|
},
|
|
80
|
+
"sideEffects": false,
|
|
81
|
+
"version": "7.7.0",
|
|
67
82
|
"scripts": {
|
|
68
|
-
"build": "
|
|
83
|
+
"build": "pnpm run build:cjs && pnpm run build:esm",
|
|
69
84
|
"build:cjs": "tsc --build tsconfig.cjs.json && node ./scripts/writeCommonJsPackageJson.mjs ./lib/cjs",
|
|
70
85
|
"build:esm": "rollup -c ./rollup.config.mjs && node ./scripts/writeEsmPackageJson.mjs ./lib/esm",
|
|
71
86
|
"build:clean": "rimraf lib",
|
|
72
87
|
"format": "prettier --write ./src/**/*.ts",
|
|
73
88
|
"lint": "eslint ./src",
|
|
74
|
-
"prebuild": "
|
|
75
|
-
"prepublish": "npm run build",
|
|
89
|
+
"prebuild": "pnpm run build:clean",
|
|
76
90
|
"test": "nyc --reporter=lcov --require ts-node/register mocha src/test/*.test.ts src/test/**/*.test.ts --reporter spec --exit",
|
|
77
91
|
"test:cjs": "nyc --reporter=lcov mocha lib/cjs/test/*.test.js lib/cjs/test/**/*.test.js --reporter spec"
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
"version": "7.6.1"
|
|
81
|
-
}
|
|
92
|
+
}
|
|
93
|
+
}
|