@warlock.js/context 5.31.0 → 5.32.0
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/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ All notable changes to `@warlock.js/context` are documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). `@warlock.js/*` packages are released in lockstep — every package shares the same version number, so a version below may list only the changes that affected this package.
|
|
6
6
|
|
|
7
|
+
## 5.32.0 - 2026-10-18
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Pin the package development compiler to TypeScript 7.0.2 and use explicit Node types and source roots with supported module resolution.
|
|
12
|
+
|
|
7
13
|
## 5.31.0 - 2026-10-18
|
|
8
14
|
|
|
9
15
|
### Changed
|
package/esm/base-context.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AsyncLocalStorage } from "async_hooks";
|
|
2
|
-
|
|
3
2
|
//#region ../../packages/context/src/base-context.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Base class for all AsyncLocalStorage-based contexts
|
|
@@ -25,7 +24,7 @@ import { AsyncLocalStorage } from "async_hooks";
|
|
|
25
24
|
* });
|
|
26
25
|
* ```
|
|
27
26
|
*/
|
|
28
|
-
declare abstract class Context<TStore extends Record<string, any>> {
|
|
27
|
+
export declare abstract class Context<TStore extends Record<string, any>> {
|
|
29
28
|
protected readonly storage: AsyncLocalStorage<TStore>;
|
|
30
29
|
/**
|
|
31
30
|
* Run a callback within a new context
|
|
@@ -105,5 +104,4 @@ declare abstract class Context<TStore extends Record<string, any>> {
|
|
|
105
104
|
abstract buildStore(payload?: Record<string, any>): TStore;
|
|
106
105
|
}
|
|
107
106
|
//#endregion
|
|
108
|
-
export { Context };
|
|
109
107
|
//# sourceMappingURL=base-context.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-context.d.mts","names":[],"sources":["../../../../../../../packages/context/src/base-context.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"base-context.d.mts","names":[],"sources":["../../../../../../../packages/context/src/base-context.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;8BAqEsB,QAAQ,eAAe;qBACxB,SAAS,kBAAkB;;;;;;;;;;;EAYvC,IAAI,GAAG,OAAO,QAAQ,gBAAgB,QAAQ,KAAK,QAAQ;;;;;;;;;EAY3D,MAAM,OAAO;;;;;;;;;;;;;;;EAkBb,OAAO,SAAS,QAAQ;;;;;;EAiBxB,YAAY;;;;;;;EAUZ,IAAI,gBAAgB,QAAQ,KAAK,IAAI,OAAO;;;;;;;;;;EAa5C,IAAI,gBAAgB,QAAQ,KAAK,GAAG,OAAO,OAAO;;;;EAOlD;;;;EAOA;;;;;;;;;;WAaS,WAAW,UAAU,sBAAsB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Context } from "./base-context.mjs";
|
|
2
|
-
|
|
3
2
|
//#region ../../packages/context/src/context-manager.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Context Manager - Orchestrates multiple contexts together
|
|
@@ -26,7 +25,7 @@ import { Context } from "./base-context.mjs";
|
|
|
26
25
|
* });
|
|
27
26
|
* ```
|
|
28
27
|
*/
|
|
29
|
-
declare class ContextManager {
|
|
28
|
+
export declare class ContextManager {
|
|
30
29
|
private contexts;
|
|
31
30
|
/**
|
|
32
31
|
* Register a context
|
|
@@ -100,7 +99,6 @@ declare class ContextManager {
|
|
|
100
99
|
*
|
|
101
100
|
* Use this singleton to register and manage all framework contexts.
|
|
102
101
|
*/
|
|
103
|
-
declare const contextManager: ContextManager;
|
|
102
|
+
export declare const contextManager: ContextManager;
|
|
104
103
|
//#endregion
|
|
105
|
-
export { ContextManager, contextManager };
|
|
106
104
|
//# sourceMappingURL=context-manager.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-manager.d.mts","names":[],"sources":["../../../../../../../packages/context/src/context-manager.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"context-manager.d.mts","names":[],"sources":["../../../../../../../packages/context/src/context-manager.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;qBA2Ba;UACH;;;;;;;;EASD,SAAS,cAAc,SAAS;;;;;;;;;;;EAe1B,OAAO,GAAG,QAAQ,qBAAqB,gBAAgB,QAAQ,KAAK,QAAQ;;;;;;EAgBlF,SAAS,QAAQ;;;;EAWjB;;;;;;;EAYA,WAAW,UAAU,cAAc,eAAe;;;;;;;EAUlD,WAAW;;;;;;;;;;;;;;;;EAmBX,YAAY,UAAU,sBAAsB;;;;;;;EAgB5C,WAAW;;;;;;;qBAUP,gBAAc"}
|