@hf-chimera/store 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @hf-chimera/store
2
2
 
3
+ ## 0.0.13
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix readme
8
+
3
9
  ## 0.0.12
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -269,10 +269,16 @@ const store = new ChimeraStore<EntityMap>(config)
269
269
  #### Methods
270
270
 
271
271
  - `from<EntityName>(entityName: EntityName)`: Get repository for specific entity
272
- - `updateOne<EntityName>(entityName: EntityName, item: EntityMap[EntityName])`: Update single item
273
- - `updateMany<EntityName>(entityName: EntityName, items: Iterable<EntityMap[EntityName]>)`: Update multiple items
274
- - `deleteOne<EntityName>(entityName: EntityName, id: ChimeraEntityId)`: Delete single item
275
- - `deleteMany<EntityName>(entityName: EntityName, ids: Iterable<ChimeraEntityId>)`: Delete multiple items
272
+ - `updateOne<EntityName>(entityName: EntityName, item: EntityMap[EntityName])`:
273
+ Update single item
274
+ -
275
+ `updateMany<EntityName>(entityName: EntityName, items: Iterable<EntityMap[EntityName]>)`:
276
+ Update multiple items
277
+ - `deleteOne<EntityName>(entityName: EntityName, id: ChimeraEntityId)`: Delete
278
+ single item
279
+ -
280
+ `deleteMany<EntityName>(entityName: EntityName, ids: Iterable<ChimeraEntityId>)`:
281
+ Delete multiple items
276
282
 
277
283
  ### ChimeraEntityRepository
278
284
 
@@ -282,7 +288,8 @@ Entity-specific repository with query capabilities.
282
288
 
283
289
  - `createItem(item: DeepPartial<Item>, meta?: any)`: Create new item
284
290
  - `getItem(id: ChimeraEntityId, meta?: any)`: Get single item
285
- - `getCollection(params: ChimeraCollectionParams)`: Get filtered/sorted collection
291
+ - `getCollection(params: ChimeraCollectionParams)`: Get filtered/sorted
292
+ collection
286
293
 
287
294
  ### ChimeraItemQuery
288
295
 
@@ -300,7 +307,8 @@ Represents a single item query with full CRUD operations.
300
307
 
301
308
  - `refetch(force?: boolean)`: Refetch data
302
309
  - `update(item: Item, force?: boolean)`: Update item
303
- - `mutate(mutator: (draft: Item) => Item, force?: boolean)`: Update using mutator function
310
+ - `mutate(mutator: (draft: Item) => Item, force?: boolean)`: Update using
311
+ mutator function
304
312
  - `commit(force?: boolean)`: Commit mutable changes
305
313
  - `delete(force?: boolean)`: Delete item
306
314
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "hewston",
3
3
  "name": "@hf-chimera/store",
4
4
  "description": "Cross-end reactivity API",
5
- "version": "0.0.12",
5
+ "version": "0.0.13",
6
6
  "license": "MIT",
7
7
  "keywords": [
8
8
  "state-management",