inversify 8.0.0-beta.0 → 8.0.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/package.json +9 -9
- package/CHANGELOG.md +0 -656
package/package.json
CHANGED
|
@@ -5,21 +5,21 @@
|
|
|
5
5
|
},
|
|
6
6
|
"description": "A powerful and lightweight inversion of control container for JavaScript and Node.js apps powered by TypeScript.",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@inversifyjs/common": "2.0.0
|
|
9
|
-
"@inversifyjs/container": "2.0.0
|
|
10
|
-
"@inversifyjs/core": "10.0.0
|
|
8
|
+
"@inversifyjs/common": "2.0.0",
|
|
9
|
+
"@inversifyjs/container": "2.0.0",
|
|
10
|
+
"@inversifyjs/core": "10.0.0"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@types/node": "24.
|
|
14
|
-
"@vitest/coverage-v8": "4.0
|
|
15
|
-
"eslint": "
|
|
13
|
+
"@types/node": "24.12.0",
|
|
14
|
+
"@vitest/coverage-v8": "4.1.0",
|
|
15
|
+
"eslint": "10.0.3",
|
|
16
16
|
"prettier": "3.8.1",
|
|
17
17
|
"reflect-metadata": "0.2.2",
|
|
18
18
|
"rimraf": "6.1.3",
|
|
19
19
|
"tslib": "2.8.1",
|
|
20
20
|
"typescript": "5.9.3",
|
|
21
|
-
"vitest": "4.0
|
|
22
|
-
"@inversifyjs/eslint-plugin-require-extensions": "0.2.0
|
|
21
|
+
"vitest": "4.1.0",
|
|
22
|
+
"@inversifyjs/eslint-plugin-require-extensions": "0.2.0"
|
|
23
23
|
},
|
|
24
24
|
"homepage": "https://inversify.io",
|
|
25
25
|
"keywords": [
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"url": "git+https://github.com/inversify/monorepo.git"
|
|
51
51
|
},
|
|
52
52
|
"sideEffects": true,
|
|
53
|
-
"version": "8.0.0
|
|
53
|
+
"version": "8.0.0",
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "tsc",
|
|
56
56
|
"build:clean": "rimraf lib",
|
package/CHANGELOG.md
DELETED
|
@@ -1,656 +0,0 @@
|
|
|
1
|
-
# inversify
|
|
2
|
-
|
|
3
|
-
## 8.0.0-beta.0
|
|
4
|
-
|
|
5
|
-
### Major Changes
|
|
6
|
-
|
|
7
|
-
- Renamed `Container.unbind` to `unbindAsync`
|
|
8
|
-
- Renamed `Container.unbindSync` to `unbind`
|
|
9
|
-
- Renamed `Container.rebind` to `rebindAsync`
|
|
10
|
-
- Renamed `Container.rebindSync` to `rebind`
|
|
11
|
-
- Renamed `ContainerModuleLoadOptions.unbind` to `unbindAsync`
|
|
12
|
-
- Renamed `ContainerModuleLoadOptions.unbindSync` to `unbind`
|
|
13
|
-
- Renamed `ContainerModuleLoadOptions.rebind` to `rebindAsync`
|
|
14
|
-
- Renamed `ContainerModuleLoadOptions.rebindSync` to `rebind`
|
|
15
|
-
- Updated package to be ESM only
|
|
16
|
-
- Renamed `Container.load` to `loadAsync`
|
|
17
|
-
- Renamed `Container.loadSync` to `load`
|
|
18
|
-
- Updated `ServiceIdentifier` type. Now, a `Function` is a valid `ServiceIdentifier<T>` if and only if it satisfies `AbstractNewable<T> | Newable<T>`
|
|
19
|
-
- Renamed `Container.unload` to `unloadAsync`
|
|
20
|
-
- Renamed `Container.unloadSync` to `unload`
|
|
21
|
-
- Renamed `Container.unbindAll` to `Container.unbindAllAsync`
|
|
22
|
-
- Renamed `Container.unbindAllSync` to `Container.unbindAll`
|
|
23
|
-
- Remove `Provider`
|
|
24
|
-
- Remove `ProviderBinding`
|
|
25
|
-
|
|
26
|
-
### Patch Changes
|
|
27
|
-
|
|
28
|
-
- Updated dependencies
|
|
29
|
-
- @inversifyjs/container@2.0.0-beta.0
|
|
30
|
-
- @inversifyjs/common@2.0.0-beta.0
|
|
31
|
-
- @inversifyjs/core@10.0.0-beta.0
|
|
32
|
-
|
|
33
|
-
## 7.11.0
|
|
34
|
-
|
|
35
|
-
### Minor Changes
|
|
36
|
-
|
|
37
|
-
- Added `Container.unbindAllSync`
|
|
38
|
-
|
|
39
|
-
### Patch Changes
|
|
40
|
-
|
|
41
|
-
- Updated dependencies
|
|
42
|
-
- @inversifyjs/core@9.2.0
|
|
43
|
-
- @inversifyjs/container@1.15.0
|
|
44
|
-
|
|
45
|
-
## 7.10.8
|
|
46
|
-
|
|
47
|
-
### Patch Changes
|
|
48
|
-
|
|
49
|
-
- Updated `BindToFluentSyntax.toResolvedValue` to allow non multiple array `ServiceIdentifier` `injectOptions`
|
|
50
|
-
- Updated dependencies
|
|
51
|
-
- @inversifyjs/container@1.14.5
|
|
52
|
-
|
|
53
|
-
## 7.10.7
|
|
54
|
-
|
|
55
|
-
### Patch Changes
|
|
56
|
-
|
|
57
|
-
- Updated circular dependency detection to handle V8 issues on nearly exhausted call stack scenarios
|
|
58
|
-
- Updated dependencies
|
|
59
|
-
- @inversifyjs/core@9.1.2
|
|
60
|
-
- @inversifyjs/container@1.14.4
|
|
61
|
-
|
|
62
|
-
## 7.10.6
|
|
63
|
-
|
|
64
|
-
### Patch Changes
|
|
65
|
-
|
|
66
|
-
- Updated metadata to reflect side effects
|
|
67
|
-
- Updated dependencies
|
|
68
|
-
- @inversifyjs/container@1.14.3
|
|
69
|
-
|
|
70
|
-
## 7.10.5
|
|
71
|
-
|
|
72
|
-
### Patch Changes
|
|
73
|
-
|
|
74
|
-
- Updated entrypoint to import 'reflect-metadata/lite' instead of 'reflect-metadata'
|
|
75
|
-
- Updated dependencies
|
|
76
|
-
- @inversifyjs/container@1.14.2
|
|
77
|
-
|
|
78
|
-
## 7.10.4
|
|
79
|
-
|
|
80
|
-
### Patch Changes
|
|
81
|
-
|
|
82
|
-
- Updated dependencies
|
|
83
|
-
- @inversifyjs/core@9.1.1
|
|
84
|
-
- @inversifyjs/container@1.14.1
|
|
85
|
-
|
|
86
|
-
## 7.10.3
|
|
87
|
-
|
|
88
|
-
### Patch Changes
|
|
89
|
-
|
|
90
|
-
- Updated `BindToFluentSyntax.factory` to allow async factory builders
|
|
91
|
-
- Updated `Factory` to allow async functions
|
|
92
|
-
|
|
93
|
-
- Updated dependencies
|
|
94
|
-
- @inversifyjs/container@1.14.0
|
|
95
|
-
- @inversifyjs/core@9.1.0
|
|
96
|
-
|
|
97
|
-
## 7.10.2
|
|
98
|
-
|
|
99
|
-
### Patch Changes
|
|
100
|
-
|
|
101
|
-
- Updated dependencies
|
|
102
|
-
- @inversifyjs/container@1.13.2
|
|
103
|
-
- @inversifyjs/core@9.0.1
|
|
104
|
-
|
|
105
|
-
## 7.10.1
|
|
106
|
-
|
|
107
|
-
### Patch Changes
|
|
108
|
-
|
|
109
|
-
- Added `MapToResolvedValueInjectOptions` type
|
|
110
|
-
|
|
111
|
-
- Updated dependencies
|
|
112
|
-
- @inversifyjs/container@1.13.1
|
|
113
|
-
|
|
114
|
-
## 7.10.0
|
|
115
|
-
|
|
116
|
-
### Added
|
|
117
|
-
|
|
118
|
-
- Added `InjectFromBaseOptionsLifecycle`.
|
|
119
|
-
- Added `InjectFromHierarchyOptionsLifecycle`.
|
|
120
|
-
|
|
121
|
-
### Changed
|
|
122
|
-
|
|
123
|
-
- Updated `injectFromBase` with `lifecycle` property.
|
|
124
|
-
- Updated `injectFromHierarchy` with `lifecycle` property.
|
|
125
|
-
|
|
126
|
-
## 7.9.1
|
|
127
|
-
|
|
128
|
-
### Changed
|
|
129
|
-
|
|
130
|
-
- Updated `Container` to trigger autobind options on autobound parent container related binding requests.
|
|
131
|
-
|
|
132
|
-
## 7.9.0
|
|
133
|
-
|
|
134
|
-
### Changed
|
|
135
|
-
|
|
136
|
-
- Updated `decorate` to allow method parameter decoration.
|
|
137
|
-
|
|
138
|
-
## 7.8.1
|
|
139
|
-
|
|
140
|
-
### Changed
|
|
141
|
-
|
|
142
|
-
- Fixed `injectFromHierarchy` avoiding crash when traversing `Object` metadata.
|
|
143
|
-
|
|
144
|
-
## 7.8.0
|
|
145
|
-
|
|
146
|
-
### Added
|
|
147
|
-
|
|
148
|
-
- Added `injectFromHierarchy`.
|
|
149
|
-
|
|
150
|
-
## 7.7.1
|
|
151
|
-
|
|
152
|
-
### Changed
|
|
153
|
-
|
|
154
|
-
- Fixed a bug involving circular dependencies when resolving services in some edge cases.
|
|
155
|
-
- Fixed a bug involving circular dependencies when bindings are bound in some edge cases.
|
|
156
|
-
|
|
157
|
-
## 7.7.1-beta.0
|
|
158
|
-
|
|
159
|
-
### Changed
|
|
160
|
-
|
|
161
|
-
- Fixed a bug causing `Container.bind` and `Container.unbind` to avoid throwing planning errors.
|
|
162
|
-
- Fixed a bug causing wrong cached plans involving bindings with ancestor related constraints.
|
|
163
|
-
|
|
164
|
-
## 7.7.0
|
|
165
|
-
|
|
166
|
-
### Added
|
|
167
|
-
|
|
168
|
-
- Added `Bind` type.
|
|
169
|
-
- Added `IsBound` type.
|
|
170
|
-
- Added `OnActivation` type.
|
|
171
|
-
- Added `OnDeactivation` type.
|
|
172
|
-
- Added `Rebind` type.
|
|
173
|
-
- Added `RebindSync` type.
|
|
174
|
-
- Added `Unbind` type.
|
|
175
|
-
- Added `UnbindSync` type.
|
|
176
|
-
|
|
177
|
-
### Changed
|
|
178
|
-
|
|
179
|
-
- Updated `BindOnFluentSyntaxImplementation.onDeactivation` to throw an error on non singleton scoped bindings.
|
|
180
|
-
- Updated `ServiceResolutionManager` to provide right `getChained` operation after computed properties are reset.
|
|
181
|
-
- Updated `Container` to properly manage bindings bindings on child containers after a parent container restores a snapshot.
|
|
182
|
-
|
|
183
|
-
## 7.6.1
|
|
184
|
-
|
|
185
|
-
### Changed
|
|
186
|
-
|
|
187
|
-
- Updated `getAll` and `getAllAsync` options with missing `chained` property.
|
|
188
|
-
|
|
189
|
-
## 7.6.0
|
|
190
|
-
|
|
191
|
-
### Added
|
|
192
|
-
|
|
193
|
-
- Added `MultiInjectOptions`.
|
|
194
|
-
|
|
195
|
-
### Changed
|
|
196
|
-
|
|
197
|
-
- Updated `multiInject` decorator with optional `MultiInjectOptions`.
|
|
198
|
-
- Updated `getAll` and `getAllAsync` options with optional`chained` property.
|
|
199
|
-
|
|
200
|
-
## 7.5.4
|
|
201
|
-
|
|
202
|
-
### Changed
|
|
203
|
-
|
|
204
|
-
- Updated `ServiceIdentifier` to rely on `Function` again. This solves an issue affecting classes with protected constructors.
|
|
205
|
-
|
|
206
|
-
## 7.5.3
|
|
207
|
-
|
|
208
|
-
### Changed
|
|
209
|
-
|
|
210
|
-
- Updated `ServiceIdentifier` removing `Function` in favor of a new `AbstractNewable` type. ServiceIdentifier now uses AbstractNewable instead of Function to better represent abstract classes. This provides better type safety and semantics.
|
|
211
|
-
|
|
212
|
-
## 7.5.2
|
|
213
|
-
|
|
214
|
-
### Changed
|
|
215
|
-
|
|
216
|
-
- Fixed `Container.snapshot` so snapshot bindings are not updated after a snapshot is taken.
|
|
217
|
-
- Fixed a memory leak affecting child containers.
|
|
218
|
-
|
|
219
|
-
## 7.5.1
|
|
220
|
-
|
|
221
|
-
### Changed
|
|
222
|
-
|
|
223
|
-
- Updated `Container.get` like methods to properly set bindings when autobind mode is set:
|
|
224
|
-
- `@injectable` scopes properly handled.
|
|
225
|
-
- Autobind mode no longer creates duplicated bindings.
|
|
226
|
-
|
|
227
|
-
## 7.5.0
|
|
228
|
-
|
|
229
|
-
### Changed
|
|
230
|
-
|
|
231
|
-
- Updated `Container` with `unloadSync`.
|
|
232
|
-
- Updated `Container` with `loadSync`.
|
|
233
|
-
|
|
234
|
-
## 7.4.0
|
|
235
|
-
|
|
236
|
-
### Changed
|
|
237
|
-
|
|
238
|
-
- Updated `ContainerModuleLoadOptions` with `rebind`.
|
|
239
|
-
- Updated `ContainerModuleLoadOptions` with `rebindSync`.
|
|
240
|
-
- Updated `BindToFluentSyntax.toResolvedValue` with additional type constraints.
|
|
241
|
-
|
|
242
|
-
## 7.3.0
|
|
243
|
-
|
|
244
|
-
### Changed
|
|
245
|
-
|
|
246
|
-
- Updated `Container` with `rebindSync`.
|
|
247
|
-
- Updated `Container` with `unbindSync`.
|
|
248
|
-
- Updated `Container` with `rebind`.
|
|
249
|
-
- Updated `ContainerModuleLoadOptions` with `unbindSync`.
|
|
250
|
-
- Updated `ContainerModuleLoadOptions.unbind` to accept `BindingIdentifier`.
|
|
251
|
-
|
|
252
|
-
## 7.2.0
|
|
253
|
-
|
|
254
|
-
### Added
|
|
255
|
-
|
|
256
|
-
- Added `BindingIdentifier`.
|
|
257
|
-
|
|
258
|
-
### Changed
|
|
259
|
-
|
|
260
|
-
- Updated `BindInFluentSyntax` with `getIdentifier`.
|
|
261
|
-
- Updated `Container.unbind` to handle `BindingIdentifier`.
|
|
262
|
-
- Updated `BindOnFluentSyntax` with `getIdentifier`.
|
|
263
|
-
- Updated `BindWhenFluentSyntax` with `getIdentifier`.
|
|
264
|
-
|
|
265
|
-
## 7.1.0
|
|
266
|
-
|
|
267
|
-
### Added
|
|
268
|
-
|
|
269
|
-
- Added `BindingActivation`.
|
|
270
|
-
- Added `BindingDeactivation`.
|
|
271
|
-
|
|
272
|
-
## 7.0.2
|
|
273
|
-
|
|
274
|
-
### Changed
|
|
275
|
-
|
|
276
|
-
- Updated `container.get` like methods to no longer initialize twice singleton scoped bindings.
|
|
277
|
-
|
|
278
|
-
## 7.0.1
|
|
279
|
-
|
|
280
|
-
### Changed
|
|
281
|
-
|
|
282
|
-
- Updated `Container.get` like methods to no longer initialize twice singleton scoped bindings.
|
|
283
|
-
|
|
284
|
-
## 7.0.0
|
|
285
|
-
|
|
286
|
-
Parity version with `7.0.0-alpha.5`
|
|
287
|
-
|
|
288
|
-
## 7.0.0-alpha.5
|
|
289
|
-
|
|
290
|
-
### Changed
|
|
291
|
-
|
|
292
|
-
- Renamed `BindingMetadata` to `BindingConstraints`.
|
|
293
|
-
- Improved performance on `Container.get` like methods.
|
|
294
|
-
|
|
295
|
-
## 7.0.0-alpha.4
|
|
296
|
-
|
|
297
|
-
Parity version with `7.0.0-alpha.3`.
|
|
298
|
-
|
|
299
|
-
## 6.2.2
|
|
300
|
-
|
|
301
|
-
- Solved issue with npm registry.
|
|
302
|
-
|
|
303
|
-
## 7.0.0-alpha.3
|
|
304
|
-
|
|
305
|
-
### Changed
|
|
306
|
-
|
|
307
|
-
- Updated `BindToFluentSyntax` with `.toResolvedValue`.
|
|
308
|
-
|
|
309
|
-
## 7.0.0-alpha.2
|
|
310
|
-
|
|
311
|
-
### Changed
|
|
312
|
-
|
|
313
|
-
- Updated `Container` with a plan cache. `Container.get`, `Container.getAll`, `Container.getAllAsync` and `Container.getAsync` performance has been improved.
|
|
314
|
-
|
|
315
|
-
## 7.0.0-alpha.1
|
|
316
|
-
|
|
317
|
-
### Changed
|
|
318
|
-
|
|
319
|
-
- Updated `GetOptions` with `autobind`.
|
|
320
|
-
- Updated `ContainerOptions` with `autobind`.
|
|
321
|
-
|
|
322
|
-
## 7.0.0-alpha.0
|
|
323
|
-
|
|
324
|
-
### Added
|
|
325
|
-
|
|
326
|
-
- Added `BindInFluentSyntax`.
|
|
327
|
-
- Added `BindInWhenOnFluentSyntax`.
|
|
328
|
-
- Added `BindOnFluentSyntax`.
|
|
329
|
-
- Added `BindingScope`.
|
|
330
|
-
- Added `BindToFluentSyntax`.
|
|
331
|
-
- Added `BindWhenFluentSyntax`.
|
|
332
|
-
- Added `BindWhenOnFluentSyntax`.
|
|
333
|
-
- Added `ContainerModuleLoadOptions`.
|
|
334
|
-
- Added `DynamicValueBuilder`.
|
|
335
|
-
- Added `Factory`.
|
|
336
|
-
- Added `GetOptions`.
|
|
337
|
-
- Added `GetOptionsTagConstraint`.
|
|
338
|
-
- Added `IsBoundOptions`.
|
|
339
|
-
- Added `MetadataName`.
|
|
340
|
-
- Added `MetadataTag`.
|
|
341
|
-
- Added `MetadataTargetName`.
|
|
342
|
-
- Added `OptionalGetOptions`.
|
|
343
|
-
- Added `Provider`.
|
|
344
|
-
- Added `ResolutionContext`.
|
|
345
|
-
- Added `bindingScopeValues`.
|
|
346
|
-
- Added `bindingTypeValues`.
|
|
347
|
-
- Added `injectFromBase` decorator.
|
|
348
|
-
|
|
349
|
-
### Changed
|
|
350
|
-
|
|
351
|
-
- Updated `injectable` with optional `scope`.
|
|
352
|
-
- [Breaking] Updated `ContainerModule` constructor to receive a callback with `ContainerModuleLoadOptions` instead of `interfaces.ContainerModuleCallBack`.
|
|
353
|
-
- [Breaking] Updated `ContainerModule`.load to return `Promise<void>`.
|
|
354
|
-
- Updated `ContainerOptions` with `parent`.
|
|
355
|
-
- Updated `ContainerOptions` without `autoBindInjectable` and `skipBaseClassChecks`.
|
|
356
|
-
- [Breaking] Updated `Container` to no longer expose `id`, `parent` nor `options`.
|
|
357
|
-
- [Breaking] Updated `Container` with no `applyCustomMetadataReader`, `applyMiddleware`, `createChild`, `merge` and `rebind` methods.
|
|
358
|
-
- [Breaking] Updated `Container` with no `isCurrentBound`, `isBoundNamed`, `isBoundTagged` methods in favor of using `Container.isBound` with `isBoundOptions`.
|
|
359
|
-
- [Breaking] Updated `Container` with no `getNamed`, `getTagged`, `tryGet`, `tryGetNamed` and `tryGetTagged` methods in favor of `Container.get` with `OptionalGetOptions` options.
|
|
360
|
-
- [Breaking] Updated `Container` with no `getNamedAsync`, `getTaggedAsync`, `tryGetAsync`, `tryGetNamedAsync` and `tryGetTaggedAsync` methods in favor of `Container.getAsync` with `OptionalGetOptions` options.
|
|
361
|
-
- [Breaking] Updated `Container` with no `getAllNamed`, `getAllTagged`, `tryGetAll`, `tryGetAllNamed` and `tryGetAllTagged` methods in favor of `Container.getAll` with `GetOptions` options.
|
|
362
|
-
- [Breaking] Updated `Container` with no `getAllNamedAsync`, `getAllTaggedAsync`, `tryGetAllAsync`, `tryGetAllNamedAsync` and `tryGetAllTaggedAsync` methods in favor of `Container.getAllAsync` with `GetOptions` options.
|
|
363
|
-
- [Breaking] Updated `Container` with no `loadAsync` in favor of an async `Container.load`.
|
|
364
|
-
- [Breaking] Updated `Container` with no `unbindAsync` in favor of an async `Container.unbind`.
|
|
365
|
-
- [Breaking] Updated `Container` with no `unbindAllAsync` in favor of an async `Container.unbindAll`.
|
|
366
|
-
- [Breaking] Updated `Container` with no `unloadAsync` in favor of an async `Container.unload`.
|
|
367
|
-
|
|
368
|
-
### Fixed
|
|
369
|
-
|
|
370
|
-
- Updated `decorate` to no longer require a unexpected prototypes to decorate property nor methods.
|
|
371
|
-
|
|
372
|
-
### Removed
|
|
373
|
-
|
|
374
|
-
- [Breaking] Removed deprecated `LazyServiceIdentifer`. Use `LazyServiceIdentifier` instead.
|
|
375
|
-
- [Breaking] Removed `BindingScopeEnum`. Use `bindingScopeValues` instead.
|
|
376
|
-
- [Breaking] Removed `BindingTypeEnum`.
|
|
377
|
-
- [Breaking] Removed `TargetTypeEnum`.
|
|
378
|
-
- [Breaking] Removed `METADATA_KEY`.
|
|
379
|
-
- [Breaking] Removed `AsyncContainerModule`. Use `ContainerModule` instead.
|
|
380
|
-
- [Breaking] Removed `createTaggedDecorator`.
|
|
381
|
-
- [Breaking] Removed `MetadataReader`.
|
|
382
|
-
- [Breaking] Removed `id`.
|
|
383
|
-
- [Breaking] Removed `interfaces` types. Rely on new types instead.
|
|
384
|
-
- [Breaking] Removed `traverseAncerstors`.
|
|
385
|
-
- [Breaking] Removed `taggedConstraint`.
|
|
386
|
-
- [Breaking] Removed `namedConstraint`.
|
|
387
|
-
- [Breaking] Removed `typeConstraint`.
|
|
388
|
-
- [Breaking] Removed `getServiceIdentifierAsString`.
|
|
389
|
-
- [Breaking] Removed `multiBindToService`.
|
|
390
|
-
|
|
391
|
-
## 6.2.1
|
|
392
|
-
|
|
393
|
-
### Fixed
|
|
394
|
-
|
|
395
|
-
- Added missing `LazyServiceIdentifer`.
|
|
396
|
-
|
|
397
|
-
## 6.2.0
|
|
398
|
-
|
|
399
|
-
### Added
|
|
400
|
-
|
|
401
|
-
- Added `interfaces.GetAllOptions`.
|
|
402
|
-
|
|
403
|
-
### Changed
|
|
404
|
-
|
|
405
|
-
- Updated `container.getAll` with `options` optional param.
|
|
406
|
-
- Updated `container.getAllAsync` with `options` optional param.
|
|
407
|
-
- Updated `interfaces.NextArgs` with optional `isOptional` param.
|
|
408
|
-
- Updated `container` with `tryGet`.
|
|
409
|
-
- Updated `container` with `tryGetAsync`.
|
|
410
|
-
- Updated `container` with `tryGetTagged`.
|
|
411
|
-
- Updated `container` with `tryGetTaggedAsync`.
|
|
412
|
-
- Updated `container` with `tryGetNamed`.
|
|
413
|
-
- Updated `container` with `tryGetNamedAsync`.
|
|
414
|
-
- Updated `container` with `tryGetAll`.
|
|
415
|
-
- Updated `container` with `tryGetAllAsync`.
|
|
416
|
-
- Updated `container` with `tryGetAllTagged`.
|
|
417
|
-
- Updated `container` with `tryGetAllTaggedAsync`.
|
|
418
|
-
- Updated `container` with `tryGetAllNamed`.
|
|
419
|
-
- Updated `container` with `tryGetAllNamedAsync`.
|
|
420
|
-
|
|
421
|
-
## 6.2.0-beta.1
|
|
422
|
-
|
|
423
|
-
### Added
|
|
424
|
-
|
|
425
|
-
### Changed
|
|
426
|
-
|
|
427
|
-
- Updated `interfaces.NextArgs` with optional `isOptional` param.
|
|
428
|
-
- Updated `container` with `tryGet`.
|
|
429
|
-
- Updated `container` with `tryGetAsync`.
|
|
430
|
-
- Updated `container` with `tryGetTagged`.
|
|
431
|
-
- Updated `container` with `tryGetTaggedAsync`.
|
|
432
|
-
- Updated `container` with `tryGetNamed`.
|
|
433
|
-
- Updated `container` with `tryGetNamedAsync`.
|
|
434
|
-
- Updated `container` with `tryGetAll`.
|
|
435
|
-
- Updated `container` with `tryGetAllAsync`.
|
|
436
|
-
- Updated `container` with `tryGetAllTagged`.
|
|
437
|
-
- Updated `container` with `tryGetAllTaggedAsync`.
|
|
438
|
-
- Updated `container` with `tryGetAllNamed`.
|
|
439
|
-
- Updated `container` with `tryGetAllNamedAsync`.
|
|
440
|
-
|
|
441
|
-
### Fixed
|
|
442
|
-
|
|
443
|
-
## 6.2.0-beta.0
|
|
444
|
-
|
|
445
|
-
### Added
|
|
446
|
-
|
|
447
|
-
- Added `interfaces.GetAllOptions`.
|
|
448
|
-
|
|
449
|
-
### Changed
|
|
450
|
-
|
|
451
|
-
- Updated `container.getAll` with `options` optional param.
|
|
452
|
-
- Updated `container.getAllAsync` with `options` optional param.
|
|
453
|
-
|
|
454
|
-
### Fixed
|
|
455
|
-
|
|
456
|
-
## 6.1.6
|
|
457
|
-
|
|
458
|
-
### Fixed
|
|
459
|
-
|
|
460
|
-
- Fixed unexpected property access while running planning checks on injected base types.
|
|
461
|
-
- Updated ESM sourcemaps to refelct the right source code files.
|
|
462
|
-
|
|
463
|
-
## 6.1.5
|
|
464
|
-
|
|
465
|
-
### Changed
|
|
466
|
-
|
|
467
|
-
- Updated library to import `reflect-metadata`. Importing `reflect-metadata` before bootstraping a module in the userland is no longer required.
|
|
468
|
-
|
|
469
|
-
### Fixed
|
|
470
|
-
|
|
471
|
-
- Updated ESM build to provide proper types regardless of the ts resolution module strategy in the userland.
|
|
472
|
-
- Fixed container to properly resolve async `.toService` bindings.
|
|
473
|
-
- Fixed `.toService` binding to properly disable caching any values.
|
|
474
|
-
|
|
475
|
-
## 6.1.5-beta.2
|
|
476
|
-
|
|
477
|
-
### Fixed
|
|
478
|
-
|
|
479
|
-
- Updated ESM bundled types to solve circularly referenced types.
|
|
480
|
-
|
|
481
|
-
## 6.1.5-beta.1
|
|
482
|
-
|
|
483
|
-
### Fixed
|
|
484
|
-
|
|
485
|
-
- Updated ESM build to provide proper types regardless of the ts resolution module strategy in the userland.
|
|
486
|
-
|
|
487
|
-
## 6.1.5-beta.0
|
|
488
|
-
|
|
489
|
-
### Changed
|
|
490
|
-
|
|
491
|
-
- Updated library to import `reflect-metadata`. Importing `reflect-metadata` before bootstraping a module in the userland is no longer required.
|
|
492
|
-
|
|
493
|
-
### Fixed
|
|
494
|
-
|
|
495
|
-
- Fixed container to properly resolve async `.toService` bindings.
|
|
496
|
-
- Fixed `.toService` binding to properly disable caching any values.
|
|
497
|
-
|
|
498
|
-
## 6.1.4
|
|
499
|
-
|
|
500
|
-
### Changed
|
|
501
|
-
|
|
502
|
-
- Updated planner with better error description when a binding can not be properly resolved.
|
|
503
|
-
|
|
504
|
-
### Fixed
|
|
505
|
-
|
|
506
|
-
- Updated container to allow deactivating singleton undefined values.
|
|
507
|
-
- Updated ESM build to be compatible with both bundler and NodeJS module resolution algorithms.
|
|
508
|
-
|
|
509
|
-
## 6.1.4-beta.1
|
|
510
|
-
|
|
511
|
-
### Fixed
|
|
512
|
-
|
|
513
|
-
- Updated ESM build to be compatible with both bundler and NodeJS module resolution algorithms.
|
|
514
|
-
|
|
515
|
-
## 6.1.4-beta.0
|
|
516
|
-
|
|
517
|
-
### Changed
|
|
518
|
-
|
|
519
|
-
- Updated planner with better error description when a binding can not be properly resolved.
|
|
520
|
-
|
|
521
|
-
## 6.1.3
|
|
522
|
-
|
|
523
|
-
### Fixed
|
|
524
|
-
|
|
525
|
-
- Updated ESM build with missing types.
|
|
526
|
-
|
|
527
|
-
## 6.1.2
|
|
528
|
-
|
|
529
|
-
### Changed
|
|
530
|
-
|
|
531
|
-
- Updated `package.json` to include the `exports` field for better bundler support.
|
|
532
|
-
|
|
533
|
-
### Fixed
|
|
534
|
-
|
|
535
|
-
- Updated fetch metadata flows with better error descriptions.
|
|
536
|
-
|
|
537
|
-
## 6.1.2-beta.1
|
|
538
|
-
|
|
539
|
-
### Changed
|
|
540
|
-
|
|
541
|
-
- Updated `package.json` to include the `exports` field for better bundler support.
|
|
542
|
-
|
|
543
|
-
## 6.1.2-beta.0
|
|
544
|
-
|
|
545
|
-
### Fixed
|
|
546
|
-
|
|
547
|
-
- Updated fetch metadata flows with better error descriptions.
|
|
548
|
-
|
|
549
|
-
## 6.1.1
|
|
550
|
-
|
|
551
|
-
### Fixed
|
|
552
|
-
|
|
553
|
-
- Bumped `@inversifyjs/common` and `@inversifyjs/core` fixing wrong dev engines constraints.
|
|
554
|
-
|
|
555
|
-
## 6.1.0
|
|
556
|
-
|
|
557
|
-
### Changed
|
|
558
|
-
|
|
559
|
-
- Updated `ServiceIdentifier` to rely on `Function` instead of `Abstract<T>`.
|
|
560
|
-
|
|
561
|
-
### Fixed
|
|
562
|
-
|
|
563
|
-
- Fixed `Target.getNameTag` with the right type: `number | string | symbol`.
|
|
564
|
-
- Fixed `interfaces.ModuleActivationStore.addDeactivation` to enforce `serviceIdentifier` and `onDeactivation` are consistent.
|
|
565
|
-
- Fixed `interfaces.ModuleActivationStore.addActivation` to enforce `serviceIdentifier` and `onDeactivation` are consistent.
|
|
566
|
-
|
|
567
|
-
## 6.0.3
|
|
568
|
-
|
|
569
|
-
### Fixed
|
|
570
|
-
|
|
571
|
-
property injection tagged as @optional no longer overrides default values with `undefined`.
|
|
572
|
-
Updated `targetName` to be a valid `typescript@5` decorator.
|
|
573
|
-
|
|
574
|
-
## 6.0.2
|
|
575
|
-
|
|
576
|
-
### Added
|
|
577
|
-
|
|
578
|
-
Brought tests up to 100% Code Coverage
|
|
579
|
-
|
|
580
|
-
### Changed
|
|
581
|
-
|
|
582
|
-
LazyIdentfier Tests
|
|
583
|
-
Removed browser test pipeline, browserify, karma (#1542)
|
|
584
|
-
Update all dependencies except typescript (#1531)
|
|
585
|
-
|
|
586
|
-
### Fixed
|
|
587
|
-
|
|
588
|
-
Less than 100% code coverage
|
|
589
|
-
Use default class property for @optional injected properties (#1467)
|
|
590
|
-
Remove circular import (#1516)
|
|
591
|
-
Fix strict type checking on @unmanaged decorator (#1499)
|
|
592
|
-
Fix typo (LazyServiceIdentifer -> LazyServiceIdentifier) (#1483)
|
|
593
|
-
Fix typo (circular dependency error message) (#1485)
|
|
594
|
-
|
|
595
|
-
## 6.0.1 - 2021-10-14
|
|
596
|
-
|
|
597
|
-
### Added
|
|
598
|
-
|
|
599
|
-
- add API method for check dependency only in current container
|
|
600
|
-
- createTaggedDecorator #1343
|
|
601
|
-
- Async bindings #1132
|
|
602
|
-
- Async binding resolution (getAllAsync, getAllNamedAsync, getAllTaggedAsync, getAsync, getNamedAsync, getTaggedAsync, rebindAsync, unbindAsync, unbindAllAsync, unloadAsync) #1132
|
|
603
|
-
- Global onActivation / onDeactivation #1132
|
|
604
|
-
- Parent/Child onActivation / onDeactivation #1132
|
|
605
|
-
- Module onActivation / onDeactivation #1132
|
|
606
|
-
- Added @preDestroy decorator #1132
|
|
607
|
-
|
|
608
|
-
### Changed
|
|
609
|
-
|
|
610
|
-
- @postConstruct can target an asyncronous function #1132
|
|
611
|
-
- Singleton scoped services cache resolved values once the result promise is fulfilled #1320
|
|
612
|
-
|
|
613
|
-
### Fixed
|
|
614
|
-
|
|
615
|
-
- only inject decorator can be applied to setters #1342
|
|
616
|
-
- Container.resolve should resolve in that container #1338
|
|
617
|
-
|
|
618
|
-
## 5.1.1 - 2021-04-25
|
|
619
|
-
|
|
620
|
-
-Fix pre-publish for build artifacts
|
|
621
|
-
|
|
622
|
-
## 5.1.0 - 2021-04-25
|
|
623
|
-
|
|
624
|
-
### Added
|
|
625
|
-
|
|
626
|
-
- Upgrade information for v4.x to v5.x
|
|
627
|
-
|
|
628
|
-
### Changed
|
|
629
|
-
|
|
630
|
-
- Update BindingToSyntax with `.toAutoNamedFactory()`.
|
|
631
|
-
|
|
632
|
-
### Fixed
|
|
633
|
-
|
|
634
|
-
- Fix `Target.isTagged()` to exclude `optional` from tag injections #1190.
|
|
635
|
-
- Update `toConstructor`, `toFactory`, `toFunction`, `toAutoFactory`, `toProvider` and `toConstantValue` to have singleton scope #1297.
|
|
636
|
-
- Fix injection on optional properties when targeting ES6 #928
|
|
637
|
-
|
|
638
|
-
## 5.0.1 - 2018-10-17
|
|
639
|
-
|
|
640
|
-
### Added
|
|
641
|
-
|
|
642
|
-
- Updating constructor injection wiki document with concrete injection example #922
|
|
643
|
-
|
|
644
|
-
### Changed
|
|
645
|
-
|
|
646
|
-
- Change GUID to incremented counter for better performance #882
|
|
647
|
-
|
|
648
|
-
### Fixed
|
|
649
|
-
|
|
650
|
-
- fix broken compilation by adding `.toString()` so symbols serialization #893
|
|
651
|
-
- Fix problem with applying options on Container.resolve (fix #914) #915
|
|
652
|
-
- Fixed documentation issues
|
|
653
|
-
|
|
654
|
-
## 4.14.0 - 2018-10-16
|
|
655
|
-
|
|
656
|
-
Deprecated - Replaced by 5.0.1
|