@shirudo/ddd-kit 1.0.0-rc.8 → 1.0.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 +21 -5
- package/dist/http.d.ts +46 -0
- package/dist/http.js +18 -0
- package/dist/http.js.map +1 -0
- package/dist/index.d.ts +516 -605
- package/dist/index.js +160 -263
- package/dist/index.js.map +1 -1
- package/dist/utils.d.ts +28 -28
- package/package.json +8 -3
package/dist/utils.d.ts
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Performs a deep equality check between two values.
|
|
3
|
+
*
|
|
4
|
+
* This function compares values recursively, handling:
|
|
5
|
+
* - Primitives (with special handling for NaN)
|
|
6
|
+
* - Arrays (nested arrays supported)
|
|
7
|
+
* - Objects (plain objects and class instances)
|
|
8
|
+
* - TypedArrays (Uint8Array, Int32Array, etc.)
|
|
9
|
+
* - DataView
|
|
10
|
+
* - Maps and Sets
|
|
11
|
+
* - Dates and RegExp
|
|
12
|
+
* - Wrapper objects (Boolean, Number, String)
|
|
13
|
+
* - Circular references (detected and handled)
|
|
14
|
+
*
|
|
15
|
+
* @param a - The first value to compare
|
|
16
|
+
* @param b - The second value to compare
|
|
17
|
+
* @returns `true` if the values are deeply equal, `false` otherwise
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* deepEqual([1, 2, 3], [1, 2, 3]); // true
|
|
22
|
+
* deepEqual({ a: 1, b: [2, 3] }, { a: 1, b: [2, 3] }); // true
|
|
23
|
+
* deepEqual(NaN, NaN); // true
|
|
24
|
+
* deepEqual([1, 2], [1, 2, 3]); // false
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
declare function deepEqual(a: unknown, b: unknown): boolean;
|
|
28
|
+
|
|
1
29
|
type Key = string | symbol;
|
|
2
30
|
type PathSegment = string | number | symbol;
|
|
3
31
|
interface DeepOmitOptions {
|
|
@@ -62,32 +90,4 @@ type DeepEqualExceptOptions = DeepOmitOptions;
|
|
|
62
90
|
*/
|
|
63
91
|
declare function deepEqualExcept(a: unknown, b: unknown, options: DeepEqualExceptOptions): boolean;
|
|
64
92
|
|
|
65
|
-
/**
|
|
66
|
-
* Performs a deep equality check between two values.
|
|
67
|
-
*
|
|
68
|
-
* This function compares values recursively, handling:
|
|
69
|
-
* - Primitives (with special handling for NaN)
|
|
70
|
-
* - Arrays (nested arrays supported)
|
|
71
|
-
* - Objects (plain objects and class instances)
|
|
72
|
-
* - TypedArrays (Uint8Array, Int32Array, etc.)
|
|
73
|
-
* - DataView
|
|
74
|
-
* - Maps and Sets
|
|
75
|
-
* - Dates and RegExp
|
|
76
|
-
* - Wrapper objects (Boolean, Number, String)
|
|
77
|
-
* - Circular references (detected and handled)
|
|
78
|
-
*
|
|
79
|
-
* @param a - The first value to compare
|
|
80
|
-
* @param b - The second value to compare
|
|
81
|
-
* @returns `true` if the values are deeply equal, `false` otherwise
|
|
82
|
-
*
|
|
83
|
-
* @example
|
|
84
|
-
* ```ts
|
|
85
|
-
* deepEqual([1, 2, 3], [1, 2, 3]); // true
|
|
86
|
-
* deepEqual({ a: 1, b: [2, 3] }, { a: 1, b: [2, 3] }); // true
|
|
87
|
-
* deepEqual(NaN, NaN); // true
|
|
88
|
-
* deepEqual([1, 2], [1, 2, 3]); // false
|
|
89
|
-
* ```
|
|
90
|
-
*/
|
|
91
|
-
declare function deepEqual(a: unknown, b: unknown): boolean;
|
|
92
|
-
|
|
93
93
|
export { type DeepEqualExceptOptions, type DeepOmitOptions, type Key, type PathSegment, deepEqual, deepEqualExcept, deepOmit };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shirudo/ddd-kit",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Composable TypeScript toolkit for tactical DDD",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
"./utils": {
|
|
18
18
|
"import": "./dist/utils.js",
|
|
19
19
|
"types": "./dist/utils.d.ts"
|
|
20
|
+
},
|
|
21
|
+
"./http": {
|
|
22
|
+
"import": "./dist/http.js",
|
|
23
|
+
"types": "./dist/http.d.ts"
|
|
20
24
|
}
|
|
21
25
|
},
|
|
22
26
|
"sideEffects": false,
|
|
@@ -48,7 +52,7 @@
|
|
|
48
52
|
},
|
|
49
53
|
"devDependencies": {
|
|
50
54
|
"@biomejs/biome": "2.1.4",
|
|
51
|
-
"@shirudo/base-error": "^
|
|
55
|
+
"@shirudo/base-error": "^5.0.0",
|
|
52
56
|
"@shirudo/result": "^0.0.6",
|
|
53
57
|
"tsup": "^8.5.0",
|
|
54
58
|
"typedoc": "^0.28.19",
|
|
@@ -56,6 +60,7 @@
|
|
|
56
60
|
"typedoc-vitepress-theme": "^1.1.2",
|
|
57
61
|
"typescript": "^5.9.2",
|
|
58
62
|
"vitepress": "^1.6.4",
|
|
63
|
+
"vitepress-plugin-llms": "^1.13.0",
|
|
59
64
|
"vitest": "^3.2.4"
|
|
60
65
|
},
|
|
61
66
|
"private": false,
|
|
@@ -68,7 +73,7 @@
|
|
|
68
73
|
"url": "https://github.com/shi-rudo/ddd-kit-ts/issues"
|
|
69
74
|
},
|
|
70
75
|
"peerDependencies": {
|
|
71
|
-
"@shirudo/base-error": "^
|
|
76
|
+
"@shirudo/base-error": "^5.0.0",
|
|
72
77
|
"@shirudo/result": "^0.0.6"
|
|
73
78
|
}
|
|
74
79
|
}
|