v6.0.0
6.0.0 (2026-05-21)
BREAKING CHANGES
- every site must re-run
npm run generate:invoke
after bumping. The emitted file gains new imports and a per-handler
helper call; staleinvoke.gen.tsfiles keep the silent-drop
behavior. Also requires@decocms/appsmajor release containing the
restoredvtex/invoke.ts(the generator scans it as its source of
truth — earlier apps versions error out).
Tests:
- new
scripts/generate-invoke.test.tsruns the generator
end-to-end against a minimal fixture invoke.ts and asserts:
framework imports present; helper declared exactly once;
forwardResponseCookies()called inside every handler;
forwardResponseCookies()ordered AFTER the action awaits
(soRequestContextis populated). - 617/617 in the full suite.
Co-authored-by: Cursor cursoragent@cursor.com