@rimbu/deep
Advanced tools
Comparing version 0.5.8 to 0.5.9
@@ -63,3 +63,5 @@ "use strict"; | ||
} | ||
return function (value) { return Patch(value).apply(void 0, tslib_1.__spreadArray([], tslib_1.__read(patches))); }; | ||
return function (value) { | ||
return Patch(value).apply(void 0, tslib_1.__spreadArray([], tslib_1.__read(patches))); | ||
}; | ||
} | ||
@@ -66,0 +68,0 @@ Patch.create = create; |
{ | ||
"name": "@rimbu/deep", | ||
"version": "0.5.8", | ||
"version": "0.5.9", | ||
"description": "Tools to use handle plain JS objects as immutable objects", | ||
@@ -38,3 +38,4 @@ "keywords": [ | ||
"files": [ | ||
"dist" | ||
"dist", | ||
"src" | ||
], | ||
@@ -57,11 +58,5 @@ "scripts": { | ||
"sideEffects": false, | ||
"devDependencies": { | ||
"@types/jest": "^26.0.23", | ||
"jest": "^26.6.3", | ||
"ts-jest": "^26.5.5", | ||
"typescript": "^4.2.4" | ||
}, | ||
"dependencies": { | ||
"@rimbu/base": "^0.5.8", | ||
"@rimbu/common": "^0.5.8" | ||
"@rimbu/base": "^0.5.9", | ||
"@rimbu/common": "^0.5.9" | ||
}, | ||
@@ -71,3 +66,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "ac4608d3221339352917943ef3513192ddef5a4f" | ||
"gitHead": "0158eaad0dec4503e92cb308af952869d68faad5" | ||
} |
@@ -9,11 +9,11 @@ <p align="center"> | ||
For complete documentation please visit the _[Rimbu Docs](http://rimbu.org/rimbu-core)_. | ||
For complete documentation please visit the _[Rimbu Docs](http://rimbu.org)_. | ||
## Installation | ||
`yarn add @rimbu/deep` | ||
> `yarn add @rimbu/deep` | ||
or | ||
`npm i @rimbu/deep` | ||
> `npm i @rimbu/deep` | ||
@@ -35,2 +35,19 @@ ### recommended tsconfig.json settings | ||
## Usage | ||
```ts | ||
import { Patch } from '@rimbu/deep'; | ||
console.log( | ||
Patch({ | ||
a: 'a', | ||
b: { c: 1, d: true }, | ||
})({ | ||
a: 'q', | ||
b: { c: (v) => v + 1 }, | ||
}) | ||
); | ||
// => { a: 'q', b: { c: 2, d: true }} | ||
``` | ||
## Author | ||
@@ -37,0 +54,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
98077
0
51
2131
70
Updated@rimbu/base@^0.5.9
Updated@rimbu/common@^0.5.9