{"_id":"@art-suite/art-core-equality","_rev":"5-f936ab1a6028964bd26d176dbbcabaca","name":"@art-suite/art-core-equality","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.0":{"name":"@art-suite/art-core-equality","version":"0.1.0","author":{"name":"Shane Brinkman-Davis Delamore"},"license":"ISC","_id":"@art-suite/art-core-equality@0.1.0","maintainers":[{"name":"shanebdavis","email":"shanebdavis@gmail.com"}],"homepage":"https://github.com/art-suite/art-suite-foundations","bugs":{"url":"https://github.com/art-suite/art-suite-foundations/issues"},"dist":{"shasum":"14b9a0f2bb7e5ca07f1d468aa7dacc8792d8360e","tarball":"https://registry.npmjs.org/@art-suite/art-core-equality/-/art-core-equality-0.1.0.tgz","fileCount":20,"integrity":"sha512-/IDDy4ce/rRupGheaDrD/Szvp7wiaOA/DjHqqcwdi894eIzvEEwjb079Jhxs7N6N6FDnVLb7BxHsvHEPuywbKg==","signatures":[{"sig":"MEYCIQCAnlNUyeOs8BZJumnjCNn4vOeomH6qYk06juDxo4kNqAIhAKx7KdXQp9GdG7QjjrFqKqJASC8l81gxdK29YNePE2NQ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41516},"jest":{"verbose":true,"testEnvironment":"node","collectCoverageFrom":["build/**/*.js","!build/test/**/*.js"],"testPathIgnorePatterns":["/node_modules/","<rootDir>/test"],"coveragePathIgnorePatterns":["/index.js$","/namespace.js$"]},"main":"./build","watch":{"build":{"quiet":false,"patterns":["source"],"extensions":["caf","coffee"]}},"gitHead":"590be65ad05cc7b77d3d3810cc68a4eaec0f10c9","scripts":{"nn":"nn build/* ","test":"jest","build":"rsync -av --exclude='*.caf' --exclude='*.coffee' ./source/ ./build/\ncoffee -m --output build --compile source &\nCOFFEE_PID=$!\ncaf -m -c source -o build --require coffee-script/register&\nCAF_PID=$!\nwait $COFFEE_PID || exit 1\nwait $CAF_PID || exit 1\nnpm run nn","clean":"rm -rf build/*","test-watch":"jest --watch","build-clean":"# BUILD CLEAN START\n#   - building into: build-temp\n#\nrm -rf ./__build-old__\nrsync -av --exclude='*.caf' --exclude='*.coffee' ./source/ ./build-temp/\ncoffee -m --output build-temp --compile source &\nCOFFEE_PID=$!\ncaf -m -c source -o build-temp --require coffee-script/register&\nCAF_PID=$!\nwait $COFFEE_PID || exit 1\nwait $CAF_PID || exit 1\nnpm run nn\n\nnn build-temp/*\n\n# BUILD CLEAN FINIALIZING\n#  - replace old build in:   build\n#  - with new build from:    build-temp\n#\nmv build __build-old__\nmv build-temp build\nrm -rf ./__build-old__","build-watch":"nodemon -e js,ts,jsx,tsx,caf,coffee,json -w \"source/**\" -x npm run build"},"_npmUser":{"name":"shanebdavis","email":"shanebdavis@gmail.com"},"repository":{"url":"git+https://github.com/art-suite/art-suite-foundations.git","type":"git"},"_npmVersion":"10.9.0","description":"The Standard Library for JavaScript that aught to be.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"bluebird":"^3.5.5","pluralize":"^8.0.0","dateformat":"^4.5.1","detect-node":"^2.0.4","caffeine-script-runtime":"^1.14.0","neptune-namespaces-runtime":"^3.2.14"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.2.0","art-testbench":"^3.2.17","art-build-configurator":"^1.30.4","@art-suite/standard-package-builder":"^1.2.7"},"_npmOperationalInternal":{"tmp":"tmp/art-core-equality_0.1.0_1746739233271_0.5077906596291835","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@art-suite/art-core-equality","version":"0.1.1","author":{"name":"Shane Brinkman-Davis Delamore"},"license":"ISC","_id":"@art-suite/art-core-equality@0.1.1","maintainers":[{"name":"shanebdavis","email":"shanebdavis@gmail.com"}],"homepage":"https://github.com/art-suite/art-suite-foundations","bugs":{"url":"https://github.com/art-suite/art-suite-foundations/issues"},"dist":{"shasum":"7f00ec6351f99583916a3af4690259a116588eec","tarball":"https://registry.npmjs.org/@art-suite/art-core-equality/-/art-core-equality-0.1.1.tgz","fileCount":20,"integrity":"sha512-/0iqrLfMJf8yZVI49iVr3d5PiAMg6M54AUlug58FrjOrkAJxh/MTTisxR/gTp/rlMxvAPfMSOyzfe9xRjUZLJA==","signatures":[{"sig":"MEQCIDt4S+/p7q9RTH1wNS1wov1BR7dKeeqYjcx+gV8frWe8AiBJf9E77i18RmQe4ha4+MSUAunranv3OhMhx+3klCEzYA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41619},"jest":{"verbose":true,"testEnvironment":"node","collectCoverageFrom":["build/**/*.js","!build/test/**/*.js"],"testPathIgnorePatterns":["/node_modules/","<rootDir>/test"],"coveragePathIgnorePatterns":["/index.js$","/namespace.js$"]},"main":"./build","watch":{"build":{"quiet":false,"patterns":["source"],"extensions":["caf","coffee"]}},"exports":{".":{"import":"./index.mjs","require":"./build/index.js"}},"gitHead":"bedd81435373af9778e14146163a6077d4fdcc81","scripts":{"nn":"nn build/* ","test":"jest","build":"rsync -av --exclude='*.caf' --exclude='*.coffee' ./source/ ./build/\ncoffee -m --output build --compile source &\nCOFFEE_PID=$!\ncaf -m -c source -o build --require coffee-script/register&\nCAF_PID=$!\nwait $COFFEE_PID || exit 1\nwait $CAF_PID || exit 1\nnpm run nn","clean":"rm -rf build/*","test-watch":"jest --watch","build-clean":"# BUILD CLEAN START\n#   - building into: build-temp\n#\nrm -rf ./__build-old__\nrsync -av --exclude='*.caf' --exclude='*.coffee' ./source/ ./build-temp/\ncoffee -m --output build-temp --compile source &\nCOFFEE_PID=$!\ncaf -m -c source -o build-temp --require coffee-script/register&\nCAF_PID=$!\nwait $COFFEE_PID || exit 1\nwait $CAF_PID || exit 1\nnpm run nn\n\nnn build-temp/*\n\n# BUILD CLEAN FINIALIZING\n#  - replace old build in:   build\n#  - with new build from:    build-temp\n#\nmv build __build-old__\nmv build-temp build\nrm -rf ./__build-old__","build-watch":"nodemon -e js,ts,jsx,tsx,caf,coffee,json -w \"source/**\" -x npm run build"},"_npmUser":{"name":"shanebdavis","email":"shanebdavis@gmail.com"},"repository":{"url":"git+https://github.com/art-suite/art-suite-foundations.git","type":"git"},"_npmVersion":"10.9.0","description":"The Standard Library for JavaScript that aught to be.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"bluebird":"^3.5.5","pluralize":"^8.0.0","dateformat":"^4.5.1","detect-node":"^2.0.4","caffeine-script-runtime":"^1.14.0","neptune-namespaces-runtime":"^3.2.14"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.2.0","art-testbench":"^3.2.17","art-build-configurator":"^1.30.4","@art-suite/standard-package-builder":"^1.2.7"},"_npmOperationalInternal":{"tmp":"tmp/art-core-equality_0.1.1_1746783864057_0.9579077449320308","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@art-suite/art-core-equality","version":"0.1.2","author":{"name":"Shane Brinkman-Davis Delamore"},"license":"ISC","_id":"@art-suite/art-core-equality@0.1.2","maintainers":[{"name":"shanebdavis","email":"shanebdavis@gmail.com"}],"homepage":"https://github.com/art-suite/art-suite-foundations","bugs":{"url":"https://github.com/art-suite/art-suite-foundations/issues"},"dist":{"shasum":"eeea58de66545d6055068da47bcc60a7d56323ff","tarball":"https://registry.npmjs.org/@art-suite/art-core-equality/-/art-core-equality-0.1.2.tgz","fileCount":20,"integrity":"sha512-8UceEFxU3yrClzYaaqxhqPfJVvBjlVWC3S23S8Sc3UdnVUyHeQfOiW4i4rDz6nhCZmFKkMHdnHoPWTEkbsHuaQ==","signatures":[{"sig":"MEUCIQDlg+RIPMh6rgjGbF6hxpXV/hupvRMahRQ2/tuIlcLgjAIgLZ/my6XDuYh+jyXBnDEyLj8Z7uv/moXiOLgap540p/U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41619},"jest":{"verbose":true,"testEnvironment":"node","collectCoverageFrom":["build/**/*.js","!build/test/**/*.js"],"testPathIgnorePatterns":["/node_modules/","<rootDir>/test"],"coveragePathIgnorePatterns":["/index.js$","/namespace.js$"]},"main":"./build","watch":{"build":{"quiet":false,"patterns":["source"],"extensions":["caf","coffee"]}},"exports":{".":{"import":"./index.mjs","require":"./build/index.js"}},"gitHead":"a94165479e2a1bce1798e54eabcb679c47599240","scripts":{"nn":"nn build/* ","test":"jest","build":"rsync -av --exclude='*.caf' --exclude='*.coffee' ./source/ ./build/\ncoffee -m --output build --compile source &\nCOFFEE_PID=$!\ncaf -m -c source -o build --require coffee-script/register&\nCAF_PID=$!\nwait $COFFEE_PID || exit 1\nwait $CAF_PID || exit 1\nnpm run nn","clean":"rm -rf build/*","test-watch":"jest --watch","build-clean":"# BUILD CLEAN START\n#   - building into: build-temp\n#\nrm -rf ./__build-old__\nrsync -av --exclude='*.caf' --exclude='*.coffee' ./source/ ./build-temp/\ncoffee -m --output build-temp --compile source &\nCOFFEE_PID=$!\ncaf -m -c source -o build-temp --require coffee-script/register&\nCAF_PID=$!\nwait $COFFEE_PID || exit 1\nwait $CAF_PID || exit 1\nnpm run nn\n\nnn build-temp/*\n\n# BUILD CLEAN FINIALIZING\n#  - replace old build in:   build\n#  - with new build from:    build-temp\n#\nmv build __build-old__\nmv build-temp build\nrm -rf ./__build-old__","build-watch":"nodemon -e js,ts,jsx,tsx,caf,coffee,json -w \"source/**\" -x npm run build"},"_npmUser":{"name":"shanebdavis","email":"shanebdavis@gmail.com"},"repository":{"url":"git+https://github.com/art-suite/art-suite-foundations.git","type":"git"},"_npmVersion":"10.9.0","description":"The Standard Library for JavaScript that aught to be.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"bluebird":"^3.5.5","pluralize":"^8.0.0","dateformat":"^4.5.1","detect-node":"^2.0.4","caffeine-script-runtime":"^1.14.0","neptune-namespaces-runtime":"^3.2.14"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.2.0","art-testbench":"^3.2.17","art-build-configurator":"^1.30.4","@art-suite/standard-package-builder":"^1.2.7"},"_npmOperationalInternal":{"tmp":"tmp/art-core-equality_0.1.2_1746786913741_0.5854389621287355","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@art-suite/art-core-equality","version":"0.1.3","author":{"name":"Shane Brinkman-Davis Delamore"},"license":"ISC","_id":"@art-suite/art-core-equality@0.1.3","maintainers":[{"name":"shanebdavis","email":"shanebdavis@gmail.com"}],"homepage":"https://github.com/art-suite/art-suite-foundations","bugs":{"url":"https://github.com/art-suite/art-suite-foundations/issues"},"dist":{"shasum":"e02060f1438f1e680b822f56edbc546b97b535b1","tarball":"https://registry.npmjs.org/@art-suite/art-core-equality/-/art-core-equality-0.1.3.tgz","fileCount":20,"integrity":"sha512-nVJqm03fM8d0q6ZL/i8cNtDXNJUj8KJgIjyNtNh9avcgYlwiTRDMvuLXI4arJ3pXl+xrUFkS6Bpai+UBysdGcQ==","signatures":[{"sig":"MEUCIQDZokHJb/EUf75RspT/nSAE1uDjKUkz1rst3MGejA7oTQIgfa1AkWUqwDWJGN5LG1rAVbnkN5y4iBb6XpOPaJOlbgI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41650},"jest":{"verbose":true,"testEnvironment":"node","collectCoverageFrom":["build/**/*.js","!build/test/**/*.js"],"testPathIgnorePatterns":["/node_modules/","<rootDir>/test"],"coveragePathIgnorePatterns":["/index.js$","/namespace.js$"]},"main":"./build","watch":{"build":{"quiet":false,"patterns":["source"],"extensions":["caf","coffee"]}},"exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./build/index.js"}},"gitHead":"a94165479e2a1bce1798e54eabcb679c47599240","scripts":{"nn":"nn build/* ","test":"jest","build":"rsync -av --exclude='*.caf' --exclude='*.coffee' ./source/ ./build/\ncoffee -m --output build --compile source &\nCOFFEE_PID=$!\ncaf -m -c source -o build --require coffee-script/register&\nCAF_PID=$!\nwait $COFFEE_PID || exit 1\nwait $CAF_PID || exit 1\nnpm run nn","clean":"rm -rf build/*","test-watch":"jest --watch","build-clean":"# BUILD CLEAN START\n#   - building into: build-temp\n#\nrm -rf ./__build-old__\nrsync -av --exclude='*.caf' --exclude='*.coffee' ./source/ ./build-temp/\ncoffee -m --output build-temp --compile source &\nCOFFEE_PID=$!\ncaf -m -c source -o build-temp --require coffee-script/register&\nCAF_PID=$!\nwait $COFFEE_PID || exit 1\nwait $CAF_PID || exit 1\nnpm run nn\n\nnn build-temp/*\n\n# BUILD CLEAN FINIALIZING\n#  - replace old build in:   build\n#  - with new build from:    build-temp\n#\nmv build __build-old__\nmv build-temp build\nrm -rf ./__build-old__","build-watch":"nodemon -e js,ts,jsx,tsx,caf,coffee,json -w \"source/**\" -x npm run build"},"_npmUser":{"name":"shanebdavis","email":"shanebdavis@gmail.com"},"repository":{"url":"git+https://github.com/art-suite/art-suite-foundations.git","type":"git"},"_npmVersion":"10.9.0","description":"The Standard Library for JavaScript that aught to be.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"bluebird":"^3.5.5","pluralize":"^8.0.0","dateformat":"^4.5.1","detect-node":"^2.0.4","caffeine-script-runtime":"^1.14.0","neptune-namespaces-runtime":"^3.2.14"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.2.0","art-testbench":"^3.2.17","art-build-configurator":"^1.30.4","@art-suite/standard-package-builder":"^1.2.7"},"_npmOperationalInternal":{"tmp":"tmp/art-core-equality_0.1.3_1746787422502_0.7554118904434568","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"author":{"name":"Shane Brinkman-Davis Delamore"},"bugs":{"url":"https://github.com/art-suite/art-suite-foundations/issues"},"dependencies":{"bluebird":"^3.5.5","caffeine-script-runtime":"^1.14.0","dateformat":"^4.5.1","detect-node":"^2.0.4","neptune-namespaces-runtime":"^3.2.15","pluralize":"^8.0.0"},"description":"The Standard Library for JavaScript that aught to be.","devDependencies":{"@art-suite/standard-package-builder":"^1.2.8","art-build-configurator":"^1.30.5","art-testbench":"^3.2.18","mocha":"^7.2.0"},"exports":{".":{"import":"./index.mjs","require":"./build/index.js","types":"./index.d.ts"}},"homepage":"https://github.com/art-suite/art-suite-foundations","jest":{"collectCoverageFrom":["build/**/*.js","!build/test/**/*.js"],"coveragePathIgnorePatterns":["/index.js$","/namespace.js$"],"testEnvironment":"node","testPathIgnorePatterns":["/node_modules/","<rootDir>/test"],"verbose":true},"license":"ISC","main":"./build","name":"@art-suite/art-core-equality","repository":{"type":"git","url":"git+https://github.com/art-suite/art-suite-foundations.git"},"scripts":{"build":"rsync -av --exclude='*.caf' --exclude='*.coffee' ./source/ ./build/\ncoffee -m --output build --compile source &\nCOFFEE_PID=$!\ncaf -m -c source -o build --require coffee-script/register&\nCAF_PID=$!\nwait $COFFEE_PID || exit 1\nwait $CAF_PID || exit 1\nnpm run nn","build-clean":"# BUILD CLEAN START\n#   - building into: build-temp\n#\nrm -rf ./__build-old__\nrsync -av --exclude='*.caf' --exclude='*.coffee' ./source/ ./build-temp/\ncoffee -m --output build-temp --compile source &\nCOFFEE_PID=$!\ncaf -m -c source -o build-temp --require coffee-script/register&\nCAF_PID=$!\nwait $COFFEE_PID || exit 1\nwait $CAF_PID || exit 1\nnpm run nn\n\nnn build-temp/*\n\n# BUILD CLEAN FINIALIZING\n#  - replace old build in:   build\n#  - with new build from:    build-temp\n#\nmv build __build-old__\nmv build-temp build\nrm -rf ./__build-old__","build-watch":"nodemon -e js,ts,jsx,tsx,caf,coffee,json -w \"source/**\" -x npm run build","clean":"rm -rf build/*","nn":"nn build/* ","test":"jest","test-watch":"jest --watch"},"version":"0.1.4","watch":{"build":{"extensions":["caf","coffee"],"patterns":["source"],"quiet":false}},"gitHead":"3140bf828cabdf379d7c25fc877c26c1608c2409","_id":"@art-suite/art-core-equality@0.1.4","_nodeVersion":"24.10.0","_npmVersion":"11.6.1","dist":{"integrity":"sha512-s124QqAIA91HYrpLQQG5HFurr1J0C7FgkEVWzgIlOravCEzoitr9E94TLNLqPqAg32z1l5z1Jphcuch9SeAJqg==","shasum":"6376f72c3716d3d2e1af9d4bb8eeba8e4fb7b714","tarball":"https://registry.npmjs.org/@art-suite/art-core-equality/-/art-core-equality-0.1.4.tgz","fileCount":20,"unpackedSize":41650,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDBPzeBskCxhSH+Utk/IeQe32sqOYTtFdLVNQZpAPpmsQIhAIaVBZGZhvau8EBTl2h6DfnRPuKHb2W+S6Hua5kaTRHi"}]},"_npmUser":{"name":"shanebdavis","email":"shanebdavis@gmail.com"},"directories":{},"maintainers":[{"name":"shanebdavis","email":"shanebdavis@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/art-core-equality_0.1.4_1762507600975_0.08388443598595341"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-08T21:20:33.150Z","modified":"2025-11-07T09:26:41.410Z","0.1.0":"2025-05-08T21:20:33.445Z","0.1.1":"2025-05-09T09:44:24.233Z","0.1.2":"2025-05-09T10:35:13.963Z","0.1.3":"2025-05-09T10:43:42.683Z","0.1.4":"2025-11-07T09:26:41.215Z"},"bugs":{"url":"https://github.com/art-suite/art-suite-foundations/issues"},"author":{"name":"Shane Brinkman-Davis Delamore"},"license":"ISC","homepage":"https://github.com/art-suite/art-suite-foundations","repository":{"type":"git","url":"git+https://github.com/art-suite/art-suite-foundations.git"},"description":"The Standard Library for JavaScript that aught to be.","maintainers":[{"name":"shanebdavis","email":"shanebdavis@gmail.com"}],"readme":"# @art-suite/art-core-equality\n\nComprehensive equality and comparison utilities for JavaScript values, including deep equality, object comparison, and difference detection.\n\nObject can implement custom comparisons with the simple eq, lt, lte and gte api.\n\n## Installation\n\n```bash\nnpm install @art-suite/art-core-equality\n```\n\n## API\n\n### Comparison Functions\n\n```javascript\nimport {\n  gt, // greater than\n  lt, // less than\n  gte, // greater than or equal\n  lte, // less than or equal\n  eq, // deep equality\n  neq, // deep inequality\n  compare, // returns -1, 0, or 1\n} from \"@art-suite/art-core-equality\";\n\n// Basic comparisons\ngt(5, 3); // true\nlt(3, 5); // true\ngte(5, 5); // true\nlte(3, 5); // true\n\n// Deep equality\neq({ a: 1 }, { a: 1 }); // true\nneq({ a: 1 }, { a: 2 }); // true\n\n// Compare returns -1, 0, or 1\ncompare(3, 5); // -1\ncompare(5, 5); // 0\ncompare(5, 3); // 1\n```\n\n### Fast Equality\n\n```javascript\nimport { fastEq, fastNeq } from \"@art-suite/art-core-equality\";\n\n// Fast equality only works for primitives and references\nfastEq(1, 1); // true\nfastEq({}, {}); // false (different references)\nfastNeq(1, 2); // true\n```\n\n### Object Comparison\n\n```javascript\nimport { plainObjectsDeepEq, propsEq } from \"@art-suite/art-core-equality\";\n\n// Deep equality for objects\nplainObjectsDeepEq({ a: 1 }, { a: 1 }); // true\n\n// Compare specific properties\npropsEq({ a: 1, b: 2 }, { a: 1, b: 3 }, [\"a\"]); // true\n```\n\n### Difference Detection\n\n```javascript\nimport { diff, plainObjectsDeepDiff } from \"@art-suite/art-core-equality\";\n\n// Get differences between objects\ndiff({ a: 1, b: 2 }, { a: 1, b: 3 }); // {b: 3}\nplainObjectsDeepDiff({ a: 1 }, { a: 2 }); // {a: 2}\n```\n\n### Shallow Equality\n\n```javascript\nimport { shallowEq } from \"@art-suite/art-core-equality\";\n\n// Shallow equality check\nshallowEq({ a: 1 }, { a: 1 }); // false (different references)\nshallowEq([1], [1]); // false (different references)\n```\n","readmeFilename":"README.md"}