@alwatr/deep-clone 5.5.10 → 5.5.11

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
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.5.11](https://github.com/Alwatr/nanolib/compare/@alwatr/deep-clone@5.5.10...@alwatr/deep-clone@5.5.11) (2025-09-13)
7
+
8
+ ### 🧹 Miscellaneous Chores
9
+
10
+ * remove package-tracer dependency and related code from fetch package ([96fe4e9](https://github.com/Alwatr/nanolib/commit/96fe4e9552a205f218ceed187c55e4e904a07089))
11
+
6
12
  ## [5.5.10](https://github.com/Alwatr/nanolib/compare/@alwatr/deep-clone@5.5.9...@alwatr/deep-clone@5.5.10) (2025-09-09)
7
13
 
8
14
  ### 🧹 Miscellaneous Chores
package/dist/main.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /* @alwatr/deep-clone v5.5.10 */
1
+ /* @alwatr/deep-clone v5.5.11 */
2
2
  "use strict";
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -24,8 +24,6 @@ __export(main_exports, {
24
24
  deepClone: () => deepClone
25
25
  });
26
26
  module.exports = __toCommonJS(main_exports);
27
- var import_package_tracer = require("@alwatr/package-tracer");
28
- __dev_mode__: import_package_tracer.packageTracer.add("@alwatr/deep-clone", "5.5.10");
29
27
  function deepClone(obj) {
30
28
  if (obj == null) return null;
31
29
  return JSON.parse(JSON.stringify(obj));
package/dist/main.cjs.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/main.ts"],
4
- "sourcesContent": ["import {packageTracer} from '@alwatr/package-tracer';\n\n__dev_mode__: packageTracer.add(__package_name__, __package_version__);\n\n/**\n * Clone deeply nested objects and arrays.\n *\n * @param obj The object to clone.\n * @returns A clone of the object.\n * @example\n * ```typescript\n * const obj2 = deepClone(obj1);\n * ```\n */\nexport function deepClone<T>(obj: T): T;\n\n/**\n * Clone deeply nested objects and arrays.\n *\n * if the object is null or undefined, it returns null.\n *\n * @param obj The object to clone.\n * @returns A clone of the object.\n * @example\n * ```typescript\n * const obj2 = deepClone(obj1);\n * ```\n */\nexport function deepClone<T>(obj: T | null | undefined): T | null;\n\nexport function deepClone<T>(obj: T | null | undefined): T | null {\n if (obj == null) return null;\n // I don`t know why structuredClone is slower than stringify! but I think its changes in the future.\n // if (typeof structuredClone === 'function') {\n // return structuredClone(obj);\n // }\n // else\n return JSON.parse(JSON.stringify(obj));\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAA4B;AAE5B,aAAc,qCAAc,IAAI,sBAAkB,QAAmB;AA4B9D,SAAS,UAAa,KAAqC;AAChE,MAAI,OAAO,KAAM,QAAO;AAMxB,SAAO,KAAK,MAAM,KAAK,UAAU,GAAG,CAAC;AACvC;",
4
+ "sourcesContent": ["/**\n * Clone deeply nested objects and arrays.\n *\n * @param obj The object to clone.\n * @returns A clone of the object.\n * @example\n * ```typescript\n * const obj2 = deepClone(obj1);\n * ```\n */\nexport function deepClone<T>(obj: T): T;\n\n/**\n * Clone deeply nested objects and arrays.\n *\n * if the object is null or undefined, it returns null.\n *\n * @param obj The object to clone.\n * @returns A clone of the object.\n * @example\n * ```typescript\n * const obj2 = deepClone(obj1);\n * ```\n */\nexport function deepClone<T>(obj: T | null | undefined): T | null;\n\nexport function deepClone<T>(obj: T | null | undefined): T | null {\n if (obj == null) return null;\n // I don`t know why structuredClone is slower than stringify! but I think its changes in the future.\n // if (typeof structuredClone === 'function') {\n // return structuredClone(obj);\n // }\n // else\n return JSON.parse(JSON.stringify(obj));\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA0BO,SAAS,UAAa,KAAqC;AAChE,MAAI,OAAO,KAAM,QAAO;AAMxB,SAAO,KAAK,MAAM,KAAK,UAAU,GAAG,CAAC;AACvC;",
6
6
  "names": []
7
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC;AAExC;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,CAAC,GAAG,IAAI,CAAC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC;AAExC;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,CAAC,GAAG,IAAI,CAAC"}
package/dist/main.mjs CHANGED
@@ -1,8 +1,6 @@
1
- /* @alwatr/deep-clone v5.5.10 */
1
+ /* @alwatr/deep-clone v5.5.11 */
2
2
 
3
3
  // src/main.ts
4
- import { packageTracer } from "@alwatr/package-tracer";
5
- __dev_mode__: packageTracer.add("@alwatr/deep-clone", "5.5.10");
6
4
  function deepClone(obj) {
7
5
  if (obj == null) return null;
8
6
  return JSON.parse(JSON.stringify(obj));
package/dist/main.mjs.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/main.ts"],
4
- "sourcesContent": ["import {packageTracer} from '@alwatr/package-tracer';\n\n__dev_mode__: packageTracer.add(__package_name__, __package_version__);\n\n/**\n * Clone deeply nested objects and arrays.\n *\n * @param obj The object to clone.\n * @returns A clone of the object.\n * @example\n * ```typescript\n * const obj2 = deepClone(obj1);\n * ```\n */\nexport function deepClone<T>(obj: T): T;\n\n/**\n * Clone deeply nested objects and arrays.\n *\n * if the object is null or undefined, it returns null.\n *\n * @param obj The object to clone.\n * @returns A clone of the object.\n * @example\n * ```typescript\n * const obj2 = deepClone(obj1);\n * ```\n */\nexport function deepClone<T>(obj: T | null | undefined): T | null;\n\nexport function deepClone<T>(obj: T | null | undefined): T | null {\n if (obj == null) return null;\n // I don`t know why structuredClone is slower than stringify! but I think its changes in the future.\n // if (typeof structuredClone === 'function') {\n // return structuredClone(obj);\n // }\n // else\n return JSON.parse(JSON.stringify(obj));\n}\n"],
5
- "mappings": ";;;AAAA,SAAQ,qBAAoB;AAE5B,aAAc,eAAc,IAAI,sBAAkB,QAAmB;AA4B9D,SAAS,UAAa,KAAqC;AAChE,MAAI,OAAO,KAAM,QAAO;AAMxB,SAAO,KAAK,MAAM,KAAK,UAAU,GAAG,CAAC;AACvC;",
4
+ "sourcesContent": ["/**\n * Clone deeply nested objects and arrays.\n *\n * @param obj The object to clone.\n * @returns A clone of the object.\n * @example\n * ```typescript\n * const obj2 = deepClone(obj1);\n * ```\n */\nexport function deepClone<T>(obj: T): T;\n\n/**\n * Clone deeply nested objects and arrays.\n *\n * if the object is null or undefined, it returns null.\n *\n * @param obj The object to clone.\n * @returns A clone of the object.\n * @example\n * ```typescript\n * const obj2 = deepClone(obj1);\n * ```\n */\nexport function deepClone<T>(obj: T | null | undefined): T | null;\n\nexport function deepClone<T>(obj: T | null | undefined): T | null {\n if (obj == null) return null;\n // I don`t know why structuredClone is slower than stringify! but I think its changes in the future.\n // if (typeof structuredClone === 'function') {\n // return structuredClone(obj);\n // }\n // else\n return JSON.parse(JSON.stringify(obj));\n}\n"],
5
+ "mappings": ";;;AA0BO,SAAS,UAAa,KAAqC;AAChE,MAAI,OAAO,KAAM,QAAO;AAMxB,SAAO,KAAK,MAAM,KAAK,UAAU,GAAG,CAAC;AACvC;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,12 +1,9 @@
1
1
  {
2
2
  "name": "@alwatr/deep-clone",
3
3
  "description": "Clone deeply nested objects and arrays in JavaScript.",
4
- "version": "5.5.10",
4
+ "version": "5.5.11",
5
5
  "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
6
6
  "bugs": "https://github.com/Alwatr/nanolib/issues",
7
- "dependencies": {
8
- "@alwatr/package-tracer": "5.5.10"
9
- },
10
7
  "devDependencies": {
11
8
  "@alwatr/nano-build": "6.1.1",
12
9
  "@alwatr/prettier-config": "5.0.3",
@@ -74,5 +71,5 @@
74
71
  },
75
72
  "type": "module",
76
73
  "types": "./dist/main.d.ts",
77
- "gitHead": "cd02a1a9fa579930cd54291ba51ed86241313a6d"
74
+ "gitHead": "0555c6f5ac11e7a911deee9bc90cfa44b6fe0b48"
78
75
  }