@vercube/di 0.0.34 → 0.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,34 +1,40 @@
1
1
  <div align="center">
2
- <a href="https://vercube.dev/"><img src="https://github.com/OskarLebuda/vue-lazy-hydration/raw/main/.github/assets/logo.png?raw=true" alt="Vite logo" width="200"></a>
2
+ <img src="https://raw.githubusercontent.com/vercube/vercube/refs/heads/main/.github/assets/cover.png" width="100%" alt="Vercube - Unleash your server development." />
3
3
  <br>
4
4
  <br>
5
5
 
6
- # Vercube
7
-
8
- Next generation HTTP framework
9
-
10
- <a href="https://www.npmjs.com/package/@vercube/cli">
11
- <img src="https://img.shields.io/npm/v/%40vercube%2Fdi?style=for-the-badge&logo=npm&color=%23767eff" alt="npm"/>
12
- </a>
13
- <a href="https://www.npmjs.com/package/@vercube/cli">
14
- <img src="https://img.shields.io/npm/dm/%40vercube%2Fdi?style=for-the-badge&logo=npm&color=%23767eff" alt="npm"/>
15
- </a>
16
- <a href="https://github.com/vercube/vercube/blob/main/LICENSE" target="_blank">
17
- <img src="https://img.shields.io/npm/l/%40vercube%2Fdi?style=for-the-badge&color=%23767eff" alt="License"/>
18
- </a>
19
- <a href="https://codecov.io/gh/vercube/vercube" target="_blank">
20
- <img src="https://img.shields.io/codecov/c/github/vercube/vercube?style=for-the-badge&color=%23767eff" alt="Coverage"/>
21
- </a>
22
- <br/>
23
- <br/>
6
+ # @vercube/di
7
+
8
+ ### Dependency Injection container
9
+
10
+ [![Ask DeepWiki](<https://img.shields.io/badge/ask-deepwiki-%20blue?style=for-the-badge&logo=bookstack&logoColor=rgba(255%2C%20255%2C%20255%2C%200.6)&labelColor=%23000&color=%232f2f2f>)](https://deepwiki.com/vercube/vercube)
11
+ ![NPM Version](<https://img.shields.io/npm/v/%40vercube%2Fdi?style=for-the-badge&logo=npm&logoColor=rgba(255%2C%20255%2C%20255%2C%200.6)&labelColor=%23000&color=%232e2e2e&link=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2F%40vercube%2Fdi>)
12
+ ![GitHub License](<https://img.shields.io/github/license/vercube/vercube?style=for-the-badge&logo=gitbook&logoColor=rgba(255%2C%20255%2C%20255%2C%200.6)&labelColor=%23000&color=%232f2f2f>)
13
+ ![Codecov](<https://img.shields.io/codecov/c/github/vercube/vercube?style=for-the-badge&logo=vitest&logoColor=rgba(255%2C%20255%2C%20255%2C%200.6)&labelColor=%23000&color=%232f2f2f>)
14
+
15
+ **IoC container that powers Vercube - bind services, inject dependencies, swap implementations for tests. Simple `@Inject` and you're done.**
16
+
17
+ [Website](https://vercube.dev) • [Documentation](https://vercube.dev/docs/getting-started)
18
+
24
19
  </div>
25
20
 
26
- An ultra-efficient JavaScript server framework that runs anywhere - Node.js, Bun, or Deno - with unmatched flexibility and complete configurability for developers who refuse to sacrifice speed or control.
21
+ ## Features
22
+
23
+ - **Property injection** - `@Inject(Service)` on any class property
24
+ - **Flexible binding** - singletons, transients, or existing instances
25
+ - **Interface support** - bind interfaces to implementations with symbols
26
+ - **Testing friendly** - `bindMock` makes unit tests a breeze
27
+
28
+ ## 📦 Installation
29
+
30
+ ```bash
31
+ pnpm add @vercube/di
32
+ ```
27
33
 
28
- ## <a name="module">Dependencie Injection Module</a>
34
+ ## 📖 Usage
29
35
 
30
- The Dependency Injection (DI) module provides a powerful and flexible dependency injection system for Vercube applications. It enables loose coupling between components and makes your application more maintainable and testable.
36
+ Check out the full [documentation](https://vercube.dev/docs/core-features/container)
31
37
 
32
- ## <a name="documentation">📖 Documentation</a>
38
+ ## 📜 License
33
39
 
34
- Comprehensive documentation is available at [vercube.dev](https://vercube.dev). There you'll find detailed module descriptions, project information, guides, and everything else you need to know about Vercube.
40
+ [MIT](https://github.com/vercube/vercube/blob/main/LICENSE)
package/dist/index.d.mts CHANGED
@@ -236,7 +236,7 @@ declare namespace IOC {
236
236
  enum ServiceFactoryType {
237
237
  CLASS = "CLASS",
238
238
  CLASS_SINGLETON = "CLASS_SINGLETON",
239
- INSTANCE = "INSTANCE",
239
+ INSTANCE = "INSTANCE"
240
240
  }
241
241
  /**
242
242
  * Standard class.
@@ -277,7 +277,7 @@ declare namespace IOC {
277
277
  */
278
278
  enum InjectMethod {
279
279
  LAZY = "LAZY",
280
- STATIC = "STATIC",
280
+ STATIC = "STATIC"
281
281
  }
282
282
  /**
283
283
  * This type represents unique service identity. For now, its symbol, but we leave
@@ -309,7 +309,7 @@ declare namespace IOC {
309
309
  */
310
310
  enum DependencyType {
311
311
  STANDARD = 0,
312
- OPTIONAL = 1,
312
+ OPTIONAL = 1
313
313
  }
314
314
  }
315
315
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercube/di",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "description": "Dependency Injection module for Vercube framework",
5
5
  "repository": {
6
6
  "type": "git",