@furystack/core 15.0.17 → 15.0.19
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/README.md +7 -7
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
# @furystack/core
|
|
2
2
|
|
|
3
|
-
Core package for FuryStack with
|
|
3
|
+
Core package for FuryStack with generic type and interface definitions and concepts.
|
|
4
4
|
|
|
5
5
|
## Concepts
|
|
6
6
|
|
|
7
7
|
### Physical Store
|
|
8
8
|
|
|
9
|
-
In **FuryStack**, the preferred
|
|
9
|
+
In **FuryStack**, the preferred way to access data is via physical stores. A physical store is a minimal interface that a store should implement. A store is always bound to a collection with a specified type of entities. It can only do basic CRUD operations (create, get by ID, filter, delete, count). These stores should not have concepts about relations, indexes, or other storage-specific details. Data stores don't care about permission, role, or session checking.
|
|
10
10
|
|
|
11
11
|
### Identity Context
|
|
12
12
|
|
|
13
|
-
The generic way to implement authentication and authorization logic is an Identity Context
|
|
13
|
+
The generic way to implement authentication and authorization logic is with an Identity Context – you can use it on both backend and frontend.
|
|
14
14
|
|
|
15
15
|
### User
|
|
16
16
|
|
|
17
17
|
...yo...
|
|
18
18
|
|
|
19
|
-
## Other
|
|
19
|
+
## Other Utilities
|
|
20
20
|
|
|
21
21
|
### Global Disposables
|
|
22
22
|
|
|
23
|
-
Global Disposables is a list
|
|
23
|
+
Global Disposables is a list you can fill with disposables that will be disposed on app exit – this helps with graceful app shutdowns.
|
|
24
24
|
|
|
25
25
|
```ts
|
|
26
26
|
import { globalDisposables } from '@furystack/core/dist/create-physical-store-tests'
|
|
@@ -28,9 +28,9 @@ import { globalDisposables } from '@furystack/core/dist/create-physical-store-te
|
|
|
28
28
|
globalDisposables.add(myRootInjector)
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
### Generic
|
|
31
|
+
### Generic Tests for Physical Stores
|
|
32
32
|
|
|
33
|
-
There is a set of generic store
|
|
33
|
+
There is a set of generic store tests you can use to test your custom store implementation, as the following example shows:
|
|
34
34
|
|
|
35
35
|
```ts
|
|
36
36
|
import { TestClass, createStoreTest } from '@furystack/core/create-physical-store-tests'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@furystack/core",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.19",
|
|
4
4
|
"description": "Core FuryStack package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
},
|
|
41
41
|
"homepage": "https://github.com/furystack/furystack",
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@types/node": "^22.
|
|
43
|
+
"@types/node": "^22.15.30",
|
|
44
44
|
"typescript": "^5.8.3",
|
|
45
|
-
"vitest": "^3.
|
|
45
|
+
"vitest": "^3.2.2"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@furystack/inject": "^12.0.
|
|
49
|
-
"@furystack/utils": "^8.0.
|
|
48
|
+
"@furystack/inject": "^12.0.16",
|
|
49
|
+
"@furystack/utils": "^8.0.15"
|
|
50
50
|
},
|
|
51
51
|
"gitHead": "1045d854bfd8c475b7035471d130d401417a2321"
|
|
52
52
|
}
|