@vllnt/convex-experiments 0.1.1-canary.eb332c6 → 0.2.0-canary.38e0a3a
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 +15 -4
- package/README.md +405 -180
- package/dist/client/index.d.ts +17 -10
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +17 -10
- package/dist/client/index.js.map +1 -1
- package/dist/client/types.d.ts +11 -4
- package/dist/client/types.d.ts.map +1 -1
- package/dist/component/convex.config.d.ts +5 -0
- package/dist/component/convex.config.d.ts.map +1 -1
- package/dist/component/convex.config.js +5 -0
- package/dist/component/convex.config.js.map +1 -1
- package/dist/component/mutations.d.ts +6 -3
- package/dist/component/mutations.d.ts.map +1 -1
- package/dist/component/mutations.js +6 -3
- package/dist/component/mutations.js.map +1 -1
- package/dist/component/validators.d.ts +3 -3
- package/dist/component/validators.js +3 -3
- package/dist/react/index.d.ts +5 -4
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +5 -4
- package/dist/react/index.js.map +1 -1
- package/docs/API.md +257 -123
- package/llms.txt +50 -29
- package/package.json +11 -7
- package/src/client/index.ts +17 -10
- package/src/client/types.ts +11 -4
- package/src/component/convex.config.ts +5 -0
- package/src/component/mutations.ts +6 -3
- package/src/component/validators.ts +3 -3
- package/src/react/index.tsx +5 -4
- package/src/test.ts +11 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,7 @@ 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
|
-
## [0.
|
|
7
|
+
## [0.2.0] - Unreleased
|
|
8
8
|
|
|
9
9
|
### Added
|
|
10
10
|
|
|
@@ -21,14 +21,25 @@ All notable changes to this project are documented here. The format is based on
|
|
|
21
21
|
- Correct shipped doc comments: `results` returns a zeroed row per defined variant (not `[]`) for an
|
|
22
22
|
experiment with no enrollment, `weight` is never `0`, and `setStatus` returns `true` whenever the
|
|
23
23
|
experiment exists.
|
|
24
|
-
- Reject empty `scope`, `key`, and `subjectRef` identifiers in `define`, `setStatus`,
|
|
25
|
-
`logExposure`, `forgetSubject`, and `deleteExperiment` with
|
|
26
|
-
and an empty variant key in `define` with
|
|
24
|
+
- **Breaking:** Reject empty `scope`, `key`, and `subjectRef` identifiers in `define`, `setStatus`,
|
|
25
|
+
`assign`, `logExposure`, `forgetSubject`, and `deleteExperiment` with
|
|
26
|
+
`ConvexError({ code: "INVALID_ARGUMENT" })`, and an empty variant key in `define` with
|
|
27
|
+
`INVALID_VARIANTS` (`reason: "empty_key"`). Callers passing an empty `scope`, `key`, `subjectRef`
|
|
28
|
+
or variant key now get a `ConvexError` instead of success.
|
|
27
29
|
- Make the `/test` entry type-check for consumers using `moduleResolution: nodenext`: relative imports
|
|
28
30
|
in `src/` use explicit `.js` extensions and `src/test.ts` references `vite/client` types.
|
|
31
|
+
- `register()` from `/test` accepts a host app's `convexTest(hostSchema, modules)` instance. It was
|
|
32
|
+
typed against the component's own schema, so any host schema with other tables failed with TS2345.
|
|
29
33
|
|
|
30
34
|
### Changed
|
|
31
35
|
|
|
36
|
+
- `engines.node` is now `>=20`, matching the oldest supported `convex` peer (1.45 requires Node
|
|
37
|
+
>=20; 1.51 requires >=22).
|
|
38
|
+
- Rework the README for coding agents (fixed section order, type-checked examples, an errors table
|
|
39
|
+
and a limits list), rewrite `docs/API.md` with one heading per export, refresh `llms.txt`, add
|
|
40
|
+
TSDoc to every public export, and set the `description` and `keywords` to match the code.
|
|
41
|
+
`pnpm test:package` now also runs `scripts/check-docs.mjs`, which enforces these docs.
|
|
42
|
+
`pnpm typecheck:ci` now also type-checks `example/` and the tests.
|
|
32
43
|
- `deleteExperiment` deletes the definition in the same pass once every child table returns fewer rows
|
|
33
44
|
than `batch`, which can save the final scheduled mutation of a delete.
|
|
34
45
|
- `define` and `setStatus` skip the write when nothing changed, so idempotent re-defines no longer
|