@vllnt/convex-flags 0.2.1-canary.0d8cfda → 0.2.1-canary.17ffbda
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 +4 -3
- package/README.md +3 -1
- package/docs/API.md +3 -1
- package/package.json +1 -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.2.1] - 2026-
|
|
7
|
+
## [0.2.1] - 2026-12-02
|
|
8
8
|
|
|
9
9
|
### Fixed
|
|
10
10
|
|
|
@@ -15,8 +15,9 @@ All notable changes to this project are documented here. The format is based on
|
|
|
15
15
|
`toString`, now treats it as missing when the context does not set it, as documented. Before, it
|
|
16
16
|
matched `neq` / `nin` for everyone and put every subject in the same rollout bucket.
|
|
17
17
|
- Rollouts whose whole-number weights sum above 42,949,672 (`2^32 / 100`) now bucket in
|
|
18
|
-
proportion. Before, they were skewed by 1% or more, and above `2^32` served only the
|
|
19
|
-
These rollouts are re-bucketed once; smaller sums keep their
|
|
18
|
+
proportion. Before, they were skewed by 1% or more, and above `2^32` served only the splits that
|
|
19
|
+
cover the first `2^32` of the sum. These rollouts are re-bucketed once; smaller sums keep their
|
|
20
|
+
assignments. To keep a subject's value, pin it with `setOverride` before upgrading.
|
|
20
21
|
- `remove` now works for a flag with any number of overrides, of any size: it deletes the flag and
|
|
21
22
|
the first 4,000 overrides (or about 4 MiB of them, if that comes first) at once and the rest in
|
|
22
23
|
scheduled follow-up mutations. Before, a flag with more than about 16,000 overrides, or with
|
package/README.md
CHANGED
|
@@ -456,7 +456,9 @@ client must see it. Arguments of the wrong type (for example an object as
|
|
|
456
456
|
is larger, `hash % 1,000,000` is scaled into `[0, sum)`. Rollouts whose
|
|
457
457
|
whole-number weights sum above 42,949,672 bucketed by `hash % sum` in 0.2.0 and
|
|
458
458
|
earlier, which skewed them by 1% or more and, above `2^32`, served only the
|
|
459
|
-
first
|
|
459
|
+
splits that cover the first `2^32` of the sum; they are re-bucketed once
|
|
460
|
+
(pin a subject with `setOverride` before upgrading to keep its value).
|
|
461
|
+
Smaller sums keep their assignments.
|
|
460
462
|
- Upgrading from 0.1.0: rollouts with a non-whole-number weight are re-bucketed
|
|
461
463
|
once, so some of their subjects change value. In 0.1.0 weights such as `0.5` /
|
|
462
464
|
`0.5` sent every subject to the first split. Rollouts whose weights are all
|
package/docs/API.md
CHANGED
|
@@ -296,7 +296,9 @@ order, so reordering them moves subjects.
|
|
|
296
296
|
Upgrading from 0.2.0: rollouts whose whole-number weights sum above 42,949,672
|
|
297
297
|
are re-bucketed once. Before, they bucketed by the hash modulo the sum, which
|
|
298
298
|
skewed them by 1% or more (`3e9` / `1e9` served about 77% / 23%) and, above
|
|
299
|
-
`2^32`, served only the
|
|
299
|
+
`2^32`, served only the splits that cover the first `2^32` of the sum. Smaller
|
|
300
|
+
sums keep their assignments. To keep a subject's value, pin it with
|
|
301
|
+
`setOverride` before upgrading.
|
|
300
302
|
|
|
301
303
|
Upgrading from 0.1.0: rollouts whose weights are all whole numbers, and rows
|
|
302
304
|
stored with an `Infinity` weight before weights were validated, bucket exactly
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vllnt/convex-flags",
|
|
3
|
-
"version": "0.2.1-canary.
|
|
3
|
+
"version": "0.2.1-canary.17ffbda",
|
|
4
4
|
"description": "Convex component for feature flags in TypeScript: kill switches, variants, attribute targeting, percentage rollouts, per-subject overrides and React hooks.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|