Skip to content

Regression in @actions/http-client 2.2.0 since 2.1.1: Bundle size increased by 820kB #1621

@mgrybyk

Description

@mgrybyk

Regression in @actions/http-client 2.2.0 since 2.1.1: Bundle size increase by 820kB

In my case it increased from 320kB to 1130kB.

@actions/http-client is a dependency of @actions/core.

Since changes in @actions/http-client from version 2.1.1 to 2.2.0 the bundle size increased by 820kB as a result of adding the undici dependency to @actions/http-client.

Sorry to say, the @actions/core automatically installs the latest v2 of @actions/http-client which is now 2.2.0 and has terribly huge undici package.

Expected result

Replace the undici with something tiny. 820kB of source code to make http requests is ridiculous.

Additional Information

The root cause is here #1547 where the undici was added.

A lightweight HTTP client optimized for building actions

not "a lightweight" anymore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions