@ooneex/service 0.0.18 → 1.0.1

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.
Files changed (2) hide show
  1. package/README.md +6 -26
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -1,50 +1,30 @@
1
1
  # @ooneex/service
2
2
 
3
- A service layer decorator and base interface for business logic encapsulation in TypeScript applications. This package provides the foundation for creating injectable service classes with dependency injection support through the Ooneex container.
3
+ Service layer foundation with decorator-based registration and dependency injection for encapsulating business logic and domain operations.
4
4
 
5
5
  ![Browser](https://img.shields.io/badge/Browser-Compatible-green?style=flat-square&logo=googlechrome)
6
6
  ![Bun](https://img.shields.io/badge/Bun-Compatible-orange?style=flat-square&logo=bun)
7
- ![Deno](https://img.shields.io/badge/Deno-Compatible-blue?style=flat-square&logo=deno)
8
- ![Node.js](https://img.shields.io/badge/Node.js-Compatible-green?style=flat-square&logo=node.js)
9
7
  ![TypeScript](https://img.shields.io/badge/TypeScript-Ready-blue?style=flat-square&logo=typescript)
10
8
  ![MIT License](https://img.shields.io/badge/License-MIT-yellow?style=flat-square)
11
9
 
12
10
  ## Features
13
11
 
14
- ✅ **Service Decorator** - Register services with the DI container using decorators
12
+ ✅ **Service Decorator** - Register service classes with the DI container using `@decorator.service()`
15
13
 
16
- ✅ **Interface Contract** - Standard interface for service implementations
14
+ ✅ **IService Interface** - Standard generic interface with an `execute(data?)` method for service implementations
17
15
 
18
- ✅ **Scope Control** - Configure singleton, transient, or request-scoped services
16
+ ✅ **Scope Control** - Configure singleton, transient, or request-scoped services via `EContainerScope`
19
17
 
20
- ✅ **Type-Safe** - Full TypeScript support with proper type definitions
18
+ ✅ **ServiceClassType** - Type definition for service class constructors
21
19
 
22
- ✅ **Container Integration** - Seamless integration with @ooneex/container
23
-
24
- ✅ **Zero Boilerplate** - Simple decorator-based registration
20
+ ✅ **Container Integration** - Seamless integration with `@ooneex/container` for automatic dependency resolution
25
21
 
26
22
  ## Installation
27
23
 
28
- ### Bun
29
24
  ```bash
30
25
  bun add @ooneex/service
31
26
  ```
32
27
 
33
- ### pnpm
34
- ```bash
35
- pnpm add @ooneex/service
36
- ```
37
-
38
- ### Yarn
39
- ```bash
40
- yarn add @ooneex/service
41
- ```
42
-
43
- ### npm
44
- ```bash
45
- npm install @ooneex/service
46
- ```
47
-
48
28
  ## Usage
49
29
 
50
30
  ### Basic Service
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ooneex/service",
3
- "description": "Service layer decorator and base classes for business logic encapsulation with dependency injection support",
4
- "version": "0.0.18",
3
+ "description": "Service layer foundation with decorator-based registration and dependency injection for encapsulating business logic and domain operations",
4
+ "version": "1.0.1",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -25,10 +25,10 @@
25
25
  "test": "bun test tests",
26
26
  "build": "bunup",
27
27
  "lint": "tsgo --noEmit && bunx biome lint",
28
- "npm:publish": "bun publish --tolerate-republish --access public"
28
+ "npm:publish": "bun publish --tolerate-republish --force --production --access public"
29
29
  },
30
30
  "dependencies": {
31
- "@ooneex/container": "0.0.18"
31
+ "@ooneex/container": "1.0.1"
32
32
  },
33
33
  "devDependencies": {},
34
34
  "keywords": [