Comparing version 0.5.4 to 0.5.5
{ | ||
"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). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
136
20639
6