@stacksjs/actions 0.75.64 → 0.75.66
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/dist/runtime.d.ts +26 -0
- package/dist/runtime.js +1 -0
- package/dist/scaffold-crud.js +1 -1
- package/dist/templates.js +1 -1
- package/package.json +45 -39
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request-time action entrypoint.
|
|
3
|
+
*
|
|
4
|
+
* The package root is the action *layer*: it resolves and spawns action files,
|
|
5
|
+
* and its barrel reaches the scaffolding (`make:*`), the generators, the lint
|
|
6
|
+
* and setup actions, the dev server and the upgrade checks. Importing it costs
|
|
7
|
+
* well over a hundred milliseconds and a matching slice of RSS.
|
|
8
|
+
*
|
|
9
|
+
* Almost nothing at request time needs any of that. Of the framework's own
|
|
10
|
+
* imports of this package outside the CLI, every one but a handful is
|
|
11
|
+
* `import { Action } from '@stacksjs/actions'` - the 650 default actions each
|
|
12
|
+
* paying for the whole tooling graph to declare themselves. The server's
|
|
13
|
+
* global injection did the same for the single `Action` binding.
|
|
14
|
+
*
|
|
15
|
+
* So this entry carries the action contract and nothing else, the way
|
|
16
|
+
* `@stacksjs/database/runtime` carries the query facade without the migrations.
|
|
17
|
+
*
|
|
18
|
+
* Deliberately NOT re-exported here: the `setActionRunner()` registration the
|
|
19
|
+
* root barrel performs on import. Running an action by name means resolving and
|
|
20
|
+
* spawning a file, which is the full layer's job; a narrow entry that quietly
|
|
21
|
+
* registered a runner it cannot honour would be worse than one that does not.
|
|
22
|
+
* The packages that run actions by name (queue, scheduler, dns) already ask
|
|
23
|
+
* through `@stacksjs/action-runner`, and the contexts that answer import the
|
|
24
|
+
* root.
|
|
25
|
+
*/
|
|
26
|
+
export * from './action';
|
package/dist/runtime.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./action";
|
package/dist/scaffold-crud.js
CHANGED
|
@@ -57,7 +57,7 @@ export default new Action({
|
|
|
57
57
|
return { deleted }
|
|
58
58
|
},
|
|
59
59
|
})`}}function modelStub(name,fields){return`import { defineModel } from '@stacksjs/orm'
|
|
60
|
-
import { schema } from '@stacksjs/validation'
|
|
60
|
+
import { schema } from '@stacksjs/validation/runtime'
|
|
61
61
|
|
|
62
62
|
export default defineModel({
|
|
63
63
|
name: '${pascalCase(name)}',
|
package/dist/templates.js
CHANGED
|
@@ -198,7 +198,7 @@ export default new Middleware({
|
|
|
198
198
|
// Your middleware logic here
|
|
199
199
|
},
|
|
200
200
|
})`,model:`import { defineModel } from '@stacksjs/orm'
|
|
201
|
-
import { schema } from '@stacksjs/validation'
|
|
201
|
+
import { schema } from '@stacksjs/validation/runtime'
|
|
202
202
|
|
|
203
203
|
export default defineModel({
|
|
204
204
|
name: '{0}',
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/actions",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.66",
|
|
6
6
|
"description": "The Stacks actions.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -34,6 +34,12 @@
|
|
|
34
34
|
"import": "./dist/index.js",
|
|
35
35
|
"default": "./dist/index.js"
|
|
36
36
|
},
|
|
37
|
+
"./runtime": {
|
|
38
|
+
"types": "./dist/runtime.d.ts",
|
|
39
|
+
"bun": "./dist/runtime.js",
|
|
40
|
+
"import": "./dist/runtime.js",
|
|
41
|
+
"default": "./dist/runtime.js"
|
|
42
|
+
},
|
|
37
43
|
"./run-action": {
|
|
38
44
|
"types": "./dist/run-action.d.ts",
|
|
39
45
|
"bun": "./dist/run-action.js",
|
|
@@ -60,53 +66,53 @@
|
|
|
60
66
|
"prepublishOnly": "bun run build"
|
|
61
67
|
},
|
|
62
68
|
"dependencies": {
|
|
63
|
-
"@stacksjs/action-runner": "0.75.
|
|
64
|
-
"@stacksjs/ai": "0.75.
|
|
65
|
-
"@stacksjs/analytics": "0.75.
|
|
66
|
-
"@stacksjs/api": "0.75.
|
|
67
|
-
"@stacksjs/auth": "0.75.
|
|
68
|
-
"@stacksjs/build": "0.75.
|
|
69
|
+
"@stacksjs/action-runner": "0.75.66",
|
|
70
|
+
"@stacksjs/ai": "0.75.66",
|
|
71
|
+
"@stacksjs/analytics": "0.75.66",
|
|
72
|
+
"@stacksjs/api": "0.75.66",
|
|
73
|
+
"@stacksjs/auth": "0.75.66",
|
|
74
|
+
"@stacksjs/build": "0.75.66",
|
|
69
75
|
"@stacksjs/bumpx": "^0.2.18",
|
|
70
76
|
"@stacksjs/bunpress": "^0.2.14",
|
|
71
|
-
"@stacksjs/cli": "0.75.
|
|
72
|
-
"@stacksjs/cloud": "0.75.
|
|
73
|
-
"@stacksjs/cms": "0.75.
|
|
77
|
+
"@stacksjs/cli": "0.75.66",
|
|
78
|
+
"@stacksjs/cloud": "0.75.66",
|
|
79
|
+
"@stacksjs/cms": "0.75.66",
|
|
74
80
|
"@stacksjs/components": "^0.2.359",
|
|
75
|
-
"@stacksjs/config": "0.75.
|
|
76
|
-
"@stacksjs/database": "0.75.
|
|
77
|
-
"@stacksjs/desktop-build": "0.75.
|
|
78
|
-
"@stacksjs/dns": "0.75.
|
|
79
|
-
"@stacksjs/enums": "0.75.
|
|
80
|
-
"@stacksjs/env": "0.75.
|
|
81
|
-
"@stacksjs/error-handling": "0.75.
|
|
81
|
+
"@stacksjs/config": "0.75.66",
|
|
82
|
+
"@stacksjs/database": "0.75.66",
|
|
83
|
+
"@stacksjs/desktop-build": "0.75.66",
|
|
84
|
+
"@stacksjs/dns": "0.75.66",
|
|
85
|
+
"@stacksjs/enums": "0.75.66",
|
|
86
|
+
"@stacksjs/env": "0.75.66",
|
|
87
|
+
"@stacksjs/error-handling": "0.75.66",
|
|
82
88
|
"@stacksjs/gitit": "^0.2.5",
|
|
83
|
-
"@stacksjs/i18n": "0.75.
|
|
84
|
-
"@stacksjs/image": "0.75.
|
|
85
|
-
"@stacksjs/logging": "0.75.
|
|
89
|
+
"@stacksjs/i18n": "0.75.66",
|
|
90
|
+
"@stacksjs/image": "0.75.66",
|
|
91
|
+
"@stacksjs/logging": "0.75.66",
|
|
86
92
|
"@stacksjs/logsmith": "^0.2.11",
|
|
87
|
-
"@stacksjs/mobile": "0.75.
|
|
88
|
-
"@stacksjs/orm": "0.75.
|
|
89
|
-
"@stacksjs/path": "0.75.
|
|
90
|
-
"@stacksjs/payments": "0.75.
|
|
91
|
-
"@stacksjs/queue": "0.75.
|
|
92
|
-
"@stacksjs/registry": "0.75.
|
|
93
|
-
"@stacksjs/router": "0.75.
|
|
93
|
+
"@stacksjs/mobile": "0.75.66",
|
|
94
|
+
"@stacksjs/orm": "0.75.66",
|
|
95
|
+
"@stacksjs/path": "0.75.66",
|
|
96
|
+
"@stacksjs/payments": "0.75.66",
|
|
97
|
+
"@stacksjs/queue": "0.75.66",
|
|
98
|
+
"@stacksjs/registry": "0.75.66",
|
|
99
|
+
"@stacksjs/router": "0.75.66",
|
|
94
100
|
"@stacksjs/rpx": "^0.11.54",
|
|
95
|
-
"@stacksjs/scheduler": "0.75.
|
|
96
|
-
"@stacksjs/search-engine": "0.75.
|
|
97
|
-
"@stacksjs/security": "0.75.
|
|
98
|
-
"@stacksjs/server": "0.75.
|
|
99
|
-
"@stacksjs/sites": "0.75.
|
|
100
|
-
"@stacksjs/storage": "0.75.
|
|
101
|
-
"@stacksjs/strings": "0.75.
|
|
101
|
+
"@stacksjs/scheduler": "0.75.66",
|
|
102
|
+
"@stacksjs/search-engine": "0.75.66",
|
|
103
|
+
"@stacksjs/security": "0.75.66",
|
|
104
|
+
"@stacksjs/server": "0.75.66",
|
|
105
|
+
"@stacksjs/sites": "0.75.66",
|
|
106
|
+
"@stacksjs/storage": "0.75.66",
|
|
107
|
+
"@stacksjs/strings": "0.75.66",
|
|
102
108
|
"@stacksjs/stx": "^0.2.359",
|
|
103
109
|
"@stacksjs/tlsx": "^0.13.19",
|
|
104
110
|
"@stacksjs/ts-cloud": "^0.16.25",
|
|
105
111
|
"@stacksjs/ts-md": "^0.1.1",
|
|
106
|
-
"@stacksjs/tunnel": "0.75.
|
|
107
|
-
"@stacksjs/types": "0.75.
|
|
108
|
-
"@stacksjs/utils": "0.75.
|
|
109
|
-
"@stacksjs/whois": "0.75.
|
|
112
|
+
"@stacksjs/tunnel": "0.75.66",
|
|
113
|
+
"@stacksjs/types": "0.75.66",
|
|
114
|
+
"@stacksjs/utils": "0.75.66",
|
|
115
|
+
"@stacksjs/whois": "0.75.66",
|
|
110
116
|
"bun-plugin-stx": "^0.2.359"
|
|
111
117
|
},
|
|
112
118
|
"peerDependencies": {
|
|
@@ -122,7 +128,7 @@
|
|
|
122
128
|
}
|
|
123
129
|
},
|
|
124
130
|
"devDependencies": {
|
|
125
|
-
"@stacksjs/validation": "0.75.
|
|
131
|
+
"@stacksjs/validation": "0.75.66",
|
|
126
132
|
"better-dx": "^0.2.24"
|
|
127
133
|
}
|
|
128
134
|
}
|