@jay-framework/jay-stack-cli 0.15.0 → 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.
@@ -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.0",
3
+ "version": "0.15.2",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -24,24 +24,25 @@
24
24
  "test:watch": "vitest"
25
25
  },
26
26
  "dependencies": {
27
- "@jay-framework/compiler-jay-html": "^0.15.0",
28
- "@jay-framework/compiler-shared": "^0.15.0",
29
- "@jay-framework/dev-server": "^0.15.0",
30
- "@jay-framework/editor-server": "^0.15.0",
31
- "@jay-framework/fullstack-component": "^0.15.0",
32
- "@jay-framework/logger": "^0.15.0",
33
- "@jay-framework/plugin-validator": "^0.15.0",
34
- "@jay-framework/stack-server-runtime": "^0.15.0",
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",
38
+ "get-port": "^7.0.0",
38
39
  "glob": "^10.3.10",
39
40
  "node-html-parser": "^6.1.12",
40
41
  "vite": "^5.0.11",
41
42
  "yaml": "^2.3.4"
42
43
  },
43
44
  "devDependencies": {
44
- "@jay-framework/dev-environment": "^0.15.0",
45
+ "@jay-framework/dev-environment": "^0.15.2",
45
46
  "@types/express": "^5.0.2",
46
47
  "@types/node": "^22.15.21",
47
48
  "nodemon": "^3.0.3",