@scalar/object-utils
Advanced tools
Comparing version 1.1.8 to 1.1.9
# @scalar/object-utils | ||
## 1.1.9 | ||
### Patch Changes | ||
- 2b8ce6c: feat: adds safe-parsing to the end of the migration | ||
## 1.1.8 | ||
@@ -4,0 +10,0 @@ |
@@ -20,3 +20,2 @@ import { Mutation } from '../mutator-record/mutations.js'; | ||
redo: (uid: string) => void; | ||
loadLocalStorage: (instances: T[]) => void; | ||
}; | ||
@@ -23,0 +22,0 @@ export type Mutators<T extends object & { |
@@ -25,9 +25,2 @@ import { Mutation } from './mutations.js'; | ||
}; | ||
/** | ||
* Loads localStorage data into the mutator after migration | ||
*/ | ||
const loadLocalStorage = (instances) => { | ||
// TODO: Validation should be provided for each entity | ||
instances.forEach(add); | ||
}; | ||
return { | ||
@@ -71,3 +64,2 @@ /** Adds a new item to the record of tracked items and creates a new mutation tracking instance */ | ||
}, | ||
loadLocalStorage, | ||
}; | ||
@@ -74,0 +66,0 @@ } |
@@ -16,3 +16,3 @@ { | ||
], | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"engines": { | ||
@@ -19,0 +19,0 @@ "node": ">=18" |
Sorry, the diff of this file is not supported yet
55116
927