ts-data-forge 14.8.0 → 14.9.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/README.md CHANGED
@@ -82,6 +82,7 @@ Essential FP utilities for cleaner, more reliable code.
82
82
 
83
83
  - **Optional** - Type-safe null handling
84
84
  - **Result** - Error handling without exceptions
85
+ - **AsyncData** - The state of data fetched asynchronously: idle, pending, or settled as a `Result`
85
86
  - **Pipe** - Function composition utilities
86
87
  - **match** - Pattern matching for TypeScript
87
88
 
@@ -7,6 +7,6 @@
7
7
  *
8
8
  * New code should import these from `ts-std-forge` directly.
9
9
  */
10
- export { AsyncResult, Optional, Result, TernaryResult, match, pipe, } from 'ts-std-forge';
11
- export type { Err, None, Ok, Pipe, Some, TernaryErr, TernaryOk, TernaryWarn, UnknownOptional, UnknownResult, UnknownTernaryResult, } from 'ts-std-forge';
10
+ export { AsyncData, AsyncResult, Optional, Result, TernaryResult, match, pipe, } from 'ts-std-forge';
11
+ export type { AsyncErr, AsyncIdle, AsyncPending, Err, None, Ok, Pipe, Some, TernaryErr, TernaryOk, TernaryWarn, UnknownAsyncData, UnknownOptional, UnknownResult, UnknownTernaryResult, } from 'ts-std-forge';
12
12
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/functional/index.mts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EACL,WAAW,EACX,QAAQ,EACR,MAAM,EACN,aAAa,EACb,KAAK,EACL,IAAI,GACL,MAAM,cAAc,CAAC;AAEtB,YAAY,EACV,GAAG,EACH,IAAI,EACJ,EAAE,EACF,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,SAAS,EACT,WAAW,EACX,eAAe,EACf,aAAa,EACb,oBAAoB,GACrB,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/functional/index.mts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EACL,SAAS,EACT,WAAW,EACX,QAAQ,EACR,MAAM,EACN,aAAa,EACb,KAAK,EACL,IAAI,GACL,MAAM,cAAc,CAAC;AAEtB,YAAY,EACV,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,GAAG,EACH,IAAI,EACJ,EAAE,EACF,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,oBAAoB,GACrB,MAAM,cAAc,CAAC"}
@@ -7,5 +7,5 @@
7
7
 
8
8
 
9
9
 
10
- export { AsyncResult, Optional, Result, TernaryResult, match, pipe, } from 'ts-std-forge';
10
+ export { AsyncData, AsyncResult, Optional, Result, TernaryResult, match, pipe, } from 'ts-std-forge';
11
11
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/functional/index.mts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EACL,WAAW,EACX,QAAQ,EACR,MAAM,EACN,aAAa,EACb,KAAK,EACL,IAAI,GACL,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/functional/index.mts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EACL,SAAS,EACT,WAAW,EACX,QAAQ,EACR,MAAM,EACN,aAAa,EACb,KAAK,EACL,IAAI,GACL,MAAM,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-data-forge",
3
- "version": "14.8.0",
3
+ "version": "14.9.0",
4
4
  "private": false,
5
5
  "keywords": [
6
6
  "typescript",
@@ -37,7 +37,7 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@sindresorhus/is": "^8.1.0",
40
- "ts-std-forge": "^0.5.1",
40
+ "ts-std-forge": "^0.5.2",
41
41
  "ts-type-forge": "~9.2.2"
42
42
  },
43
43
  "devDependencies": {
@@ -47,8 +47,8 @@
47
47
  "@types/react": "19.3.0",
48
48
  "@vitest/browser-playwright": "5.0.3",
49
49
  "eslint-config-typed": "5.19.0",
50
- "eslint-plugin-ts-fortress": "1.3.4",
51
- "eslint-plugin-ts-type-forge": "0.8.9",
50
+ "eslint-plugin-ts-fortress": "1.3.5",
51
+ "eslint-plugin-ts-type-forge": "0.8.10",
52
52
  "immer": "11.1.21",
53
53
  "playwright": "1.64.0",
54
54
  "prettier": "3.9.9",
@@ -8,6 +8,7 @@
8
8
  * New code should import these from `ts-std-forge` directly.
9
9
  */
10
10
  export {
11
+ AsyncData,
11
12
  AsyncResult,
12
13
  Optional,
13
14
  Result,
@@ -17,6 +18,9 @@ export {
17
18
  } from 'ts-std-forge';
18
19
 
19
20
  export type {
21
+ AsyncErr,
22
+ AsyncIdle,
23
+ AsyncPending,
20
24
  Err,
21
25
  None,
22
26
  Ok,
@@ -25,6 +29,7 @@ export type {
25
29
  TernaryErr,
26
30
  TernaryOk,
27
31
  TernaryWarn,
32
+ UnknownAsyncData,
28
33
  UnknownOptional,
29
34
  UnknownResult,
30
35
  UnknownTernaryResult,
@@ -11,6 +11,9 @@ describe(debounce, () => {
11
11
  // eslint-disable-next-line vitest/no-hooks
12
12
  afterEach(() => {
13
13
  vi.restoreAllMocks();
14
+
15
+ // The test files of a worker share it, timers included.
16
+ vi.useRealTimers();
14
17
  });
15
18
 
16
19
  test('should delay the execution of the function', () => {