@vllnt/convex-memberships 0.2.0 → 0.2.1-canary.511023b

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/CHANGELOG.md CHANGED
@@ -4,6 +4,13 @@ All notable changes to this project are documented here. The format is based on
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to
5
5
  [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [Unreleased]
8
+
9
+ ### Fixed
10
+
11
+ - The docs no longer say a page never reads more than 1000 rows: the `maximumRowsRead` cap holds on
12
+ the first run of a page, but a reactive re-run with an `endCursor` reads its whole range.
13
+
7
14
  ## [0.2.0] - 2026-11-28
8
15
 
9
16
  0.2.0 has three breaking changes for 0.1.0 users. They are why this release is a minor
package/README.md CHANGED
@@ -320,7 +320,10 @@ exist.
320
320
  ## Limits and gotchas
321
321
 
322
322
  - `numItems` must be an integer from 1 through 1000. `maximumRowsRead` defaults
323
- to 1000 and is capped at 1000, so a page never reads more than 1000 rows.
323
+ to 1000 and is capped at 1000 on the first run of a page. A reactive re-run
324
+ with an `endCursor` (as `usePaginatedQuery` sends) returns the whole range
325
+ between its cursors, and Convex ignores `maximumRowsRead` there; only Convex
326
+ transaction read limits apply.
324
327
  - `isMember` without `relation` returns `true` for **any** stored relation,
325
328
  including ones such as `"invited"`, `"suspended"` or `"banned"`. Do not use it
326
329
  as an authorization check; pass `relation`, or check each accepted relation.
package/docs/API.md CHANGED
@@ -144,7 +144,9 @@ with `cursor: null`, then pass the returned `continueCursor` until `isDone` is
144
144
  `INVALID_PAGE_SIZE`.
145
145
  - `maximumRowsRead`, when given, must be a positive finite integer, otherwise
146
146
  `INVALID_PAGE_SIZE`. It defaults to 1000, and larger values are lowered to
147
- 1000, so explicit reactive cursor ranges stay bounded.
147
+ 1000. The cap holds on the first run of a page; a reactive re-run with an
148
+ `endCursor` returns the whole range between its cursors, and Convex ignores
149
+ `maximumRowsRead` there, so only Convex transaction read limits apply.
148
150
  - Do not reuse a cursor issued by 0.1.0: the indexes changed, so restart from
149
151
  `cursor: null`.
150
152
 
package/llms.txt CHANGED
@@ -20,7 +20,7 @@ and `add` and the `toRelation` of `setRelation` for a value longer than 512 UTF-
20
20
  code units (`string.length`; an emoji counts 2);
21
21
  listing queries throw `INVALID_PAGE_SIZE` unless `numItems` is an integer from
22
22
  1 through 1000 and `maximumRowsRead`, if given, is a positive integer (it is
23
- capped at 1000). `isMember` without
23
+ capped at 1000, except on reactive re-runs with an `endCursor`). `isMember` without
24
24
  `relation` returns `true` for any stored relation, including `"invited"` or
25
25
  `"banned"`: do not use it as an authorization check. Edges are flat: no
26
26
  transitive group expansion. The component never reads auth; the host
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vllnt/convex-memberships",
3
- "version": "0.2.0",
3
+ "version": "0.2.1-canary.511023b",
4
4
  "description": "TypeScript Convex component for memberships and roles: a flat ReBAC relationship graph with membership checks, paginated member lists and React hooks.",
5
5
  "license": "MIT",
6
6
  "type": "module",