{"id":29616864,"url":"https://github.com/opensly/deep-equal-check","last_synced_at":"2026-04-19T05:37:17.779Z","repository":{"id":305443109,"uuid":"1022734129","full_name":"opensly/deep-equal-check","owner":"opensly","description":"Fast deep equality checker for modern JavaScript and TypeScript – robust, configurable, and safe for all data types.","archived":false,"fork":false,"pushed_at":"2025-07-20T06:40:37.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-20T08:29:01.499Z","etag":null,"topics":["deep-equal","deep-equals","javascript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opensly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-19T17:55:14.000Z","updated_at":"2025-07-20T06:41:13.000Z","dependencies_parsed_at":"2025-07-20T06:52:33.570Z","dependency_job_id":"d4cd9a96-f4e1-4d0d-8abf-d867ea01ad20","html_url":"https://github.com/opensly/deep-equal-check","commit_stats":null,"previous_names":["opensly/deep-equal-check","opensly/is-deep-equal"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/opensly/deep-equal-check","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensly%2Fdeep-equal-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensly%2Fdeep-equal-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensly%2Fdeep-equal-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensly%2Fdeep-equal-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opensly","download_url":"https://codeload.github.com/opensly/deep-equal-check/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensly%2Fdeep-equal-check/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266222295,"owners_count":23894993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deep-equal","deep-equals","javascript"],"created_at":"2025-07-21T01:04:26.160Z","updated_at":"2026-04-19T05:37:17.761Z","avatar_url":"https://github.com/opensly.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deep-equal-check\n\nFast deep equality checker for modern JavaScript and TypeScript – robust, configurable, and safe for all data types.\n\n## Features\n\n- **3-10x faster** than popular alternatives (16.7M ops/sec)\n- **Zero dependencies** - completely self-contained\n- **TypeScript first** - comprehensive type definitions\n- **Highly configurable** - customizable comparison options\n- **Circular reference safe** - prevents infinite recursion\n- **Universal** - works in Node.js, browsers, JavaScript \u0026 TypeScript projects\n- **Hybrid optimization** - combines fast paths with robust structure\n\n## Installation\n\n```bash\nnpm install deep-equal-check\n```\n\n## Quick Start\n\n### TypeScript/ES Modules\n```typescript\nimport deepEqualCheck from 'deep-equal-check';\n\n// Basic usage\ndeepEqualCheck({a: 1}, {a: 1}); // true\ndeepEqualCheck([1, 2, 3], [1, 2, 3]); // true\n\n// Complex objects\nconst obj1 = { \n  date: new Date('2023-01-01'),\n  regex: /test/gi,\n  set: new Set([1, 2, 3]),\n  map: new Map([['key', 'value']])\n};\nconst obj2 = { \n  date: new Date('2023-01-01'),\n  regex: /test/gi,\n  set: new Set([1, 2, 3]),\n  map: new Map([['key', 'value']])\n};\ndeepEqualCheck(obj1, obj2); // true\n```\n\n### JavaScript/CommonJS\n```javascript\nconst deepEqualCheck = require('deep-equal-check');\n\n// Basic usage\ndeepEqualCheck({a: 1}, {a: 1}); // true\ndeepEqualCheck([1, 2, 3], [1, 2, 3]); // true\n\n// With options\ndeepEqualCheck(NaN, NaN, { nanEqual: true }); // true\ndeepEqualCheck(+0, -0, { strictZero: true }); // false\n```\n\n## Performance\n\nRun the built-in benchmark:\n\n```bash\nnpm run benchmark\n```\n\n## Architecture\nThe library uses a **hybrid optimization strategy** that combines:\n- **Fast inline paths** for primitives, arrays, dates, and regex\n- **Modular structure** for complex cases (sets, maps, objects)\n- **Order-independent comparisons** for collections\n- **Circular reference detection** with proper WeakMap handling\n\n### Supported Types\n- ✅ **Primitives** (numbers, strings, booleans, null, undefined)\n- ✅ **Arrays** (including nested and mixed types)\n- ✅ **Objects** (plain objects, custom constructors)\n- ✅ **ES6+ Types** (Set, Map, TypedArray, ArrayBuffer)\n- ✅ **Built-in Objects** (Date, RegExp, Error)\n- ✅ **Boxed Primitives** (String, Number, Boolean)\n- ✅ **Circular References** (with infinite recursion protection)\n\n### Performance Results\n- **28.4M operations/second** - Primitives (same)\n- **19.2M operations/second** - Primitives (different)\n- **9.0M operations/second** - Mixed operations (complex cases)\n- **6.4x faster** than lodash/isEqual (complex cases)\n- **4.8x faster** than deep-eql (complex cases)\n- **Competitive** with fast-deep-equal (with circular reference support)\n- **Strong performance** on complex data types (Sets, Maps, nested objects)\n\n### Run Comparative Benchmarks\n```bash\nnpx ts-node --project benchmark/tsconfig.json benchmark/compare-libraries.ts\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensly%2Fdeep-equal-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopensly%2Fdeep-equal-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensly%2Fdeep-equal-check/lists"}