Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/workflows/package-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ jobs:
cache-dependency-path: "**/yarn.lock"
- name: Restore Node.js dependencies
run: yarn install --immutable
- name: Audit dependencies
# Accepted exception: npm 1243505 / GHSA-gcqx-w48m-w2h4 (deepmerge).
# Only Expo/RN config and CLI checks in private development apps; no upstream fix.
# Owner: @roncohen. Accepted: 2026-11-06. Review by: 2027-02-04, or when a fix ships.
# audit:ci ignores this advisory only; unfiltered audits still report it.
run: yarn audit:ci
- name: Restore package.json
# This step is necessary because the previous step may have updated package.json
run: git checkout -- package.json packages/*/package.json
Expand All @@ -43,7 +49,16 @@ jobs:
- name: Check standalone examples
run: |
for example in packages/node-sdk/examples/cloudflare-worker packages/openfeature-node-provider/example; do
(cd "$example" && yarn install --immutable && yarn build && yarn test:ci)
(cd "$example" && yarn install --immutable && yarn npm audit --recursive --no-deprecations && yarn build && yarn test:ci)
done
- name: Check native development tooling
run: |
yarn workspace reflag-react-native-sdk-bare-rn react-native config > "$RUNNER_TEMP/native-config.json"
yarn tsc --project packages/react-native-sdk/dev/bare-rn/tsconfig.json --noEmit
yarn tsc --project packages/react-native-sdk/dev/expo/tsconfig.json --noEmit
for platform in ios android; do
yarn workspace reflag-react-native-sdk-bare-rn react-native bundle --platform "$platform" --dev false --entry-file index.js --bundle-output "$RUNNER_TEMP/bare-$platform.bundle" --assets-dest "$RUNNER_TEMP/bare-$platform-assets" --max-workers 2
yarn workspace reflag-react-sdk-expo expo export --platform "$platform" --output-dir "$RUNNER_TEMP/expo-$platform" --max-workers 2
done
- name: Report test results
uses: dorny/test-reporter@v1.6.0
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ playwright-report/
playwright/.cache/

.pnp.*
.yarn
**/.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
Expand Down
23 changes: 23 additions & 0 deletions .yarn/patches/typedoc-npm-0.27.6-baed42df20.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
diff --git a/dist/lib/utils/fs.js b/dist/lib/utils/fs.js
index 2953bf089262c040638d29307c4b4ea7e9925ca9..c6f20f3c13c6ba240d2e6a0aaedc53788c8657b3 100644
--- a/dist/lib/utils/fs.js
+++ b/dist/lib/utils/fs.js
@@ -230,6 +230,8 @@ export function discoverFiles(rootDir, controller) {
*/
export function glob(pattern, root, options = {}) {
const mini = new Minimatch(normalizePath(pattern));
+ // Directory traversal must test the positive pattern, even for negated globs.
+ const partialMini = new Minimatch(normalizePath(pattern), { flipNegate: true });
const shouldIncludeNodeModules = pattern.includes("node_modules");
const controller = {
matches(path) {
@@ -244,7 +246,8 @@ export function glob(pattern, root, options = {}) {
!shouldIncludeNodeModules) {
return false;
}
- return mini.set.some((row) => mini.matchOne(childPath, row, /* partial */ true));
+ // minimatch 11 removes matchOne; match supports partial directory matches.
+ return partialMini.match(childPath.join("/"), /* partial */ true);
},
matchDirectories: options.includeDirectories,
followSymlinks: options.followSymlinks,
38 changes: 35 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"changeset": "changeset",
"dev": "lerna run dev --parallel",
"build": "lerna run build --stream",
"test:ci": "lerna run test:ci --stream",
"test:ci": "yarn test:tooling && lerna run test:ci --stream",
"test:tooling": "node --test scripts/dependency-compat.test.cjs",
"audit:ci": "yarn npm audit --all --recursive --no-deprecations --ignore 1243505",
"test": "lerna run test --stream",
"format": "yarn fmt:fix && yarn lint:fix",
"lint": "yarn oxlint .",
Expand All @@ -38,14 +40,44 @@
"oxlint": "^1.42.0",
"react": "19.1.0",
"react-dom": "19.1.0",
"typedoc": "0.27.6",
"typedoc": "patch:typedoc@npm%3A0.27.6#~/.yarn/patches/typedoc-npm-0.27.6-baed42df20.patch",
"typedoc-plugin-frontmatter": "^1.1.2",
"typedoc-plugin-markdown": "^4.4.2",
"typedoc-plugin-mdn-links": "^4.0.7",
"typescript": "^5.7.3"
},
"resolutions": {
"minimatch@npm:9.0.1": "npm:9.0.9",
"basic-ftp@npm:^5.3.1": "npm:6.2.6",
"glob@npm:13.0.6": "npm:14.0.4",
"glob@npm:^10.3.10": "npm:14.0.4",
"glob@npm:^10.4.1": "npm:14.0.4",
"glob@npm:^13.0.0": "npm:14.0.4",
"glob@npm:^13.0.6": "npm:14.0.4",
"metro-babel-transformer@npm:0.83.3": "npm:0.83.8",
"metro-cache-key@npm:0.83.3": "npm:0.83.8",
"metro-cache@npm:0.83.3": "npm:0.83.8",
"metro-config@npm:0.83.3": "npm:0.83.8",
"metro-core@npm:0.83.3": "npm:0.83.8",
"metro-file-map@npm:0.83.3": "npm:0.83.8",
"metro-minify-terser@npm:0.83.3": "npm:0.83.8",
"metro-resolver@npm:0.83.3": "npm:0.83.8",
"metro-runtime@npm:0.83.3": "npm:0.83.8",
"metro-source-map@npm:0.83.3": "npm:0.83.8",
"metro-symbolicate@npm:0.83.3": "npm:0.83.8",
"metro-transform-plugins@npm:0.83.3": "npm:0.83.8",
"metro-transform-worker@npm:0.83.3": "npm:0.83.8",
"metro@npm:0.83.3": "npm:0.83.8",
"minimatch@npm:10.2.3": "npm:11.0.5",
"minimatch@npm:10.2.5": "npm:11.0.5",
"minimatch@npm:10.2.6": "npm:11.0.5",
"minimatch@npm:^10.0.3": "npm:11.0.5",
"minimatch@npm:^10.2.2": "npm:11.0.5",
"minimatch@npm:^10.2.6": "npm:11.0.5",
"minimatch@npm:^9.0.0": "npm:11.0.5",
"minimatch@npm:^9.0.3": "npm:11.0.5",
"minimatch@npm:^9.0.4": "npm:11.0.5",
"minimatch@npm:^9.0.5": "npm:11.0.5",
"minimatch@npm:~10.2.4": "npm:11.0.5",
"postcss@npm:8.4.31": "npm:8.5.32",
"postcss@npm:~8.4.32": "npm:8.5.32",
"react": "19.1.0",
Expand Down
3 changes: 3 additions & 0 deletions packages/node-sdk/examples/cloudflare-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@
"vitest": "~4.1.12",
"wrangler": "^4.158.0"
},
"resolutions": {
"glob@npm:^10.2.2": "npm:14.0.4"
},
"packageManager": "yarn@4.10.3"
}
Loading
Loading