@fluojs/config 1.0.0-beta.1 → 1.0.0-beta.2
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.ko.md +5 -0
- package/README.md +5 -0
- package/dist/reload-module.js +1 -1
- package/package.json +1 -1
package/README.ko.md
CHANGED
|
@@ -85,10 +85,15 @@ class MyService {
|
|
|
85
85
|
| 클래스/헬퍼 | 설명 |
|
|
86
86
|
|---|---|
|
|
87
87
|
| `ConfigModule` | 설정을 전역 또는 지역으로 등록하기 위한 모듈입니다. |
|
|
88
|
+
| `ConfigReloadModule` | 리로드 매니저를 등록하고 의존성 주입용 공유 `CONFIG_RELOADER` 토큰을 내보냅니다. |
|
|
89
|
+
| `ConfigReloadManager` | 주입된 `ConfigService`의 리로드를 조정하며, 서비스 identity는 유지하고 스냅샷만 리로드 경로로 교체합니다. |
|
|
90
|
+
| `CONFIG_RELOADER` | 공유 config reloader 계약을 위한 주입 토큰입니다. |
|
|
88
91
|
| `ConfigService` | 설정 값에 타입 안전하게 접근하기 위한 읽기 전용 서비스입니다. 스냅샷 교체는 config reload 경로 내부에만 남습니다. |
|
|
89
92
|
| `loadConfig(options)` | 설정을 수동으로 로드하기 위한 함수형 엔트리 포인트입니다. |
|
|
90
93
|
| `createConfigReloader(options)` | 동적 설정 업데이트를 위한 리로더를 생성합니다. |
|
|
91
94
|
|
|
95
|
+
`ConfigReloadManager.reload()`는 기존 `ConfigService` 인스턴스를 갱신하므로 소비자는 주입받은 서비스 identity를 유지하면서 새 스냅샷을 관찰합니다. 리로드 listener가 에러를 던지면 매니저는 이전 스냅샷을 복구하고 listener 에러를 다시 던집니다.
|
|
96
|
+
|
|
92
97
|
## 관련 패키지
|
|
93
98
|
|
|
94
99
|
- `@fluojs/runtime`: 부트스트랩 중 `loadConfig()`를 호출합니다.
|
package/README.md
CHANGED
|
@@ -90,10 +90,15 @@ The `validate` function runs after all sources are merged but before the applica
|
|
|
90
90
|
| Class/Helper | Description |
|
|
91
91
|
|---|---|
|
|
92
92
|
| `ConfigModule` | Module for registering configuration globally or locally. |
|
|
93
|
+
| `ConfigReloadModule` | Registers the reload manager and exports the shared `CONFIG_RELOADER` token for dependency injection. |
|
|
94
|
+
| `ConfigReloadManager` | Coordinates reloads for the injected `ConfigService`, preserving service identity while replacing snapshots through the reload path. |
|
|
95
|
+
| `CONFIG_RELOADER` | Injection token for the shared config reloader contract. |
|
|
93
96
|
| `ConfigService` | Read-only service for typed access to configuration values. Snapshot replacement stays inside the config reload path. |
|
|
94
97
|
| `loadConfig(options)` | Functional entry point for loading configuration manually. |
|
|
95
98
|
| `createConfigReloader(options)` | Creates a reloader for dynamic configuration updates. |
|
|
96
99
|
|
|
100
|
+
`ConfigReloadManager.reload()` updates the existing `ConfigService` instance so consumers keep their injected service identity while observing the new snapshot. If a reload listener throws, the manager restores the previous snapshot and rethrows the listener error.
|
|
101
|
+
|
|
97
102
|
## Related Packages
|
|
98
103
|
|
|
99
104
|
- **`@fluojs/runtime`**: Calls `loadConfig` internally during application bootstrap.
|
package/dist/reload-module.js
CHANGED