lazypock 0.20.0 → 0.20.1
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/README.md +19 -0
- package/dist/index.cjs +750 -674
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +46 -80
- package/dist/index.d.ts +46 -80
- package/dist/index.global.js +750 -674
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +750 -674
- package/dist/index.js.map +1 -1
- package/package.json +19 -2
- package/src/auth.ts +29 -0
- package/src/collection/auth.ts +289 -0
- package/src/collection/index.ts +754 -0
- package/src/collection/paths.ts +21 -0
- package/src/collection/query.ts +111 -0
- package/src/collection/realtime.ts +141 -0
- package/src/collection/session.ts +76 -0
- package/src/collections.ts +18 -52
- package/src/expand.ts +286 -0
- package/src/files.ts +15 -2
- package/src/filter.ts +2 -2
- package/src/http.ts +21 -6
- package/src/lazypock.ts +38 -71
- package/src/paginate.ts +111 -0
- package/src/projection.ts +139 -0
- package/src/query-params.ts +74 -0
- package/src/realtime.ts +6 -0
- package/src/collection.ts +0 -1412
package/README.md
CHANGED
|
@@ -768,6 +768,25 @@ const off = client.realtime.subscribe('chat:room1', (event) => {
|
|
|
768
768
|
off(); // or client.realtime.unsubscribe('chat:room1');
|
|
769
769
|
```
|
|
770
770
|
|
|
771
|
+
## Local development
|
|
772
|
+
|
|
773
|
+
```bash
|
|
774
|
+
bun install
|
|
775
|
+
bun run typecheck # tsc --noEmit
|
|
776
|
+
bun test # unit tests (test/*.test.ts, run against src/, no build)
|
|
777
|
+
bun run smoke # build + runtime, realtime, auth-store, oauth2 and type-level suites
|
|
778
|
+
bun run bench # codegen + HTTP-overhead benchmarks
|
|
779
|
+
```
|
|
780
|
+
|
|
781
|
+
CI runs `typecheck`, `bun test` and `smoke` on every pull request and on
|
|
782
|
+
pushes to `main` (`.github/workflows/ci.yml`).
|
|
783
|
+
|
|
784
|
+
The source is split by concern: record CRUD lives in `src/collection/index.ts`
|
|
785
|
+
(the public `CollectionService` facade), while the schema-aware query logic is
|
|
786
|
+
in pure, directly testable modules — `src/expand.ts` (expand/field-selection
|
|
787
|
+
normalisation), `src/projection.ts` (field projection), `src/paginate.ts`
|
|
788
|
+
(full-list paging + dedup keys) and `src/collection/{auth,realtime,query}.ts`.
|
|
789
|
+
|
|
771
790
|
## Releasing (automatic)
|
|
772
791
|
|
|
773
792
|
Releases are fully automatic via [release-please](https://github.com/googleapis/release-please):
|