Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

deepmerge-ts

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deepmerge-ts - npm Package Compare versions

Comparing version 3.0.0-beta.3 to 3.0.0-beta.4

7

CHANGELOG.md
# Changelog
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
# [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)

@@ -5,0 +12,0 @@

27

dist/node/types/current/index.d.ts

@@ -219,2 +219,3 @@ /**

key: PropertyKey;
parents: ReadonlyArray<Readonly<Record<PropertyKey, unknown>>>;
}>;

@@ -309,8 +310,8 @@

*/
declare type DeepMergeOptions<M, MM extends Partial<DeepMergeBuiltInMetaData> = DeepMergeBuiltInMetaData> = Partial<DeepMergeOptionsFull<M, MM>>;
declare type MetaDataUpdater<M, MM extends Partial<DeepMergeBuiltInMetaData>> = (previousMeta: M, metaMeta: MM) => M;
declare type DeepMergeOptions<M, MM extends Record<PropertyKey, unknown> = DeepMergeBuiltInMetaData> = Partial<DeepMergeOptionsFull<M, MM & Partial<DeepMergeBuiltInMetaData>>>;
declare type MetaDataUpdater<M, MM extends Record<PropertyKey, unknown>> = (previousMeta: M | undefined, metaMeta: MM) => M;
/**
* All the options the user can pass to customize deepmerge.
*/
declare type DeepMergeOptionsFull<M, MM extends Partial<DeepMergeBuiltInMetaData>> = Readonly<{
declare type DeepMergeOptionsFull<M, MM extends Record<PropertyKey, unknown>> = Readonly<{
mergeRecords: DeepMergeMergeFunctions<M, MM>["mergeRecords"] | false;

@@ -326,8 +327,8 @@ mergeArrays: DeepMergeMergeFunctions<M, MM>["mergeArrays"] | false;

*/
declare type DeepMergeMergeFunctions<M, MM extends Partial<DeepMergeBuiltInMetaData>> = Readonly<{
mergeRecords: <Ts extends ReadonlyArray<Readonly<Record<PropertyKey, unknown>>>, U extends DeepMergeMergeFunctionUtils<M, MM>>(records: Ts, utils: U, meta: M) => unknown;
mergeArrays: <Ts extends ReadonlyArray<ReadonlyArray<unknown>>, U extends DeepMergeMergeFunctionUtils<M, MM>>(records: Ts, utils: U, meta: M) => unknown;
mergeMaps: <Ts extends ReadonlyArray<Readonly<ReadonlyMap<unknown, unknown>>>, U extends DeepMergeMergeFunctionUtils<M, MM>>(records: Ts, utils: U, meta: M) => unknown;
mergeSets: <Ts extends ReadonlyArray<Readonly<ReadonlySet<unknown>>>, U extends DeepMergeMergeFunctionUtils<M, MM>>(records: Ts, utils: U, meta: M) => unknown;
mergeOthers: <Ts extends ReadonlyArray<unknown>, U extends DeepMergeMergeFunctionUtils<M, MM>>(records: Ts, utils: U, meta: M) => unknown;
declare type DeepMergeMergeFunctions<M, MM extends Record<PropertyKey, unknown>> = Readonly<{
mergeRecords: <Ts extends ReadonlyArray<Readonly<Record<PropertyKey, unknown>>>, U extends DeepMergeMergeFunctionUtils<M, MM>>(records: Ts, utils: U, meta: M | undefined) => unknown;
mergeArrays: <Ts extends ReadonlyArray<ReadonlyArray<unknown>>, U extends DeepMergeMergeFunctionUtils<M, MM>>(records: Ts, utils: U, meta: M | undefined) => unknown;
mergeMaps: <Ts extends ReadonlyArray<Readonly<ReadonlyMap<unknown, unknown>>>, U extends DeepMergeMergeFunctionUtils<M, MM>>(records: Ts, utils: U, meta: M | undefined) => unknown;
mergeSets: <Ts extends ReadonlyArray<Readonly<ReadonlySet<unknown>>>, U extends DeepMergeMergeFunctionUtils<M, MM>>(records: Ts, utils: U, meta: M | undefined) => unknown;
mergeOthers: <Ts extends ReadonlyArray<unknown>, U extends DeepMergeMergeFunctionUtils<M, MM>>(records: Ts, utils: U, meta: M | undefined) => unknown;
}>;

@@ -337,3 +338,3 @@ /**

*/
declare type DeepMergeMergeFunctionUtils<M, MM extends Partial<DeepMergeBuiltInMetaData>> = Readonly<{
declare type DeepMergeMergeFunctionUtils<M, MM extends Record<PropertyKey, unknown>> = Readonly<{
mergeFunctions: DeepMergeMergeFunctions<M, MM>;

@@ -374,3 +375,3 @@ defaultMergeFunctions: DeepMergeMergeFunctionsDefaults;

*/
declare function deepmergeCustom<PMF extends Partial<DeepMergeMergeFunctionsURIs>, MetaData, MetaMetaData extends Partial<DeepMergeBuiltInMetaData> = DeepMergeBuiltInMetaData>(options: DeepMergeOptions<MetaData, MetaMetaData>, rootMetaData: MetaData): <Ts extends ReadonlyArray<unknown>>(...objects: Ts) => DeepMergeHKT<Ts, GetDeepMergeMergeFunctionsURIs<PMF>, MetaData>;
declare function deepmergeCustom<PMF extends Partial<DeepMergeMergeFunctionsURIs>, MetaData, MetaMetaData extends Readonly<Record<PropertyKey, unknown>> = DeepMergeBuiltInMetaData>(options: DeepMergeOptions<MetaData, MetaMetaData>, rootMetaData: MetaData): <Ts extends ReadonlyArray<unknown>>(...objects: Ts) => DeepMergeHKT<Ts, GetDeepMergeMergeFunctionsURIs<PMF>, MetaData>;
/**

@@ -381,3 +382,3 @@ * Merge records.

*/
declare function mergeRecords<Ts extends ReadonlyArray<Record<PropertyKey, unknown>>, U extends DeepMergeMergeFunctionUtils<M, MM>, MF extends DeepMergeMergeFunctionsURIs, M, MM extends DeepMergeBuiltInMetaData>(values: Ts, utils: U, meta: M): DeepMergeRecordsDefaultHKT<Ts, MF, M>;
declare function mergeRecords<Ts extends ReadonlyArray<Record<PropertyKey, unknown>>, U extends DeepMergeMergeFunctionUtils<M, MM>, MF extends DeepMergeMergeFunctionsURIs, M, MM extends DeepMergeBuiltInMetaData>(values: Ts, utils: U, meta: M | undefined): DeepMergeRecordsDefaultHKT<Ts, MF, M>;
/**

@@ -408,2 +409,2 @@ * Merge arrays.

export { DeepMergeArraysDefaultHKT, DeepMergeHKT, DeepMergeLeaf, DeepMergeLeafHKT, DeepMergeLeafURI, DeepMergeMapsDefaultHKT, DeepMergeMergeFunctionURItoKind, DeepMergeMergeFunctionUtils, DeepMergeMergeFunctionsDefaultURIs, DeepMergeMergeFunctionsDefaults, DeepMergeMergeFunctionsURIs, DeepMergeOptions, DeepMergeRecordsDefaultHKT, DeepMergeSetsDefaultHKT, deepmerge, deepmergeCustom };
export { DeepMergeArraysDefaultHKT, DeepMergeBuiltInMetaData, DeepMergeHKT, DeepMergeLeaf, DeepMergeLeafHKT, DeepMergeLeafURI, DeepMergeMapsDefaultHKT, DeepMergeMergeFunctionURItoKind, DeepMergeMergeFunctionUtils, DeepMergeMergeFunctionsDefaultURIs, DeepMergeMergeFunctionsDefaults, DeepMergeMergeFunctionsURIs, DeepMergeOptions, DeepMergeRecordsDefaultHKT, DeepMergeSetsDefaultHKT, deepmerge, deepmergeCustom };
{
"name": "deepmerge-ts",
"version": "3.0.0-beta.3",
"version": "3.0.0-beta.4",
"description": "Deeply merge 2 or more objects respecting type information.",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc