@cfast/actions 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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/llms.txt +5 -0
  3. 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
@@ -174,3 +174,8 @@ function PostActions({ postId }) {
174
174
  - Using `createAction` directly without first calling `createActions` to set up the factory. `createAction` is returned by `createActions`, not a standalone export.
175
175
  - Omitting the `_action` hidden input in forms when using `composeActions`. The discriminator field is required to route to the correct handler.
176
176
  - Calling `useActions` with the wrong descriptor. Use `composed.client` for composed actions, or `singleAction.client` for a single action.
177
+
178
+ ## See Also
179
+
180
+ - `@cfast/db` -- Permission descriptors come from Operation results.
181
+ - `@cfast/permissions` -- Defines the grants enforced by action permissions.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cfast/actions",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Multi-action routes and permission-aware action definitions for React Router",
5
5
  "keywords": [
6
6
  "cfast",
@@ -37,20 +37,13 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "scripts": {
41
- "build": "tsup src/index.ts src/client.ts --format esm --dts",
42
- "dev": "tsup src/index.ts --format esm --dts --watch",
43
- "typecheck": "tsc --noEmit",
44
- "lint": "eslint src/",
45
- "test": "vitest run"
46
- },
47
40
  "peerDependencies": {
48
41
  "react": "^19.0.0",
49
42
  "react-router": "^7.0.0"
50
43
  },
51
44
  "dependencies": {
52
- "@cfast/db": "workspace:*",
53
- "@cfast/permissions": "workspace:*"
45
+ "@cfast/db": "0.1.1",
46
+ "@cfast/permissions": "0.1.0"
54
47
  },
55
48
  "devDependencies": {
56
49
  "@cloudflare/workers-types": "^4.20260305.1",
@@ -60,5 +53,12 @@
60
53
  "tsup": "^8",
61
54
  "typescript": "^5.7",
62
55
  "vitest": "^4.1.0"
56
+ },
57
+ "scripts": {
58
+ "build": "tsup src/index.ts src/client.ts --format esm --dts",
59
+ "dev": "tsup src/index.ts --format esm --dts --watch",
60
+ "typecheck": "tsc --noEmit",
61
+ "lint": "eslint src/",
62
+ "test": "vitest run"
63
63
  }
64
- }
64
+ }