Skip to content

Commit

Permalink
feat(core): expose decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
notaphplover committed Dec 20, 2024
1 parent 3a2fc20 commit 2bcbcad
Show file tree
Hide file tree
Showing 12 changed files with 71 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/cyan-carrots-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@inversifyjs/core": minor
---

Added `optional`.
5 changes: 5 additions & 0 deletions .changeset/five-toes-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@inversifyjs/core": minor
---

Added `multiInject`.
5 changes: 5 additions & 0 deletions .changeset/green-garlics-doubt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@inversifyjs/core": minor
---

Added `named`.
5 changes: 5 additions & 0 deletions .changeset/new-yaks-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@inversifyjs/core": minor
---

Added `postConstruct`.
5 changes: 5 additions & 0 deletions .changeset/purple-eyes-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@inversifyjs/core": minor
---

Added `unmanaged`.
5 changes: 5 additions & 0 deletions .changeset/real-goats-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@inversifyjs/core": minor
---

Added `tagged`.
5 changes: 5 additions & 0 deletions .changeset/shaggy-wasps-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@inversifyjs/core": minor
---

Added `injectFromBase`.
5 changes: 5 additions & 0 deletions .changeset/strong-lies-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@inversifyjs/core": minor
---

Added `inject`.
5 changes: 5 additions & 0 deletions .changeset/tall-buckets-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@inversifyjs/core": minor
---

Added `preDestroy`.
5 changes: 5 additions & 0 deletions .changeset/young-chefs-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@inversifyjs/core": minor
---

Added `injectable`.
1 change: 1 addition & 0 deletions packages/container/libraries/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"description": "InversifyJs core package",
"dependencies": {
"@inversifyjs/common": "workspace:*",
"@inversifyjs/prototype-utils": "workspace:*",
"@inversifyjs/reflect-metadata-utils": "workspace:*"
},
"devDependencies": {
Expand Down
20 changes: 20 additions & 0 deletions packages/container/libraries/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -108,6 +118,16 @@ export {
bindingTypeValues,
ClassElementMetadataKind,
getClassMetadata,
multiInject,
inject,
injectable,
injectFromBase,
named,
optional,
postConstruct,
plan,
preDestroy,
resolve,
tagged,
unmanaged,
};

0 comments on commit 2bcbcad

Please sign in to comment.