@vllnt/convex-quota 0.1.1-canary.ec0e593 → 0.1.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/CHANGELOG.md +8 -11
- package/README.md +2 -0
- package/package.json +6 -7
package/CHANGELOG.md
CHANGED
|
@@ -4,9 +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
|
|
5
5
|
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
-
## [
|
|
8
|
-
|
|
9
|
-
## [0.1.1] - 2026-11-28
|
|
7
|
+
## [0.1.1] - 2026-11-29
|
|
10
8
|
|
|
11
9
|
### Added
|
|
12
10
|
|
|
@@ -16,28 +14,27 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
16
14
|
version. `llms.txt` links shipped files with relative paths and adds an
|
|
17
15
|
Ecosystem link; the README adds Related packages. `docs/API.md` lists the
|
|
18
16
|
package entry points and exported types.
|
|
19
|
-
- `pnpm check:pack` fails when a required file is missing from the tarball or a
|
|
20
|
-
relative `llms.txt` link does not resolve inside it.
|
|
21
17
|
- The README is rewritten for coding agents: install and a quick start first, an
|
|
22
18
|
API table linked to `docs/API.md`, common tasks, an errors-and-fixes table for
|
|
23
19
|
every `ConvexError` code, limits and gotchas, and compatibility. `docs/API.md`
|
|
24
20
|
documents every public export with its signature, defaults, result shape and
|
|
25
21
|
error codes; `llms.txt` carries the same summary and ends with an Ecosystem
|
|
26
|
-
block.
|
|
22
|
+
block. The README shows a listing image.
|
|
27
23
|
- Every public export and `Quota` method has a TSDoc summary.
|
|
28
|
-
- `pnpm lint` runs `pnpm check:docs`, and `pnpm check:pack` type-checks the
|
|
29
|
-
TypeScript examples in the README and `docs/API.md` against the packed
|
|
30
|
-
package.
|
|
31
24
|
|
|
32
25
|
### Changed
|
|
33
26
|
|
|
34
27
|
- `homepage` points to https://oss.vllnt.com/packages/convex-quota.
|
|
35
28
|
- The `package.json` description and keywords name the problem and the stack
|
|
36
29
|
(Convex, TypeScript, quota, allowance, reset windows).
|
|
37
|
-
-
|
|
38
|
-
`canary`, with no repository-variable gate.
|
|
30
|
+
- A `canary` build is published to npm on every push to `main`.
|
|
39
31
|
- `refund` skips the write when the allowance's `used` would not change (already
|
|
40
32
|
zero), so a no-op refund no longer re-runs `remaining` subscribers.
|
|
33
|
+
- Internal: dev dependencies upgraded; CI sets up pnpm through Corepack with
|
|
34
|
+
pinned actions and no update bot; `pnpm lint` checks the docs; `pnpm check:pack`
|
|
35
|
+
checks required tarball files, `llms.txt` links and every TypeScript doc
|
|
36
|
+
example against the packed package; tests cover every public function's
|
|
37
|
+
documented behaviour and failure path.
|
|
41
38
|
|
|
42
39
|
## [0.1.0] - 2026-11-23
|
|
43
40
|
|
package/README.md
CHANGED
|
@@ -89,6 +89,8 @@ export const playsLeft = query({
|
|
|
89
89
|
});
|
|
90
90
|
```
|
|
91
91
|
|
|
92
|
+

|
|
93
|
+
|
|
92
94
|
Run `npx convex dev` after mounting so `components.quota` is generated. The host
|
|
93
95
|
authenticates, derives the `subjectRef` (here the caller's `tokenIdentifier`)
|
|
94
96
|
and owns the limit and the window; the component never sees the end user's
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vllnt/convex-quota",
|
|
3
|
-
"version": "0.1.1
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "TypeScript Convex component for quotas and allowances: daily, weekly, monthly, rolling or epoch reset windows per user or key, with a readable remaining count.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
"CHANGELOG.md",
|
|
13
13
|
"llms.txt",
|
|
14
14
|
"!src/**/*.test.*",
|
|
15
|
-
"!src/**/*.spec.*"
|
|
16
|
-
],
|
|
15
|
+
"!src/**/*.spec.*"],
|
|
17
16
|
"exports": {
|
|
18
17
|
"./package.json": "./package.json",
|
|
19
18
|
".": {
|
|
@@ -63,12 +62,12 @@
|
|
|
63
62
|
"@edge-runtime/vm": "^5.0.0",
|
|
64
63
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
65
64
|
"@vitest/coverage-v8": "^5.1.1",
|
|
66
|
-
"@vllnt/convex-idempotency": "^0.
|
|
67
|
-
"@vllnt/eslint-config": "2.
|
|
68
|
-
"@vllnt/typescript": "3.0.
|
|
65
|
+
"@vllnt/convex-idempotency": "^0.2.0",
|
|
66
|
+
"@vllnt/eslint-config": "2.2.0",
|
|
67
|
+
"@vllnt/typescript": "3.0.1",
|
|
69
68
|
"convex": "^1.51.0",
|
|
70
69
|
"convex-test": "^0.0.73",
|
|
71
|
-
"eslint": "^
|
|
70
|
+
"eslint": "^10.15.0",
|
|
72
71
|
"prettier": "^3.10.1",
|
|
73
72
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
74
73
|
"vite": "^8.3.8",
|