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