Skip to content

Commit 7e200b7

Browse files
authored
feat!: update main module to rely on monorepo packages (#1706)
1 parent 6322bff commit 7e200b7

File tree

115 files changed

+1110
-16054
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+1110
-16054
lines changed

CHANGELOG.md

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,72 @@ All notable changes to this project from 5.0.0 forward will be documented in thi
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## [Unreleased]
7+
## [7.0.0-alpha.0]
88

99
### Added
10+
- Added `BindInFluentSyntax`.
11+
- Added `BindInWhenOnFluentSyntax`.
12+
- Added `BindOnFluentSyntax`.
13+
- Added `BindingScope`.
14+
- Added `BindToFluentSyntax`.
15+
- Added `BindWhenFluentSyntax`.
16+
- Added `BindWhenOnFluentSyntax`.
17+
- Added `ContainerModuleLoadOptions`.
18+
- Added `DynamicValueBuilder`.
19+
- Added `Factory`.
20+
- Added `GetOptions`.
21+
- Added `GetOptionsTagConstraint`.
22+
- Added `IsBoundOptions`.
23+
- Added `MetadataName`.
24+
- Added `MetadataTag`.
25+
- Added `MetadataTargetName`.
26+
- Added `OptionalGetOptions`.
27+
- Added `Provider`.
28+
- Added `ResolutionContext`.
29+
- Added `bindingScopeValues`.
30+
- Added `bindingTypeValues`.
31+
- Added `injectFromBase` decorator.
1032

1133
### Changed
34+
- Updated `injectable` with optional `scope`.
35+
- [Breaking] Updated `ContainerModule` constructor to receive a callback with `ContainerModuleLoadOptions` instead of `interfaces.ContainerModuleCallBack`.
36+
- [Breaking] Updated `ContainerModule`.load to return `Promise<void>`.
37+
- Updated `ContainerOptions` with `parent`.
38+
- Updated `ContainerOptions` without `autoBindInjectable` and `skipBaseClassChecks`.
39+
- [Breaking] Updated `Container` to no longer expose `id`, `parent` nor `options`.
40+
- [Breaking] Updated `Container` with no `applyCustomMetadataReader`, `applyMiddleware`, `createChild`, `merge` and `rebind` methods.
41+
- [Breaking] Updated `Container` with no `isCurrentBound`, `isBoundNamed`, `isBoundTagged` methods in favor of using `Container.isBound` with `isBoundOptions`.
42+
- [Breaking] Updated `Container` with no `getNamed`, `getTagged`, `tryGet`, `tryGetNamed` and `tryGetTagged` methods in favor of `Container.get` with `OptionalGetOptions` options.
43+
- [Breaking] Updated `Container` with no `getNamedAsync`, `getTaggedAsync`, `tryGetAsync`, `tryGetNamedAsync` and `tryGetTaggedAsync` methods in favor of `Container.getAsync` with `OptionalGetOptions` options.
44+
- [Breaking] Updated `Container` with no `getAllNamed`, `getAllTagged`, `tryGetAll`, `tryGetAllNamed` and `tryGetAllTagged` methods in favor of `Container.getAll` with `GetOptions` options.
45+
- [Breaking] Updated `Container` with no `getAllNamedAsync`, `getAllTaggedAsync`, `tryGetAllAsync`, `tryGetAllNamedAsync` and `tryGetAllTaggedAsync` methods in favor of `Container.getAllAsync` with `GetOptions` options.
46+
- [Breaking] Updated `Container` with no `loadAsync` in favor of an async `Container.load`.
47+
- [Breaking] Updated `Container` with no `unbindAsync` in favor of an async `Container.unbind`.
48+
- [Breaking] Updated `Container` with no `unbindAllAsync` in favor of an async `Container.unbindAll`.
49+
- [Breaking] Updated `Container` with no `unloadAsync` in favor of an async `Container.unload`.
50+
1251

1352
### Fixed
53+
- Updated `decorate` to no longer require a unexpected prototypes to decorate property nor methods.
54+
55+
### Removed
56+
- [Breaking] Removed deprecated `LazyServiceIdentifer`. Use `LazyServiceIdentifier` instead.
57+
- [Breaking] Removed `BindingScopeEnum`. Use `bindingScopeValues` instead.
58+
- [Breaking] Removed `BindingTypeEnum`.
59+
- [Breaking] Removed `TargetTypeEnum`.
60+
- [Breaking] Removed `METADATA_KEY`.
61+
- [Breaking] Removed `AsyncContainerModule`. Use `ContainerModule` instead.
62+
- [Breaking] Removed `createTaggedDecorator`.
63+
- [Breaking] Removed `MetadataReader`.
64+
- [Breaking] Removed `id`.
65+
- [Breaking] Removed `interfaces` types. Rely on new types instead.
66+
- [Breaking] Removed `traverseAncerstors`.
67+
- [Breaking] Removed `taggedConstraint`.
68+
- [Breaking] Removed `namedConstraint`.
69+
- [Breaking] Removed `typeConstraint`.
70+
- [Breaking] Removed `getServiceIdentifierAsString`.
71+
- [Breaking] Removed `multiBindToService`.
72+
1473

1574
## [6.2.1]
1675

package-lock.json

Lines changed: 33 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"description": "A powerful and lightweight inversion of control container for JavaScript and Node.js apps powered by TypeScript.",
77
"dependencies": {
88
"@inversifyjs/common": "1.5.0",
9-
"@inversifyjs/core": "1.3.5"
9+
"@inversifyjs/container": "1.3.4",
10+
"@inversifyjs/core": "3.2.0"
1011
},
1112
"devDependencies": {
1213
"@eslint/js": "9.18.0",
@@ -76,5 +77,6 @@
7677
"test:cjs": "nyc --reporter=lcov mocha lib/cjs/test/*.test.js lib/cjs/test/**/*.test.js --reporter spec --require 'node_modules/reflect-metadata/Reflect.js'"
7778
},
7879
"sideEffects": false,
79-
"version": "6.2.1"
80+
"version": "6.2.1",
81+
"packageManager": "[email protected]+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a"
8082
}

src/annotation/decorator_utils.ts

Lines changed: 0 additions & 186 deletions
This file was deleted.

src/annotation/inject.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)