Repository navigation
Comparing changes
Open a pull request
base repository: reflagcom/javascript
base: maintenance/node-sdk-v1
head repository: reflagcom/javascript
compare: main
- 12 commits
- 155 files changed
- 3 contributors
Commits on Nov 6, 2026
-
fix(deps): remediate Oneleet dependency-scanning findings (#795)
## Summary Remediate dependency-scanning findings across the root workspace and both standalone example lockfiles. This is **not** a claim that Oneleet has already rescanned or closed its findings: Oneleet tools were unavailable in this session. GitHub and live Yarn registry audits provided the reproducible advisory baseline instead; their severity/counts differ from the approximately 161 low/informational Oneleet findings in the request. - Upgrade direct tooling first: Lerna 8.1.3 → 10.1.1 / Nx 23.3.1, Playwright 1.49.1 → 1.64.1, Vitest/coverage 4.1.12, MSW 2.15.0, declaration tooling 4.5.4, Vue 3.5.45, and OpenAPI Generator CLI 2.42.0. Node stays on major 24; `.nvmrc` moves to 24.22.0 to satisfy Lerna's minimum 24.15.0. - Patch the four Next.js demos within their existing majors: 15.5.24 → 15.5.29 and 16.3.3 → 16.4.5. - Refresh vulnerable transitive packages within their existing parent ranges. The SDK runtime manifest ranges remain unchanged, including the AWS client; its lockfile entry and XML/Smithy transitives were refreshed within the existing `^3.888.0` range. - Refresh both standalone examples. Move Cloudflare from the deprecated Vitest pool to the maintained `@cloudflare/vitest-plugin` 1.6.0, Vitest 4.1.12, and Wrangler 4.158.0; this removes `devalue` and Undici 5. Upgrade the OpenFeature Node example to Express 4.22.3 / tsx 4.23.15. - Add offline smoke tests and build/test scripts for the standalone examples; run their immutable installs/builds/tests in CI. Include the workspace Express example in Lerna build/test, guard an absent config payload there, and test it. Fix its existing type-check issue without touching SDK code. Remove an invalid pre-existing `customConditions` setting from the standalone OpenFeature example. - Make two feedback-widget positioning assertions wait for the existing entrance animation; the faster upgraded browser exposed an attachment-versus-animation race. Assertions/position requirements are unchanged. ### Published-package impact **No published SDK runtime dependency declarations or public APIs change.** The only published runtime dependency changes are in **`@reflag/cli`**: Express `^4.21.2` → `^4.22.3` and Zod `^3.24.2` → `^4.6.7`. Zod has no patched 3.x version for GHSA-mrhx-c7xc-m3w5. Its internal `ZodEffects` type assertion is migrated to `ZodType`; new regression tests cover boolean coercion, query defaults, strict object fields, and pagination bounds. A CLI-only patch changeset is included. Nothing is published or merged by this PR. ### Why resolutions are needed Only descriptors held back by parent constraints are overridden; compatible ranges are refreshed in the lockfiles instead: | Descriptor | Resolution | Reason | | --- | --- | --- | | `minimatch@npm:9.0.1` | `9.0.9` | editorconfig pins 9.0.1; fixes the three older ReDoS advisories without a transitive major jump. The newer `<11.0.1` advisory remains listed below. | | `postcss@npm:8.4.31` | `8.5.32` | Next 15 pins the old patch. | | `postcss@npm:~8.4.32` | `8.5.32` | Expo 54 restricts this transitive to the vulnerable 8.4 line. | | `tinypool@npm:2.0.0` | `2.2.0` | oxfmt 0.27 pins the vulnerable patch. Avoids an unrelated formatter migration/reformat. | | `undici@npm:7.29.0` | `7.30.2` | Nx 23 pins this vulnerable patch. | ## Verification Passed locally on Node 24.22.0 (with a temporary Java 21 runtime for the existing OpenAPI generation step): - Root `yarn install --immutable`. - `yarn build`: all **15** build targets, including all SDKs, four Next.js apps, and the Express example. - `yarn docs`. - `yarn test:ci`: all **10** test targets, **958** unit/smoke tests and **48** browser E2E tests across Chromium, Firefox, and WebKit. - `yarn lint:ci`, `yarn fmt`, and `git diff --check`. - Both standalone examples: `yarn install --immutable && yarn build && yarn test:ci`; Cloudflare build uses **`wrangler deploy --dry-run`**, not a deployment. Cloudflare has 2 Worker-runtime tests; OpenFeature has 4 offline HTTP smoke tests. - Bare React Native and Expo: TypeScript checks and **iOS + Android JS production bundles**. Bare RN's inherited preset references an uninstalled Jest type package, so its existing no-test app was checked with `tsc --noEmit --types react`; Expo was checked with root `tsc --project .../expo/tsconfig.json --noEmit`. Native binary builds/emulator runs were not performed (Xcode/Android SDK not exercised). Registry audits intentionally still return exit 1 for the root and Cloudflare due to the explicit residual findings below. The OpenFeature Node example audit exits 0. ## Audit result Counts deduplicate version-range records by `(lockfile, GHSA)`, not Oneleet finding IDs. Deprecation-only npm notices are excluded from these security counts. | Lockfile | Before | After | Resolved | | --- | ---: | ---: | ---: | | Root | 173 | 8 | 165 | | Cloudflare | 63 | 2 | 61 | | OpenFeature Node | 33 | 0 | 33 | | **Total** | **269** | **10** | **259** | The ten remaining lockfile/advisory occurrences represent **eight distinct GHSAs** (glob and minimatch also occur in Cloudflare). No new distinct lockfile/advisory pair is introduced relative to the recorded baseline. ## Remaining findings — explicit risk review required These are **not accepted, dismissed, or closed** by this PR. All observed parents below belong to demo/native/build tooling, not published SDK runtime dependency declarations. Exploitability has not been independently proven or ruled out; do not treat “tooling” as automatic acceptance. Upstream/registry severities are shown, not Oneleet's reclassified severities. | Package / versions | Lockfile | Advisory / registry severity | Why deferred / required follow-up | | --- | --- | --- | --- | | `deepmerge` 4.3.1 | Root | [GHSA-gcqx-w48m-w2h4](GHSA-gcqx-w48m-w2h4), low | Current latest is 4.3.1; **no published fix**. Pulled by RN CLI / related dev tools. Accept temporarily or replace the parents once an upstream fix/replacement exists. | | `basic-ftp` 5.3.1 | Root | [GHSA-c475-qrg2-pj4r](GHSA-c475-qrg2-pj4r), high | `get-uri` 8.0.1 still requires `^5.3.1`; fix is 6.2.1. Needs a parent update or separately validated transitive major override; normal builds do not exercise its FTP parser. | | `fast-xml-parser` 4.5.7 | Root | [GHSA-gh4j-gqv2-49f6](GHSA-gh4j-gqv2-49f6), moderate | RN CLI 20's Android/Apple config packages require `^4.4.1`; fix is 5.7.0. No patched 4.x in the registry; do not silently force a different XML parser major into native config tooling. AWS's 5.x runtime path is patched by the in-range lock refresh. | | `glob` 10.5.0 / 13.0.6 | Root + Cloudflare (10.5.0) | [GHSA-3g3m-2fjr-6pw4](GHSA-3g3m-2fjr-6pw4), moderate | Fix is 14.0.2. Root parents include OpenAPI Generator's exact 13.0.6, Expo/npm tooling `^13`, and coverage/formatting `^10`; Cloudflare's `make-fetch-happen` → `cacache` 19 chain requires `^10`. Needs parent upgrades or a separately validated major migration. | | `image-size` 1.2.1 | Root | [GHSA-5p2g-fcmc-qvqq](GHSA-5p2g-fcmc-qvqq), [GHSA-w3rx-r6r6-pgpr](GHSA-w3rx-r6r6-pgpr), high | Metro 0.83.3 holds 1.x; fixes are 2.0.3. The 2.x API/import and file-loading changes require a Metro/RN/Expo upgrade, not a blanket resolution. | | `minimatch` 9.0.9 / 10.2.3 / 10.2.5 / 10.2.6 | Root + Cloudflare (9.0.8) | [GHSA-g3hv-75wg-m249](GHSA-g3hv-75wg-m249), moderate | Fix is 11.0.1. Nx/API Extractor/Lerna/Expo and glob parents require or pin 9/10; no patched same-major release. Earlier 9.x ReDoS findings are fixed. Requires a coordinated tooling/parent migration or validation of major overrides. | | `uuid` 7.0.3 | Root | [GHSA-w5hq-g745-h8pq](GHSA-w5hq-g745-h8pq), moderate | `xcode` 3.0.1 holds `^7.0.3`; fix is 11.1.1. Preserve native project-generation tooling until its parent can be upgraded/tested with the UUID major migration. | Five deprecation-only notices also remain in the root graph (`glob` 7, `inflight`, `node-domexception`, `rimraf` 3, `whatwg-encoding`). They are informational maintenance debt, not additional GHSA findings. Removing them entails broader RN/Expo/JSDOM/tooling migrations. ## Resolved advisories, by lockfile and changed package The exhaustive inventory below is generated by subtracting final audit GHSA sets from the baseline in each lockfile. A package may still be present for a separate residual advisory above. “Removed” means the vulnerable package is no longer reachable in that lockfile, not that an advisory was dismissed. <details> <summary>Root: yarn.lock</summary> | Changed package | Before → after lock versions | Resolved advisories | | --- | --- | --- | | `@nestjs/core` | 11.1.14 → 11.2.3 | [GHSA-36xv-jgw5-4q75](GHSA-36xv-jgw5-4q75) | | `@octokit/plugin-paginate-rest` | 6.1.2 → 14.0.0 | [GHSA-h5c3-5r3r-rr8q](GHSA-h5c3-5r3r-rr8q) | | `@octokit/request` | 6.2.8 → 10.0.16 | [GHSA-rmvr-2pp2-xj38](GHSA-rmvr-2pp2-xj38) | | `@octokit/request-error` | 3.0.3 → 7.1.2 | [GHSA-xx4v-prfh-6cgc](GHSA-xx4v-prfh-6cgc) | | `@sigstore/core` | 1.1.0 → 4.0.1 | [GHSA-jfc7-64v2-mr8c](GHSA-jfc7-64v2-mr8c) | | `@vitest/mocker` | 4.1.11 → 4.1.12 | [GHSA-qxg6-89mg-rqv8](GHSA-qxg6-89mg-rqv8), [GHSA-xp26-3454-mjgp](GHSA-xp26-3454-mjgp) | | `@vue/server-renderer` | 3.5.16 → 3.5.45 | [GHSA-g2v6-rqmx-r4w6](GHSA-g2v6-rqmx-r4w6) | | `ajv` | 6.12.6, 8.12.0, 8.13.0, 8.20.0 → 8.18.0, 8.20.0 | [GHSA-2g4f-4pwh-qvx6](GHSA-2g4f-4pwh-qvx6) | | `axios` | 1.13.5, 1.20.0 → 1.21.0 | [GHSA-35jp-ww65-95wh](GHSA-35jp-ww65-95wh), [GHSA-3g43-6gmg-66jw](GHSA-3g43-6gmg-66jw), [GHSA-3p68-rc4w-qgx5](GHSA-3p68-rc4w-qgx5), [GHSA-3pq3-5fj3-cg6v](GHSA-3pq3-5fj3-cg6v), [GHSA-3w6x-2g7m-8v23](GHSA-3w6x-2g7m-8v23), [GHSA-42h9-826w-cgv3](GHSA-42h9-826w-cgv3), [GHSA-445q-vr5w-6q77](GHSA-445q-vr5w-6q77), [GHSA-4hqw-qxg8-jxx2](GHSA-4hqw-qxg8-jxx2), [GHSA-542g-h47m-68v8](GHSA-542g-h47m-68v8), [GHSA-5c9x-8gcm-mpgx](GHSA-5c9x-8gcm-mpgx), [GHSA-62hf-57xw-28j9](GHSA-62hf-57xw-28j9), [GHSA-6chq-wfr3-2hj9](GHSA-6chq-wfr3-2hj9), [GHSA-777c-7fjr-54vf](GHSA-777c-7fjr-54vf), [GHSA-7q8q-rj6j-mhjq](GHSA-7q8q-rj6j-mhjq), [GHSA-898c-q2cr-xwhg](GHSA-898c-q2cr-xwhg), [GHSA-9fr6-4gfg-395g](GHSA-9fr6-4gfg-395g), [GHSA-fvcv-3m26-pcqx](GHSA-fvcv-3m26-pcqx), [GHSA-hfxv-24rg-xrqf](GHSA-hfxv-24rg-xrqf), [GHSA-j5f8-grm9-p9fc](GHSA-j5f8-grm9-p9fc), [GHSA-j8rh-479h-cp32](GHSA-j8rh-479h-cp32), [GHSA-jqh4-m9w3-8hp9](GHSA-jqh4-m9w3-8hp9), [GHSA-m7pr-hjqh-92cm](GHSA-m7pr-hjqh-92cm), [GHSA-mmx7-hfxf-jppx](GHSA-mmx7-hfxf-jppx), [GHSA-mwf2-3pr3-8698](GHSA-mwf2-3pr3-8698), [GHSA-p92q-9vqr-4j8v](GHSA-p92q-9vqr-4j8v), [GHSA-pf86-5x62-jrwf](GHSA-pf86-5x62-jrwf), [GHSA-pmv8-rq9r-6j72](GHSA-pmv8-rq9r-6j72), [GHSA-pmwg-cvhr-8vh7](GHSA-pmwg-cvhr-8vh7), [GHSA-q8qp-cvcw-x6jj](GHSA-q8qp-cvcw-x6jj), [GHSA-vf2m-468p-8v99](GHSA-vf2m-468p-8v99), [GHSA-vh66-26gq-q6x8](GHSA-vh66-26gq-q6x8), [GHSA-w9j2-pvgh-6h63](GHSA-w9j2-pvgh-6h63), [GHSA-xhjh-pmcv-23jw](GHSA-xhjh-pmcv-23jw), [GHSA-xx6v-rp6x-q39c](GHSA-xx6v-rp6x-q39c) | | `body-parser` | 1.20.3, 1.20.4 → 1.20.9 | [GHSA-27r3-jxmh-p828](GHSA-27r3-jxmh-p828), [GHSA-v422-hmwv-36x6](GHSA-v422-hmwv-36x6) | | `brace-expansion` | 1.1.21, 2.0.1, 5.0.4 → 1.1.21, 2.1.7, 5.0.12 | [GHSA-3jxr-9vmj-r5cp](GHSA-3jxr-9vmj-r5cp), [GHSA-6j4f-fj2g-mc7p](GHSA-6j4f-fj2g-mc7p), [GHSA-f886-m6hf-6m8v](GHSA-f886-m6hf-6m8v), [GHSA-jxxr-4gwj-5jf2](GHSA-jxxr-4gwj-5jf2), [GHSA-mh99-v99m-4gvg](GHSA-mh99-v99m-4gvg), [GHSA-q2hr-2g5m-vwhr](GHSA-q2hr-2g5m-vwhr), [GHSA-qhr7-859c-m2p7](GHSA-qhr7-859c-m2p7), [GHSA-rgw5-rvv9-x895](GHSA-rgw5-rvv9-x895), [GHSA-v6h2-p8h4-qcjw](GHSA-v6h2-p8h4-qcjw) | | `cookie` | 0.5.0, 0.7.1, 0.7.2, 1.1.1 → 0.7.2, 1.1.1 | [GHSA-pxg6-pf52-xh8x](GHSA-pxg6-pf52-xh8x) | | `esbuild` | 0.25.12, 0.27.3, 0.27.4 → 0.25.12, 0.28.2 | [GHSA-g7r4-m6w7-qqqr](GHSA-g7r4-m6w7-qqqr) | | `fast-xml-parser` | 4.5.4, 5.4.1 → 4.5.7 | [GHSA-8gc5-j5rx-235r](GHSA-8gc5-j5rx-235r), [GHSA-jp2q-39xq-3w4g](GHSA-jp2q-39xq-3w4g) | | `file-type` | 21.3.0 → 21.3.4 | [GHSA-5v7r-6r5c-r473](GHSA-5v7r-6r5c-r473), [GHSA-j47w-4g3g-c36v](GHSA-j47w-4g3g-c36v) | | `follow-redirects` | 1.16.1 → 1.16.2 | [GHSA-mrwp-f3q8-3g9p](GHSA-mrwp-f3q8-3g9p) | | `glob` | 10.3.14, 10.4.2, 10.4.5, 13.0.1, 13.0.6, 7.2.0, 7.2.3, 8.1.0, 9.3.5 → 10.5.0, 13.0.6, 7.2.3 | [GHSA-5j98-mcp5-4vw2](GHSA-5j98-mcp5-4vw2) | | `ip-address` | 10.1.0, 9.0.5 → 10.7.6 | [GHSA-h3mg-xc3c-68pw](GHSA-h3mg-xc3c-68pw), [GHSA-j6r3-76f7-8jcv](GHSA-j6r3-76f7-8jcv), [GHSA-mwp4-54f8-5fhr](GHSA-mwp4-54f8-5fhr), [GHSA-rpw4-54j3-4h4q](GHSA-rpw4-54j3-4h4q), [GHSA-rxp7-6hxx-x8q5](GHSA-rxp7-6hxx-x8q5), [GHSA-v2v4-37r5-5v8g](GHSA-v2v4-37r5-5v8g) | | `js-yaml` | 3.15.2, 4.1.0, 4.1.1 → 3.15.2, 4.3.2, 5.4.2 | [GHSA-2883-xcg3-v3hh](GHSA-2883-xcg3-v3hh), [GHSA-52cp-r559-cp3m](GHSA-52cp-r559-cp3m), [GHSA-5p4m-2wfm-xmqj](GHSA-5p4m-2wfm-xmqj), [GHSA-h67p-54hq-rp68](GHSA-h67p-54hq-rp68), [GHSA-mh29-5h37-fv8m](GHSA-mh29-5h37-fv8m) | | `lodash` | 4.17.23 → 4.18.1 | [GHSA-f23m-r3pf-42rh](GHSA-f23m-r3pf-42rh), [GHSA-r5fr-rjxr-66jc](GHSA-r5fr-rjxr-66jc) | | `minimatch` | 10.1.2, 10.2.4, 3.0.5, 3.0.8, 3.1.2, 5.1.6, 8.0.4, 9.0.1, 9.0.3, 9.0.4, 9.0.5 → 10.2.3, 10.2.5, 10.2.6, 3.1.5, 9.0.9 | [GHSA-23c5-xmqv-rm74](GHSA-23c5-xmqv-rm74), [GHSA-3ppc-4f35-3m26](GHSA-3ppc-4f35-3m26), [GHSA-7r86-cg39-jmmj](GHSA-7r86-cg39-jmmj) | | `next` | 15.5.24, 16.3.3 → 15.5.29, 16.4.5 | [GHSA-2464-fhr4-w9xw](GHSA-2464-fhr4-w9xw), [GHSA-39w2-rjm5-chcv](GHSA-39w2-rjm5-chcv), [GHSA-3w37-wq28-93x7](GHSA-3w37-wq28-93x7), [GHSA-4jqv-mc3x-m676](GHSA-4jqv-mc3x-m676), [GHSA-673q-mjm6-r5xr](GHSA-673q-mjm6-r5xr), [GHSA-cjq9-62q9-8jv4](GHSA-cjq9-62q9-8jv4), [GHSA-f87g-xv8r-7p7x](GHSA-f87g-xv8r-7p7x), [GHSA-h694-7cp9-m8p3](GHSA-h694-7cp9-m8p3), [GHSA-mcj8-r9mp-w47p](GHSA-mcj8-r9mp-w47p), [GHSA-p3m5-59mp-jv5r](GHSA-p3m5-59mp-jv5r), [GHSA-vcvr-r3jv-pc5j](GHSA-vcvr-r3jv-pc5j) | | `nx` | 19.8.14 → 23.3.1 | [GHSA-g2r8-wvmj-jf5w](GHSA-g2r8-wvmj-jf5w), [GHSA-hrvq-x7jp-36xv](GHSA-hrvq-x7jp-36xv), [GHSA-w2vw-w76x-qr89](GHSA-w2vw-w76x-qr89), [GHSA-w3vv-58gj-gw77](GHSA-w3vv-58gj-gw77) | | `pacote` | 17.0.7 → 22.0.0, 22.0.1 | [GHSA-w4pp-8pjf-rmxw](GHSA-w4pp-8pjf-rmxw) | | `path-to-regexp` | 0.1.12, 0.1.13, 6.3.0, 8.3.0 → 0.1.13, 6.3.0, 8.4.2 | [GHSA-27v5-c462-wpq7](GHSA-27v5-c462-wpq7), [GHSA-37ch-88jc-xwx2](GHSA-37ch-88jc-xwx2), [GHSA-j3q9-mxjg-w52f](GHSA-j3q9-mxjg-w52f) | | `picomatch` | 2.3.2, 3.0.1, 4.0.3, 4.0.5, 4.0.7 → 2.3.2, 3.0.2, 4.0.7 | [GHSA-3v7f-55p6-f55p](GHSA-3v7f-55p6-f55p), [GHSA-c2c7-rcm5-vvqj](GHSA-c2c7-rcm5-vvqj) | | `playwright` | 1.49.1 → 1.64.1 | [GHSA-7mvr-c777-76hp](GHSA-7mvr-c777-76hp) | | `postcss` | 8.4.31, 8.4.49, 8.5.23, 8.5.31, 8.5.32 → 8.5.23, 8.5.32 | [GHSA-6g55-p6wh-862q](GHSA-6g55-p6wh-862q), [GHSA-fxqj-rqcc-2cmp](GHSA-fxqj-rqcc-2cmp), [GHSA-qx2v-qp2m-jg93](GHSA-qx2v-qp2m-jg93), [GHSA-r28c-9q8g-f849](GHSA-r28c-9q8g-f849) | | `qs` | 6.13.0, 6.14.0, 6.14.2, 6.15.0 → 6.16.2, 6.17.1 | [GHSA-4mjr-xmp4-gh2g](GHSA-4mjr-xmp4-gh2g), [GHSA-6pq8-jhm2-2vcw](GHSA-6pq8-jhm2-2vcw), [GHSA-6rw7-vpxm-498p](GHSA-6rw7-vpxm-498p), [GHSA-q8mj-m7cp-5q26](GHSA-q8mj-m7cp-5q26), [GHSA-w7fw-mjwx-w883](GHSA-w7fw-mjwx-w883), [GHSA-x5fp-wj9c-mxmx](GHSA-x5fp-wj9c-mxmx) | | `sharp` | 0.34.5, 0.35.4 → 0.35.5 | [GHSA-f88m-g3jw-g9cj](GHSA-f88m-g3jw-g9cj), [GHSA-rgj7-g3m4-5g8c](GHSA-rgj7-g3m4-5g8c), [GHSA-wq5f-xc86-pv6w](GHSA-wq5f-xc86-pv6w) | | `shell-quote` | 1.12.0, 1.8.3 → 1.12.0 | [GHSA-395f-4hp3-45gv](GHSA-395f-4hp3-45gv), [GHSA-w7jw-789q-3m8p](GHSA-w7jw-789q-3m8p) | | `sigstore` | 1.9.0, 2.3.0 → 5.0.1 | [GHSA-52v5-jr5w-gjxr](GHSA-52v5-jr5w-gjxr) | | `tar` | 6.2.1, 7.5.7 → 7.5.22 | [GHSA-23hp-3jrh-7fpw](GHSA-23hp-3jrh-7fpw), [GHSA-34x7-hfp2-rc4v](GHSA-34x7-hfp2-rc4v), [GHSA-83g3-92jg-28cx](GHSA-83g3-92jg-28cx), [GHSA-8qq5-rm4j-mr97](GHSA-8qq5-rm4j-mr97), [GHSA-8x88-c5mf-7j5w](GHSA-8x88-c5mf-7j5w), [GHSA-9ppj-qmqm-q256](GHSA-9ppj-qmqm-q256), [GHSA-gvwx-54wh-qm9j](GHSA-gvwx-54wh-qm9j), [GHSA-qffp-2rhf-9h96](GHSA-qffp-2rhf-9h96), [GHSA-r292-9mhp-454m](GHSA-r292-9mhp-454m), [GHSA-r6q2-hw4h-h46w](GHSA-r6q2-hw4h-h46w), [GHSA-vmf3-w455-68vh](GHSA-vmf3-w455-68vh), [GHSA-w8wr-v893-vjvp](GHSA-w8wr-v893-vjvp) | | `tinypool` | 2.0.0 → 2.2.0 | [GHSA-5gmw-xhrv-c9v3](GHSA-5gmw-xhrv-c9v3), [GHSA-85c8-ppgw-ccpr](GHSA-85c8-ppgw-ccpr) | | `tmp` | 0.0.33, 0.2.3 → 0.2.7 | [GHSA-52f5-9888-hmc6](GHSA-52f5-9888-hmc6), [GHSA-ph9p-34f9-6g65](GHSA-ph9p-34f9-6g65) | | `undici` | 6.29.1, 7.24.4 → 6.29.1, 7.30.1, 7.30.2, 8.12.4 | [GHSA-2gqq-gqf2-x968](GHSA-2gqq-gqf2-x968), [GHSA-2jfj-6hjv-fm6j](GHSA-2jfj-6hjv-fm6j), [GHSA-2m5v-pch6-74hx](GHSA-2m5v-pch6-74hx), [GHSA-35p6-xmwp-9g52](GHSA-35p6-xmwp-9g52), [GHSA-3xpg-4rpp-hhhm](GHSA-3xpg-4rpp-hhhm), [GHSA-4cwx-7wf7-3272](GHSA-4cwx-7wf7-3272), [GHSA-4qv8-2p9j-2685](GHSA-4qv8-2p9j-2685), [GHSA-4w7w-5xrc-9h26](GHSA-4w7w-5xrc-9h26), [GHSA-55wc-3pg8-jfw6](GHSA-55wc-3pg8-jfw6), [GHSA-8436-99hf-9mmv](GHSA-8436-99hf-9mmv), [GHSA-8xcm-r25x-g524](GHSA-8xcm-r25x-g524), [GHSA-9fm3-97px-rjf6](GHSA-9fm3-97px-rjf6), [GHSA-f72v-6w45-q472](GHSA-f72v-6w45-q472), [GHSA-g8m3-5g58-fq7m](GHSA-g8m3-5g58-fq7m), [GHSA-hm92-r4w5-c3mj](GHSA-hm92-r4w5-c3mj), [GHSA-jr45-8vmc-qm54](GHSA-jr45-8vmc-qm54), [GHSA-m8rv-5g2x-5cg5](GHSA-m8rv-5g2x-5cg5), [GHSA-p88m-4jfj-68fv](GHSA-p88m-4jfj-68fv), [GHSA-pmjh-fq2x-6v4x](GHSA-pmjh-fq2x-6v4x), [GHSA-pr7r-676h-xcf6](GHSA-pr7r-676h-xcf6), [GHSA-qrxm-fqhp-jwvm](GHSA-qrxm-fqhp-jwvm), [GHSA-r53p-7pc4-xj5r](GHSA-r53p-7pc4-xj5r), [GHSA-rfgv-xxqx-mfg5](GHSA-rfgv-xxqx-mfg5), [GHSA-rx4f-c7p8-82vq](GHSA-rx4f-c7p8-82vq), [GHSA-v3r7-h72x-cjcm](GHSA-v3r7-h72x-cjcm), [GHSA-vmh5-mc38-953g](GHSA-vmh5-mc38-953g), [GHSA-vxpw-j846-p89q](GHSA-vxpw-j846-p89q), [GHSA-w293-vg96-wgc3](GHSA-w293-vg96-wgc3), [GHSA-xjj6-f33q-929c](GHSA-xjj6-f33q-929c) | | `vue-template-compiler` | 2.7.14 → removed | [GHSA-g3ch-rx76-35fx](GHSA-g3ch-rx76-35fx) | | `ws` | 6.2.6, 7.5.10, 8.18.0, 8.20.1 → 6.2.6, 7.5.13, 8.21.0, 8.22.1 | [GHSA-58qx-3vcg-4xpx](GHSA-58qx-3vcg-4xpx), [GHSA-96hv-2xvq-fx4p](GHSA-96hv-2xvq-fx4p) | | `zod` | 3.24.2 → 4.6.7 | [GHSA-mrhx-c7xc-m3w5](GHSA-mrhx-c7xc-m3w5) | </details> <details> <summary>Cloudflare: packages/node-sdk/examples/cloudflare-worker/yarn.lock</summary> | Changed package | Before → after lock versions | Resolved advisories | | --- | --- | --- | | `@fastify/busboy` | 2.1.1 → removed | [GHSA-gxm5-99cw-xjw9](GHSA-gxm5-99cw-xjw9), [GHSA-x8mw-p69m-v3mx](GHSA-x8mw-p69m-v3mx) | | `@vitest/mocker` | 3.2.6 → 4.1.12 | [GHSA-82fw-gwwq-j7x9](GHSA-82fw-gwwq-j7x9), [GHSA-qxg6-89mg-rqv8](GHSA-qxg6-89mg-rqv8) | | `devalue` | 4.3.3 → removed | [GHSA-33hq-fvwr-56pm](GHSA-33hq-fvwr-56pm), [GHSA-4q55-j62x-fr9h](GHSA-4q55-j62x-fr9h), [GHSA-8qm3-746x-r74r](GHSA-8qm3-746x-r74r), [GHSA-9rgm-9g3h-6x36](GHSA-9rgm-9g3h-6x36), [GHSA-cfw5-2vxh-hr84](GHSA-cfw5-2vxh-hr84), [GHSA-hx4r-w6wj-j8fg](GHSA-hx4r-w6wj-j8fg), [GHSA-mcm9-63f2-9j32](GHSA-mcm9-63f2-9j32), [GHSA-mwv9-gp5h-frr4](GHSA-mwv9-gp5h-frr4), [GHSA-r9w8-h9r3-54w4](GHSA-r9w8-h9r3-54w4), [GHSA-vj54-72f3-p5jv](GHSA-vj54-72f3-p5jv), [GHSA-wf3x-273g-mvxv](GHSA-wf3x-273g-mvxv) | | `ip-address` | 9.0.5 → 10.7.6 | [GHSA-h3mg-xc3c-68pw](GHSA-h3mg-xc3c-68pw), [GHSA-j6r3-76f7-8jcv](GHSA-j6r3-76f7-8jcv), [GHSA-mwp4-54f8-5fhr](GHSA-mwp4-54f8-5fhr), [GHSA-rpw4-54j3-4h4q](GHSA-rpw4-54j3-4h4q), [GHSA-rxp7-6hxx-x8q5](GHSA-rxp7-6hxx-x8q5), [GHSA-v2v4-37r5-5v8g](GHSA-v2v4-37r5-5v8g) | | `nanoid` | 3.3.16 → 3.3.20 | [GHSA-2v37-7h3g-55p8](GHSA-2v37-7h3g-55p8) | | `postcss` | 8.5.22 → 8.5.32 | [GHSA-fxqj-rqcc-2cmp](GHSA-fxqj-rqcc-2cmp) | | `sharp` | 0.33.5, 0.34.5 → 0.35.5 | [GHSA-f88m-g3jw-g9cj](GHSA-f88m-g3jw-g9cj), [GHSA-rgj7-g3m4-5g8c](GHSA-rgj7-g3m4-5g8c), [GHSA-wq5f-xc86-pv6w](GHSA-wq5f-xc86-pv6w) | | `source-map-js` | 1.2.1 → 1.2.2 | [GHSA-68fv-2mgg-jv7q](GHSA-68fv-2mgg-jv7q) | | `tinypool` | 1.1.1 → removed | [GHSA-5gmw-xhrv-c9v3](GHSA-5gmw-xhrv-c9v3), [GHSA-85c8-ppgw-ccpr](GHSA-85c8-ppgw-ccpr) | | `undici` | 5.29.0, 7.14.0 → 7.30.1 | [GHSA-2gqq-gqf2-x968](GHSA-2gqq-gqf2-x968), [GHSA-2jfj-6hjv-fm6j](GHSA-2jfj-6hjv-fm6j), [GHSA-2m5v-pch6-74hx](GHSA-2m5v-pch6-74hx), [GHSA-2mjp-6q6p-2qxm](GHSA-2mjp-6q6p-2qxm), [GHSA-35p6-xmwp-9g52](GHSA-35p6-xmwp-9g52), [GHSA-4992-7rv2-5pvq](GHSA-4992-7rv2-5pvq), [GHSA-4cwx-7wf7-3272](GHSA-4cwx-7wf7-3272), [GHSA-4qv8-2p9j-2685](GHSA-4qv8-2p9j-2685), [GHSA-4w7w-5xrc-9h26](GHSA-4w7w-5xrc-9h26), [GHSA-8436-99hf-9mmv](GHSA-8436-99hf-9mmv), [GHSA-8xcm-r25x-g524](GHSA-8xcm-r25x-g524), [GHSA-9fm3-97px-rjf6](GHSA-9fm3-97px-rjf6), [GHSA-f269-vfmq-vjvj](GHSA-f269-vfmq-vjvj), [GHSA-g8m3-5g58-fq7m](GHSA-g8m3-5g58-fq7m), [GHSA-g9mf-h72j-4rw9](GHSA-g9mf-h72j-4rw9), [GHSA-jr45-8vmc-qm54](GHSA-jr45-8vmc-qm54), [GHSA-m8rv-5g2x-5cg5](GHSA-m8rv-5g2x-5cg5), [GHSA-p88m-4jfj-68fv](GHSA-p88m-4jfj-68fv), [GHSA-pmjh-fq2x-6v4x](GHSA-pmjh-fq2x-6v4x), [GHSA-pr7r-676h-xcf6](GHSA-pr7r-676h-xcf6), [GHSA-qrxm-fqhp-jwvm](GHSA-qrxm-fqhp-jwvm), [GHSA-r53p-7pc4-xj5r](GHSA-r53p-7pc4-xj5r), [GHSA-rfgv-xxqx-mfg5](GHSA-rfgv-xxqx-mfg5), [GHSA-rx4f-c7p8-82vq](GHSA-rx4f-c7p8-82vq), [GHSA-v3r7-h72x-cjcm](GHSA-v3r7-h72x-cjcm), [GHSA-v9p9-hfj2-hcw8](GHSA-v9p9-hfj2-hcw8), [GHSA-vrm6-8vpv-qv8q](GHSA-vrm6-8vpv-qv8q), [GHSA-vxpw-j846-p89q](GHSA-vxpw-j846-p89q) | | `vitest` | 3.2.6 → 4.1.12 | [GHSA-82fw-gwwq-j7x9](GHSA-82fw-gwwq-j7x9) | | `wrangler` | 4.21.2, 4.59.1 → 4.158.0 | [GHSA-36p8-mvp6-cv38](GHSA-36p8-mvp6-cv38) | | `ws` | 8.18.0 → 8.21.0 | [GHSA-58qx-3vcg-4xpx](GHSA-58qx-3vcg-4xpx), [GHSA-96hv-2xvq-fx4p](GHSA-96hv-2xvq-fx4p) | | `zod` | 3.22.3, 3.25.67, 3.25.76 → 4.6.6 | [GHSA-mrhx-c7xc-m3w5](GHSA-mrhx-c7xc-m3w5) | </details> <details> <summary>OpenFeature Node: packages/openfeature-node-provider/example/yarn.lock</summary> | Changed package | Before → after lock versions | Resolved advisories | | --- | --- | --- | | `body-parser` | 1.20.3 → 1.20.9 | [GHSA-27r3-jxmh-p828](GHSA-27r3-jxmh-p828), [GHSA-v422-hmwv-36x6](GHSA-v422-hmwv-36x6) | | `cookie` | 0.6.0 → 0.7.2 | [GHSA-pxg6-pf52-xh8x](GHSA-pxg6-pf52-xh8x) | | `esbuild` | 0.21.5 → 0.28.2 | [GHSA-67mh-4wv8-2f99](GHSA-67mh-4wv8-2f99) | | `glob` | 10.5.0 → removed | [GHSA-3g3m-2fjr-6pw4](GHSA-3g3m-2fjr-6pw4) | | `ip-address` | 9.0.5 → removed | [GHSA-h3mg-xc3c-68pw](GHSA-h3mg-xc3c-68pw), [GHSA-j6r3-76f7-8jcv](GHSA-j6r3-76f7-8jcv), [GHSA-mwp4-54f8-5fhr](GHSA-mwp4-54f8-5fhr), [GHSA-rpw4-54j3-4h4q](GHSA-rpw4-54j3-4h4q), [GHSA-rxp7-6hxx-x8q5](GHSA-rxp7-6hxx-x8q5), [GHSA-v2v4-37r5-5v8g](GHSA-v2v4-37r5-5v8g) | | `minimatch` | 9.0.7 → removed | [GHSA-g3hv-75wg-m249](GHSA-g3hv-75wg-m249) | | `path-to-regexp` | 0.1.10 → 0.1.13 | [GHSA-37ch-88jc-xwx2](GHSA-37ch-88jc-xwx2), [GHSA-rhx6-c78j-4q9w](GHSA-rhx6-c78j-4q9w) | | `proxy-addr` | 2.0.7 → 2.0.8 | [GHSA-jqcg-44mw-7w3h](GHSA-jqcg-44mw-7w3h) | | `qs` | 6.11.0, 6.13.0 → 6.16.2, 6.17.1 | [GHSA-4mjr-xmp4-gh2g](GHSA-4mjr-xmp4-gh2g), [GHSA-6pq8-jhm2-2vcw](GHSA-6pq8-jhm2-2vcw), [GHSA-6rw7-vpxm-498p](GHSA-6rw7-vpxm-498p), [GHSA-q8mj-m7cp-5q26](GHSA-q8mj-m7cp-5q26), [GHSA-w7fw-mjwx-w883](GHSA-w7fw-mjwx-w883) | | `send` | 0.18.0, 0.19.0 → 0.19.2 | [GHSA-m6fv-jmcg-4jfg](GHSA-m6fv-jmcg-4jfg) | | `tar` | 6.2.1 → 7.5.22 | [GHSA-23hp-3jrh-7fpw](GHSA-23hp-3jrh-7fpw), [GHSA-34x7-hfp2-rc4v](GHSA-34x7-hfp2-rc4v), [GHSA-83g3-92jg-28cx](GHSA-83g3-92jg-28cx), [GHSA-8qq5-rm4j-mr97](GHSA-8qq5-rm4j-mr97), [GHSA-8x88-c5mf-7j5w](GHSA-8x88-c5mf-7j5w), [GHSA-9ppj-qmqm-q256](GHSA-9ppj-qmqm-q256), [GHSA-gvwx-54wh-qm9j](GHSA-gvwx-54wh-qm9j), [GHSA-qffp-2rhf-9h96](GHSA-qffp-2rhf-9h96), [GHSA-r292-9mhp-454m](GHSA-r292-9mhp-454m), [GHSA-r6q2-hw4h-h46w](GHSA-r6q2-hw4h-h46w), [GHSA-vmf3-w455-68vh](GHSA-vmf3-w455-68vh), [GHSA-w8wr-v893-vjvp](GHSA-w8wr-v893-vjvp) | </details> ## Remaining release / compliance gates - [ ] Maintainer reviews and merges this PR (no merge performed by the agent). - [x] CI is green on `8c19fbe`: [pull-request Package CI](https://github.com/reflagcom/javascript/actions/runs/42099086555) and [branch Package CI](https://github.com/reflagcom/javascript/actions/runs/42099072293) both passed, including standalone examples. CodeQL JavaScript and Actions analysis also passed. - [ ] Trigger/await Oneleet dependency rescan of `reflagcom/javascript` after the code is adopted; reconcile exact Oneleet IDs against the inventory above. - [ ] Security owner explicitly accepts or schedules remediation of each residual advisory; no risk acceptance was submitted automatically. - [ ] Any future CLI release is performed separately by the maintainer. No packages were published.
Configuration menu - View commit details
-
Copy full SHA for 1adfced - Browse repository at this point
Copy the full SHA 1adfcedView commit details
Commits on Nov 18, 2026
-
feat(node-sdk): adopt collection values and Boolean-first reads (#790)
## Summary Breaking Node SDK v2 using the **already-published collection evaluator 2.0.0**. #744 and release #793 landed the evaluator and v1 compatibility—not Node SDK v2. This PR now merges current `main` through `1adfced` without rewriting history. Companion server protocol/check ingestion: reflagcom/web#3660. ```ts reflag.getFlag(context, "release"); // boolean, implicit false reflag.getFlag(context, "settings", { model: "Swift" }); // { model: string } reflag.bindClient(context).getFlag("release"); ``` - Consume and atomically prepare complete protocol-v2 `{ flags, segments }` snapshots. Evaluate only requested roots/dependencies, without dependency-result caching. - Return direct values with Boolean-first reads and positional defaults, preserving valid falsy values. Runtime non-null defaults enforce top-level JSON categories, not nested selected-value schemas. Explicit `null` accepts arbitrary/nullable JSON. - Register requested-root checks immediately with buffered, identity-aware delivery. Dependencies, diagnostic reads and bootstrap serialization do not emit extra checks. - Persist isolated v2 fallback snapshots and serialize accepted live saves. Preserve synchronization modes, ordinary tracking, bound contexts and post-evaluation overrides. - Keep OpenFeature and the v1 React bootstrap demo on **published Node 1.8.3**, not the v2 workspace. The Node v2 source manifest retains its prerelease version to avoid Yarn transparently linking the legacy alias to this workspace; Changesets plans Node **2.0.0**. This is not prerelease-publication authorization. ## Main reconciliation — `0809be2` - Preserve main's stable evaluator metadata, evaluator runtime source, dependency/security changes, generated Management SDK, browser/framework fixes and standalone-example CI. - Remove the evaluator Changeset already consumed by its stable release. The evaluator runtime is unchanged against current main; the old evaluator commits remain visible only because #744 was squash-merged and this update deliberately does not rewrite history. - Port main's ETag refresh behavior to complete `/flags` graphs: snapshot-owned validators, bodyless 304 freshness, unconditional cold/fallback/version-targeted requests, bounded unexpected-304 recovery, ordered background persistence, and isolation from rejected snapshots or late saves. Preserve default/custom HTTP transport coverage. - Preserve application-owned process shutdown: no SDK signal handlers or forced exits; automatic flushing is only on natural `beforeExit`. - Preserve evaluation diagnostics, including `CLIENT_NOT_INITIALIZED` captured at local-read time. Remote-only reads do not require local initialization and do not get that diagnostic. - Address all three existing review threads with regressions: accept thousandth-percent allocations using integer units; restore guarded context synchronization for track-only/remote-only and chained bindings with logged async failures; retain the bound company for an undefined override while accepting numeric zero. - Adapt the incoming Express/Cloudflare example assertions to direct values. ## Registered-default follow-up - **3cc369b** checks non-null defaults against each registered key's schema for root/bound, local/remote singular getters. Named-interface and readonly defaults work without dictionary index signatures. - Bare/explicit-`undefined` reads remain Boolean; explicit `null` remains arbitrary JSON. Singular results still infer/widen from the supplied default, not the registered schema. Runtime JSON validation/copying and top-level category checking are unchanged. - Augmented/unaugmented compiler regressions retain generic forwarding and opaque arbitrary-JSON registrations to avoid recursive-instantiation failures. - **595758d** keeps the readonly mapper and existing log-level constant intentionally private in package-scoped TypeDoc settings, without public-export workarounds or a global validation disable. The docs anchor condition is POSIX-compatible. ## Breaking changes - Remove flag wrappers: `.value`, `.isEnabled`, `.config`, and flag `.track()`. Client tracking remains separate. - Bare singular reads are Boolean with implicit `false`; supply positional defaults for other types. Batch APIs retain raw JSON/`undefined` records. - Remote signature: `getFlagRemote(key, defaultValue, userId?, companyId?, context?)`. Use `undefined` for a Boolean read with explicit IDs. - V1 fallback/browser bootstrap formats and legacy CLI wrapper declarations are incompatible with v2. ## Fresh local verification - **965 workspace tests passed**: evaluator 302, Node 271, Browser 208, React 65, Vue 13, OpenFeature Node 32/Browser 27, CLI 36, Management 7, Express 4. This checkout deliberately still has the v1 Browser/framework packages from main. - **48 existing browser E2E cases passed**, across Chromium, Firefox and WebKit with mocked transport—not deployed v2 acceptance. - Both standalone-example immutable installs/builds/tests pass: Cloudflare Worker 2 tests and OpenFeature Node 4 tests. Wrangler was dry-run only. - Evaluator, Node, Browser, React, Vue, React Native, both OpenFeature providers and CLI builds pass. Node/React/Vue type programs, Express typecheck, both Next.js example typechecks, immutable root install, docs build and 3 docs-transform tests pass. - Full Management regeneration/full root `yarn build` was **not run locally** because Java is absent. The existing checked-in Management generated source is byte-identical to main and its TypeScript build passes. - Repository formatting passes; changed-source lint has zero warnings/errors. Full lint has zero errors and one pre-existing main warning in generated Next.js environment declarations. Normal commit hooks passed, and the committed tree matches the verified prepared tree. ## Integration and release boundaries - This updates **#790 only**, not main. Fresh remote CI/review must complete; passing local checks are not release approval. - #791 still needs to inherit this finalized Node/main reconciliation once. Its original worktree and pending Browser matched-rule patch were not changed. - Node's pending matched-rule patch and LAN demo remain untouched outside this PR. Separate CLI v2 work remains local/uncommitted, with no CLI-v2 implementation in this PR. - Historical generated-consumer checks passed on the earlier typing stack; the separate CLI-v2 generator was not rerun or made mandatory CI here. Versioned/packed generated-consumer acceptance remains a release gate. - No package publication, deployment, saved-snapshot rebuild, persistent restart or shared-data mutation occurred. Compatible server readers/check ingestion, stored-predicate preflight, approved snapshots, deployed acceptance and publication holds remain necessary. Do not republish the already-released evaluator from its historical prerelease plan.
Configuration menu - View commit details
-
Copy full SHA for 521de2f - Browse repository at this point
Copy the full SHA 521de2fView commit details -
chore(deps): bump node-forge from 1.4.2 to 1.4.3 (#805)
Bumps [node-forge](https://github.com/digitalbazaar/forge) from 1.4.2 to 1.4.3. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/digitalbazaar/forge/blob/main/CHANGELOG.md">node-forge's changelog</a>.</em></p> <blockquote> <h2>1.4.3 - 2026-11-03</h2> <h3>Security</h3> <ul> <li><strong>HIGH</strong>: X.509 certificate chain verification ignores name constraints. <ul> <li><code>pki.verifyCertificateChain()</code> does not check the nameConstraints extension (RFC 5280 4.2.1.10). A non-critical nameConstraints extension in a CA certificate is ignored, so a name-constrained intermediate CA can issue certificates for names outside its permitted subtrees, or inside its excluded subtrees, and the chain verifies. Exploitation requires the private key of a name-constrained CA that chains to a trusted root. A critical nameConstraints extension is rejected as an unsupported critical extension.</li> <li>Reported by <a href="https://github.com/bhaswanthc"><code>@bhaswanthc</code></a>.</li> <li>CVE ID: <a href="">CVE-TBD</a></li> <li>GHSA ID: <a href="https://github.com/digitalbazaar/forge/security/advisories/GHSA-3cc4-3294-vgjf">GHSA-3cc4-3294-vgjf</a></li> </ul> </li> <li><strong>MODERATE</strong>: TLS client crash on a handshake record without a session. <ul> <li>A TLS client throws an uncaught <code>TypeError</code> from <code>process()</code> when it receives a ServerHello while it has no session: after a <code>close_notify</code> alert or a call to <code>close()</code>, or before <code>handshake()</code> is called. A malicious server, or an on-path attacker, can terminate a Node.js process that passes socket data to <code>process()</code> without catching exceptions. Servers are not affected.</li> <li>Reported by <a href="https://github.com/manus-use"><code>@manus-use</code></a>.</li> <li>CVE ID: <a href="">CVE-TBD</a></li> <li>GHSA ID: <a href="https://github.com/digitalbazaar/forge/security/advisories/GHSA-j8rw-jp99-435v">GHSA-j8rw-jp99-435v</a></li> </ul> </li> <li><strong>MODERATE</strong>: ReDoS in <code>forge.http</code> response header parsing. <ul> <li><code>forge.http</code> trims response header and <code>Set-Cookie</code> values with a regular expression that takes quadratic time on a long run of whitespace followed by another character. A server, or an on-path attacker, can block a <code>forge.http</code> client for minutes with one large header.</li> <li>Reported by <a href="https://github.com/manus-pi"><code>@manus-pi</code></a>.</li> <li>CVE ID: <a href="">CVE-TBD</a></li> <li>GHSA ID: <a href="https://github.com/digitalbazaar/forge/security/advisories/GHSA-6cv4-p8m7-4r25">GHSA-6cv4-p8m7-4r25</a></li> </ul> </li> <li><strong>MODERATE</strong>: TLS client crash on an unsupported ServerHello compression method. <ul> <li>A TLS client accepts any compression method in the ServerHello, although it only offers no compression. An unknown method makes <code>process()</code> throw an uncaught <code>Error</code> at ServerHelloDone, before the server is authenticated. A malicious server, or an on-path attacker, can terminate a Node.js process that passes socket data to <code>process()</code> without catching exceptions, including through <code>forge.tls.wrapSocket</code>. Servers are not affected.</li> <li>Reported by <a href="https://github.com/alienkeric"><code>@alienkeric</code></a>.</li> <li>CVE ID: <a href="">CVE-TBD</a></li> <li>GHSA ID: <a href="https://github.com/digitalbazaar/forge/security/advisories/GHSA-w4xr-hqv8-ch44">GHSA-w4xr-hqv8-ch44</a></li> </ul> </li> <li><strong>LOW</strong>: Ed25519 signature verification accepts small-order public keys. <ul> <li><code>ed25519.verify()</code> does not reject public keys of small order, such as the identity point. Under such a key, a signature with <code>S = 0</code> and a small-order <code>R</code> verifies for many or, with the identity key, all messages, without any private key. Applications are affected only if</li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/digitalbazaar/forge/commit/936b24d939dc7261ee37982576f9cf2b410084ee"><code>936b24d</code></a> Release 1.4.3.</li> <li><a href="https://github.com/digitalbazaar/forge/commit/4d8f79afe9661aedf1c5a1a28463d9564905df91"><code>4d8f79a</code></a> Update changelog.</li> <li><a href="https://github.com/digitalbazaar/forge/commit/1d9816d333c23c523ef2bd8b24282c87db2654ef"><code>1d9816d</code></a> Check the ServerHello compression method.</li> <li><a href="https://github.com/digitalbazaar/forge/commit/326a4d0903ee46358bc849a5c3fd96d9c21489bd"><code>326a4d0</code></a> Trim forge.http header values in linear time.</li> <li><a href="https://github.com/digitalbazaar/forge/commit/2cfaeb516cb3d4aff1c0569d39394df41c5cb17c"><code>2cfaeb5</code></a> Ignore handshake messages on a TLS client without a session.</li> <li><a href="https://github.com/digitalbazaar/forge/commit/6b23eae8beac316b6867bdb0e7ad7c2c959a97f6"><code>6b23eae</code></a> Complete nameConstraints enforcement.</li> <li><a href="https://github.com/digitalbazaar/forge/commit/862aa5f630bdf40b0dfda408d6ac357bf35a7d6b"><code>862aa5f</code></a> Enforce nameConstraints in <code>verifyCertificateChain()</code>.</li> <li><a href="https://github.com/digitalbazaar/forge/commit/956f2b511709cdf37d16180354a0ae7e1d947725"><code>956f2b5</code></a> Document ed25519.verify() small-order key behavior.</li> <li><a href="https://github.com/digitalbazaar/forge/commit/1b77e6f20082d7484479303d0252d5f427651295"><code>1b77e6f</code></a> Reject small-order Ed25519 public keys in verify.</li> <li><a href="https://github.com/digitalbazaar/forge/commit/2bd5146c042aabcba86977372befbd80f89c418e"><code>2bd5146</code></a> Add GitHub usernames to credits.</li> <li>Additional commits viewable in <a href="https://github.com/digitalbazaar/forge/compare/v1.4.2...v1.4.3">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/reflagcom/javascript/network/alerts). </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for f9b1ecf - Browse repository at this point
Copy the full SHA f9b1ecfView commit details
Commits on Nov 19, 2026
-
ci: don't fail Build & Test when the test reporter can't update its c…
…heck run (#809) In the merge queue, `dorny/test-reporter` sometimes creates its `Build & Test Report` check run and then fails to update it with `HttpError: Not Found`, although every test passed. That fails the required `Build & Test` job and removed #790 from the queue three times (06:19, 13:42 and 13:58 UTC on 2026-11-18). The reporter only publishes results. Failing tests already fail the job in the earlier "Test the project" step, so `continue-on-error: true` on the reporter doesn't let a test failure through.
Configuration menu - View commit details
-
Copy full SHA for 604e610 - Browse repository at this point
Copy the full SHA 604e610View commit details -
fix(deps): bump basic-ftp, minimatch and addressable for dependency f…
…indings (#810) Fixes the Oneleet dependency-scanning findings in this repo that have a compatible fixed version. All affected packages are development tooling or example apps; none ship in a published SDK. ## Changes | Package | Lockfile | Before → after | How | |---|---|---|---| | `basic-ftp` | `yarn.lock` | 5.3.1 → 6.2.6 | Resolution `get-uri@8.0.1 → 8.0.2` (patch). `get-uri` 8.0.2 depends on `basic-ftp ^6.2.4`. Chain: `@openapitools/openapi-generator-cli` → `proxy-agent` → `pac-proxy-agent` → `get-uri`, all pinned to exact versions, and the latest `openapi-generator-cli` still pins the same `proxy-agent`. | | `minimatch` | `yarn.lock` | 10.2.5 → 10.2.6 | Resolution `minimatch@10.2.5 → 10.2.6` (patch). `nx` and `@nx/devkit` pin 10.2.5 exactly, including the latest `nx`. | | `minimatch` | `packages/node-sdk/examples/cloudflare-worker/yarn.lock` | 9.0.8 → 9.0.9 | `yarn up -R`. Also fixes the `glob` 10.5.0 finding there, which comes from this `minimatch`. | | `addressable` | `packages/react-native-sdk/dev/bare-rn/Gemfile.lock` | 2.9.0 → 2.9.1 | Edited by hand (no Ruby here): same runtime dependency (`public_suffix >= 2.0.2, < 8.0`), checksum from rubygems.org. | ## Not fixed here These need a major-version upgrade of React Native or Expo tooling to fix, so they are left for a separate change: - `image-size` 1.2.1 (fixed in 2.0.3): from `metro` 0.83.3, pinned exactly by `@expo/metro` 54.2.0. `metro` 0.83.8 drops `image-size`. - `fast-xml-parser` 4.5.7 (fixed in 5.12.0): from `@react-native-community/cli` 20.0.0. CLI 21 uses `fast-xml-parser` 5. - `uuid` 7.0.3 (fixed in 11.1.1): from `xcode` 3.0.1 via `@expo/config-plugins` 54. `xcode` 4 drops `uuid`. - `activesupport` 7.2.3.1 in the bare-rn `Gemfile.lock`: the fix was released only for 8.0.5.2 and 8.1.4.1, and CocoaPods requires `activesupport < 8`. ## Testing - `yarn install --immutable` passes. - Local `yarn build` stops at `@reflag/management-sdk`'s OpenAPI generation because Java isn't installed on this machine; the generator CLI (the `get-uri` change) starts and runs up to the Java call. CI runs the full build and tests.
Configuration menu - View commit details
-
Copy full SHA for e81c3fa - Browse repository at this point
Copy the full SHA e81c3faView commit details -
feat: adopt v2 flag values in Browser, React, Vue and React Native SD…
…Ks (#791) ## Stack and review boundary - Browser, React, Vue **and React Native v2** adoption, targeting `main`; evaluator #744 is already merged and evaluator 2.0.0 is published. - Node #790 is now merged into main. Merge `acd46cd` reconciles this branch with main `f9b1ecf`, preserving the framework changes without rebasing or force-pushing. Node implementation files match main; the v2 React bootstrap demo deliberately retains workspace Node v2. The redundant inherited Node typing Changeset is removed because main's major Changeset already includes that change. - Initial framework runtime work: `521cf4b`; registered-default/declaration work: `1729e9e`; public-doc configuration: `9f3a0ae`. **Native v2 follow-up: `a12dc2c`.** - Separate memoization #803 and guide #806/#807 changes are not silently included. CLI 2, preserved genuine matched-rule patches and the unrelated Node LAN demo remain outside this PR. - The earlier conflict, draft and Native-v1-only descriptions are superseded. This update preserves the current non-draft status; it does not merge or publish anything. ## Summary - Adopt protocol-v2 evaluated flags and direct JSON values. Bare singular reads return Boolean/false; positional JSON defaults infer widened mutable values. Explicit null accepts arbitrary JSON. Runtime matching checks only top-level categories; old wrappers are removed. - Fetch values and opt-in metadata together from `/flags/evaluated` with atomic validation and context/version guards. Metadata-only refresh preserves bootstrap values/provenance; mutations confirm versioned evaluation and membership in one refresh. - Register requested-root checks immediately with buffered, identity-aware delivery. Defaults, mismatches, overrides and value-only fallbacks do not invent selections. Diagnostic/bootstrap access does not register checks. - Isolate v2 cache/override storage, own returned JSON/context, preserve known-good snapshots and capture cache identity before update listeners can change context. Carry forward main's initialization diagnostics, readable opt-in errors, security updates and test cleanup. - React and Native `useFlag` are non-suspending direct-value reads; `useFlagSuspense` explicitly waits. Vue returns refs. Tracking, feedback, loading and opt-in remain separate hooks/composables. ## React Native migration - Native now uses workspace React v2, development version `2.0.0-next.0`, and a major Changeset. This PR's `next` prerelease configuration plans **2.0.0-next.1**, not stable 2.0.0. Its modern JSX build requires React 17+ and the React version supported by the application’s Native runtime. - Reexport v2 value/opt-in types and `useFlagSuspense`; remove legacy wrapper/remote-config types. Native shares React's optional `Flags` registry, including React-format declarations, rather than maintaining a second evaluator or type registry. - Preserve AsyncStorage, native SSE with transport polling disabled, custom adapters and default live updates. Web toolbar/automatic feedback UI default off. - Accept matching Node v2 bootstrap without an initial evaluation fetch; reject legacy bootstrap. Test selected-key/source/snapshot identity, defensive JSON ownership, missing/null/falsy values, versioned live updates, opt-in metadata/confirmation and offline defaults. - Migrate Expo and bare Native demos to direct values and separate tracking. Their typechecks and five Native compiler programs (consumer contracts, runtime fixtures and both apps) run in the new package `test:ci`; Native runtime tests now participate in workspace CI. - OpenFeature Browser remains isolated on published Browser v1. The Next.js bootstrap demo uses workspace Node v2. ## Registered-default contracts Named-interface/readonly defaults work. Registered keys constrain non-null defaults, including required/nested properties, arrays and literal unions; Suspense follows the same contract. Explicit default generics cannot bypass registered schemas. Boolean/undefined and arbitrary-JSON null semantics remain. This is not nested runtime schema validation. Built Vue refs retain public `vue` imports, and TypeDoc validation stays enabled. ## Correctness follow-up (`fdacaf0`) - Keep object/array results from `useFlag` and `useFlagSuspense` stable by JSON content between relevant changes, with per-hook ownership and commit-only caching. Every render still performs the read for check tracking. React Native inherits the shared fix. Eight new React regressions cover effect-driven state updates, inline defaults, updates, client/key changes, checks and ownership. - Version opt-in metadata independently from values. Older full/metadata-only replacements cannot roll membership back, including unavailable membership. Real context changes reset freshness; same-context bootstrap request invalidation preserves it. Six new Browser regressions cover racing responses, version/provenance separation, bootstrap reapplication and context changes. - Both correctness threads are addressed; Node files remain identical to main. ## Approved cleanup (`bb9b948`, `158f36b`) - Type the React `selected()` fixture as `(value: FlagValue, variantKey = "true"): RawFlag`, removing four repeated assertions and five redundant value overrides without changing fixture data. - Make fallback-backed `maybeFetchFlags()` return a non-optional snapshot and require it in `applyFetchedFlagsResult()`. Remove only unreachable absence handling; raw-fetch failures remain optional and guarded, bootstrap/cache snapshot versions remain optional, and all freshness checks are preserved. - Extract `clearOptInMetadata()` for exactly the metadata map, context marker and snapshot version, replacing the three existing reset blocks in place. The stale-version guard, same-context retention and request/loading bookkeeping are unchanged. Inlining all three calls exactly reproduces the previous source. - Resolved the fixture/result-contract refactor threads, including later duplicate suggestions, and the subsequently approved metadata-reset-helper thread. ## Fresh verification | Package | Runtime tests | | --- | ---: | | Evaluator | 302 | | Node | 273 | | Browser | 269 | | React | 27 | | Vue | 15 | | React Native | 15 | | OpenFeature Node / Browser | 32 / 27 | | CLI / Management / Express | 36 / 7 / 4 | | **Total** | **1,007** | - Latest `158f36b` source verification: all **1,007 workspace runtime tests** and **48 Browser E2E cases across Chromium/Firefox/WebKit** pass. Builds pass for 10 SDK/provider/CLI/Express projects; both Next.js example typechecks, Native compiler contracts and app typechecks, focused strict typing of the changed runtime fixtures, docs and three docs-transform tests pass. Management regeneration and Next.js production-app builds are excluded from that bounded build run. Ten new regressions failed before the fixes; the unchanged original tests passed. - Earlier `e16293a` versioned-tree verification ran the actual version command to generate **2.0.0-next.1**, then passed all **993 then-existing workspace tests** and **48 Browser E2E cases**. That is distinct from the latest source-level run. - **Eight release safeguard tests** run in Package CI and pass again on `158f36b`. The `e16293a` lifecycle dry run also passed them before versioning, after next versioning, during explicit prerelease exit and after stable versioning. Two ignored/private-workspace regressions failed without the Changesets backport and passed with it; both real next and stable-transition immutable installations passed. - Earlier Native migration verification: **Android and iOS Metro bundles passed for both bare Native and Expo** (JS exports, not device/emulator or native-binary acceptance; not rerun for this merge). - Earlier `e16293a` tarballs for **Node, Browser, React, Vue and React Native 2.0.0-next.1** contain runtimes/declarations and rewritten workspace dependencies. A clean npm consumer installs those five local tarballs plus registry supporting dependencies, resolves one matching Browser/React dependency graph, and passes Node-to-Browser bootstrap, React SSR, Vue export checks and strict public-consumer typing across all five SDKs. Native runtime/device execution is not claimed. This does not replace the final matched CLI/packed-toolchain canary. - Browser client fixtures clear storage between tests to prevent cached opt-in state leaking across cases; five repeated runs passed during the earlier Native migration. Three docs-transform tests pass on this merge. A new regression verifies the v2 bootstrap demo resolves workspace Node v2; React's cross-package TypeDoc links are explicitly qualified. - Changed-source lint has zero warnings/errors. Full lint retains only main's generated Next.js declaration warning. Native tests emit the renderer's upstream deprecation notice. Normal commit hooks preserve the verified tree. - Full Management regeneration/root `yarn build` was not run locally because Java is absent; generated Management sources remain inherited unchanged from Node/main. ## Next prerelease configuration Commit **`e16293a`** enters Changesets' repository-wide prerelease mode with tag **`next`**. The existing automated version/publish workflow handles the SDK dependency graph; this does not depend on the separate Node-only manual workflow in #802. The verified first release plan is: | Packages | Planned version / npm tag | | --- | --- | | Node, Browser, React, Vue, React Native SDKs | **2.0.0-next.1 / next** | | Existing queued CLI patch | **1.0.5-next.0 / next** | | Existing queued OpenFeature Node patch | **1.2.9-next.0 / next** | `next.1` follows the existing `next.0` development manifests. Packed React/Vue dependencies point to `^2.0.0-next.1` Browser, and Native points to `^2.0.0-next.1` React. Node retains published evaluator 2.0.0; OpenFeature Browser remains pinned to published Browser v1. The existing SDKs all have stable npm releases, and these prereleases use `next` rather than advancing their stable `latest` tags. The workflow skips **all four stable-doc publication steps** for prereleases and fails closed on malformed/unexpected prerelease state. Stable-doc publication resumes only on the normal stable channel; this is not the separate release-aware docs-routing redesign. The docs checkout action is updated to supported v4. A small locked Yarn backport of [Changesets #2092](changesets/changesets#2092) prevents prerelease exit from spuriously bumping ignored/private or unversioned workspaces. Without it, `@reflag/tsconfig` incorrectly becomes 0.0.3 and the stable-transition install fails. The real next → explicit exit → stable versioning/installation dry run now passes while that private package stays 0.0.2. **Not active on main until this PR is merged.** The existing stable version PR #796 must be regenerated with this configuration before it is merged; do not merge its old stable Node 2.0.0 plan. No npm publication, main merge or dist-tag change was performed. ## Remaining release boundaries Compatible server values/opt-in metadata/check ingestion, server-first deployment, approved saved snapshots and deployed acceptance remain required. Genuine matched-rule integration, CLI 2 review/mandatory generated-consumer CI and final versioned/packed-toolchain canary are separate work. Coordinate evaluator memoization publication/adoption separately. Native now participates in this v2 migration; reconcile public-doc version routing that still assumes independent Native v1 before cutover. Source Native documentation is updated here. OpenFeature multivariate adoption remains separate. No device/emulator smoke, package publication, deployment, main merge, persistent service restart or shared-data mutation was performed.
Configuration menu - View commit details
-
Copy full SHA for 1716cae - Browse repository at this point
Copy the full SHA 1716caeView commit details
Commits on Nov 20, 2026
-
Version Packages (next) (#796)
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ `main` is currently in **pre mode** so this branch has prereleases rather than normal releases. If you want to exit prereleases, run `changeset pre exit` on `main`.⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ # Releases ## @reflag/browser-sdk@2.0.0-next.1 ### Major Changes - 1716cae: Adopt protocol-v2, adding support for multivariate and JSON flags in Browser, React and Vue. - Browser `getFlag()` and React `useFlag()` return direct values instead of flag wrappers. Vue `useFlag()` returns a ref to the direct value. Replace `.isEnabled` and `.config` access with direct values, using `.value` for Vue refs in script. - Reads without a default return Booleans, using `false` when unavailable. Pass a positional default to read strings, numbers, arrays, or objects, with TypeScript inferring the return type. Missing values or values of a different top-level type use the default. Pass `null` to accept any JSON value, including null. Nested payload schemas are not validated at runtime. - React and Vue's optional `Flags` registration checks non-null defaults against each flag's value type, including React Suspense reads. Named-interface and readonly defaults are supported across Browser, React and Vue without losing their inferred value types. - React `useFlag()` never suspends. Replace `useFlag(key, { suspense: true })` with `useFlagSuspense(key)` to wait for initialization. Use `useIsLoading()` for loading state; existing provider and `useOptInFlags` Suspense options continue to control opt-in loading only. - Flag reads automatically record checks. Replace flag-level `.track()` and `.requestFeedback()` calls with the client's separate methods or the framework's tracking and feedback hooks/composables. - Browser `getFlags()` returns a record of direct values; unavailable flags may be `undefined`. Use `getFlagResults()` for diagnostic access without recording checks. - Bootstrap data must come from Node SDK v2 and be consumed by matching v2 SDKs. Legacy v1 payloads are incompatible. Replace the Browser client's `bootstrappedFlags` option with `bootstrappedState` and pass the complete bootstrap payload. - Overrides accept direct JSON values: `undefined` clears an override, while `null` is a value. Saved v1 caches and overrides are not reused. - Bootstrapped clients load opt-in metadata when requested, without replacing server-provided flag values. Successful opt-in changes update both membership and flag values. The OpenFeature Browser provider continues to use Browser SDK v1. Legacy remote configuration is not automatically converted into multivariate flag values. ## @reflag/node-sdk@2.0.0-next.1 ### Major Changes - 521de2f: Adopt protocol-v2, adding support for multivariate and JSON flags. - `getFlag(context, key)` and bound `getFlag(key)` return direct values instead of flag wrappers. Reads without a default return Booleans, using `false` when unavailable. Replace `.isEnabled` and `.config` access with direct values. - Pass a positional default to read strings, numbers, arrays, or objects. TypeScript infers the return type from the default without generated declarations. Missing values or values of a different top-level type use the default. Pass `null` to accept any JSON value, including null. Nested payload schemas are not validated at runtime. - With optional `Flags` registration, TypeScript checks non-null defaults against each flag's value type for local, remote, and bound reads. Named-interface and readonly defaults are supported. - Flag reads automatically record checks. Replace flag-level `.track()` calls with the client's separate `track()` API. - `getFlags()` and `getFlagsRemote()` return records of direct values; unavailable flags may be `undefined`. - `getFlagRemote(key, defaultValue, userId?, companyId?, context?)` now takes the default second, shifting existing user/company arguments one position to the right. Pass `undefined` for a Boolean read with explicit IDs. Bound clients use `getFlagRemote(key, defaultValue?)`. - `getFlagDefinitions()` returns `{ flags, segments }` instead of an array. - Saved fallback snapshots use a new format; v1 snapshots are not migrated automatically. Regenerate saved snapshots when upgrading. Built-in storage keeps v1 and v2 snapshots separate. - `getFlagsForBootstrap()` produces protocol-v2 state. Upgrade Browser/framework consumers to compatible v2 SDKs before using this state; v1 bootstrap consumers are incompatible. - Existing synchronization modes, bound contexts, and local overrides remain supported. Overrides and static fallbacks accept direct JSON values. The OpenFeature Node provider continues to use Node SDK v1. Legacy remote configuration is not automatically converted into multivariate flag values. ## @reflag/react-native-sdk@2.0.0-next.1 ### Major Changes - 1716cae: Adopt protocol-v2, adding support for multivariate and JSON flags in React Native. - `useFlag()` returns direct values instead of flag wrappers. Reads without a default return Booleans, using `false` when unavailable. Replace `.isEnabled` and `.config` access with direct values. - Pass a positional default to read strings, numbers, arrays, or objects, with TypeScript inferring the return type. Missing values or values of a different top-level type use the default. Pass `null` to accept any JSON value, including null. Nested payload schemas are not validated at runtime. - `useFlag()` never suspends. Replace `useFlag(key, { suspense: true })` with `useFlagSuspense(key)` to wait for initialization, and use `useIsLoading()` for loading state. - Flag reads automatically record checks. Replace flag-level tracking and feedback methods with `useTrack()` and `useSendFeedback()`, using your own Native feedback UI. - Optional flag typing uses React's `Flags` registration in `@reflag/react-sdk`. Non-null defaults are checked against each registered flag's value type, and named-interface and readonly defaults are supported. Regenerate legacy wrapper-shaped declarations before upgrading. - Bootstrap data must come from Node SDK v2. Pass the complete payload to `ReflagBootstrappedProvider`; legacy v1 payloads are incompatible. - AsyncStorage persistence, native live updates and custom storage/SSE adapters remain supported. Live updates are enabled by default; the web toolbar and automatic feedback UI are disabled by default. - Offline fallbacks accept direct JSON value maps. Arrays of enabled Boolean flag keys remain supported. - Requires React 17 or later, compatible with your React Native runtime, and matching v2 React/Browser SDKs. Legacy wrapper and remote-config types are removed. Legacy remote configuration is not automatically converted into multivariate flag values. ### Patch Changes - Updated dependencies [1716cae] - @reflag/react-sdk@2.0.0-next.1 ## @reflag/react-sdk@2.0.0-next.1 ### Major Changes - 1716cae: Adopt protocol-v2, adding support for multivariate and JSON flags in Browser, React and Vue. - Browser `getFlag()` and React `useFlag()` return direct values instead of flag wrappers. Vue `useFlag()` returns a ref to the direct value. Replace `.isEnabled` and `.config` access with direct values, using `.value` for Vue refs in script. - Reads without a default return Booleans, using `false` when unavailable. Pass a positional default to read strings, numbers, arrays, or objects, with TypeScript inferring the return type. Missing values or values of a different top-level type use the default. Pass `null` to accept any JSON value, including null. Nested payload schemas are not validated at runtime. - React and Vue's optional `Flags` registration checks non-null defaults against each flag's value type, including React Suspense reads. Named-interface and readonly defaults are supported across Browser, React and Vue without losing their inferred value types. - React `useFlag()` never suspends. Replace `useFlag(key, { suspense: true })` with `useFlagSuspense(key)` to wait for initialization. Use `useIsLoading()` for loading state; existing provider and `useOptInFlags` Suspense options continue to control opt-in loading only. - Flag reads automatically record checks. Replace flag-level `.track()` and `.requestFeedback()` calls with the client's separate methods or the framework's tracking and feedback hooks/composables. - Browser `getFlags()` returns a record of direct values; unavailable flags may be `undefined`. Use `getFlagResults()` for diagnostic access without recording checks. - Bootstrap data must come from Node SDK v2 and be consumed by matching v2 SDKs. Legacy v1 payloads are incompatible. Replace the Browser client's `bootstrappedFlags` option with `bootstrappedState` and pass the complete bootstrap payload. - Overrides accept direct JSON values: `undefined` clears an override, while `null` is a value. Saved v1 caches and overrides are not reused. - Bootstrapped clients load opt-in metadata when requested, without replacing server-provided flag values. Successful opt-in changes update both membership and flag values. The OpenFeature Browser provider continues to use Browser SDK v1. Legacy remote configuration is not automatically converted into multivariate flag values. ### Patch Changes - Updated dependencies [1716cae] - @reflag/browser-sdk@2.0.0-next.1 ## @reflag/vue-sdk@2.0.0-next.1 ### Major Changes - 1716cae: Adopt protocol-v2, adding support for multivariate and JSON flags in Browser, React and Vue. - Browser `getFlag()` and React `useFlag()` return direct values instead of flag wrappers. Vue `useFlag()` returns a ref to the direct value. Replace `.isEnabled` and `.config` access with direct values, using `.value` for Vue refs in script. - Reads without a default return Booleans, using `false` when unavailable. Pass a positional default to read strings, numbers, arrays, or objects, with TypeScript inferring the return type. Missing values or values of a different top-level type use the default. Pass `null` to accept any JSON value, including null. Nested payload schemas are not validated at runtime. - React and Vue's optional `Flags` registration checks non-null defaults against each flag's value type, including React Suspense reads. Named-interface and readonly defaults are supported across Browser, React and Vue without losing their inferred value types. - React `useFlag()` never suspends. Replace `useFlag(key, { suspense: true })` with `useFlagSuspense(key)` to wait for initialization. Use `useIsLoading()` for loading state; existing provider and `useOptInFlags` Suspense options continue to control opt-in loading only. - Flag reads automatically record checks. Replace flag-level `.track()` and `.requestFeedback()` calls with the client's separate methods or the framework's tracking and feedback hooks/composables. - Browser `getFlags()` returns a record of direct values; unavailable flags may be `undefined`. Use `getFlagResults()` for diagnostic access without recording checks. - Bootstrap data must come from Node SDK v2 and be consumed by matching v2 SDKs. Legacy v1 payloads are incompatible. Replace the Browser client's `bootstrappedFlags` option with `bootstrappedState` and pass the complete bootstrap payload. - Overrides accept direct JSON values: `undefined` clears an override, while `null` is a value. Saved v1 caches and overrides are not reused. - Bootstrapped clients load opt-in metadata when requested, without replacing server-provided flag values. Successful opt-in changes update both membership and flag values. The OpenFeature Browser provider continues to use Browser SDK v1. Legacy remote configuration is not automatically converted into multivariate flag values. ### Patch Changes - Updated dependencies [1716cae] - @reflag/browser-sdk@2.0.0-next.1 ## @reflag/cli@1.0.5-next.0 ### Patch Changes - 1adfced: Update Express and Zod to patched versions. Preserve CLI schema parsing behavior when migrating to Zod 4. ## @reflag/openfeature-node-provider@1.2.9-next.0 ### Patch Changes - 521de2f: Adopt protocol-v2, adding support for multivariate and JSON flags. - `getFlag(context, key)` and bound `getFlag(key)` return direct values instead of flag wrappers. Reads without a default return Booleans, using `false` when unavailable. Replace `.isEnabled` and `.config` access with direct values. - Pass a positional default to read strings, numbers, arrays, or objects. TypeScript infers the return type from the default without generated declarations. Missing values or values of a different top-level type use the default. Pass `null` to accept any JSON value, including null. Nested payload schemas are not validated at runtime. - With optional `Flags` registration, TypeScript checks non-null defaults against each flag's value type for local, remote, and bound reads. Named-interface and readonly defaults are supported. - Flag reads automatically record checks. Replace flag-level `.track()` calls with the client's separate `track()` API. - `getFlags()` and `getFlagsRemote()` return records of direct values; unavailable flags may be `undefined`. - `getFlagRemote(key, defaultValue, userId?, companyId?, context?)` now takes the default second, shifting existing user/company arguments one position to the right. Pass `undefined` for a Boolean read with explicit IDs. Bound clients use `getFlagRemote(key, defaultValue?)`. - `getFlagDefinitions()` returns `{ flags, segments }` instead of an array. - Saved fallback snapshots use a new format; v1 snapshots are not migrated automatically. Regenerate saved snapshots when upgrading. Built-in storage keeps v1 and v2 snapshots separate. - `getFlagsForBootstrap()` produces protocol-v2 state. Upgrade Browser/framework consumers to compatible v2 SDKs before using this state; v1 bootstrap consumers are incompatible. - Existing synchronization modes, bound contexts, and local overrides remain supported. Overrides and static fallbacks accept direct JSON values. The OpenFeature Node provider continues to use Node SDK v1. Legacy remote configuration is not automatically converted into multivariate flag values. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>Configuration menu - View commit details
-
Copy full SHA for 144e5c3 - Browse repository at this point
Copy the full SHA 144e5c3View commit details -
fix: publish registry-compatible SDK dependencies (#811)
## Problem The published v2 prereleases cannot be installed outside this monorepo: Node ships `@reflag/flag-evaluation: workspace:*`, React/Vue ship `@reflag/browser-sdk: workspace:^`, and React Native ships `@reflag/react-sdk: workspace:^`. Changesets publishes package directories through npm, which does **not** perform Yarn's workspace-range rewriting. Successful workspace builds and `yarn pack` checks therefore missed the broken published manifests. ## Changes - Use registry-compatible dependency versions in Node, React, Vue and React Native, including Native's development dependency on Node. Yarn still transparently links the matching v2 workspaces locally. - Preserve the published evaluator `2.0.0` and the existing v1 OpenFeature dependencies. - Validate every non-private workspace manifest before the normal Changesets publish command. Reject `workspace:` ranges in dependency, optional, peer and development dependency sections; private examples can keep them. - Run guard regressions in the existing CI release-safeguard suite. Exercise actual Changesets prerelease versioning to verify regular semver dependency ranges advance correctly, and retain local-link/v1-isolation checks. - Add patch Changesets for the four affected SDKs. The current release plan selects `2.0.0-next.2` for Node, React, Vue and React Native; Browser's existing prerelease needs no packaging change. ## Verification - `yarn install --immutable` - `yarn test:release`: **17 passing release safeguards** - `yarn lerna run test:ci --stream --concurrency 1`: **1,015 passing tests plus 48 Browser E2E cases** across Chromium, Firefox and WebKit - Sequential evaluator, Node, Browser, React, Vue, Native, both OpenFeature providers and CLI builds; Management TypeScript build from its checked-in generated sources - `yarn docs`, `yarn fmt`, `yarn lint:fix`, and whitespace checks. Lint has no errors and retains the existing generated Next.js triple-slash-reference warning. - Packed all five SDKs using npm's underlying `pacote` directory packer, without Yarn manifest rewriting. Installed the candidate artifacts through a temporary loopback registry into a fresh external Yarn consumer, using registry dependencies without workspace links or resolutions. Strict direct-value TypeScript checks pass for all five SDKs; Node/evaluator/Browser/React/Vue runtime imports pass. These are locally packed current-version candidates, not newly published releases. - Negative control: the publication guard rejects all four original broken source manifests. **Local build limitation:** the root `yarn build` stops at Management SDK generation because Java is not installed. All package builds listed above, the Management TypeScript build, docs and the full test target pass; the full generator-backed build remains for CI. ## Scope and rollout No package publication, npm-tag changes, deployment, live flag/configuration changes or application migration is included. A reviewed version/release PR and corrected prerelease publication are still required; already published versions cannot be overwritten. The separate, uncommitted CLI v2 generator work is intentionally not bundled into this packaging fix and remains an application-migration prerequisite.
Configuration menu - View commit details
-
Copy full SHA for 9654308 - Browse repository at this point
Copy the full SHA 9654308View commit details -
chore(deps): resolve glob 13 and minimatch 10.2.3 to fixed majors (#812)
Clears the 4 open Oneleet dependency findings for `javascript` (all medium, dev/build tooling only; no published package depends on these at runtime): | Finding | Lockfile | Pulled in by | Fix | |---|---|---|---| | `glob` 13.0.6, CVE-2026-118773 | `/yarn.lock` | `@openapitools/openapi-generator-cli` (exact `13.0.6`), `@expo/config(-plugins)`, `@expo/metro-config` (`^13.0.0`), `npm-packlist` (`^13.0.6`) | Resolutions to `glob` 14.0.6 | | `minimatch` 10.2.3, CVE-2026-118764 | `/yarn.lock` | `@microsoft/api-extractor` (exact `10.2.3`, via `vite-plugin-dts`) | Resolution to `minimatch` 11.0.9 | | `glob` 10.5.0 and `minimatch` 9.0.9 | `cloudflare-worker` example | `cacache` 19 | Resolution `glob@^10.2.2` → 14.0.6; minimatch 9 then drops out | The fixes are only released in glob 14 and minimatch 11. Their breaking changes are in internal classes and edge cases (`makeRe()`, `Minimatch#regexp`, `Pattern`/`GlobWalker`, `ignore` patterns starting with `/`). Checked how each consumer calls them: - `openapi-generator-cli` calls `glob.sync(pattern, { cwd })`. With glob 14 resolved from its location, that returned the expected 12 `packages/*/package.json` files. A local `yarn build` got past that call and only stopped at the generator's Java step (Java isn't installed locally), so CI is the check for the generated SDK. - `api-extractor` calls `minimatch(name, pattern)`. With 11.0.9 resolved from its location: `minimatch('@types/node', '@types/*')` is true and `minimatch('lodash', '@types/*')` is false. - `@expo/config` and `@expo/config-plugins` call `globSync(pattern, { cwd, absolute })`, which glob 14 keeps. `glob` 10.5.0 and `minimatch` 9.0.9 in the root lockfile (`c8`, `js-beautify`, `sucrase`, `@vue/language-core`) are left as they are: Oneleet does not report them, and forcing them across a major would touch more tools.
Configuration menu - View commit details
-
Copy full SHA for 75541e2 - Browse repository at this point
Copy the full SHA 75541e2View commit details -
Version Packages (next) (#813)
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ `main` is currently in **pre mode** so this branch has prereleases rather than normal releases. If you want to exit prereleases, run `changeset pre exit` on `main`.⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ # Releases ## @reflag/node-sdk@2.0.0-next.2 ### Patch Changes - 9654308: Replace workspace-only dependency ranges with registry-compatible versions so the published SDKs can be installed outside the monorepo. Keep local workspace linking and the existing v1 OpenFeature dependencies unchanged. ## @reflag/react-native-sdk@2.0.0-next.2 ### Patch Changes - 9654308: Replace workspace-only dependency ranges with registry-compatible versions so the published SDKs can be installed outside the monorepo. Keep local workspace linking and the existing v1 OpenFeature dependencies unchanged. - Updated dependencies [9654308] - @reflag/react-sdk@2.0.0-next.2 ## @reflag/react-sdk@2.0.0-next.2 ### Patch Changes - 9654308: Replace workspace-only dependency ranges with registry-compatible versions so the published SDKs can be installed outside the monorepo. Keep local workspace linking and the existing v1 OpenFeature dependencies unchanged. ## @reflag/vue-sdk@2.0.0-next.2 ### Patch Changes - 9654308: Replace workspace-only dependency ranges with registry-compatible versions so the published SDKs can be installed outside the monorepo. Keep local workspace linking and the existing v1 OpenFeature dependencies unchanged. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>Configuration menu - View commit details
-
Copy full SHA for 0480a3c - Browse repository at this point
Copy the full SHA 0480a3cView commit details
Commits on Nov 21, 2026
-
fix(node-sdk): keep secret flags out of v2 bootstrap data (#814)
## Fix Keep secret flags out of browser data returned by `getFlagsForBootstrap()`, including bound clients. Server-side reads still work, including public flags that depend on secret flags. Remove dependency names from error details sent to the browser. Only flags marked `secret: false` are included. Older definitions without this field, fallback values without definitions, and overrides for unknown or secret flags are left out. Overrides for known public flags still work. ## Upgrading After upgrading, fetch current flag definitions from Reflag to refresh saved fallback snapshots. The browser can read the context passed to bootstrap; leave out secrets and server-only attributes. This PR fixes v2 on `main`. The [v1 fix is separate](#815). ## Tests - 15 new tests failed before the fix and pass now. - 922 tests passed across Node, the evaluator, Browser, React, Vue and Native. - Builds, TypeScript checks, docs, release checks, lint and formatting passed for the changed packages. - The full workspace build, Management SDK generation and browser end-to-end tests were not run locally.
Configuration menu - View commit details
-
Copy full SHA for 49355be - Browse repository at this point
Copy the full SHA 49355beView commit details -
Version Packages (next) (#816)
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ `main` is currently in **pre mode** so this branch has prereleases rather than normal releases. If you want to exit prereleases, run `changeset pre exit` on `main`.⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ # Releases ## @reflag/node-sdk@2.0.0-next.3 ### Patch Changes - 49355be: Keep secret flags out of browser data returned by `getFlagsForBootstrap()`, including bound clients. Server-side reads still work, including public flags that depend on secret flags. Remove dependency names from error details sent to the browser. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>Configuration menu - View commit details
-
Copy full SHA for 5131bf6 - Browse repository at this point
Copy the full SHA 5131bf6View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff maintenance/node-sdk-v1...main