Socket
Socket
Sign inDemoInstall

deepmerge

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.3.0 to 4.3.1

.eslintcache

4

changelog.md

@@ -0,1 +1,5 @@

# [4.3.1](https://github.com/TehShrike/deepmerge/releases/tag/v4.3.1)
- Fix type definition for arrayMerge options. [#239](https://github.com/TehShrike/deepmerge/pull/239)
# [4.3.0](https://github.com/TehShrike/deepmerge/releases/tag/v4.3.0)

@@ -2,0 +6,0 @@

@@ -6,3 +6,3 @@ declare function deepmerge<T>(x: Partial<T>, y: Partial<T>, options?: deepmerge.Options): T;

export interface Options {
arrayMerge?(target: any[], source: any[], options?: Options): any[];
arrayMerge?(target: any[], source: any[], options?: ArrayMergeOptions): any[];
clone?: boolean;

@@ -12,2 +12,6 @@ customMerge?: (key: string, options?: Options) => ((x: any, y: any) => any) | undefined;

}
export interface ArrayMergeOptions {
isMergeableObject(value: object): boolean;
cloneUnlessOtherwiseSpecified(value: object, options?: Options): object;
}

@@ -14,0 +18,0 @@ export function all (objects: object[], options?: Options): object;

7

package.json

@@ -12,3 +12,3 @@ {

],
"version": "4.3.0",
"version": "4.3.1",
"homepage": "https://github.com/TehShrike/deepmerge",

@@ -32,3 +32,3 @@ "repository": {

"is-mergeable-object": "1.1.0",
"is-plain-object": "^2.0.4",
"is-plain-object": "^5.0.0",
"jsmd": "^1.0.2",

@@ -43,4 +43,3 @@ "rollup": "^1.23.1",

},
"license": "MIT",
"dependencies": {}
"license": "MIT"
}

@@ -169,3 +169,3 @@ # deepmerge

```js
const isPlainObject = require('is-plain-object')
const { isPlainObject } = require('is-plain-object')

@@ -172,0 +172,0 @@ function SuperSpecial() {

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc