@rebasepro/types 0.13.1-canary.gcd6689e → 0.13.1-canary.gcef69d4

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.
@@ -34,13 +34,19 @@ export interface FilterCondition {
34
34
  *
35
35
  * `limit`/`offset` and `page` describe the same window two ways. If **both
36
36
  * `offset` and `page` are provided, `page` wins** — the backend computes
37
- * `offset = (page - 1) * (limit ?? 20)` and ignores the explicit `offset`.
38
- * Pick one style per query.
37
+ * `offset = (page - 1) * (limit ?? DEFAULT_LIST_LIMIT)` and ignores the
38
+ * explicit `offset`. Pick one style per query.
39
39
  *
40
40
  * @group Data
41
41
  */
42
42
  export interface FindParams<M extends Record<string, unknown> = Record<string, unknown>> {
43
- /** Maximum number of items to return (default: 20). */
43
+ /**
44
+ * Maximum number of items to return.
45
+ *
46
+ * Defaults to {@link DEFAULT_LIST_LIMIT}, and is clamped to
47
+ * {@link MAX_LIST_LIMIT}. Both bounds are applied by the backend, so a
48
+ * read is never unbounded whether or not a limit was asked for.
49
+ */
44
50
  limit?: number;
45
51
  /**
46
52
  * Number of items to skip. Ignored when {@link FindParams.page} is also
@@ -49,7 +55,7 @@ export interface FindParams<M extends Record<string, unknown> = Record<string, u
49
55
  offset?: number;
50
56
  /**
51
57
  * Page number (1-indexed), alternative to {@link FindParams.offset}.
52
- * When set, overrides `offset` as `(page - 1) * (limit ?? 20)`.
58
+ * When set, overrides `offset` as `(page - 1) * (limit ?? DEFAULT_LIST_LIMIT)`.
53
59
  */
54
60
  page?: number;
55
61
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rebasepro/types",
3
3
  "type": "module",
4
- "version": "0.13.1-canary.gcd6689e",
4
+ "version": "0.13.1-canary.gcef69d4",
5
5
  "description": "Rebase type definitions — shared interfaces and controller types",
6
6
  "funding": {
7
7
  "url": "https://github.com/sponsors/rebaseco"
@@ -42,7 +42,7 @@
42
42
  "@types/node": "^26.1.2",
43
43
  "@types/object-hash": "^3.0.6",
44
44
  "@types/react-measure": "^2.0.12",
45
- "hono": "^4.12.27",
45
+ "hono": "^4.13.0",
46
46
  "jest": "^30.4.2",
47
47
  "ts-jest": "^29.4.12",
48
48
  "typescript": "^6.0.3",
@@ -38,13 +38,19 @@ export interface FilterCondition {
38
38
  *
39
39
  * `limit`/`offset` and `page` describe the same window two ways. If **both
40
40
  * `offset` and `page` are provided, `page` wins** — the backend computes
41
- * `offset = (page - 1) * (limit ?? 20)` and ignores the explicit `offset`.
42
- * Pick one style per query.
41
+ * `offset = (page - 1) * (limit ?? DEFAULT_LIST_LIMIT)` and ignores the
42
+ * explicit `offset`. Pick one style per query.
43
43
  *
44
44
  * @group Data
45
45
  */
46
46
  export interface FindParams<M extends Record<string, unknown> = Record<string, unknown>> {
47
- /** Maximum number of items to return (default: 20). */
47
+ /**
48
+ * Maximum number of items to return.
49
+ *
50
+ * Defaults to {@link DEFAULT_LIST_LIMIT}, and is clamped to
51
+ * {@link MAX_LIST_LIMIT}. Both bounds are applied by the backend, so a
52
+ * read is never unbounded whether or not a limit was asked for.
53
+ */
48
54
  limit?: number;
49
55
  /**
50
56
  * Number of items to skip. Ignored when {@link FindParams.page} is also
@@ -53,7 +59,7 @@ export interface FindParams<M extends Record<string, unknown> = Record<string, u
53
59
  offset?: number;
54
60
  /**
55
61
  * Page number (1-indexed), alternative to {@link FindParams.offset}.
56
- * When set, overrides `offset` as `(page - 1) * (limit ?? 20)`.
62
+ * When set, overrides `offset` as `(page - 1) * (limit ?? DEFAULT_LIST_LIMIT)`.
57
63
  */
58
64
  page?: number;
59
65
  /**