Plaid breaking change: 42.0.0: Merge pull request #711 from plaid/generated_20260402T213808Z
What changed
Enrichments.recurrence removed; prism nullable; investments responses use InvestmentAccount
From the upstream announcement:
OpenAPI generated code at 2026-04-02T21:38:08Z
Who is affected
Two mechanical edits: (1) delete reads of enrichments.recurrence and any imports of the removed Recurrence/RecurringFrequency types - the upstream data product was discontinued with no successor field, so removal is the safe codemod; (2) add a null guard (optional chaining or explicit check) around partner-insights prism access, since the field is now omitted when Prism Data was not requested.
To find out whether your repo is hit — file and line number, no code leaving your machine:
npx mendapi scan --repo .
How to fix it
Migration path:
Two mechanical edits: (1) delete reads of enrichments.recurrence and any imports of the removed Recurrence/RecurringFrequency types - the upstream data product was discontinued with no successor field, so removal is the safe codemod; (2) add a null guard (optional chaining or explicit check) around partner-insights prism access, since the field is now omitted when Prism Data was not requested. The InvestmentAccount change is additive widening and needs no consumer edit.
Before:
const freq = enrichment.recurrence.frequency; const score = insights.prism.cash_score;
After:
// recurrence removed upstream (product discontinued) const score = insights.prism?.cash_score ?? null;
With your own LLM key configured (BYO compute — mendapi never proxies your credentials), npx mendapi llmfix turns this guide into a reviewable draft patch for your repo.
Detected and tracked by mendapi — Dependabot for every API you depend on. Scans run locally; your code never leaves your machine.
Related
- All monitored providers — live change counts for plaid and 19 others.
- Migration pack catalog — every deterministic fix mendapi ships.
- Getting started — scan your repo in 30 seconds, no code leaves your machine.