{"id":41879135,"url":"https://github.com/puckowski/deepequalspure","last_synced_at":"2026-01-26T18:01:16.878Z","repository":{"id":50785156,"uuid":"248879049","full_name":"puckowski/deepequalspure","owner":"puckowski","description":"JavaScript object deep equals service for Angular projects","archived":false,"fork":false,"pushed_at":"2026-01-20T23:33:36.000Z","size":1793,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-21T09:39:30.582Z","etag":null,"topics":["angular","deepequal","deepequals"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/ngx-deep-equals-pure","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/puckowski.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-03-21T00:33:49.000Z","updated_at":"2026-01-20T23:33:40.000Z","dependencies_parsed_at":"2024-03-24T12:25:40.482Z","dependency_job_id":"9a3e918e-a9be-4464-8081-5a1921ae62d7","html_url":"https://github.com/puckowski/deepequalspure","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/puckowski/deepequalspure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puckowski%2Fdeepequalspure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puckowski%2Fdeepequalspure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puckowski%2Fdeepequalspure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puckowski%2Fdeepequalspure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/puckowski","download_url":"https://codeload.github.com/puckowski/deepequalspure/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puckowski%2Fdeepequalspure/sbom","scorecard":{"id":749157,"data":{"date":"2025-08-11","repo":{"name":"github.com/puckowski/deepequalspure","commit":"3578919f81353e9029ff9692a8556edac402777d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 1.0.0 not signed: https://api.github.com/repos/puckowski/deepequalspure/releases/120522854","Warn: release artifact 0.5.0 not signed: https://api.github.com/repos/puckowski/deepequalspure/releases/105587532","Warn: release artifact 1.0.0 does not have provenance: https://api.github.com/repos/puckowski/deepequalspure/releases/120522854","Warn: release artifact 0.5.0 does not have provenance: https://api.github.com/repos/puckowski/deepequalspure/releases/105587532"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"24 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-vc8w-jr9v-vj7f","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27","Warn: Project is vulnerable to: GHSA-4www-5p9h-95mh","Warn: Project is vulnerable to: GHSA-9gqv-wp59-fq42","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-64vr-g452-qvp3","Warn: Project is vulnerable to: GHSA-9cwx-2883-4wfx","Warn: Project is vulnerable to: GHSA-vg6x-rcgg-rjx6","Warn: Project is vulnerable to: GHSA-x574-m823-4x7w","Warn: Project is vulnerable to: GHSA-4r4m-qw57-chr8","Warn: Project is vulnerable to: GHSA-xcj6-pq6g-qj4x","Warn: Project is vulnerable to: GHSA-356w-63v5-8wf4","Warn: Project is vulnerable to: GHSA-859w-5945-r5v3","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T19:44:47.400Z","repository_id":50785156,"created_at":"2025-08-22T19:44:47.400Z","updated_at":"2025-08-22T19:44:47.400Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28784093,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T13:55:28.044Z","status":"ssl_error","status_checked_at":"2026-01-26T13:55:26.068Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["angular","deepequal","deepequals"],"created_at":"2026-01-25T13:00:20.521Z","updated_at":"2026-01-26T18:01:16.872Z","avatar_url":"https://github.com/puckowski.png","language":"TypeScript","funding_links":[],"categories":["Development Utilities"],"sub_categories":["Runtime"],"readme":"# NgxDeepEqualsPure\n\nNote:\n- Please use version 0.2.5 for projects using Angular 11.0 and below. \n- Please use version 0.3.0+ for Angular 12.0+ projects. \n- Version 0.4.0+ supports use in Web Workers (see example project in this repository).\n- Version 0.4.2 is malformed and should not be used.\n- Version 0.4.3+ supports Standalone Components.\n- Version 0.5.0 supports Angular 16.\n- Version 1.0.0 supports Angular 17.\n- Version 2.0.0 supports Angular 18.\n- Version 3.0.0 supports Angular 19.\n- Version 4.0.0 supports Angular 20.\n- Version 5.0.0 supports Angular 21.\n  \nThis is a package intended to provide a deep equals function for JavaScript objects without requiring numerous dependencies. Other packages which provide a deep equals function, like Lodash or deep-equal, require a large number of dependencies or they are themselves very large. This contributes to unnecessary bloat and, ultimately, poor application load performance.\n\nUnlike deep-equal and Lodash, ngx-deep-equals-pure can correctly handle function properties. Furthermore, ngx-deep-equals-pure properly determines equality for arrays of complex objects when the order of the data differs where deep-equal and Lodash fail to do so.\n\nRepository:\nhttps://github.com/puckowski/deepequalspure\n\nBugs:\nhttps://github.com/puckowski/deepequalspure/issues\n\n## Size\n\nThe minified ES2015 size of ngx-deep-equals-pure is 9.18KB which includes ESM5, ESM2015, FESM5, and FESM2015 bundles.\n\n|ngx-deep-equals-pure |deep-equal |Lodash |\n|---------------------|-----------|-------|\n|9.18KB |3.44KB |528KB |\n\n## npm Package\n\nhttps://www.npmjs.com/package/ngx-deep-equals-pure\n\n## Usage\n\nIn the appropriate module, such as ```AppModule```, add the following to ```providers```:\n\n```javascript\nproviders: [NgxDeepEqualsPureService],\n```\n\nIn a component part of a module where NgxDeepEqualsPureService is provided, inject the deep equals service in the constructor like so:\n\n```javascript\nconstructor(private ngxDeepEquals: NgxDeepEqualsPureService) {\n```\n\nThen use NgxDeepEqualsPure like so:\n\n```javascript\nthis.ngxDeepEquals.deepEquals(this.obj1, this.obj2);\n```\n\nAlternatively, construct a standalone component like the following:\n\n```javascript\nimport { Component } from '@angular/core';\nimport { NgxDeepEqualsPureModule, NgxDeepEqualsPureService } from 'NgxDeepEqualsPure';\n\n@Component({\n  selector: 'app-standalone-test',\n  templateUrl: './standalone-test.component.html',\n  styleUrls: ['./standalone-test.component.scss'],\n  standalone: true,\n  imports: [NgxDeepEqualsPureModule]\n})\nexport class StandaloneTestComponent {\n\n  private obj8: any = { b: 'a', c: 2 };\n  private obj9: any = { c: 2, b: 'a' };\n\n  public isStandaloneMatch: boolean;\n\n  constructor(private ngxDeepEquals: NgxDeepEqualsPureService) {\n    this.isStandaloneMatch = this.ngxDeepEquals.deepEquals(this.obj8, this.obj9);\n  }\n}\n```\n\n## Performance\n\nThe following is the latest performance result of 2,000 comparisons run in a web worker.\n\n|ngx-deep-equals-pure |deep-equal |Lodash isEqual |\n|---------------------|-----------|---------------|\n|\t0.023 | 0.006 |\t0.091 |\n|\t0.007 | 0.008 |\t0.107 |\n|\t0.006 | 0.004\t| 0.106 |\n|\t0.006 | 0.001 |\t0.115 |\n|\t0.006 | 0.001 |\t0.115 |\n|\t0.006 | 0.001 |\t0.117 |\n|\t0.005 | 0.001 |\t0.117 |\n|\t0.006 | 0.001 |\t0.12  |\n|\t0.006 | 0.001 |\t0.118 |\n|\t0.006 | 0.001 |\t0.117 |\n|\t0.006 | 0.001 |\t0.117 |\n|\t0.006 | 0.001 |\t0.116 |\n|\t0.006 | 0.001 |\t0.118 |\n|\t0.006 | 0.001 |\t0.118 |\n|\t0.006 | 0.001 |\t0.118 |\n|\t0.005 | 0.001 |\t0.118 |\n|\t0.006 | 0.001 |\t0.119 |\n|\t0.006 | 0.001 |\t0.118 |\n|\t0.006 | 0\t    | 0.118 |\n|\t0.006 | 0.002\t| 0.117 |\n| **Avg: 0.0068s**   | **Avg: 0.00175s** | **Avg: 0.1149s** |\n\n## Tests\n```javascript\nthis.isMatch.push(this.deep.deepEquals(obj1, obj2));\nthis.isMatch.push(this.deep.deepEquals(obj1, obj3));\nthis.isMatch.push(this.deep.deepEquals(obj1, obj4));\nthis.isMatch.push(this.deep.deepEquals(obj1, obj5));\nthis.isMatch.push(this.deep.deepEquals(obj1, obj6));\nthis.isMatch.push(this.deep.deepEquals(obj1, obj7));\nthis.isMatch.push(this.deep.deepEquals(obj8, obj9));\n\nthis.isMatchLodash.push(_.isEqual(obj1, obj2));\nthis.isMatchLodash.push(_.isEqual(obj1, obj3));\nthis.isMatchLodash.push(_.isEqual(obj1, obj4));\nthis.isMatchLodash.push(_.isEqual(obj1, obj5));\nthis.isMatchLodash.push(_.isEqual(obj1, obj6));\nthis.isMatchLodash.push(_.isEqual(obj1, obj7));\nthis.isMatchLodash.push(_.isEqual(obj8, obj9));\n\nthis.isMatchDeepEqual.push(deepEqual(obj1, obj2));\nthis.isMatchDeepEqual.push(deepEqual(obj1, obj3));\nthis.isMatchDeepEqual.push(deepEqual(obj1, obj4));\nthis.isMatchDeepEqual.push(deepEqual(obj1, obj5));\nthis.isMatchDeepEqual.push(deepEqual(obj1, obj6));\nthis.isMatchDeepEqual.push(deepEqual(obj1, obj7));\nthis.isMatchDeepEqual.push(deepEqual(obj8, obj9));\n```\n\n## Results\n|#|Actual  |ngx-deep-equals-pure |deep-equal |Lodash isEqual |\n|---|-------------|---------------------|-----------|---------------|\n|1  |\ttrue        | true                | false     | false         |\n|2  | false       | false               | false     | false         |\n|3  | false       | false               | false     | false         |\n|4  | false       | false               | false     | false         |\n|5  | false       | false               | false     | false         |\n|6  | true        | true                | false     | false         |\n|7  | true        | true                | true      | true          |\n\n## Input objects\n```javascript\nconst obj1: any = {\n  b: () =\u003e {\n    console.log('foo');\n  },\n  e: 'abcbc',\n  a: [\n    { 'a': 12.7 },\n    { 'c': 37.6 }\n  ],\n  c: 126.8,\n  f: ['f', 'a'],\n  g: [\n    { t: () =\u003e { console.log('h'); }, g: 'a', j: 12 },\n    ['b', 2, { p: '123' }],\n    '789',\n    12.6,\n    809,\n    () =\u003e { console.log('er'); }\n  ]\n};\n\nconst obj2: any = {\n  g: [\n    [{ p: '123' }, 2, 'b'],\n    '789',\n    12.6,\n    () =\u003e { console.log('er'); },\n    { g: 'a', t: () =\u003e { console.log('h'); }, j: 12 },\n    809\n  ],\n  e: 'abcbc',\n  b: () =\u003e {\n    console.log('foo');\n  },\n  a: [\n    { 'c': 37.6 },\n    { 'a': 12.7 }\n  ],\n  f: ['f', 'a'],\n  c: 126.8\n};\n\nconst obj3: any = {\n  g: [\n    [{ p: '123' }, 2, 'b'],\n    '789',\n    12.6,\n    () =\u003e { console.log('er'); },\n    { t: () =\u003e { console.log('h'); }, j: 12 },\n    809\n  ],\n  e: 'abcbc',\n  b: () =\u003e {\n    console.log('foo');\n  },\n  a: [\n    { 'c': 37.6 },\n    { 'a': 12.7 }\n  ],\n  f: ['f', 'a'],\n  c: 126.8\n};\n\nconst obj4: any = {\n  g: [\n    [{ p: '123' }, 2, 'b'],\n    '789',\n    12.6,\n    () =\u003e { console.log('er'); },\n    { g: '6', t: () =\u003e { console.log('h'); }, j: 12 },\n    809\n  ],\n  e: 'abcbc',\n  b: () =\u003e {\n    console.log('foo');\n  },\n  a: [\n    { 'c': 37.6 },\n    { 'a': 12.7 }\n  ],\n  f: ['f', 'a'],\n  c: 126.8\n};\n\nconst obj5: any = {\n  g: [\n    [{ u: '123' }, 2, 'b'],\n    '789',\n    12.6,\n    () =\u003e { console.log('er'); },\n    { g: 'a', t: () =\u003e { console.log('h'); }, j: 12 },\n    809\n  ],\n  e: 'abcbc',\n  b: () =\u003e {\n    console.log('foo');\n  },\n  a: [\n    { 'c': 37.6 },\n    { 'a': 12.7 }\n  ],\n  f: ['f', 'a'],\n  c: 126.8\n};\n\nconst obj6: any = {\n  g: [\n    [{ p: '123' }, 2, 'b'],\n    '789',\n    12.6,\n    () =\u003e { console.log('er'); },\n    { g: 'a', y: () =\u003e { console.log('h'); }, j: 12 },\n    809\n  ],\n  e: 'abcbc',\n  b: () =\u003e {\n    console.log('foo');\n  },\n  a: [\n    { 'c': 37.6 },\n    { 'a': 12.7 }\n  ],\n  f: ['f', 'a'],\n  c: 126.8\n};\n\nconst obj7: any = {\n  b: () =\u003e {\n    console.log('foo');\n  },\n  e: 'abcbc',\n  a: [\n    { 'a': 12.7 },\n    { 'c': 37.6 }\n  ],\n  c: 126.8,\n  f: ['f', 'a'],\n  g: [\n    { t: () =\u003e { console.log('h'); }, g: 'a', j: 12 },\n    ['b', 2, { p: '123' }],\n    '789',\n    12.6,\n    809,\n    () =\u003e { console.log('er'); }\n  ]\n};\n\nconst obj8: any = { b: 'a', c: 2 };\nconst obj9: any = { c: 2, b: 'a' };\n```\n\n## Building library\n\nUse command:\n\n```\nng build NgxDeepEqualsPure --configuration production\n```\n\n## Running benchmark\n\nUse command:\n\n```\nng serve\n```\n\nThen navigate to localhost:4200 in your preferred browser.\n\nNote:\nIt may be necessary to run the build command before trying to run the benchmark.\n\nSee the GitHub repository at https://github.com/puckowski/deepequalspure for example usage of ngx-deep-equals-pure in an Angular application and for example usage in a Web Worker.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuckowski%2Fdeepequalspure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpuckowski%2Fdeepequalspure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuckowski%2Fdeepequalspure/lists"}