diff --git a/.changeset/cyan-carrots-flash.md b/.changeset/cyan-carrots-flash.md new file mode 100644 index 00000000..149c9213 --- /dev/null +++ b/.changeset/cyan-carrots-flash.md @@ -0,0 +1,5 @@ +--- +"@inversifyjs/core": minor +--- + +Added `optional`. diff --git a/.changeset/five-toes-study.md b/.changeset/five-toes-study.md new file mode 100644 index 00000000..40b43616 --- /dev/null +++ b/.changeset/five-toes-study.md @@ -0,0 +1,5 @@ +--- +"@inversifyjs/core": minor +--- + +Added `multiInject`. diff --git a/.changeset/green-garlics-doubt.md b/.changeset/green-garlics-doubt.md new file mode 100644 index 00000000..dfe83cc0 --- /dev/null +++ b/.changeset/green-garlics-doubt.md @@ -0,0 +1,5 @@ +--- +"@inversifyjs/core": minor +--- + +Added `named`. diff --git a/.changeset/new-yaks-own.md b/.changeset/new-yaks-own.md new file mode 100644 index 00000000..cb9e92c6 --- /dev/null +++ b/.changeset/new-yaks-own.md @@ -0,0 +1,5 @@ +--- +"@inversifyjs/core": minor +--- + +Added `postConstruct`. diff --git a/.changeset/purple-eyes-jam.md b/.changeset/purple-eyes-jam.md new file mode 100644 index 00000000..be4c7fec --- /dev/null +++ b/.changeset/purple-eyes-jam.md @@ -0,0 +1,5 @@ +--- +"@inversifyjs/core": minor +--- + +Added `unmanaged`. diff --git a/.changeset/real-goats-sleep.md b/.changeset/real-goats-sleep.md new file mode 100644 index 00000000..43a66bc2 --- /dev/null +++ b/.changeset/real-goats-sleep.md @@ -0,0 +1,5 @@ +--- +"@inversifyjs/core": minor +--- + +Added `tagged`. diff --git a/.changeset/shaggy-wasps-tickle.md b/.changeset/shaggy-wasps-tickle.md new file mode 100644 index 00000000..d3985b59 --- /dev/null +++ b/.changeset/shaggy-wasps-tickle.md @@ -0,0 +1,5 @@ +--- +"@inversifyjs/core": minor +--- + +Added `injectFromBase`. diff --git a/.changeset/strong-lies-dance.md b/.changeset/strong-lies-dance.md new file mode 100644 index 00000000..f9298e8e --- /dev/null +++ b/.changeset/strong-lies-dance.md @@ -0,0 +1,5 @@ +--- +"@inversifyjs/core": minor +--- + +Added `inject`. diff --git a/.changeset/tall-buckets-wonder.md b/.changeset/tall-buckets-wonder.md new file mode 100644 index 00000000..70b6c39a --- /dev/null +++ b/.changeset/tall-buckets-wonder.md @@ -0,0 +1,5 @@ +--- +"@inversifyjs/core": minor +--- + +Added `preDestroy`. diff --git a/.changeset/young-chefs-draw.md b/.changeset/young-chefs-draw.md new file mode 100644 index 00000000..6ad51d15 --- /dev/null +++ b/.changeset/young-chefs-draw.md @@ -0,0 +1,5 @@ +--- +"@inversifyjs/core": minor +--- + +Added `injectable`. diff --git a/packages/container/libraries/core/package.json b/packages/container/libraries/core/package.json index 5aa9504a..1a151c10 100644 --- a/packages/container/libraries/core/package.json +++ b/packages/container/libraries/core/package.json @@ -6,6 +6,7 @@ "description": "InversifyJs core package", "dependencies": { "@inversifyjs/common": "workspace:*", + "@inversifyjs/prototype-utils": "workspace:*", "@inversifyjs/reflect-metadata-utils": "workspace:*" }, "devDependencies": { diff --git a/packages/container/libraries/core/src/index.ts b/packages/container/libraries/core/src/index.ts index f17c8dba..929e10ec 100644 --- a/packages/container/libraries/core/src/index.ts +++ b/packages/container/libraries/core/src/index.ts @@ -24,6 +24,16 @@ import { } from './binding/services/ActivationsService'; import { BindingService } from './binding/services/BindingService'; import { getClassMetadata } from './metadata/calculations/getClassMetadata'; +import { inject } from './metadata/decorators/inject'; +import { injectable } from './metadata/decorators/injectable'; +import { injectFromBase } from './metadata/decorators/injectFromBase'; +import { multiInject } from './metadata/decorators/multiInject'; +import { named } from './metadata/decorators/named'; +import { optional } from './metadata/decorators/optional'; +import { postConstruct } from './metadata/decorators/postConstruct'; +import { preDestroy } from './metadata/decorators/preDestroy'; +import { tagged } from './metadata/decorators/tagged'; +import { unmanaged } from './metadata/decorators/unmanaged'; import { ClassElementMetadata } from './metadata/models/ClassElementMetadata'; import { ClassElementMetadataKind } from './metadata/models/ClassElementMetadataKind'; import { ClassMetadata } from './metadata/models/ClassMetadata'; @@ -108,6 +118,16 @@ export { bindingTypeValues, ClassElementMetadataKind, getClassMetadata, + multiInject, + inject, + injectable, + injectFromBase, + named, + optional, + postConstruct, plan, + preDestroy, resolve, + tagged, + unmanaged, };