Skip to content

fix(node): align ESM examples with the CommonJS runtime contract #17

@ubugeeei

Description

@ubugeeei

Problem

README documents import { Decoder, encodeEvent } from "@matesinc/fastsse-node", but the package is currently CommonJS (type: "commonjs") and exports through module.exports = require(...). A local Node 24 ESM smoke import fails with Named export not found.

Acceptance criteria

  • Either add a real ESM wrapper/export map that supports named ESM imports, or update docs/types to the supported CommonJS/default import contract.
  • Add a runtime smoke test for the documented import style.
  • Keep CommonJS consumers working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:highHigh priority for production readinessproduction-readinessProduction readiness hardening before public releasetype:bugBehavioral defect or broken release path

    Type

    No type
    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