@reblu/site-client 4.0.0 → 5.0.0
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/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -23,6 +23,14 @@ interface PagesListParams {
|
|
|
23
23
|
type?: PageType | PageType[];
|
|
24
24
|
category?: string;
|
|
25
25
|
page?: number;
|
|
26
|
+
/**
|
|
27
|
+
* REB-736: bounded server-side before validation (`parsePaginationParam`
|
|
28
|
+
* in the route, mirroring `pagesListParamsSchema`'s `.max(100)`) rather
|
|
29
|
+
* than rejected — a typed caller CAN send an out-of-range value and won't
|
|
30
|
+
* get a 400/500 for it, but won't get what it asked for either: above 100
|
|
31
|
+
* clamps down to 100, and anything < 1 or non-numeric falls back to the
|
|
32
|
+
* default of 20, not down to 1.
|
|
33
|
+
*/
|
|
26
34
|
pageSize?: number;
|
|
27
35
|
sort?: PagesListSort;
|
|
28
36
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,14 @@ interface PagesListParams {
|
|
|
23
23
|
type?: PageType | PageType[];
|
|
24
24
|
category?: string;
|
|
25
25
|
page?: number;
|
|
26
|
+
/**
|
|
27
|
+
* REB-736: bounded server-side before validation (`parsePaginationParam`
|
|
28
|
+
* in the route, mirroring `pagesListParamsSchema`'s `.max(100)`) rather
|
|
29
|
+
* than rejected — a typed caller CAN send an out-of-range value and won't
|
|
30
|
+
* get a 400/500 for it, but won't get what it asked for either: above 100
|
|
31
|
+
* clamps down to 100, and anything < 1 or non-numeric falls back to the
|
|
32
|
+
* default of 20, not down to 1.
|
|
33
|
+
*/
|
|
26
34
|
pageSize?: number;
|
|
27
35
|
sort?: PagesListSort;
|
|
28
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reblu/site-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Framework-agnostic HTTP client for the Reblu SITE API — dependency-free, injectable cache adapter, typed by @reblu/site-contracts.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Reblu — Adolfo Unturbe",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@reblu/site-contracts": "0.
|
|
49
|
+
"@reblu/site-contracts": "1.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@size-limit/preset-small-lib": "^11.1.6",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"typescript": "^5.8.3",
|
|
58
58
|
"vitest": "^4.0.15",
|
|
59
59
|
"@reblu/config": "0.0.1",
|
|
60
|
-
"@reblu/site-contracts": "0.
|
|
60
|
+
"@reblu/site-contracts": "1.0.0"
|
|
61
61
|
},
|
|
62
62
|
"size-limit": [
|
|
63
63
|
{
|