@vllnt/convex-flags 0.2.1-canary.e388965 → 0.2.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 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
- ## [Unreleased]
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 first split.
19
- These rollouts are re-bucketed once; smaller sums keep their assignments.
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
@@ -27,6 +28,14 @@ All notable changes to this project are documented here. The format is based on
27
28
  flag exists, for example by a data import that assigns new creation times or a hand-inserted
28
29
  row, is ignored by `evaluate` and `all`, and that `setOverride` replaces it.
29
30
 
31
+ ### Internal
32
+
33
+ - Privacy check: same result on macOS as on Linux (unsupported pattern forms are refused instead of
34
+ silently missing); scripts run on macOS bash 3.2; CI fails red on an invalid private-pattern
35
+ secret line. No effect on the published package.
36
+ - The dev-only minimatch override moves to 11.0.9 (fixes GHSA-cf2h-pxjq-68xw in dev tooling; the
37
+ published package is unchanged).
38
+
30
39
  ## [0.2.0] - 2026-11-28
31
40
 
32
41
  ### Added
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 split; they are re-bucketed once. Smaller sums keep their assignments.
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 first split. Smaller sums keep their assignments.
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.e388965",
3
+ "version": "0.2.1",
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",
@@ -89,7 +89,7 @@
89
89
  "esbuild"
90
90
  ],
91
91
  "overrides": {
92
- "minimatch@>=7.0.0 <11.0.1": "11.0.5",
92
+ "minimatch@>=7.0.0 <11.0.1": "11.0.9",
93
93
  "deepmerge-ts@<8.0.0": "8.0.0",
94
94
  "handlebars@<4.7.10": "4.7.10"
95
95
  }