@furystack/filesystem-store 6.0.0 → 6.0.1

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.
Files changed (2) hide show
  1. package/README.md +3 -4
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -11,13 +11,12 @@ import '@furystack/filesystem-store'
11
11
  import { PhysicalStore, StoreManager } from '@furystack/core'
12
12
 
13
13
  class MyModel {
14
- public id!: number
15
- public value!: string
14
+ declare id: number
15
+ declare value: string
16
16
  }
17
17
 
18
18
  const myInjector = new Injector()
19
- myInjector
20
- .setupStores((stores) => stores.useFileSystem({ model: MyModel, primaryKey: 'id', fileName: 'example.json' }))
19
+ myInjector.setupStores((stores) => stores.useFileSystem({ model: MyModel, primaryKey: 'id', fileName: 'example.json' }))
21
20
 
22
21
  const myStore = myInjector.getInstance(StoreManager).getStoreFor(MyModel)
23
22
  await myStore.add({ id: 1, value: 'foo' })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@furystack/filesystem-store",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "description": "Simple File System store implementation for FuryStack",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -37,14 +37,14 @@
37
37
  },
38
38
  "homepage": "https://github.com/furystack/furystack",
39
39
  "dependencies": {
40
- "@furystack/core": "^14.0.0",
41
- "@furystack/inject": "^10.0.0",
42
- "@furystack/utils": "^6.0.0",
40
+ "@furystack/core": "^14.0.1",
41
+ "@furystack/inject": "^11.0.0",
42
+ "@furystack/utils": "^6.0.1",
43
43
  "semaphore-async-await": "^1.5.1"
44
44
  },
45
45
  "devDependencies": {
46
- "@types/node": "^20.11.29",
47
- "typescript": "^5.4.2",
46
+ "@types/node": "^20.11.30",
47
+ "typescript": "^5.4.3",
48
48
  "vitest": "^1.4.0"
49
49
  },
50
50
  "gitHead": "1045d854bfd8c475b7035471d130d401417a2321"