Skip to content

Update to cookie version 2 breaks CommonJS #362

Description

@cberescu

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the bug has not already been reported

Fastify version

5.4.0

Plugin version

11.1.1

Node.js version

22.x

Operating system

Linux

Operating system version (i.e. 20.04, 11.3, 10)

ubuntu 22

Description

After updating the cookie package in #361 commonjs require breaks as cookie package v2 completely migrated to ES Modules (ESM).

I believe this should be reverted and release the changes under a different major version as it is a breaking change

Link to code that reproduces the bug

/

Expected Behavior

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions