@ultimat3/flags 20.2.1 → 22.0.0

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 (2) hide show
  1. package/README.md +9 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -191,3 +191,12 @@ Tier 1. May import tiers 0-0 only — enforced by `bun run scripts/boundaries.ts
191
191
 
192
192
  `X_FLAG_DUPLICATE` · `X_FLAG_EXPIRED` · `X_FLAG_EXPIRY_INVALID` · `X_FLAG_SUBJECT_REQUIRED` ·
193
193
  `X_FLAG_TARGETING_INVALID` · `X_FLAG_UNKNOWN`
194
+
195
+ ### Error classes
196
+
197
+ Every error class `src/index.ts` exports, for `instanceof` inside one process. Across a wire or
198
+ a job boundary the class is gone and the `code` is what survives — match on that.
199
+
200
+ | Class | Code | Declared in |
201
+ |---|---|---|
202
+ | `FlagsError` | any `FlagsErrorCode` — `FLAGS_ERROR_CODES` | `src/errors.ts` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultimat3/flags",
3
- "version": "20.2.1",
3
+ "version": "22.0.0",
4
4
  "description": "Feature flags: permanent switches, and temporary ones that cannot be forgotten",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -31,6 +31,6 @@
31
31
  "test": "bun test"
32
32
  },
33
33
  "dependencies": {
34
- "@ultimat3/core": "20.2.1"
34
+ "@ultimat3/core": "22.0.0"
35
35
  }
36
36
  }