Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@deepkit/injector

deepkit3.8kMIT1.0.15TypeScript support: included

Deepkit Dependency Injection

readme







Discord npm CI

Deepkit Framework is a new high-performance and real-time TypeScript framework for enterprise TypeScript applications. Standalone TypeScript libraries and a framework that brings everything together.

Docs

Check out the Deepkit Documentation to get started.

Getting started

To create a Deepkit app with Deepkit Framework from scratch, you can use NPM init:

npm init @deepkit/app@latest my-deepkit-app

Community Packages

Examples

Contributing

If you are interested in contributing to the development of Deepkit, check out the Development Docs to learn more about setting up your local development environment.

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.15 (2025-06-26)

Features

  • desktop-ui: refactor to standalone/signal, update angular to v20, new website docs (#657) (a39d26c)

1.0.12 (2025-06-05)

Note: Version bump only for package @deepkit/injector

1.0.11 (2025-06-02)

Bug Fixes

  • injector: ensure transient context is reset to previous one to maintain old state (822314d), closes #651
  • injector: make sure Inject<T> providers are not injected twice (8ae437d), closes #651

1.0.8 (2025-05-20)

Note: Version bump only for package @deepkit/injector

1.0.5 (2025-04-02)

Bug Fixes

  • type: remove Inject (moved to @deepkit/core (06d650a), closes #587

Features

  • injector: better docs (7402f11)
  • injector: refactor internal code to get big performance improvement (f295c5e)

1.0.3 (2025-03-13)

Features

  • injector: improve error messages, make it very clear what failed and where providers are located (5866eda)
  • injector: improve prepared resolver performance by 11x and dynamic Injector.get by 17x (3906e2c)

1.0.2 (2025-02-24)

Note: Version bump only for package @deepkit/injector

1.0.1 (2025-02-24)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.160 (2025-02-18)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.158 (2025-02-15)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.157 (2025-02-15)

Bug Fixes

  • type: convert TypeAnnotation into intrinsic type (#629) (4d1a13e), closes #626

Features

  • update to angular 19 and typescript 5.7.3, new @deepkit/angular-ssr package (#627) (52333a7)

1.0.1-alpha.156 (2025-01-30)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.155 (2024-10-30)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.154 (2024-09-06)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.153 (2024-06-06)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.151 (2024-05-14)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.150 (2024-05-09)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.149 (2024-05-07)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.148 (2024-05-04)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.147 (2024-05-04)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.146 (2024-04-17)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.145 (2024-04-08)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.143 (2024-03-17)

Features

1.0.1-alpha.142 (2024-03-06)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.141 (2024-03-05)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.140 (2024-03-02)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.139 (2024-02-29)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.138 (2024-02-27)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.137 (2024-02-26)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.132 (2024-02-10)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.131 (2024-02-09)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.128 (2024-02-06)

Bug Fixes

  • injector: correctly label symbols (ac07f21)

1.0.1-alpha.124 (2024-02-04)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.123 (2024-02-02)

Bug Fixes

  • injector: resolve deps of exported providers correctly (c185b38)

1.0.1-alpha.122 (2024-01-31)

Features

  • injector: new Module.configureProvider<T>(Fn) with configuration callback (1739b95)

1.0.1-alpha.121 (2024-01-31)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.120 (2024-01-29)

Features

  • type: preserve modifiers in homomorphic mapped types (f2091d0), closes #515 #514

1.0.1-alpha.119 (2024-01-28)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.117 (2024-01-26)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.116 (2024-01-22)

Features

  • injector: throw error when both forRoot and exports are used in module (#539) (7faa60d)

1.0.1-alpha.114 (2024-01-21)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.113 (2024-01-17)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.112 (2024-01-16)

Features

1.0.1-alpha.111 (2024-01-15)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.110 (2024-01-11)

Note: Version bump only for package @deepkit/injector

1.0.1-alpha.109 (2024-01-10)

Bug Fixes

  • injector: allow to define scope in provide<T>({}) (2f12c2e)

Features

  • injector: add support for receive type in isProvided (#511) (e405ed3)

1.0.1-alpha.108 (2023-11-21)

Bug Fixes

  • injector: make sure type cache is used when finding matching provider. (8c79e4b)

1.0.1-alpha.105 (2023-10-23)

Note: Version bump only for package @deepkit/injector