Skip to content

fix: use dynamic import for cookie#363

Open
climba03003 wants to merge 1 commit into
mainfrom
use-dynamic-import-cookie
Open

fix: use dynamic import for cookie#363
climba03003 wants to merge 1 commit into
mainfrom
use-dynamic-import-cookie

Conversation

@climba03003

Copy link
Copy Markdown
Member

Fixes #362

Checklist

Comment thread index.js
Comment on lines +19 to +20
function parse (header, options) {
return cookieModule.parseCookie(header, options)

@climba03003 climba03003 Jul 11, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The wrapper is required for module.exports.

@Tony133

Tony133 commented Jul 11, 2026

Copy link
Copy Markdown
Member

This could be a solution ( a temporary workaround ) while we wait for the release of Fastify v6, and it would save us from having to undo the changes we made for the update to cookie v2.x.

@Tony133 Tony133 requested a review from mcollina July 11, 2026 09:46
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.

Update to cookie version 2 breaks CommonJS

2 participants