@jay-framework/jay-stack-cli 0.15.1 → 0.15.2
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/agent-kit-template/routing.md +17 -0
- package/package.json +10 -10
|
@@ -142,3 +142,20 @@ jay-stack params wix-stores/product-page
|
|
|
142
142
|
```
|
|
143
143
|
|
|
144
144
|
Params are always strings (URL params).
|
|
145
|
+
|
|
146
|
+
## Query Parameters
|
|
147
|
+
|
|
148
|
+
URL query parameters (`?page=2&sort=price`) are available in the **fast render phase only** via `props.query`:
|
|
149
|
+
|
|
150
|
+
```typescript
|
|
151
|
+
.withFastRender(async (props, carryForward, dbService) => {
|
|
152
|
+
const page = parseInt(props.query.page || '1');
|
|
153
|
+
const sort = props.query.sort || 'name';
|
|
154
|
+
const products = await dbService.getProducts({ page, sort });
|
|
155
|
+
return phaseOutput({ products, currentPage: page }, {});
|
|
156
|
+
})
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
- `props.query` is `Record<string, string>` — empty `{}` when no query string
|
|
160
|
+
- Not available in the slow phase (compile error) — slow results are cached by path params only
|
|
161
|
+
- In the interactive phase, use `new URLSearchParams(window.location.search)` directly
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jay-framework/jay-stack-cli",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"test:watch": "vitest"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@jay-framework/compiler-jay-html": "^0.15.
|
|
28
|
-
"@jay-framework/compiler-shared": "^0.15.
|
|
29
|
-
"@jay-framework/dev-server": "^0.15.
|
|
30
|
-
"@jay-framework/editor-server": "^0.15.
|
|
31
|
-
"@jay-framework/fullstack-component": "^0.15.
|
|
32
|
-
"@jay-framework/logger": "^0.15.
|
|
33
|
-
"@jay-framework/plugin-validator": "^0.15.
|
|
34
|
-
"@jay-framework/stack-server-runtime": "^0.15.
|
|
27
|
+
"@jay-framework/compiler-jay-html": "^0.15.2",
|
|
28
|
+
"@jay-framework/compiler-shared": "^0.15.2",
|
|
29
|
+
"@jay-framework/dev-server": "^0.15.2",
|
|
30
|
+
"@jay-framework/editor-server": "^0.15.2",
|
|
31
|
+
"@jay-framework/fullstack-component": "^0.15.2",
|
|
32
|
+
"@jay-framework/logger": "^0.15.2",
|
|
33
|
+
"@jay-framework/plugin-validator": "^0.15.2",
|
|
34
|
+
"@jay-framework/stack-server-runtime": "^0.15.2",
|
|
35
35
|
"chalk": "^4.1.2",
|
|
36
36
|
"commander": "^14.0.0",
|
|
37
37
|
"express": "^5.0.1",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"yaml": "^2.3.4"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@jay-framework/dev-environment": "^0.15.
|
|
45
|
+
"@jay-framework/dev-environment": "^0.15.2",
|
|
46
46
|
"@types/express": "^5.0.2",
|
|
47
47
|
"@types/node": "^22.15.21",
|
|
48
48
|
"nodemon": "^3.0.3",
|