Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maintenance: wrangler depends on deprecated npm package rollup-plugin-inject #1232

Closed
IgorMinar opened this issue Jun 11, 2022 · 7 comments
Closed
Assignees
Labels
breaking change Change that will result in breaking existing behavior maintenance Maintenance task
Milestone

Comments

@IgorMinar
Copy link
Contributor

What version of Wrangler are you using?

2.0.9

What operating system are you using?

mac

Describe the Bug

npm WARN deprecated rollup-plugin-inject@3.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.

Can you please upgrade to the supported package?

@IgorMinar IgorMinar added the bug Something that isn't working label Jun 11, 2022
@petebacondarwin
Copy link
Contributor

petebacondarwin commented Jun 13, 2022

This is an upstream issue on the dependency chain we use for node-compat:

  • @esbuild-plugins/node-modules-polyfill
    • rollup-plugin-node-polyfills
      • rollup-plugin-inject

See ionic-team/rollup-plugin-node-polyfills#32.

Perhaps we could switch to https://github.com/niksy/node-stdlib-browser instead of @esbuild-plugins/node-modules-polyfill?

@threepointone threepointone added maintenance Maintenance task and removed bug Something that isn't working labels Jun 14, 2022
@threepointone threepointone changed the title 🐛 BUG: wrangler depends on deprecated npm package rollup-plugin-inject maintenance: wrangler depends on deprecated npm package rollup-plugin-inject Jun 14, 2022
@samj
Copy link

samj commented Jul 14, 2023

This and sourcemap-codec are still WARNing as deprecated as at July 2023.

@danielkoek
Copy link

Why is this not getting looked at? When I first started using wrangler I thought i installed the wrong SDK because I got all these warnings, seems a bit sloppy to me

@IgorMinar IgorMinar added the breaking change Change that will result in breaking existing behavior label Aug 30, 2023
@IgorMinar
Copy link
Contributor Author

Updating this version will likely result in a breaking change that might affect unknown (but hopefully only small) number of use-cases. That shouldn't prevent us from updating this. We'll consider this as a change that we'll bundle with a few other minor breaking changes in a future version.

@mrienstra
Copy link

@IgorMinar, just curious, is #3832 (PR to close this issue) more of a breaking change than #3772 (released in wrangler@3.7.0) was?

For convenience: the breaking change in #3772:

Bump esbuild version to 0.17.19. Breaking changes to esbuild are documented here

(apologies if this isn't a useful question)

@1000hz
Copy link
Contributor

1000hz commented Oct 2, 2023

@mrienstra The version of esbuild we bumped to in #3772 was carefully considered so as not to potentially introduce any user-facing breaking changes. Notably, we didn't bump to esbuild@0.18+ since that version includes changes to build output that might affect users in unforeseen ways. We're planning on also making that bump in the next major version of wrangler (#3962)

@mrbbot mrbbot added this to the Wrangler v4 milestone Feb 14, 2024
@lrapoport-cf lrapoport-cf assigned mrbbot and petebacondarwin and unassigned mrbbot Mar 5, 2024
petebacondarwin pushed a commit to MichaelDeBoey/workers-sdk that referenced this issue Mar 8, 2024
Replaces `@esbuild-plugins/node-globals-polyfill` & `@esbuild-plugins/node-modules-polyfill` with the up-to-date & maintained `esbuild-plugins-node-modules-polyfill`

The `esbuild-plugins` repository actually points towards using `esbuild-plugin-polyfill-node` instead
https://github.com/remorses/esbuild-plugins/blob/373b44902ad3e669f7359c857de09a930ce1ce90/README.md?plain=1#L15-L16

But the Remix repo (see remix-run/remix#5274) tried this and found some regressions.
So they chose to go for @imranbarbhuiya's  `esbuild-plugins-node-modules-polyfill` instead (see remix-run/remix#6562), which is an up-to-date and well maintained alternative.

Users should no longer see the following deprecation warnings when installing Wrangler:

```sh
npm WARN deprecated rollup-plugin-inject@3.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
```

Resolves cloudflare#1232
petebacondarwin pushed a commit to MichaelDeBoey/workers-sdk that referenced this issue Mar 8, 2024
Replaces `@esbuild-plugins/node-globals-polyfill` & `@esbuild-plugins/node-modules-polyfill` with the up-to-date & maintained `esbuild-plugins-node-modules-polyfill`

The `esbuild-plugins` repository actually points towards using `esbuild-plugin-polyfill-node` instead
https://github.com/remorses/esbuild-plugins/blob/373b44902ad3e669f7359c857de09a930ce1ce90/README.md?plain=1#L15-L16

But the Remix repo (see remix-run/remix#5274) tried this and found some regressions.
So they chose to go for @imranbarbhuiya's  `esbuild-plugins-node-modules-polyfill` instead (see remix-run/remix#6562), which is an up-to-date and well maintained alternative.

Users should no longer see the following deprecation warnings when installing Wrangler:

```sh
npm WARN deprecated rollup-plugin-inject@3.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
```

Resolves cloudflare#1232
petebacondarwin pushed a commit to MichaelDeBoey/workers-sdk that referenced this issue Mar 8, 2024
Replaces `@esbuild-plugins/node-globals-polyfill` & `@esbuild-plugins/node-modules-polyfill` with the up-to-date & maintained `esbuild-plugins-node-modules-polyfill`

The `esbuild-plugins` repository actually points towards using `esbuild-plugin-polyfill-node` instead
https://github.com/remorses/esbuild-plugins/blob/373b44902ad3e669f7359c857de09a930ce1ce90/README.md?plain=1#L15-L16

But the Remix repo (see remix-run/remix#5274) tried this and found some regressions.
So they chose to go for @imranbarbhuiya's  `esbuild-plugins-node-modules-polyfill` instead (see remix-run/remix#6562), which is an up-to-date and well maintained alternative.

Users should no longer see the following deprecation warnings when installing Wrangler:

```sh
npm WARN deprecated rollup-plugin-inject@3.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
```

Resolves cloudflare#1232
petebacondarwin pushed a commit that referenced this issue Mar 9, 2024
Replaces `@esbuild-plugins/node-globals-polyfill` & `@esbuild-plugins/node-modules-polyfill` with the up-to-date & maintained `esbuild-plugins-node-modules-polyfill`

The `esbuild-plugins` repository actually points towards using `esbuild-plugin-polyfill-node` instead
https://github.com/remorses/esbuild-plugins/blob/373b44902ad3e669f7359c857de09a930ce1ce90/README.md?plain=1#L15-L16

But the Remix repo (see remix-run/remix#5274) tried this and found some regressions.
So they chose to go for @imranbarbhuiya's  `esbuild-plugins-node-modules-polyfill` instead (see remix-run/remix#6562), which is an up-to-date and well maintained alternative.

Users should no longer see the following deprecation warnings when installing Wrangler:

```sh
npm WARN deprecated rollup-plugin-inject@3.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
```

Resolves #1232
petebacondarwin pushed a commit to MichaelDeBoey/workers-sdk that referenced this issue Mar 13, 2024
Replaces `@esbuild-plugins/node-globals-polyfill` & `@esbuild-plugins/node-modules-polyfill` with the up-to-date & maintained `esbuild-plugins-node-modules-polyfill`

The `esbuild-plugins` repository actually points towards using `esbuild-plugin-polyfill-node` instead
https://github.com/remorses/esbuild-plugins/blob/373b44902ad3e669f7359c857de09a930ce1ce90/README.md?plain=1#L15-L16

But the Remix repo (see remix-run/remix#5274) tried this and found some regressions.
So they chose to go for @imranbarbhuiya's  `esbuild-plugins-node-modules-polyfill` instead (see remix-run/remix#6562), which is an up-to-date and well maintained alternative.

Users should no longer see the following deprecation warnings when installing Wrangler:

```sh
npm WARN deprecated rollup-plugin-inject@3.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
```

Resolves cloudflare#1232
petebacondarwin pushed a commit to MichaelDeBoey/workers-sdk that referenced this issue Mar 16, 2024
Replaces `@esbuild-plugins/node-globals-polyfill` & `@esbuild-plugins/node-modules-polyfill` with the up-to-date & maintained `esbuild-plugins-node-modules-polyfill`

The `esbuild-plugins` repository actually points towards using `esbuild-plugin-polyfill-node` instead
https://github.com/remorses/esbuild-plugins/blob/373b44902ad3e669f7359c857de09a930ce1ce90/README.md?plain=1#L15-L16

But the Remix repo (see remix-run/remix#5274) tried this and found some regressions.
So they chose to go for @imranbarbhuiya's  `esbuild-plugins-node-modules-polyfill` instead (see remix-run/remix#6562), which is an up-to-date and well maintained alternative.

Users should no longer see the following deprecation warnings when installing Wrangler:

```sh
npm WARN deprecated rollup-plugin-inject@3.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
```

Resolves cloudflare#1232
@petebacondarwin
Copy link
Contributor

We've landed the update to esbuild plugins into the v4 branch so closing this as complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Change that will result in breaking existing behavior maintenance Maintenance task
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

8 participants