Skip to content

Version Packages - #3

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main
Open

github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@eridu-tech/superjson@3.0.0

Major Changes

  • 4d497bd: The public API is now asynchronous: stringify, parse, serialize and deserialize return Promises, and custom transformers may perform async work.

    Breaking changes

    SuperJSON.stringify, SuperJSON.parse, SuperJSON.serialize and SuperJSON.deserialize — together with the named exports stringify, parse, serialize, deserialize — are now async:

    • stringify(object) returns Promise<string>
    • parse<T>(string) returns Promise<T>
    • serialize(object) returns Promise<SuperJSONResult>
    • deserialize<T>(payload) returns Promise<T>

    Callers must now await these methods. The registration methods (registerClass, registerSymbol, registerCustom, allowErrorProps) remain synchronous.

    Custom transformers

    The CustomTransfomer hooks (isApplicable, serialize, deserialize) may now return either a value or a Promise, so custom transformers can perform asynchronous work (for example, lazily loading a class before serializing it).

    Migration

    // before
    const json = superjson.stringify(object);
    const parsed = superjson.parse(json);
    
    // after
    const json = await superjson.stringify(object);
    const parsed = await superjson.parse(json);

@github-actions
github-actions Bot force-pushed the changeset-release/main branch from b42b36d to 6fe78f6 Compare October 8, 2026 20:43
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 6fe78f6 to fd890d8 Compare October 8, 2026 20:43
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.

0 participants