Skip to content

Update flatted to 3.4.4 - #78

Merged
NicolasBonet merged 1 commit into
mainfrom
maxence-update-flatted
Nov 25, 2026
Merged

NicolasBonet merged 1 commit into
mainfrom
maxence-update-flatted

Conversation

@madmax330

Copy link
Copy Markdown
Contributor

Explanation of Change

Updates flatted to 3.4.4 in both lockfiles (2.0.2 and 3.2.7 → 3.4.4 in package-lock.json; 3.2.7 → 3.4.4 in example/package-lock.json). This closes all three open flatted Dependabot alerts:

flatted@3.4.4 was published on July 30, 2026, so it satisfies the repo's min-release-age=7 requirement.

  • Root: eslint-config-expensify depends on eslint@6 → flat-cache@2.0.1 (flatted@^2.0.0), while top-level eslint@8 depends on flat-cache@3.0.4 (flatted@^3.1.0). Adds "flatted": "^3.4.2" to overrides in package.json, deduplicating both to 3.4.4. Also merges the duplicate "overrides" keys currently in package.json into a single block so external-editor.tmp (0.2.7) and lodash (^4.18.1) are both preserved. flatted is dev-only (used by ESLint's cache) and does not ship in the library.
  • Example app: only react-scripts → eslint → file-entry-cache → flat-cache@3.0.4 (flatted@^3.1.0) depends on flatted, which already allows 3.4.4, so this is a lockfile-only change (npm update flatted --package-lock-only).

Fixed Issues

$ https://github.com/Expensify/Expensify/issues/707735

AI Tests

  • Ran npm ci in the root and in example/ on Node 26.12.1 / npm 11.20.0.
  • npm ls flatted --all resolves only flatted@3.4.4 in both root and example/.
  • npm ls tmp lodash flatted --all in the root confirms tmp@0.2.7 and lodash@4.18.1 overrides remain intact.
  • npm audit --json reports no flatted vulnerabilities in either root or example/.
  • Ran npm test, npm run lint, npm run lint -- --cache twice (exercising flat-cache / flatted), and npm run build in the root — all pass.
  • Verified with a Node smoke test that both flat-cache@2.0.1 and flat-cache@3.0.4 round-trip cyclic objects with flatted@3.4.4, and that both the prototype-pollution and deep-recursion PoCs are mitigated.

Tests

  1. In the repo root, run npm ci.
  2. Run npm ls flatted --all and confirm every entry resolves to 3.4.4.
  3. Run npm test, npm run lint, npm run lint -- --cache twice, and npm run build, and confirm they pass.
  4. In example/, run npm ci.
  5. Run npm ls flatted --all and confirm every entry resolves to 3.4.4.

QA

NA

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@madmax330
madmax330 requested a review from a team November 25, 2026 10:35
@expensify-chore-bot
expensify-chore-bot Bot requested review from NicolasBonet and removed request for a team November 25, 2026 10:36
@madmax330

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

exfy-clabot Bot added a commit to Expensify/CLA that referenced this pull request Nov 25, 2026
@NicolasBonet
NicolasBonet merged commit 2021462 into main Nov 25, 2026
5 of 7 checks passed
@NicolasBonet
NicolasBonet deleted the maxence-update-flatted branch November 25, 2026 14:47
@os-botify

os-botify Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

🚀 Published to npm in 1.0.30 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants