@vllnt/convex-events 0.2.0-canary.e7e2be0 → 0.2.0-canary.f67f4ae
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 +3 -2
- package/README.md +19 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -30,8 +30,9 @@ All notable changes to this project are documented here. The format is based on
|
|
|
30
30
|
20, and convex 1.49 and newer need Node.js 22. The `convex` peer range is unchanged
|
|
31
31
|
(`^1.45.0`).
|
|
32
32
|
- README rewritten in a fixed, agent-first order, with every error code and its fix, limits,
|
|
33
|
-
compatibility and testing
|
|
34
|
-
|
|
33
|
+
compatibility and testing, plus the `canary` install, the React and test dependency commands
|
|
34
|
+
and the `convex/schema.ts` the test example imports; `docs/API.md` has one section per export
|
|
35
|
+
and method; `llms.txt` links to the shipped docs.
|
|
35
36
|
- `package.json` `description`, `keywords` and `homepage`
|
|
36
37
|
(`https://oss.vllnt.com/packages/convex-events`) describe the package, and the `record` TSDoc
|
|
37
38
|
lists the guards in the order they run.
|
package/README.md
CHANGED
|
@@ -28,6 +28,11 @@ before writing code against this package.
|
|
|
28
28
|
pnpm add @vllnt/convex-events convex
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
+
Unreleased builds from `main` are published under the `canary` dist-tag:
|
|
32
|
+
`pnpm add @vllnt/convex-events@canary convex`. The React hooks need
|
|
33
|
+
`pnpm add react` (and `pnpm add -D @types/react` for TypeScript). Testing lists
|
|
34
|
+
the test dependencies.
|
|
35
|
+
|
|
31
36
|
## Quick start
|
|
32
37
|
|
|
33
38
|
```ts
|
|
@@ -446,6 +451,10 @@ Mount the component in your own `convex-test` suite with `register`. Use the
|
|
|
446
451
|
Vitest settings `convex-test` recommends (edge runtime, `convex-test` inlined).
|
|
447
452
|
`register` uses Vite's `import.meta.glob`, so it only works under Vitest/Vite:
|
|
448
453
|
|
|
454
|
+
```bash
|
|
455
|
+
pnpm add -D convex-test vitest vite @edge-runtime/vm
|
|
456
|
+
```
|
|
457
|
+
|
|
449
458
|
```ts
|
|
450
459
|
// vitest.config.mts
|
|
451
460
|
import { defineConfig } from "vitest/config";
|
|
@@ -458,6 +467,16 @@ export default defineConfig({
|
|
|
458
467
|
});
|
|
459
468
|
```
|
|
460
469
|
|
|
470
|
+
The test imports your app's schema. Use your own `convex/schema.ts` if you have
|
|
471
|
+
one; otherwise add an empty one:
|
|
472
|
+
|
|
473
|
+
```ts
|
|
474
|
+
// convex/schema.ts
|
|
475
|
+
import { defineSchema } from "convex/server";
|
|
476
|
+
|
|
477
|
+
export default defineSchema({});
|
|
478
|
+
```
|
|
479
|
+
|
|
461
480
|
```ts
|
|
462
481
|
// convex/activity.test.ts
|
|
463
482
|
/// <reference types="vite/client" />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vllnt/convex-events",
|
|
3
|
-
"version": "0.2.0-canary.
|
|
3
|
+
"version": "0.2.0-canary.f67f4ae",
|
|
4
4
|
"description": "Convex component for an append-only activity feed and event log: record, list, paginate, count and purge events per subject, with optional retention.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|