@cfast/core 0.1.0 → 0.1.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.
- package/LICENSE +21 -0
- package/llms.txt +5 -0
- package/package.json +11 -11
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Daniel Schmidt
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/llms.txt
CHANGED
|
@@ -165,3 +165,8 @@ export const { createAction, composeActions } = createActions({
|
|
|
165
165
|
- Calling `useApp()` outside `<app.Provider>` -- throws a context error.
|
|
166
166
|
- Registering two plugins with the same `name` -- throws `CfastConfigError` at import time.
|
|
167
167
|
- Doing expensive work in `setup()` -- it runs on every request. Move one-time init to the plugin factory (outer function).
|
|
168
|
+
|
|
169
|
+
## See Also
|
|
170
|
+
|
|
171
|
+
- `@cfast/env` -- Type-safe Cloudflare bindings validated by `app.init()`.
|
|
172
|
+
- `@cfast/permissions` -- Grants resolved per-request and exposed via `app.context()`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cfast/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "App composition layer with plugin system for @cfast/* packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cfast",
|
|
@@ -36,16 +36,9 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"scripts": {
|
|
40
|
-
"build": "tsup src/index.ts src/client/index.ts --format esm --dts",
|
|
41
|
-
"dev": "tsup src/index.ts src/client/index.ts --format esm --dts --watch",
|
|
42
|
-
"typecheck": "tsc --noEmit",
|
|
43
|
-
"lint": "eslint src/",
|
|
44
|
-
"test": "vitest run --passWithNoTests"
|
|
45
|
-
},
|
|
46
39
|
"dependencies": {
|
|
47
|
-
"@cfast/env": "
|
|
48
|
-
"@cfast/permissions": "
|
|
40
|
+
"@cfast/env": "0.1.0",
|
|
41
|
+
"@cfast/permissions": "0.1.0"
|
|
49
42
|
},
|
|
50
43
|
"peerDependencies": {
|
|
51
44
|
"react": ">=18"
|
|
@@ -63,5 +56,12 @@
|
|
|
63
56
|
"tsup": "^8",
|
|
64
57
|
"typescript": "^5.7",
|
|
65
58
|
"vitest": "^4.1.0"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"build": "tsup src/index.ts src/client/index.ts --format esm --dts",
|
|
62
|
+
"dev": "tsup src/index.ts src/client/index.ts --format esm --dts --watch",
|
|
63
|
+
"typecheck": "tsc --noEmit",
|
|
64
|
+
"lint": "eslint src/",
|
|
65
|
+
"test": "vitest run --passWithNoTests"
|
|
66
66
|
}
|
|
67
|
-
}
|
|
67
|
+
}
|