boxed-state
Advanced tools
Comparing version 0.8.8 to 0.8.10
{ | ||
"name": "boxed-state", | ||
"version": "0.8.8", | ||
"version": "0.8.10", | ||
"private": false, | ||
@@ -17,12 +17,12 @@ "description": "Immutable proxy wrapper with exception free access to nested properties and auto-instantiation of intermediate containers when nested properties are defined", | ||
"lodash.isstring": "^4.0.1", | ||
"util-string-wrap": "^0.1.2", | ||
"util-type-funcs": "^0.2.8", | ||
"for-each-break": "^0.2.2", | ||
"obj-each-break": "^0.1.10", | ||
"boxed-out": "^0.1.4", | ||
"boxed-immutable": "^0.8.4" | ||
"util-string-wrap": "^0.1.4", | ||
"util-type-funcs": "^0.2.10", | ||
"for-each-break": "^0.2.4", | ||
"obj-each-break": "^0.1.12", | ||
"boxed-out": "^0.1.6", | ||
"boxed-immutable": "^0.8.6" | ||
}, | ||
"devDependencies": { | ||
"jest": "^24.1.0", | ||
"jest-each": "^24.0.0" | ||
"jest": "^24.8.0", | ||
"jest-each": "^24.8.0" | ||
}, | ||
@@ -29,0 +29,0 @@ "scripts": {}, |
# boxed-state | ||
[](http://github.com/badges/stability-badges) | ||
[](https://github.com/badges/stability-badges) | ||
@@ -42,7 +42,7 @@ Implements a wrapper for immutable state with encapsulation of `save()` and `cancel()` | ||
// your current function for setting a new state | ||
// your current function for setting a new state | ||
function saveState(newState) { | ||
// 1. update state | ||
// 2. regardless of how this function is called, cancel | ||
// the cached boxed state, then next access will be forced to | ||
// 2. regardless of how this function is called, cancel | ||
// the cached boxed state, then next access will be forced to | ||
// get a fresh state | ||
@@ -74,8 +74,8 @@ state_$.cancel(); | ||
// can use state as before or as boxed state, except now there is no need to get a new state | ||
// can use state as before or as boxed state, except now there is no need to get a new state | ||
// every time. The same state will reflect latest changes. Make a copy if you need immutable state | ||
// NOTE: properties returned by state_$ are mutable, make a copy of state_$.$_value | ||
// or use the old getSimpleState() function if you need an immutable copy between state change | ||
// NOTE: properties returned by state_$ are mutable, make a copy of state_$.$_value | ||
// or use the old getSimpleState() function if you need an immutable copy between state change | ||
// make changes to state_$ properties | ||
@@ -82,0 +82,0 @@ |
@@ -5,2 +5,3 @@ # Version History | ||
- [0.8.10](#0810) | ||
- [0.8.8](#088) | ||
@@ -13,2 +14,10 @@ - [0.8.6](#086) | ||
## 0.8.10 | ||
* Fix: update jest version | ||
* Fix: update `util-string-wrap` | ||
* Fix: update `util-type-funcs` | ||
* Fix: update `for-each-break` | ||
* Fix: update `obj-each-break` | ||
## 0.8.8 | ||
@@ -15,0 +24,0 @@ |
45572
Updatedboxed-immutable@^0.8.6
Updatedboxed-out@^0.1.6
Updatedfor-each-break@^0.2.4
Updatedobj-each-break@^0.1.12
Updatedutil-string-wrap@^0.1.4
Updatedutil-type-funcs@^0.2.10