Skip to content

Commit 2e9307d

Browse files
chore(deps): update dependency esbuild to v0.27.4 (#867)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [esbuild](https://redirect.github.com/evanw/esbuild) | [`0.27.3` → `0.27.4`](https://renovatebot.com/diffs/npm/esbuild/0.27.3/0.27.4) | ![age](https://developer.mend.io/api/mc/badges/age/npm/esbuild/0.27.4?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/esbuild/0.27.3/0.27.4?slim=true) | --- ### Release Notes <details> <summary>evanw/esbuild (esbuild)</summary> ### [`v0.27.4`](https://redirect.github.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#0274) [Compare Source](https://redirect.github.com/evanw/esbuild/compare/v0.27.3...f9c9012cdb05135873722184b01f078ea7de8d98) - Fix a regression with CSS media queries ([#&#8203;4395](https://redirect.github.com/evanw/esbuild/issues/4395), [#&#8203;4405](https://redirect.github.com/evanw/esbuild/issues/4405), [#&#8203;4406](https://redirect.github.com/evanw/esbuild/issues/4406)) Version 0.25.11 of esbuild introduced support for parsing media queries. This unintentionally introduced a regression with printing media queries that use the `<media-type> and <media-condition-without-or>` grammar. Specifically, esbuild was failing to wrap an `or` clause with parentheses when inside `<media-condition-without-or>`. This release fixes the regression. Here is an example: ```css /* Original code */ @&#8203;media only screen and ((min-width: 10px) or (min-height: 10px)) { a { color: red } } /* Old output (incorrect) */ @&#8203;media only screen and (min-width: 10px) or (min-height: 10px) { a { color: red; } } /* New output (correct) */ @&#8203;media only screen and ((min-width: 10px) or (min-height: 10px)) { a { color: red; } } ``` - Fix an edge case with the `inject` feature ([#&#8203;4407](https://redirect.github.com/evanw/esbuild/issues/4407)) This release fixes an edge case where esbuild's `inject` feature could not be used with arbitrary module namespace names exported using an `export {} from` statement with bundling disabled and a target environment where arbitrary module namespace names is unsupported. With the fix, the following `inject` file: ```js import jquery from 'jquery'; export { jquery as 'window.jQuery' }; ``` Can now always be rewritten as this without esbuild sometimes incorrectly generating an error: ```js export { default as 'window.jQuery' } from 'jquery'; ``` - Attempt to improve API handling of huge metafiles ([#&#8203;4329](https://redirect.github.com/evanw/esbuild/issues/4329), [#&#8203;4415](https://redirect.github.com/evanw/esbuild/issues/4415)) This release contains a few changes that attempt to improve the behavior of esbuild's JavaScript API with huge metafiles (esbuild's name for the build metadata, formatted as a JSON object). The JavaScript API is designed to return the metafile JSON as a JavaScript object in memory, which makes it easy to access from within a JavaScript-based plugin. Multiple people have encountered issues where this API breaks down with a pathologically-large metafile. The primary issue is that V8 has an implementation-specific maximum string length, so using the `JSON.parse` API with large enough strings is impossible. This release will now attempt to use a fallback JavaScript-based JSON parser that operates directly on the UTF8-encoded JSON bytes instead of using `JSON.parse` when the JSON metafile is too big to fit in a JavaScript string. The new fallback path has not yet been heavily-tested. The metafile will also now be generated with whitespace removed if the bundle is significantly large, which will reduce the size of the metafile JSON slightly. However, hitting this case is potentially a sign that something else is wrong. Ideally you wouldn't be building something so enormous that the build metadata can't even fit inside a JavaScript string. You may want to consider optimizing your project, or breaking up your project into multiple parts that are built independently. Another option could potentially be to use esbuild's command-line API instead of its JavaScript API, which is more efficient (although of course then you can't use JavaScript plugins, so it may not be an option). </details> --- ### Configuration 📅 **Schedule**: Branch creation - "every weekday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/apify/apify-client-js). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My41OS4wIiwidXBkYXRlZEluVmVyIjoiNDMuNTkuMCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent a967f1f commit 2e9307d

2 files changed

Lines changed: 109 additions & 109 deletions

File tree

0 commit comments

Comments
 (0)