{"name":"deepmerge-ts","version":"3.0.0-beta.6","keywords":["merge","deepmerge","deep merge","deep-merge","inferred types","inferred-types","recursive merge","recursive-merge","ts","ts merge","ts-merge","typescript","typescript merge","typescript-merge"],"author":{"name":"Rebecca Stevens","email":"rebecca.stevens@outlook.co.nz"},"license":"BSD-3-Clause","_id":"deepmerge-ts@3.0.0-beta.6","maintainers":[{"name":"rebeccastevens","email":"rebecca.stevens@outlook.co.nz"}],"homepage":"https://github.com/RebeccaStevens/deepmerge-ts#readme","bugs":{"url":"https://github.com/RebeccaStevens/deepmerge-ts/issues"},"dist":{"shasum":"224ef9aaed825b7326fb2c504ebc32ec894d6dad","tarball":"http://registry-npm.ywwl.com/deepmerge-ts/download/deepmerge-ts-3.0.0-beta.6.tgz","fileCount":8,"integrity":"sha512-dK/f5hKGLnKoFWy6Yde6e0FVNIVOkszB0NAl6c/greNa3ujgKODF61992EsR4uoVR20oqcm/0GV34oMGj2fzkA==","signatures":[{"sig":"MEYCIQC7X8mbKhHXvQvkhNXd/HMufn7hW7mIcF5kDeahu8CnLAIhANfSOOrOdGd/0D9U2l4r+rqORH9LDVOZ9LtoxKhc7/l7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57622,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiDkd0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmow9Q/+IzC5wP048cB1USu81tXzCGZGfZgbaelObd97Wcv25QVOpkHF\r\nBIISDsxQ0ruDWFmCrj2FL8ZYlXf9DX/Vq7CjmRzVrqcnMzZJv3Vk/JoVoBMn\r\noMZ7fEVK7dfrMuXaMs9hmDx2mSQ7vYyP4IVgFhm+h5HyUSftfF/2YlBatLy6\r\numtNb6Zbly/0nxqHBkfQ4koWDvkhSinOz9iV2O1bVZbEQjwKMp97UNby/1qV\r\nXYkrpwDpjCa0YvxEieS8LkrrAERPCNY6FgIr8ku6uwilrUa+qNfq0EsPSEUv\r\nuQdHZUCCGP7zgiOoi0E+x7CPzj8DJDVOWRgIC+jFSjFIWciSCNu8Ypq2M1Zm\r\nKtUdrMD9WGWhPW/knhnf7kr/Dk1Txbvx6nqNkUse17IURJcHgRceGGJmgP8K\r\nBGMZ6uBEQCm7XvgR1PpdkhaBkJRLAscmsCCMfPRbwpqXioMT89RE1bgKyw0H\r\npcTvVMGXDe1ddsjftwhqgRXxQgWNsIOLc45WGh19O+Y35Fd5dBYH8YDNmi0U\r\nkiiM6mMu3HZUEfp5v2sOC/kJRngxqnka/3euuJFtPiWgbH5UinaBGU4e7pjo\r\nUNna/PUsT7jaGGfh66UwKptryIORWfqFAm/k/fIM+PAAXxlyoXCDb88lsfom\r\ngwHERhcGeNOeSiDtFz5tXb7zEt3/YwfJBQQ=\r\n=dhD4\r\n-----END PGP SIGNATURE-----\r\n","size":11308,"noattachment":false,"key":"/deepmerge-ts/-/deepmerge-ts-3.0.0-beta.6.tgz"},"main":"dist/node/index.cjs","types":"dist/node/types/legacy/v4_0.d.ts","module":"dist/node/index.mjs","readme":"<div align=\"center\">\n\n# DeepmergeTS\n\n[![npm version](https://img.shields.io/npm/v/deepmerge-ts.svg)](https://www.npmjs.com/package/deepmerge-ts)\n[![deno version](https://img.shields.io/github/v/tag/RebeccaStevens/deepmerge-ts?label=deno&sort=semver)](https://deno.land/x/deepmergets)\n[![CI](https://github.com/RebeccaStevens/deepmerge-ts/actions/workflows/ci.yml/badge.svg)](https://github.com/RebeccaStevens/deepmerge-ts/actions/workflows/ci.yml)\n[![Coverage Status](https://codecov.io/gh/RebeccaStevens/deepmerge-ts/branch/main/graph/badge.svg?token=MVpR1oAbIT)](https://codecov.io/gh/RebeccaStevens/deepmerge-ts)\\\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![GitHub Discussions](https://img.shields.io/github/discussions/RebeccaStevens/deepmerge-ts?style=flat-square)](https://github.com/RebeccaStevens/deepmerge-ts/discussions)\n[![BSD 3 Clause license](https://img.shields.io/github/license/RebeccaStevens/deepmerge-ts.svg?style=flat-square)](https://opensource.org/licenses/BSD-3-Clause)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square)](https://commitizen.github.io/cz-cli/)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)\n\nDeeply merge 2 or more objects respecting type information.\n\n![classic merge animation](./assets/header.png)\n\n</div>\n\n## Donate\n\n[Any donations would be much appreciated](./DONATIONS.md). 😄\n\n## Installation\n\n### Node\n\n```sh\n# Install with npm\nnpm install deepmerge-ts --save-dev\n\n# Install with yarn\nyarn add -D deepmerge-ts\n```\n\n### Deno\n\n```jsonc\n// import_map.json\n{\n  \"imports\": {\n    \"deepmerge-ts\": \"https://deno.land/x/deepmergets@__version__/dist/deno/index.ts\"\n  }\n}\n```\n\n## Features\n\n- Smart merging - High performance.\n- Merged output has correct typing.\n- Record merging support.\n- Array merging support.\n- Map and Set merging support.\n- Customized merging.\n\n## Usage\n\n### Example using default config\n\n```js\nimport { deepmerge } from \"deepmerge-ts\";\n\nconst x = {\n  record: {\n    prop1: \"value1\",\n    prop2: \"value2\",\n  },\n  array: [1, 2, 3],\n  set: new Set([1, 2, 3]),\n  map: new Map([\n    [\"key1\", \"value1\"],\n    [\"key2\", \"value2\"],\n  ]),\n};\n\nconst y = {\n  record: {\n    prop1: \"changed\",\n    prop3: \"value3\",\n  },\n  array: [2, 3, 4],\n  set: new Set([2, 3, 4]),\n  map: new Map([\n    [\"key2\", \"changed\"],\n    [\"key3\", \"value3\"],\n  ]),\n};\n\nconst merged = deepmerge(x, y);\n\nconsole.log(merged);\n\n// Prettierfied output:\n//\n// {\n//   record: {\n//      prop1: \"changed\",\n//      prop2: \"value2\",\n//      prop3: \"value3\"\n//   }\n//   array: (6) [1, 2, 3, 2, 3, 4]\n//   set: Set(4) {1, 2, 3, 4}\n//   map: Map(3) {\n//    \"key1\" => \"value1\",\n//    \"key2\" => \"changed\",\n//    \"key3\" => \"value3\"\n//   }\n// }\n```\n\n### Using customized config\n\n[See deepmerge custom docs](./docs/deepmergeCustom.md).\n\n## Performance\n\nWe use smart merging instead of the classic merging strategy which some alternative libraries use. This vastly improves performance, both in execution time and memory usage.\n\n### Classic Merge (not what we do)\n\nWith classic merging, each input is merged with the next input until all inputs are merged.\n\nThis strategy has large performance issues when lots of items need to be merged.\n\n![classic merge animation](./assets/classic-merge.gif)\n\n### Smart Merge (what we do)\n\nWith our smart merging, we look ahead to see what can be merged and only merge those things.\n\nIn addition to performance improvements, this strategy merges multiple inputs at once; allowing for benefits such as taking averages of the inputs.\n\n![smart merge animation](./assets/smart-merge.gif)\n\n## API\n\n[See API docs](./docs/API.md).\n","denoify":{"out":"dist/deno","index":"src/index.ts","ports":{"is-plain-object":"https://raw.githubusercontent.com/jonschlinkert/is-plain-object/v5.0.0/is-plain-object.js"}},"engines":{"node":">=12.4.0"},"exports":{"import":"./dist/node/index.mjs","default":"./dist/node/index.cjs","require":"./dist/node/index.cjs"},"gitHead":"c4a32aef3020d8f020fd28c540ca671a9bd47d16","scripts":{"cz":"git-cz","lint":"yarn lint:js && yarn lint:md","test":"yarn test:js && yarn test:types","build":"yarn build:npm && yarn build:deno","format":"prettier --write \"./**/*.{md,ts,yml}\"","lint:js":"eslint .","lint:md":"markdownlint \"**/*.md\" --config=.markdownlint.json --ignore-path=.markdownlintignore","prepare":"husky install","test:js":"nyc ava","prebuild":"rimraf build","benchmark":"cd benchmark && yarn benchmark; cd ..","build:npm":"rollup -c","postbuild":"rimraf build","build:deno":"tsc -p tsconfig.build.deno.json && denoify","test:types":"dtslint --localTs node_modules/typescript/lib --expectOnly tests/types","check-format":"prettier --list-different \"./**/*.{md,ts,yml}\"","prebenchmark":"yarn build && yarn link","prebuild:npm":"rimraf dist/node types/current","check-spelling":"cspell --config=.cspell.json \"**/*.{md,ts}\"","pre:build:deno":"rimraf dist/deno"},"_npmUser":{"name":"rebeccastevens","email":"rebecca.stevens@outlook.co.nz"},"repository":{"url":"git+https://github.com/RebeccaStevens/deepmerge-ts.git","type":"git"},"_npmVersion":"8.4.1","description":"Deeply merge 2 or more objects respecting type information.","directories":{},"sideEffects":false,"_nodeVersion":"16.14.0","dependencies":{"is-plain-object":"^5.0.0"},"typesVersions":{"<4.1":{"*":["dist/node/types/legacy/v4_0.d.ts"]},">=4.1":{"*":["dist/node/types/current/index.d.ts"]}},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"ava":"^4.0.1","nyc":"^15.1.0","husky":"^7.0.4","tslib":"^2.3.1","cspell":"^5.18.4","eslint":"^8.8.0","marked":"^4.0.12","rimraf":"^3.0.2","rollup":"^2.67.1","codecov":"^3.8.3","denoify":"^0.11.0","dtslint":"^4.2.1","ts-node":"^10.5.0","prettier":"^2.5.1","commitizen":"^4.2.4","typescript":"^4.5.5","@types/node":"^17.0.16","lint-staged":"^12.3.3","@commitlint/cli":"^16.1.0","markdownlint-cli":"^0.31.1","semantic-release":"^19.0.2","eslint-plugin-ava":"^13.2.0","rollup-plugin-dts":"^4.1.0","eslint-plugin-node":"^11.1.0","rollup-plugin-copy":"^3.4.0","source-map-support":"^0.5.21","@rollup/plugin-json":"^4.1.0","eslint-plugin-jsdoc":"^37.8.0","eslint-plugin-tsdoc":"^0.2.14","eslint-plugin-import":"^2.25.4","@semantic-release/git":"^10.0.1","@semantic-release/npm":"^9.0.0","eslint-plugin-promise":"^6.0.0","eslint-plugin-sonarjs":"^0.11.0","eslint-plugin-unicorn":"^40.1.0","eslint-config-prettier":"^8.3.0","eslint-plugin-markdown":"^2.2.1","eslint-plugin-prettier":"^4.0.0","@semantic-release/github":"^8.0.2","eslint-plugin-functional":"^4.2.0","@rollup/plugin-typescript":"^8.3.0","@typescript-eslint/parser":"^5.11.0","@rollup/plugin-node-resolve":"^13.1.3","@semantic-release/changelog":"^6.0.1","eslint-plugin-eslint-plugin":"^4.1.0","rollup-plugin-auto-external":"^2.0.0","eslint-plugin-optimize-regex":"^1.2.1","@cspell/dict-cryptocurrencies":"^2.0.0","@rebeccastevens/eslint-config":"^1.3.1","eslint-plugin-eslint-comments":"^3.2.0","@commitlint/config-conventional":"^16.0.0","@typescript-eslint/eslint-plugin":"^5.11.0","@istanbuljs/nyc-config-typescript":"^1.0.2","@semantic-release/commit-analyzer":"^9.0.2","eslint-import-resolver-typescript":"^2.5.0","@types/rollup-plugin-auto-external":"^2.0.2","@semantic-release/release-notes-generator":"^10.0.3"},"_npmOperationalInternal":{"tmp":"tmp/deepmerge-ts_3.0.0-beta.6_1645102964018_0.14612058813903173","host":"s3://npm-registry-packages"},"publish_time":1645102964307,"_cnpm_publish_time":1645102964307,"dist-tags":{"latest":"8.0.2"}}