From b974b17152e0f14bf3b0629b45a2a1e42e68f784 Mon Sep 17 00:00:00 2001 From: notaphplover Date: Mon, 23 Dec 2024 00:51:09 +0100 Subject: [PATCH] feat(container): expose modules --- .changeset/green-beans-own.md | 5 +++ .changeset/itchy-coins-agree.md | 5 +++ .changeset/rare-ghosts-rule.md | 5 +++ .changeset/witty-worms-wash.md | 5 +++ .../libraries/container/package.json | 2 +- .../libraries/container/src/index.ts | 38 ++++++++++++++++++- 6 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 .changeset/green-beans-own.md create mode 100644 .changeset/itchy-coins-agree.md create mode 100644 .changeset/rare-ghosts-rule.md create mode 100644 .changeset/witty-worms-wash.md diff --git a/.changeset/green-beans-own.md b/.changeset/green-beans-own.md new file mode 100644 index 0000000..4bfd246 --- /dev/null +++ b/.changeset/green-beans-own.md @@ -0,0 +1,5 @@ +--- +"@inversifyjs/container": minor +--- + +Added `Container`. diff --git a/.changeset/itchy-coins-agree.md b/.changeset/itchy-coins-agree.md new file mode 100644 index 0000000..d2093de --- /dev/null +++ b/.changeset/itchy-coins-agree.md @@ -0,0 +1,5 @@ +--- +"@inversifyjs/container": minor +--- + +Added `InversifyContainerError`. diff --git a/.changeset/rare-ghosts-rule.md b/.changeset/rare-ghosts-rule.md new file mode 100644 index 0000000..ea32c00 --- /dev/null +++ b/.changeset/rare-ghosts-rule.md @@ -0,0 +1,5 @@ +--- +"@inversifyjs/container": minor +--- + +Added `ContainerModule`. diff --git a/.changeset/witty-worms-wash.md b/.changeset/witty-worms-wash.md new file mode 100644 index 0000000..0fb0d5b --- /dev/null +++ b/.changeset/witty-worms-wash.md @@ -0,0 +1,5 @@ +--- +"@inversifyjs/container": minor +--- + +Added `BindToFluentSyntax`. diff --git a/packages/container/libraries/container/package.json b/packages/container/libraries/container/package.json index c395692..f680eed 100644 --- a/packages/container/libraries/container/package.json +++ b/packages/container/libraries/container/package.json @@ -81,5 +81,5 @@ "test:unit:js": "pnpm run test:js --selectProjects Unit" }, "sideEffects": false, - "version": "1.4.0" + "version": "1.0.0" } diff --git a/packages/container/libraries/container/src/index.ts b/packages/container/libraries/container/src/index.ts index cb0ff5c..7dc3a5f 100644 --- a/packages/container/libraries/container/src/index.ts +++ b/packages/container/libraries/container/src/index.ts @@ -1 +1,37 @@ -export {}; +import 'reflect-metadata'; + +import { + BindInFluentSyntax, + BindInWhenOnFluentSyntax, + BindOnFluentSyntax, + BindToFluentSyntax, + BindWhenFluentSyntax, + BindWhenOnFluentSyntax, +} from './binding/models/BindingFluentSyntax'; +import { + ContainerModule, + ContainerModuleLoadOptions, +} from './container/models/ContainerModule'; +import { IsBoundOptions } from './container/models/isBoundOptions'; +import { Container, ContainerOptions } from './container/services/Container'; +import { InversifyContainerError } from './error/models/InversifyContainerError'; +import { InversifyContainerErrorKind } from './error/models/InversifyContainerErrorKind'; + +export type { + BindInFluentSyntax, + BindInWhenOnFluentSyntax, + BindOnFluentSyntax, + BindToFluentSyntax, + BindWhenFluentSyntax, + BindWhenOnFluentSyntax, + ContainerModuleLoadOptions, + ContainerOptions, + IsBoundOptions, +}; + +export { + Container, + ContainerModule, + InversifyContainerError, + InversifyContainerErrorKind, +};