Skip to content

Node.js: Export ´Client´ as a named export, instead of default #5434

Closed

Description

@helderco

Import Client like the rest of codegen types:

-import Client, { connect, Container } from "@dagger.io/dagger"
+import { connect, Client, Container } from "@dagger.io/dagger"

Discussed in:

Mentioned by users as well. Example in discord in relation to #4036.

Warning
Breaking change. This is meant for a breaking release:

Activity

  1. TomChv commented on Jul 14, 2023

    @TomChv
    Member

    That mean every users that currently use Dagger in Typescript will have their pipeline broken after the update of the package until they also update their import.
    Is there anything we shall do about it?

  2. helderco commented on Jul 14, 2023

    @helderco
    ContributorAuthor

    Sorry, I should have been clearer. This issue is scoped for:

  3. gerhard commented on Jul 18, 2023

    @gerhard
    Contributor

    Sounds good, let's do it!

  4. slumbering commented on Jul 20, 2023

    @slumbering
    Contributor

    On top of updating docs, let's not forget to update the website:

    image

  5. self-assigned this
    on Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/breaking

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions