deepmerge-ts
Advanced tools
Comparing version 3.0.0-beta.7 to 3.0.0
# Changelog | ||
All notable changes to this project will be documented in this file. Dates are displayed in UTC. | ||
# [3.0.0-beta.7](https://github.com/RebeccaStevens/deepmerge-ts/compare/v3.0.0-beta.6...v3.0.0-beta.7) (2022-02-18) | ||
# [3.0.0](https://github.com/RebeccaStevens/deepmerge-ts/compare/v2.0.1...v3.0.0) (2022-02-19) | ||
### Features | ||
### Code Refactoring | ||
* lone values will now be passed to mergeOthers rather than just returned ([#57](https://github.com/RebeccaStevens/deepmerge-ts/issues/57)) ([14a09ca](https://github.com/RebeccaStevens/deepmerge-ts/commit/14a09ca2d67ffbb5341719c633873e91a5565d89)) | ||
* unrequire unused types and values ([c78e373](https://github.com/RebeccaStevens/deepmerge-ts/commit/c78e3736fe725008b745a302233afacb2155db94)) | ||
# [3.0.0-beta.6](https://github.com/RebeccaStevens/deepmerge-ts/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2022-02-17) | ||
### Bug Fixes | ||
* update legacy types ([67fc4f9](https://github.com/RebeccaStevens/deepmerge-ts/commit/67fc4f959ee8fbd62dc2c7dc9bbb423d769d5bce)) | ||
# [3.0.0-beta.5](https://github.com/RebeccaStevens/deepmerge-ts/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2022-02-16) | ||
### Features | ||
* provide customizable meta data to custom merge functions ([f6b1cad](https://github.com/RebeccaStevens/deepmerge-ts/commit/f6b1cad607d8b747f8273b29058ef796bcd4239b)), closes [#33](https://github.com/RebeccaStevens/deepmerge-ts/issues/33) | ||
* lone values will now be passed to mergeOthers rather than just returned ([#57](https://github.com/RebeccaStevens/deepmerge-ts/issues/57)) ([9c24584](https://github.com/RebeccaStevens/deepmerge-ts/commit/9c245846f8afbd8bc0fbe2a28626e6461f41ea53)) | ||
* provide customizable meta data to custom merge functions ([3d96692](https://github.com/RebeccaStevens/deepmerge-ts/commit/3d96692386c363e3f4250b267cac1d78231457ff)), closes [#33](https://github.com/RebeccaStevens/deepmerge-ts/issues/33) | ||
# [3.0.0-beta.4](https://github.com/RebeccaStevens/deepmerge-ts/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2022-02-16) | ||
### Features | ||
* built in meta data now includes parent objects ([c2b8596](https://github.com/RebeccaStevens/deepmerge-ts/commit/c2b8596f91505fec6b392f7e138cc2e63a64cb59)), closes [#48](https://github.com/RebeccaStevens/deepmerge-ts/issues/48) | ||
# [3.0.0-beta.3](https://github.com/RebeccaStevens/deepmerge-ts/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2022-02-14) | ||
### Features | ||
* provide meta data to custom merge functions and allow it to be customized ([#32](https://github.com/RebeccaStevens/deepmerge-ts/issues/32)) ([ec0850b](https://github.com/RebeccaStevens/deepmerge-ts/commit/ec0850be43861171d9041bad3042ddb0a9c328dc)) | ||
# [3.0.0-beta.2](https://github.com/RebeccaStevens/deepmerge-ts/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2022-02-14) | ||
# [3.0.0-beta.1](https://github.com/RebeccaStevens/deepmerge-ts/compare/v2.0.1...v3.0.0-beta.1) (2022-02-14) | ||
### Code Refactoring | ||
* unrequire unused types and values ([61989a9](https://github.com/RebeccaStevens/deepmerge-ts/commit/61989a915fa6da3dabbeb66ea827bb94abfe7056)) | ||
### BREAKING CHANGES | ||
* some types have changed for "deepmergeCustom" | ||
* some types have changed for `deepmergeCustom` | ||
@@ -53,0 +22,0 @@ ## [2.0.1](https://github.com/RebeccaStevens/deepmerge-ts/compare/v2.0.0...v2.0.1) (2021-12-22) |
@@ -8,3 +8,3 @@ /** | ||
declare type MetaDataUpdater<M, MM extends Record<keyof any, any>> = (previousMeta: M | undefined, metaMeta: MM) => M; | ||
declare type MetaDataUpdater = (previousMeta: any, metaMeta: any) => any; | ||
@@ -14,9 +14,9 @@ /** | ||
*/ | ||
declare type DeepMergeOptionsFull<M, MM extends Record<keyof any, any>> = Readonly<{ | ||
mergeRecords: DeepMergeMergeFunctions<M, MM>["mergeRecords"] | false; | ||
mergeArrays: DeepMergeMergeFunctions<M, MM>["mergeArrays"] | false; | ||
mergeMaps: DeepMergeMergeFunctions<M, MM>["mergeMaps"] | false; | ||
mergeSets: DeepMergeMergeFunctions<M, MM>["mergeSets"] | false; | ||
mergeOthers: DeepMergeMergeFunctions<M, MM>["mergeOthers"]; | ||
metaDataUpdater: MetaDataUpdater<M, MM>; | ||
declare type DeepMergeOptionsFull = Readonly<{ | ||
mergeRecords: DeepMergeMergeFunctions["mergeRecords"] | false; | ||
mergeArrays: DeepMergeMergeFunctions["mergeArrays"] | false; | ||
mergeMaps: DeepMergeMergeFunctions["mergeMaps"] | false; | ||
mergeSets: DeepMergeMergeFunctions["mergeSets"] | false; | ||
mergeOthers: DeepMergeMergeFunctions["mergeOthers"]; | ||
metaDataUpdater: MetaDataUpdater; | ||
}>; | ||
@@ -27,8 +27,8 @@ | ||
*/ | ||
declare type DeepMergeMergeFunctions<M, MM extends Record<keyof any, any>> = Readonly<{ | ||
mergeRecords: <Ts extends ReadonlyArray<Readonly<Record<keyof any, any>>>, U extends DeepMergeMergeFunctionUtils<M, MM>>(records: Ts, utils: U, meta: M | undefined) => any; | ||
mergeArrays: <Ts extends ReadonlyArray<ReadonlyArray<any>>, U extends DeepMergeMergeFunctionUtils<M, MM>>(records: Ts, utils: U, meta: M | undefined) => any; | ||
mergeMaps: <Ts extends ReadonlyArray<Readonly<ReadonlyMap<any, any>>>, U extends DeepMergeMergeFunctionUtils<M, MM>>(records: Ts, utils: U, meta: M | undefined) => any; | ||
mergeSets: <Ts extends ReadonlyArray<Readonly<ReadonlySet<any>>>, U extends DeepMergeMergeFunctionUtils<M, MM>>(records: Ts, utils: U, meta: M | undefined) => any; | ||
mergeOthers: <Ts extends ReadonlyArray<any>, U extends DeepMergeMergeFunctionUtils<M, MM>>(records: Ts, utils: U, meta: M | undefined) => any; | ||
declare type DeepMergeMergeFunctions = Readonly<{ | ||
mergeRecords: <Ts extends ReadonlyArray<Readonly<Record<keyof any, any>>>, U extends DeepMergeMergeFunctionUtils>(records: Ts, utils: U, meta: any) => any; | ||
mergeArrays: <Ts extends ReadonlyArray<ReadonlyArray<any>>, U extends DeepMergeMergeFunctionUtils>(records: Ts, utils: U, meta: any) => any; | ||
mergeMaps: <Ts extends ReadonlyArray<Readonly<ReadonlyMap<any, any>>>, U extends DeepMergeMergeFunctionUtils>(records: Ts, utils: U, meta: any) => any; | ||
mergeSets: <Ts extends ReadonlyArray<Readonly<ReadonlySet<any>>>, U extends DeepMergeMergeFunctionUtils>(records: Ts, utils: U, meta: any) => any; | ||
mergeOthers: <Ts extends ReadonlyArray<any>, U extends DeepMergeMergeFunctionUtils>(records: Ts, utils: U, meta: any) => any; | ||
}>; | ||
@@ -39,6 +39,6 @@ | ||
*/ | ||
declare type DeepMergeMergeFunctionUtils<M, MM extends Record<keyof any, any>> = Readonly<{ | ||
mergeFunctions: DeepMergeMergeFunctions<M, MM>; | ||
defaultMergeFunctions: DeepMergeMergeFunctionsDefaults<M, MM>; | ||
metaDataUpdater: MetaDataUpdater<M, MM>; | ||
declare type DeepMergeMergeFunctionUtils = Readonly<{ | ||
mergeFunctions: DeepMergeMergeFunctions; | ||
defaultMergeFunctions: DeepMergeMergeFunctionsDefaults; | ||
metaDataUpdater: MetaDataUpdater; | ||
deepmerge: <Ts extends ReadonlyArray<any>>(...values: Ts) => any; | ||
@@ -50,7 +50,7 @@ }>; | ||
*/ | ||
declare type DeepMergeMergeFunctionsDefaults<M, MM extends Record<keyof any, any>> = Readonly<{ | ||
declare type DeepMergeMergeFunctionsDefaults = Readonly<{ | ||
mergeMaps: (values: Record<keyof any, any>[]) => any; | ||
mergeSets: (values: any[][]) => any; | ||
mergeArrays: (values: Set<any>[]) => any; | ||
mergeRecords: (values: Map<any, any>[], utils: DeepMergeMergeFunctionUtils<M, MM>, meta: M | undefined) => any; | ||
mergeRecords: (values: Map<any, any>[], utils: DeepMergeMergeFunctionUtils, meta: any) => any; | ||
mergeOthers: (values: any[]) => any; | ||
@@ -83,4 +83,4 @@ }>; | ||
*/ | ||
declare function deepmergeCustom(options: Partial<DeepMergeOptionsFull<any, any>>, rootMetaData?: any): (...objects: any[]) => any; | ||
declare function deepmergeCustom(options: Partial<DeepMergeOptionsFull>, rootMetaData?: any): (...objects: any[]) => any; | ||
export { deepmerge, deepmergeCustom }; |
{ | ||
"name": "deepmerge-ts", | ||
"version": "3.0.0-beta.7", | ||
"version": "3.0.0", | ||
"description": "Deeply merge 2 or more objects respecting type information.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
56314