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

deepmerge-json

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deepmerge-json - npm Package Versions

2

1.5.0

Diff

Changelog

Source

[1.5.0] - 2022-02-08

Added

  • merge operation. It should be used instead of $replace. It works like $replace was before 1.4.0. It merges objects when the index is found and add them when the index is missing.

--

kleber.swf
published 1.4.0 •

Changelog

Source

[1.4.0] - 2022-02-08

Changed

  • replace method now does what it suppose to do: it "replaces" individual array elements instead of merging the old ones with the new.

Fixed

  • Avoiding the infamous prototype pollution problem

kleber.swf
published 1.3.2 •

Changelog

Source

[1.3.2] - 2022-13-04

Added

  • Automatic generation of d.ts file, keeping Typescript users happy effortlessly
  • Documentation for clone and multi methods

Fixed

  • Last changes were not inside the the d.ts file

kleber.swf
published 1.3.1 •

kleber.swf
published 1.3.0 •

Changelog

Source

[1.3.0] - 2022-12-04

Added:

  • Support to multiple operations at once
  • Clone functionality with an empty second parameter.
  • Proper clone method which is a more meaninful named alias to the functionality
  • merge.multi an utility method to merge multiple objects at once, respecting their order

Fixed:

  • Result was being replaced by an empty pos parameter. This fix can be a breaking change if your code rely on this behavior. This was wrongly assuming that if you pass any falsey pos parameter it meant you wanted to replace the entire pre parameter with it. Now it works like this: if you pass nothing (undefined) to the pos parameter, the pre parameter will be cloned as is. If you pass anything else, it will be used in the merge process as expected.
  • README titles
  • Travis configuration file

kleber.swf
published 1.2.0 •

Changelog

Source

[1.2.0] - 2021-08-06

Changed

  • Added support to negative indexes to $insert operation

kleber.swf
published 1.1.3 •

Changelog

Source

[1.1.3] - 2021-08-05

Added

  • New array operation: $insert

Changed

  • Now $replace accept string numeric keys

kleber.swf
published 1.1.2 •

kleber.swf
published 1.1.1 •

Changelog

Source

[1.1.1] - 2020-11-02

Changed

  • Changed the name of the generated artifacts for better integration with other libraries
    • from "index.js" to "deepmerge-json.js"
    • from "index.d.js" to "deepmerge-json.d.js"
  • Source code mode to src folder to keep thing organized

kleber.swf
published 1.1.0 •

Changelog

Source

[1.1.0] - 2020-03-27

Added

  • New array operation: $replace

Fixed

  • Fixed security issues with some dependencies

2
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