@vllnt/convex-helpers 0.2.0 → 0.2.1-canary.29170b8
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 +72 -5
- package/NOTICE +3 -3
- package/README.md +382 -260
- package/dist/better-auth.d.ts +10 -0
- package/dist/better-auth.d.ts.map +1 -1
- package/dist/better-auth.js +9 -0
- package/dist/better-auth.js.map +1 -1
- package/dist/builders.d.ts +5 -4
- package/dist/builders.d.ts.map +1 -1
- package/dist/builders.js +5 -4
- package/dist/builders.js.map +1 -1
- package/dist/identity.d.ts +25 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +23 -0
- package/dist/identity.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp/pagination/types.d.ts +2 -0
- package/dist/mcp/pagination/types.d.ts.map +1 -1
- package/dist/mcp/resources/helpers.d.ts +8 -0
- package/dist/mcp/resources/helpers.d.ts.map +1 -1
- package/dist/mcp/resources/helpers.js +8 -0
- package/dist/mcp/resources/helpers.js.map +1 -1
- package/dist/mcp/resources/types.d.ts +1 -0
- package/dist/mcp/resources/types.d.ts.map +1 -1
- package/dist/mcp/server.d.ts +10 -0
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +10 -0
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tools/helpers.d.ts +21 -0
- package/dist/mcp/tools/helpers.d.ts.map +1 -1
- package/dist/mcp/tools/helpers.js +21 -0
- package/dist/mcp/tools/helpers.js.map +1 -1
- package/dist/mcp/tools/types.d.ts +13 -3
- package/dist/mcp/tools/types.d.ts.map +1 -1
- package/dist/mcp/types.d.ts +8 -0
- package/dist/mcp/types.d.ts.map +1 -1
- package/dist/mcp/validators.d.ts +18 -0
- package/dist/mcp/validators.d.ts.map +1 -1
- package/dist/mcp/validators.js +18 -0
- package/dist/mcp/validators.js.map +1 -1
- package/dist/validators.d.ts +6 -7
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +17 -8
- package/dist/validators.js.map +1 -1
- package/docs/API.md +155 -81
- package/llms.txt +75 -39
- package/package.json +21 -22
- package/src/better-auth.ts +10 -0
- package/src/builders.ts +5 -4
- package/src/identity.ts +25 -0
- package/src/index.ts +2 -0
- package/src/mcp/pagination/types.ts +2 -0
- package/src/mcp/resources/helpers.ts +8 -0
- package/src/mcp/resources/types.ts +1 -0
- package/src/mcp/server.ts +10 -0
- package/src/mcp/tools/helpers.ts +21 -0
- package/src/mcp/tools/types.ts +13 -3
- package/src/mcp/types.ts +8 -0
- package/src/mcp/validators.ts +18 -0
- package/src/validators.ts +16 -8
- package/docs/READINESS.md +0 -175
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,71 @@ and this project adheres to
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [0.2.1] - 2026-11-27
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- `./validators`: `validate` and `parse` reject arrays and class instances
|
|
16
|
+
(`Date`, `Map`, ...) for `v.record(...)` validators, as Convex and
|
|
17
|
+
`convex-helpers` 0.1.136 do. They were accepted, and `parse` turned an array
|
|
18
|
+
into an object. The error reads `` Expected `record`, got `Array` ``.
|
|
19
|
+
- `./validators` reads declared object fields as own properties only, as
|
|
20
|
+
`convex-helpers` 0.1.136 does. An inherited value no longer satisfies a
|
|
21
|
+
declared field, and an absent optional field named like an `Object.prototype`
|
|
22
|
+
member (`constructor`, `toString`) is no longer read from the prototype.
|
|
23
|
+
- Shipped docs and source comments no longer name repository-only files (proof
|
|
24
|
+
scripts, tests, the vitest config, maintainer publication notes) without a
|
|
25
|
+
GitHub link.
|
|
26
|
+
|
|
27
|
+
### Added
|
|
28
|
+
|
|
29
|
+
- The npm package now states that its bundled docs (`docs/API.md`, `README.md`,
|
|
30
|
+
`CHANGELOG.md`, `llms.txt`) match the installed version: a "For coding agents"
|
|
31
|
+
note in the README and `llms.txt`, relative `llms.txt` links to the shipped
|
|
32
|
+
files, an Ecosystem link and a Related packages section. `docs/API.md` now
|
|
33
|
+
lists the exported types of each entry.
|
|
34
|
+
- `pnpm check:package` (run by `pnpm lint`) fails when the tarball misses a
|
|
35
|
+
required doc file or ships contributor or internal files; when a relative link
|
|
36
|
+
or `#anchor` in any shipped Markdown doc does not resolve inside it (inline
|
|
37
|
+
links with or without a title, reference definitions and HTML `href`/`src`;
|
|
38
|
+
code is ignored); or when a shipped file names a repository file that is not
|
|
39
|
+
packed. A test keeps `docs/API.md` in step with every entry's exports and
|
|
40
|
+
checks that the docs name no internal type.
|
|
41
|
+
- README for coding agents: when to use, install and quick start in the first
|
|
42
|
+
40 lines, a table of every export, common tasks, every error text with its
|
|
43
|
+
cause and fix, limits, compatibility and links. `llms.txt` carries the same
|
|
44
|
+
summary and links to the reference and the errors table. Every export has a
|
|
45
|
+
TSDoc summary. A test checks the README layout, the export and error tables,
|
|
46
|
+
links, the footer and the `llms.txt` Ecosystem block, and type-checks every
|
|
47
|
+
README example against the built package.
|
|
48
|
+
|
|
49
|
+
### Changed
|
|
50
|
+
|
|
51
|
+
- `package.json` `description` and `keywords` now name what the package does
|
|
52
|
+
and its stack.
|
|
53
|
+
- `./builders` and `./validators` parity baseline is now `convex-helpers`
|
|
54
|
+
0.1.136 (`customFunctions` is unchanged since 0.1.124). Upstream now also
|
|
55
|
+
treats inherited names such as `constructor` as unknown object fields, so that
|
|
56
|
+
is no longer a difference; the `db` option remains refused.
|
|
57
|
+
- The tarball no longer ships
|
|
58
|
+
[`docs/READINESS.md`](https://github.com/vllnt/convex-helpers/blob/main/docs/READINESS.md)
|
|
59
|
+
(maintainer publication notes). `homepage` is now
|
|
60
|
+
https://oss.vllnt.com/packages/convex-helpers.
|
|
61
|
+
- Tooling: every push to `main` touching the package publishes a canary (no
|
|
62
|
+
repository-variable gate), and docs-only changes now trigger it.
|
|
63
|
+
- Tooling: the 7-day minimum release age now sits in
|
|
64
|
+
[`pnpm-workspace.yaml`](https://github.com/vllnt/convex-helpers/blob/main/pnpm-workspace.yaml),
|
|
65
|
+
where pnpm 10 reads it (the `package.json` `pnpm` field ignored it), and
|
|
66
|
+
Renovate follows the same 7-day rule with `@vllnt/*` exempt.
|
|
67
|
+
- Development dependencies: `convex` 1.51.0, `convex-test` 0.0.73, `vitest` and
|
|
68
|
+
`@vitest/coverage-v8` 5.1.1, `@vllnt/typescript` 3.0.0 (with
|
|
69
|
+
`exactOptionalPropertyTypes` left off so the published types do not change),
|
|
70
|
+
pnpm 10.34.9. The peer ranges are unchanged. CI tests with the lockfile
|
|
71
|
+
versions (convex 1.51.0); the test suite and a packed-consumer type-check
|
|
72
|
+
were also run by hand at `convex` 1.45.0, `@modelcontextprotocol/sdk` 1.29.0
|
|
73
|
+
and `zod` 4.3.6.
|
|
74
|
+
- `engines.node` is now `>=20`, matching the `convex` peer's own requirement.
|
|
75
|
+
|
|
11
76
|
## [0.2.0] - 2026-11-26
|
|
12
77
|
|
|
13
78
|
### Fixed
|
|
@@ -28,7 +93,8 @@ and this project adheres to
|
|
|
28
93
|
- Reject MCP query `timeout` values that are negative, `NaN`, infinite or above
|
|
29
94
|
2147483647 ms; they previously fired immediately and failed the call.
|
|
30
95
|
- Patch development Handlebars, Vite/esbuild and deepmerge-ts advisory paths;
|
|
31
|
-
document the remaining minimatch tooling advisory in
|
|
96
|
+
document the remaining minimatch tooling advisory in
|
|
97
|
+
[`docs/READINESS.md`](https://github.com/vllnt/convex-helpers/blob/main/docs/READINESS.md).
|
|
32
98
|
|
|
33
99
|
- Convert MCP `int64` and `bytes` inputs to native Convex values and serialize
|
|
34
100
|
native Convex results with lossless tagged JSON.
|
|
@@ -57,10 +123,11 @@ and this project adheres to
|
|
|
57
123
|
|
|
58
124
|
### Added
|
|
59
125
|
|
|
60
|
-
- `scripts/better-auth-proof.mjs
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
126
|
+
- [`scripts/better-auth-proof.mjs`](https://github.com/vllnt/convex-helpers/blob/main/scripts/better-auth-proof.mjs)
|
|
127
|
+
(repository only): local, cloud-free proof that real Better Auth sessions
|
|
128
|
+
(anonymous plugin and email/password) issue JWTs whose issuer, subject and
|
|
129
|
+
anonymous claims `./identity` accepts on a real Convex backend, and that
|
|
130
|
+
tampered, foreign-issuer and expired tokens are rejected.
|
|
64
131
|
- `./builders` — `customQuery` / `customMutation` / `customAction` / `customCtx`
|
|
65
132
|
with the signatures and runtime behaviour of
|
|
66
133
|
`convex-helpers/server/customFunctions` 0.1.124, held by a convex-test parity
|
package/NOTICE
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Copyright (c) 2026 bntvllnt. Licensed under the MIT License (see LICENSE).
|
|
3
3
|
|
|
4
4
|
The ./builders and ./validators entry points follow the public API, runtime
|
|
5
|
-
behaviour and type signatures of convex-helpers 0.1.
|
|
5
|
+
behaviour and type signatures of convex-helpers 0.1.136
|
|
6
6
|
(https://github.com/get-convex/convex-helpers), Copyright Convex, Inc.,
|
|
7
7
|
licensed under the Apache License, Version 2.0, reproduced below. The
|
|
8
8
|
implementation in src/builders.ts and src/validators.ts was written for this
|
|
9
|
-
package; the CustomBuilder, Customization and
|
|
10
|
-
adapted from convex-helpers.
|
|
9
|
+
package; the CustomBuilder, CustomCtx, Customization, Registration and
|
|
10
|
+
AddFieldsToValidator types are adapted from convex-helpers.
|
|
11
11
|
|
|
12
12
|
--------------------------------------------------------------------------------
|
|
13
13
|
|