Skip to content

v6.0.0

Choose a tag to compare

@github-actions github-actions released this 21 May 21:02
· 21 commits to main since this release
3bbf978

6.0.0 (2026-05-21)

  • feat(generate-invoke)!: emit forwardResponseCookies bridge in invoke.gen.ts (#195) (3bbf978)

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; stale invoke.gen.ts files keep the silent-drop
    behavior. Also requires @decocms/apps major release containing the
    restored vtex/invoke.ts (the generator scans it as its source of
    truth — earlier apps versions error out).

Tests:

  • new scripts/generate-invoke.test.ts runs 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
    (so RequestContext is populated).
  • 617/617 in the full suite.

Co-authored-by: Cursor cursoragent@cursor.com