Keeper-Wallet / Keeper-Wallet-Extension

Your entry point to the Waves blockchain and Waves-powered web services
https://keeper-wallet.app
Other
66 stars 46 forks source link

chore(deps): update dependency esbuild to v0.18.13 #1074

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
esbuild 0.18.12 -> 0.18.13 age adoption passing confidence

Release Notes

evanw/esbuild (esbuild) ### [`v0.18.13`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#01813) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.18.12...v0.18.13) - Add the `--drop-labels=` option ([#​2398](https://togithub.com/evanw/esbuild/issues/2398)) If you want to conditionally disable some development-only code and have it not be present in the final production bundle, right now the most straightforward way of doing this is to use the `--define:` flag along with a specially-named global variable. For example, consider the following code: ```js function main() { DEV && doAnExpensiveCheck() } ``` You can build this for development and production like this: - Development: `esbuild --define:DEV=true` - Production: `esbuild --define:DEV=false` One drawback of this approach is that the resulting code crashes if you don't provide a value for `DEV` with `--define:`. In practice this isn't that big of a problem, and there are also various ways to work around this. However, another approach that avoids this drawback is to use JavaScript label statements instead. That's what the `--drop-labels=` flag implements. For example, consider the following code: ```js function main() { DEV: doAnExpensiveCheck() } ``` With this release, you can now build this for development and production like this: - Development: `esbuild` - Production: `esbuild --drop-labels=DEV` This means that code containing optional development-only checks can now be written such that it's safe to run without any additional configuration. The `--drop-labels=` flag takes comma-separated list of multiple label names to drop. - Avoid causing `unhandledRejection` during shutdown ([#​3219](https://togithub.com/evanw/esbuild/issues/3219)) All pending esbuild JavaScript API calls are supposed to fail if esbuild's underlying child process is unexpectedly terminated. This can happen if `SIGINT` is sent to the parent `node` process with Ctrl+C, for example. Previously doing this could also cause an unhandled promise rejection when esbuild attempted to communicate this failure to its own child process that no longer exists. This release now swallows this communication failure, which should prevent this internal unhandled promise rejection. This change means that you can now use esbuild's JavaScript API with a custom `SIGINT` handler that extends the lifetime of the `node` process without esbuild's internals causing an early exit due to an unhandled promise rejection. - Update browser compatibility table scripts The scripts that esbuild uses to compile its internal browser compatibility table have been overhauled. Briefly: - Converted from JavaScript to TypeScript - Fixed some bugs that resulted in small changes to the table - Added [`caniuse-lite`](https://www.npmjs.com/package/caniuse-lite) and [`@mdn/browser-compat-data`](https://www.npmjs.com/package/@​mdn/browser-compat-data) as new data sources (replacing manually-copied information) This change means it's now much easier to keep esbuild's internal compatibility tables up to date. You can review the table changes here if you need to debug something about this change: - [JS table changes](https://togithub.com/evanw/esbuild/compare/d259b8fac717ee347c19bd8299f2c26d7c87481a...af1d35c372f78c14f364b63e819fd69548508f55#diff-1649eb68992c79753469f02c097de309adaf7231b45cc816c50bf751af400eb4) - [CSS table changes](https://togithub.com/evanw/esbuild/commit/95feb2e09877597cb929469ce43811bdf11f50c1#diff-4e1c4f269e02c5ea31cbd5138d66751e32cf0e240524ee8a966ac756f0e3c3cd)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.



This PR has been generated by Mend Renovate. View repository job log here.

github-actions[bot] commented 1 year ago

size-limit report 📦

Path Size
css 24.33 KB (0%)
background 218.12 KB (0%)
ui 430.53 KB (0%)
contentscript 5.2 KB (0%)