@vllnt/convex-helpers 0.2.0 → 0.2.1-canary.2ee4768

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +64 -5
  2. package/NOTICE +3 -3
  3. package/README.md +382 -260
  4. package/dist/better-auth.d.ts +10 -0
  5. package/dist/better-auth.d.ts.map +1 -1
  6. package/dist/better-auth.js +9 -0
  7. package/dist/better-auth.js.map +1 -1
  8. package/dist/builders.d.ts +5 -4
  9. package/dist/builders.d.ts.map +1 -1
  10. package/dist/builders.js +5 -4
  11. package/dist/builders.js.map +1 -1
  12. package/dist/identity.d.ts +25 -0
  13. package/dist/identity.d.ts.map +1 -1
  14. package/dist/identity.js +23 -0
  15. package/dist/identity.js.map +1 -1
  16. package/dist/index.d.ts +2 -0
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +2 -0
  19. package/dist/index.js.map +1 -1
  20. package/dist/mcp/pagination/types.d.ts +2 -0
  21. package/dist/mcp/pagination/types.d.ts.map +1 -1
  22. package/dist/mcp/resources/helpers.d.ts +8 -0
  23. package/dist/mcp/resources/helpers.d.ts.map +1 -1
  24. package/dist/mcp/resources/helpers.js +8 -0
  25. package/dist/mcp/resources/helpers.js.map +1 -1
  26. package/dist/mcp/resources/types.d.ts +1 -0
  27. package/dist/mcp/resources/types.d.ts.map +1 -1
  28. package/dist/mcp/server.d.ts +10 -0
  29. package/dist/mcp/server.d.ts.map +1 -1
  30. package/dist/mcp/server.js +10 -0
  31. package/dist/mcp/server.js.map +1 -1
  32. package/dist/mcp/tools/helpers.d.ts +21 -0
  33. package/dist/mcp/tools/helpers.d.ts.map +1 -1
  34. package/dist/mcp/tools/helpers.js +21 -0
  35. package/dist/mcp/tools/helpers.js.map +1 -1
  36. package/dist/mcp/tools/types.d.ts +13 -3
  37. package/dist/mcp/tools/types.d.ts.map +1 -1
  38. package/dist/mcp/types.d.ts +8 -0
  39. package/dist/mcp/types.d.ts.map +1 -1
  40. package/dist/mcp/validators.d.ts +18 -0
  41. package/dist/mcp/validators.d.ts.map +1 -1
  42. package/dist/mcp/validators.js +18 -0
  43. package/dist/mcp/validators.js.map +1 -1
  44. package/dist/validators.d.ts +6 -7
  45. package/dist/validators.d.ts.map +1 -1
  46. package/dist/validators.js +11 -7
  47. package/dist/validators.js.map +1 -1
  48. package/docs/API.md +155 -81
  49. package/llms.txt +75 -39
  50. package/package.json +20 -18
  51. package/src/better-auth.ts +10 -0
  52. package/src/builders.ts +5 -4
  53. package/src/identity.ts +25 -0
  54. package/src/index.ts +2 -0
  55. package/src/mcp/pagination/types.ts +2 -0
  56. package/src/mcp/resources/helpers.ts +8 -0
  57. package/src/mcp/resources/types.ts +1 -0
  58. package/src/mcp/server.ts +10 -0
  59. package/src/mcp/tools/helpers.ts +21 -0
  60. package/src/mcp/tools/types.ts +13 -3
  61. package/src/mcp/types.ts +8 -0
  62. package/src/mcp/validators.ts +18 -0
  63. package/src/validators.ts +10 -7
  64. package/docs/READINESS.md +0 -175
package/CHANGELOG.md CHANGED
@@ -8,6 +8,63 @@ 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
+ - Shipped docs and source comments no longer name repository-only files (proof
20
+ scripts, tests, the vitest config, maintainer publication notes) without a
21
+ GitHub link.
22
+
23
+ ### Added
24
+
25
+ - The npm package now states that its bundled docs (`docs/API.md`, `README.md`,
26
+ `CHANGELOG.md`, `llms.txt`) match the installed version: a "For coding agents"
27
+ note in the README and `llms.txt`, relative `llms.txt` links to the shipped
28
+ files, an Ecosystem link and a Related packages section. `docs/API.md` now
29
+ lists the exported types of each entry.
30
+ - `pnpm check:package` (run by `pnpm lint`) fails when the tarball misses a
31
+ required doc file or ships contributor or internal files; when a relative link
32
+ or `#anchor` in any shipped Markdown doc does not resolve inside it (inline
33
+ links with or without a title, reference definitions and HTML `href`/`src`;
34
+ code is ignored); or when a shipped file names a repository file that is not
35
+ packed. A test keeps `docs/API.md` in step with every entry's exports and
36
+ checks that the docs name no internal type.
37
+ - README for coding agents: when to use, install and quick start in the first
38
+ 40 lines, a table of every export, common tasks, every error text with its
39
+ cause and fix, limits, compatibility and links. `llms.txt` carries the same
40
+ summary and links to the reference and the errors table. Every export has a
41
+ TSDoc summary. A test checks the README layout, the export and error tables,
42
+ links, the footer and the `llms.txt` Ecosystem block, and type-checks every
43
+ README example against the built package.
44
+
45
+ ### Changed
46
+
47
+ - `package.json` `description` and `keywords` now name what the package does
48
+ and its stack.
49
+ - `./builders` and `./validators` parity baseline is now `convex-helpers`
50
+ 0.1.136 (`customFunctions` is unchanged since 0.1.124). Upstream now also
51
+ treats inherited names such as `constructor` as unknown object fields, so that
52
+ is no longer a difference; the `db` option remains refused.
53
+ - The tarball no longer ships
54
+ [`docs/READINESS.md`](https://github.com/vllnt/convex-helpers/blob/main/docs/READINESS.md)
55
+ (maintainer publication notes). `homepage` is now
56
+ https://oss.vllnt.com/packages/convex-helpers.
57
+ - Tooling: every push to `main` touching the package publishes a canary (no
58
+ repository-variable gate), and docs-only changes now trigger it.
59
+ - Development dependencies: `convex` 1.51.0, `convex-test` 0.0.73, `vitest` and
60
+ `@vitest/coverage-v8` 5.1.1, `@vllnt/typescript` 3.0.0 (with
61
+ `exactOptionalPropertyTypes` left off so the published types do not change),
62
+ pnpm 10.34.9. The peer ranges are unchanged. CI tests with the lockfile
63
+ versions (convex 1.51.0); the test suite and a packed-consumer type-check
64
+ were also run by hand at `convex` 1.45.0, `@modelcontextprotocol/sdk` 1.29.0
65
+ and `zod` 4.3.6.
66
+ - `engines.node` is now `>=20`, matching the `convex` peer's own requirement.
67
+
11
68
  ## [0.2.0] - 2026-11-26
12
69
 
13
70
  ### Fixed
@@ -28,7 +85,8 @@ and this project adheres to
28
85
  - Reject MCP query `timeout` values that are negative, `NaN`, infinite or above
29
86
  2147483647 ms; they previously fired immediately and failed the call.
30
87
  - Patch development Handlebars, Vite/esbuild and deepmerge-ts advisory paths;
31
- document the remaining minimatch tooling advisory in `docs/READINESS.md`.
88
+ document the remaining minimatch tooling advisory in
89
+ [`docs/READINESS.md`](https://github.com/vllnt/convex-helpers/blob/main/docs/READINESS.md).
32
90
 
33
91
  - Convert MCP `int64` and `bytes` inputs to native Convex values and serialize
34
92
  native Convex results with lossless tagged JSON.
@@ -57,10 +115,11 @@ and this project adheres to
57
115
 
58
116
  ### Added
59
117
 
60
- - `scripts/better-auth-proof.mjs`: local, cloud-free proof that real Better Auth
61
- sessions (anonymous plugin and email/password) issue JWTs whose issuer,
62
- subject and anonymous claims `./identity` accepts on a real Convex backend,
63
- and that tampered, foreign-issuer and expired tokens are rejected.
118
+ - [`scripts/better-auth-proof.mjs`](https://github.com/vllnt/convex-helpers/blob/main/scripts/better-auth-proof.mjs)
119
+ (repository only): local, cloud-free proof that real Better Auth sessions
120
+ (anonymous plugin and email/password) issue JWTs whose issuer, subject and
121
+ anonymous claims `./identity` accepts on a real Convex backend, and that
122
+ tampered, foreign-issuer and expired tokens are rejected.
64
123
  - `./builders` — `customQuery` / `customMutation` / `customAction` / `customCtx`
65
124
  with the signatures and runtime behaviour of
66
125
  `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.124
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 AddFieldsToValidator types are
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