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.
Regression in
@actions/http-client2.2.0since2.1.1: Bundle size increase by 820kBIn my case it increased from 320kB to 1130kB.
@actions/http-clientis a dependency of@actions/core.Since changes in
@actions/http-clientfrom version2.1.1to2.2.0the bundle size increased by 820kB as a result of adding theundicidependency to@actions/http-client.Sorry to say, the
@actions/coreautomatically installs the latest v2 of@actions/http-clientwhich is now2.2.0and has terribly hugeundicipackage.Expected result
Replace the
undiciwith something tiny. 820kB of source code to make http requests is ridiculous.Additional Information
The root cause is here #1547 where the
undiciwas added.not "a lightweight" anymore.