{"name":"deepmerge-ts","version":"5.0.0-next.1","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@5.0.0-next.1","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":"f5e0acca3e717693ab5472df4b99f3f04604a899","tarball":"http://registry-npm.ywwl.com/deepmerge-ts/download/deepmerge-ts-5.0.0-next.1.tgz","fileCount":10,"integrity":"sha512-fJ1Fp6LELVzx7DIBsgPxMQQHkcxzU4CTwZ37qku0xP/Wec08xu3EFdW4BaMkLCxt/wmdCl1ao5d/3QwX6dbrHg==","signatures":[{"sig":"MEYCIQDLqI74x1AtW0cEeM2jTxC11sbbV0LxyZp8NtEQFjT9LAIhAPx02sZgf4jOj/uKHTDyzjAaUcb+CHkjjQ4v4xogvwU5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":109350,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj25HDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpWCg//bM+67dIpf5meSaW5TnilWEIRXy2BysSaSOhAYATBTbZ5+1V9\r\nP1+ogAxYMle3VFveU7MbeLFx4ih16RkYpbe+kS8wLMW+MTuvroTpY1irppas\r\nMXHuANylyC8ntRhSUdXPBwsNLMKNYG7Tvr8mhoNcb4+uxHOiiyWdUCynrx2T\r\nbGtHOrz+4viyD9jtGMyCO9+ySVZ760LnEriMU+jRJcF5j+n5S2y4AYIXYI0z\r\nTOEL/vj7N7GFiUxBccyeyAjv5Vx6X+8Ki9JOyyZOvC/3T4LT1N+LT5k+BR50\r\nmnNARzt835Y8PYao4xmveZxMM4ZXWnuBhaEsW1yXgTXAjT8VZBTVruaz+8pd\r\nDgUluKRaVq8TmSrvA/QiYKonY/WNHQRq/njArR6g8DJgy+L9Gvk4cXpwho6h\r\nW18f/0643gtjPm9cze4K9jW3367IH73S26A/S8+DyjfynWXeWi7eoC3SPaY+\r\n8PzoO9PMdghEisXouz5XTt3E0Erck+fZ41IuYEIQdFEfAVrqS+1lfW72lgIN\r\n1j2A/lMMbyG6Vx0BqDl+B+79W8E4ADMvz7jQVVFEbTku6EYIX+JVZIFjcFh6\r\nCeY5dSiPCXPJD5RwQT+IKypt/V/HpY4yuuFwi79+QPskIjrP4kYcqKbyAD0Z\r\nEhS8v0L3u9Bx4l362mDeSYvAGhBUgwAwQaM=\r\n=1siJ\r\n-----END PGP SIGNATURE-----\r\n","size":18911,"noattachment":false,"key":"/deepmerge-ts/-/deepmerge-ts-5.0.0-next.1.tgz"},"main":"dist/node/index.cjs","type":"module","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\n\n# Install with pnpm\npnpm add deepmerge-ts\n\n# Install with yarn\nyarn add 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// Object {\n//   \"record\": Object {\n//     \"prop1\": \"changed\",\n//     \"prop2\": \"value2\",\n//     \"prop3\": \"value3\",\n//   },\n//   \"array\": Array [1, 2, 3, 2, 3, 4],\n//   \"set\": Set { 1, 2, 3, 4 },\n//   \"map\": Map {\n//     \"key1\" => \"value1\",\n//     \"key2\" => \"changed\",\n//     \"key3\" => \"value3\",\n//   },\n// }\n```\n\nYou can try out this example at [codesandbox.io](https://codesandbox.io/s/deepmerge-ts-example-iltxby?file=/src/example.ts).\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"},"engines":{"node":">=16.0.0"},"exports":{"types":{"import":"./dist/node/types/current/index.d.mts","require":"./dist/node/types/current/index.d.cts"},"import":"./dist/node/index.mjs","require":"./dist/node/index.cjs"},"gitHead":"b61b11362f080d3eb0388d43ed0e669200d6a3a4","scripts":{"cz":"git-cz","lint":"npm run lint:js && npm run lint:md","test":"npm run test:js && npm run test:types","build":"rimraf build && npm run build:node && npm run build:deno && rimraf build && if-env-defined CI || npm run build:assume-unchanged","format":"prettier --write \"./**/*.{md,ts,yml}\"","lint:js":"eslint .","lint:md":"markdownlint \"**/*.md\" --config=.markdownlint.json --ignore-path=.markdownlintignore","prepare":"husky install","test:js":"c8 ava","benchmark":"npm run build && npm run link & cd benchmark && npm run benchmark; cd ..","build:deno":"rimraf dist/deno && tsc -p tsconfig.build.deno.json && denoify","build:node":"rimraf dist/node && rollup -c rollup.config.ts --configPlugin @rollup/plugin-typescript","test:types":"npm run build:types && tsd -f 'tests/**/*.test-d.ts'","build:types":"rimraf types/current && BUILD_TYPES_ONLY=1 rollup -c rollup.config.ts --configPlugin @rollup/plugin-typescript","check-format":"prettier --list-different \"./**/*.{md,ts,yml}\"","check-spelling":"cspell --config=.cspell.json \"**/*.{md,ts}\"","build:assume-unchanged":"cd dist; git update-index --assume-unchanged $(git ls-files | tr '\n' ' '); cd .."},"_npmUser":{"name":"rebeccastevens","email":"rebecca.stevens@outlook.co.nz"},"repository":{"url":"git+https://github.com/RebeccaStevens/deepmerge-ts.git","type":"git"},"_npmVersion":"8.19.3","description":"Deeply merge 2 or more objects respecting type information.","directories":{},"sideEffects":false,"_nodeVersion":"18.13.0","typesVersions":{"<4.1":{"*":["dist/node/types/legacy/v4_0.d.ts"]},"<4.7":{"*":["dist/node/types/legacy/v4_6.d.ts"]},">=4.7":{"*":["dist/node/types/current/index.d.mts"]}},"_hasShrinkwrap":false,"packageManager":"yarn@3.4.1","readmeFilename":"README.md","devDependencies":{"c8":"7.12.0","ava":"4.3.3","tsd":"0.25.0","husky":"8.0.3","tslib":"2.5.0","cspell":"6.20.1","eslint":"8.33.0","lodash":"4.17.21","marked":"4.2.12","rimraf":"3.0.2","rollup":"2.79.1","codecov":"3.8.3","denoify":"1.4.9","ts-node":"10.9.1","prettier":"2.8.3","commitizen":"4.3.0","typescript":"4.9.5","@types/node":"16.0.0","lint-staged":"13.1.0","@types/lodash":"4.14.191","if-env-defined":"1.0.0","@commitlint/cli":"17.4.2","markdownlint-cli":"0.33.0","semantic-release":"20.1.0","eslint-plugin-ava":"14.0.0","rollup-plugin-dts":"4.2.3","eslint-plugin-node":"11.1.0","rollup-plugin-copy":"3.4.0","source-map-support":"0.5.21","@rollup/plugin-json":"6.0.0","eslint-plugin-jsdoc":"39.7.5","eslint-plugin-tsdoc":"0.2.17","eslint-plugin-import":"2.27.5","@semantic-release/git":"10.0.1","@semantic-release/npm":"9.0.2","eslint-plugin-promise":"6.1.1","eslint-plugin-sonarjs":"0.18.0","eslint-plugin-unicorn":"45.0.2","eslint-config-prettier":"8.6.0","eslint-plugin-markdown":"3.0.0","eslint-plugin-prettier":"4.2.1","@semantic-release/github":"8.0.7","eslint-plugin-functional":"5.0.1","@rollup/plugin-typescript":"11.0.0","@typescript-eslint/parser":"5.50.0","@rollup/plugin-node-resolve":"15.0.1","@semantic-release/changelog":"6.0.2","prettier-plugin-packagejson":"2.4.2","rollup-plugin-auto-external":"2.0.0","eslint-plugin-optimize-regex":"1.2.1","@cspell/dict-cryptocurrencies":"3.0.1","@rebeccastevens/eslint-config":"1.5.0","eslint-plugin-eslint-comments":"3.2.0","@commitlint/config-conventional":"17.4.2","@typescript-eslint/eslint-plugin":"5.50.0","@semantic-release/commit-analyzer":"9.0.2","eslint-import-resolver-typescript":"3.5.3","@types/rollup-plugin-auto-external":"2.0.2","@semantic-release/release-notes-generator":"10.0.3"},"_npmOperationalInternal":{"tmp":"tmp/deepmerge-ts_5.0.0-next.1_1675334083729_0.1309417787538978","host":"s3://npm-registry-packages"},"publish_time":1675334083884,"_cnpm_publish_time":1675334083884,"dist-tags":{"latest":"8.0.2"}}