@shirudo/ddd-kit 1.0.0-rc.9 → 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.
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-rc.9",
3
+ "version": "1.0.1",
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,14 +52,15 @@
48
52
  },
49
53
  "devDependencies": {
50
54
  "@biomejs/biome": "2.1.4",
51
- "@shirudo/base-error": "^4.7.0",
52
- "@shirudo/result": "^0.0.6",
55
+ "@shirudo/base-error": "^5.0.0",
56
+ "@shirudo/result": "^1.0.0",
53
57
  "tsup": "^8.5.0",
54
58
  "typedoc": "^0.28.19",
55
59
  "typedoc-plugin-markdown": "^4.11.0",
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": "^4.7.0",
72
- "@shirudo/result": "^0.0.6"
76
+ "@shirudo/base-error": "^5.0.0",
77
+ "@shirudo/result": "^1.0.0"
73
78
  }
74
79
  }