web icon indicating copy to clipboard operation
web copied to clipboard

chore: upgrade esbuild to 0.20.x

Open 43081j opened this issue 1 year ago • 8 comments

This just bumps esbuild to 0.20.x

it'll help de-dupe a lot of my dependency tree since many of our other dependencies are using esbuild 0.20.x 👀

43081j avatar Mar 01 '24 11:03 43081j

🦋 Changeset detected

Latest commit: dc2351761cd18731857eb902281fe72e3ce41811

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
rollup-plugin-workbox Patch
@web/dev-server-esbuild Patch
@web/storybook-builder Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Mar 01 '24 11:03 changeset-bot[bot]

i think this is blocked until storybook also moves to esbuild 0.20.x

i have a PR here: storybookjs/storybook#26255

43081j avatar Mar 01 '24 12:03 43081j

i think this is blocked until storybook also moves to esbuild 0.20.x

why do you think it's blocked? in theory the storybook-builder is decoupled from storybook not entirely, because the integration is done via a Connect middleware, but esbuild doesn't play a role there so I think we can accept that storybook-builder has a newer esbuild version than the storybook core

bashmish avatar Mar 02 '24 20:03 bashmish

I figured there will be another issue: chialab esbuild plugins used in the storybook-builder are on esbuild 0.19.x (e.g. esbuild-plugin-commonjs), those need compatibility. Can you raise a PR in their repo?

bashmish avatar Mar 03 '24 13:03 bashmish

ah you are right, it isn't storybook, it is the commonjs plugin

basically, our Plugin type we import from esbuild is different than the Plugin the commonjs plugin exports (esbuild-plugin-commonjs)

so we need to upgrade that repo upstream first

43081j avatar Mar 03 '24 15:03 43081j

What about this one? Seems like https://github.com/chialab/rna/tree/main/packages/esbuild-plugin-commonjs was updated quite a while ago 🤔

whjvenyl avatar Oct 07 '24 10:10 whjvenyl

I figured there will be another issue: chialab esbuild plugins used in the storybook-builder are on esbuild 0.19.x (e.g. esbuild-plugin-commonjs), those need compatibility. Can you raise a PR in their repo?

btw this is not an issue anymore, since we don't use chialab esbuild plugins anymore

bashmish avatar Oct 10 '24 10:10 bashmish

@43081j can you please look into updating this PR? the conflicts need to be resolved and we might be able to jump right to [email protected]

bashmish avatar Oct 10 '24 10:10 bashmish

updated to be 0.24.0, but it seems CI fails for unrelated reasons in one of the test runs

not too sure what's going on there 🤔 second pair of eyes would be good

43081j avatar Oct 23 '24 08:10 43081j

Looks to be related to new node 23 released on Oct 16 https://nodejs.org/en/blog/release/v23.0.0

I tested current master with it locally, also breaks.

bashmish avatar Oct 23 '24 09:10 bashmish

@43081j please rebase with latest master to get Node 22 testing back. There will still be failure on Node 23, but that's OK for now, I'll merge with it since it's really not related.

Also small remark: please update the PR title and the changeset to mention 0.24.x instead of 0.20.x

bashmish avatar Oct 23 '24 09:10 bashmish

@43081j any update on this?

UPDATE: just thinking if I have access to the PR myself as a maintainer, will try to update

bashmish avatar Nov 05 '24 13:11 bashmish

Sorry!

I lost track of this as I've been pretty busy travelling

I have it locally mid rebase but ran into a bunch of dependency problems. I can try again in the next day or two unless you beat me to it

43081j avatar Nov 06 '24 04:11 43081j

Rebase worked good for me, updated the rest and merging now! Thanks!

bashmish avatar Nov 06 '24 11:11 bashmish