@vllnt/convex-analytics 0.1.1-canary.879bde1 → 0.2.0-canary.7ef4d35
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 +23 -4
- package/README.md +439 -158
- package/dist/client/index.d.ts +34 -12
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +34 -12
- package/dist/client/index.js.map +1 -1
- package/dist/client/types.d.ts +9 -5
- package/dist/client/types.d.ts.map +1 -1
- package/dist/component/_generated/api.d.ts +2 -0
- package/dist/component/_generated/api.d.ts.map +1 -1
- package/dist/component/_generated/api.js.map +1 -1
- package/dist/component/convex.config.d.ts +1 -0
- package/dist/component/convex.config.d.ts.map +1 -1
- package/dist/component/convex.config.js +1 -0
- package/dist/component/convex.config.js.map +1 -1
- package/dist/component/internal_mutations.d.ts +1 -1
- package/dist/component/internal_mutations.d.ts.map +1 -1
- package/dist/component/internal_mutations.js +1 -1
- package/dist/component/internal_mutations.js.map +1 -1
- package/dist/component/queries.d.ts +1 -1
- package/dist/component/queries.js +1 -1
- package/dist/react/index.d.ts +2 -3
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +2 -3
- package/dist/react/index.js.map +1 -1
- package/dist/test.d.ts +3 -1
- package/dist/test.d.ts.map +1 -1
- package/dist/test.js +3 -1
- package/dist/test.js.map +1 -1
- package/dist/web/index.d.ts +3 -2
- package/dist/web/index.d.ts.map +1 -1
- package/dist/web/index.js +2 -1
- package/dist/web/index.js.map +1 -1
- package/docs/api-reference.md +18 -6
- package/docs/architecture.md +16 -14
- package/docs/client-sdk.md +346 -140
- package/docs/multi-product.md +51 -40
- package/docs/quick-start.md +67 -70
- package/docs/react.md +146 -0
- package/docs/schema.md +10 -7
- package/docs/web-preset.md +96 -61
- package/llms.txt +43 -25
- package/package.json +23 -19
- package/src/client/index.ts +34 -12
- package/src/client/types.ts +9 -5
- package/src/component/_generated/api.ts +2 -0
- package/src/component/convex.config.ts +1 -0
- package/src/component/internal_mutations.ts +1 -1
- package/src/component/queries.ts +1 -1
- package/src/react/index.tsx +2 -3
- package/src/test.ts +3 -1
- package/src/web/index.ts +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,14 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [0.
|
|
8
|
+
## [0.2.0] - Unreleased
|
|
9
|
+
|
|
10
|
+
This release changes behaviour for invalid input: calls that `0.1.0` accepted with `NaN` or
|
|
11
|
+
infinite numbers, empty strings or out-of-range limits now throw typed `ConvexError` codes (see
|
|
12
|
+
**Fixed**), and the REST routes answer them with `400`; non-scalar REST `props` return `400`
|
|
13
|
+
instead of failing unhandled. Hosts that passed such input must handle these errors before
|
|
14
|
+
upgrading from `^0.1.0`. The next `convex deploy` also builds the new indexes (see **Changed**
|
|
15
|
+
and **Fixed**) over existing rows, which takes longer on large `rollups` and `subjects` tables.
|
|
9
16
|
|
|
10
17
|
### Added
|
|
11
18
|
|
|
@@ -14,6 +21,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
14
21
|
`llms.txt` links to them with relative paths. `pnpm test:package` (run in CI) installs the
|
|
15
22
|
packed tarball and fails when a required file is missing, an internal file ships, or a
|
|
16
23
|
relative link does not resolve.
|
|
24
|
+
- Export `./convex.config.js` (same target as `./convex.config`), which the Convex Components
|
|
25
|
+
Directory preflight requires alongside `./_generated/component.js`.
|
|
26
|
+
- Rewritten README for coding agents: when to use, a complete quick start, a table of every
|
|
27
|
+
export of every entry point, common tasks, every error code and message with its fix, limits
|
|
28
|
+
and caps, and compatibility. New `docs/react.md`; every export has a TSDoc summary and a
|
|
29
|
+
reference heading. `pnpm test:package` now also checks this documentation contract and
|
|
30
|
+
type-checks every README and docs example against the packed package and `convex` 1.45.0.
|
|
17
31
|
|
|
18
32
|
### Fixed
|
|
19
33
|
|
|
@@ -21,7 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
21
35
|
`INVALID_TIMESTAMP`, `INVALID_SAMPLE_RATE`, `INVALID_PROP_VALUE`, `INVALID_PROP_KEY`,
|
|
22
36
|
`INVALID_COUNT`, `INVALID_CURSOR`, `INVALID_BUCKETS`, `INVALID_CONFIG`): `NaN` or infinite
|
|
23
37
|
`ts`, range bounds, `sampleRate` and number props; empty `scope`, `name`, `subjectRef`,
|
|
24
|
-
`sessionRef`, `dedupeKey`, dimensions and config keys; non-scalar props; non-positive or
|
|
38
|
+
`sessionRef`, `dedupeKey`, dimensions and config keys; non-scalar REST `props` values; non-positive or
|
|
25
39
|
non-integer `limit`, `periods` and `numItems`; and non-numeric `list` cursors. A negative
|
|
26
40
|
`top` limit used to return all but the last rows; non-finite timestamps used to create `NaN`
|
|
27
41
|
rollup buckets.
|
|
@@ -39,8 +53,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
39
53
|
type-checks under `moduleResolution: nodenext`.
|
|
40
54
|
- `convex` is declared only as a (now required) peer dependency, no longer also as a runtime
|
|
41
55
|
dependency, so a host on `convex` 1.45 to 1.47 no longer gets a second, nested `convex` copy.
|
|
42
|
-
-
|
|
43
|
-
|
|
56
|
+
- The package build's turbo cache now covers the docs it copies from the repo root, so a build
|
|
57
|
+
can no longer ship stale or missing `README.md`, `LICENSE`, `llms.txt` or `docs/` after a root
|
|
58
|
+
doc change or a cache hit. `pnpm lint` checks this with a turbo dry run.
|
|
44
59
|
|
|
45
60
|
### Changed
|
|
46
61
|
|
|
@@ -66,6 +81,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
66
81
|
- Release flow: canary publishes on every qualifying push to `main` without a repository-variable
|
|
67
82
|
gate, and a change to the shipped docs, `llms.txt`, README, LICENSE or changelog alone now
|
|
68
83
|
triggers it.
|
|
84
|
+
- Dependencies since `0.1.0`: `@convex-dev/rate-limiter` `^0.3.2` → `^0.4.3` (its component adds a
|
|
85
|
+
`pendingUpdates` table, created on deploy), `@convex-dev/aggregate` `^0.3.0` → `^0.3.4` and
|
|
86
|
+
`@convex-dev/sharded-counter` `^0.2.1` → `^0.2.4`. The `convex` peer range stays `^1.45.0`;
|
|
87
|
+
tests pass on 1.45.0 and 1.51.0.
|
|
69
88
|
|
|
70
89
|
## [0.1.0] - 2026-09-01
|
|
71
90
|
|