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

mixme

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mixme - npm Package Compare versions

Comparing version 0.5.4 to 0.5.5

2

package.json
{
"name": "mixme",
"description": "A library for recursive merging of Javascript objects",
"version": "0.5.4",
"version": "0.5.5",
"author": "David Worms <david@adaltas.com> (https://www.adaltas.com)",

@@ -6,0 +6,0 @@ "contributors": [],

@@ -9,2 +9,7 @@

- Zero dependencies
- Small size
- Pure functions
- ESM and CommonJS support
## API

@@ -18,3 +23,3 @@

```js
const {merge} = require('mixme')
const { merge } = require('mixme')
const target = merge({a: '1'}, {b: '2'});

@@ -29,3 +34,3 @@ // target is {a: '1', b: '2'}

```js
const {mutate} = require('mixme')
const { mutate } = require('mixme')
const source = {a: '1'};

@@ -42,3 +47,3 @@ const target = mutate(source, {b: '2'});

```js
const {clone} = require('mixme')
const { clone } = require('mixme')
const target = clone(['a', 'b'])

@@ -53,3 +58,3 @@ // target is now a copy of source

```js
const {is_object_literal} = require('mixme')
const { is_object_literal } = require('mixme')
// {} is literate

@@ -68,3 +73,3 @@ is_object_literal({})

```js
const {snake_case} = require('mixme')
const { snake_case } = require('mixme')
snake_case({aA: '1', bB: cC: '2'})

@@ -79,3 +84,3 @@ // Return {a_a: '1', b_b: c_c: '2'}

```js
const {compare} = require('mixme')
const { compare } = require('mixme')
compare([{a: 1}], [{a: 1}])

@@ -118,6 +123,21 @@ // Return true

## Developers
To automatically generate a new version:
```
yarn run release
git push --follow-tags origin master
```
Package publication is handled by the CI/CD with GitHub action.
Note:
- On release, both the publish and test workflows run in parallel. Not very happy about it but I haven't found a better way.
- `yarn` does not call the "postrelease" script and `npm` fails if the `package-lock.json` file is present and git ignored.
## Contributors
* David Worms: <https://github.com/wdavidw>
* David Worms: <https://github.com/wdavidw>
This package is developed by [Adaltas](http://www.adaltas.com).
This package is developed by [Adaltas](https://www.adaltas.com).
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