You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@fastify/deepmerge

Package Overview
Dependencies
Maintainers
20
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fastify/deepmerge - npm Package Compare versions

Comparing version
2.0.2
to
3.0.0
+1
-1
package.json
{
"name": "@fastify/deepmerge",
"version": "2.0.2",
"version": "3.0.0",
"description": "Merges the enumerable properties of two or more objects deeply.",

@@ -5,0 +5,0 @@ "main": "index.js",

# @fastify/deepmerge
[![CI](https://github.com/fastify/deepmerge/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/fastify/deepmerge/actions/workflows/ci.yml)
[![CI](https://github.com/fastify/deepmerge/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/fastify/deepmerge/actions/workflows/ci.yml)
[![NPM version](https://img.shields.io/npm/v/@fastify/deepmerge.svg?style=flat)](https://www.npmjs.com/package/@fastify/deepmerge)

@@ -5,0 +5,0 @@ [![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-brightgreen?style=flat)](https://github.com/neostandard/neostandard)

@@ -64,5 +64,13 @@ type DeepMergeFn = <T1, T2>(target: T1, source: T2) => DeepMerge<T1, T2>

/**
* A function responsible handling the cloning logic of the provided prototype object.
*
* @param value - The proto object to clone.
* @returns the resulting clone (can also return the object itself if you do not want clone but replace).
*/
type CloneProtoObjectFn = (value: any) => any
type MergeArrayFn = (options: MergeArrayFnOptions) => (target: any[], source: any[]) => any[]
interface Options {
cloneProtoObject?: CloneProtoObjectFn;
mergeArray?: MergeArrayFn;

@@ -69,0 +77,0 @@ symbols?: boolean;