sveltejs / vite-plugin-svelte

Svelte plugin for http://vitejs.dev/
MIT License
864 stars 105 forks source link

chore(deps): update all non-major dependencies #688

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
@fontsource/fira-mono (source) ^5.0.4 -> ^5.0.5 age adoption passing confidence
@sveltejs/adapter-node (source) ^1.3.0 -> ^1.3.1 age adoption passing confidence
@sveltejs/kit (source) ^1.21.0 -> ^1.22.3 age adoption passing confidence
@typescript-eslint/eslint-plugin ^5.61.0 -> ^5.62.0 age adoption passing confidence
@typescript-eslint/parser ^5.61.0 -> ^5.62.0 age adoption passing confidence
carbon-components-svelte ^0.76.0 -> ^0.77.0 age adoption passing confidence
esbuild ^0.18.11 -> ^0.18.14 age adoption passing confidence
eslint (source) ^8.44.0 -> ^8.45.0 age adoption passing confidence
magic-string ^0.30.0 -> ^0.30.1 age adoption passing confidence
playwright-core (source) ~1.35.1 -> ~1.36.1 age adoption passing confidence
pnpm (source) 8.6.6 -> 8.6.9 age adoption passing confidence
postcss (source) ^8.4.24 -> ^8.4.26 age adoption passing confidence
publint (source) ^0.1.15 -> ^0.1.16 age adoption passing confidence
svelte (source) ^4.0.3 -> ^4.0.5 age adoption passing confidence
svelte-check ^3.4.4 -> ^3.4.6 age adoption passing confidence
svelte-i18n ^3.6.0 -> ^3.7.0 age adoption passing confidence
vite (source) ^4.3.9 -> ^4.4.4 age adoption passing confidence
vitest ^0.32.4 -> ^0.33.0 age adoption passing confidence

Release Notes

fontsource/font-files (@​fontsource/fira-mono) ### [`v5.0.5`](https://togithub.com/fontsource/font-files/compare/b02089c146de321a36fd941f4129392b8f5fbccd...0e9c76a4e7a6f66254f74cea2346120c55ac2405) [Compare Source](https://togithub.com/fontsource/font-files/compare/b02089c146de321a36fd941f4129392b8f5fbccd...0e9c76a4e7a6f66254f74cea2346120c55ac2405)
sveltejs/kit (@​sveltejs/adapter-node) ### [`v1.3.1`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/adapter-node/CHANGELOG.md#131) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/adapter-node@1.3.0...@sveltejs/adapter-node@1.3.1) ##### Patch Changes - fix: build output stuck on top level await ([#​10314](https://togithub.com/sveltejs/kit/pull/10314)) - Updated dependencies \[[`c1ad5b2f8`](https://togithub.com/sveltejs/kit/commit/c1ad5b2f84762a34adb327a0e309792603b405b3), [`67a0d869b`](https://togithub.com/sveltejs/kit/commit/67a0d869b3221925c3f456127205a4aee0b28e85), [`4d7f38fa1`](https://togithub.com/sveltejs/kit/commit/4d7f38fa18c75991bca3f723cdc50d8a67036f83), [`42c9b935e`](https://togithub.com/sveltejs/kit/commit/42c9b935e49fbbeff7065d1b2a31986c0b814956), [`42c9b935e`](https://togithub.com/sveltejs/kit/commit/42c9b935e49fbbeff7065d1b2a31986c0b814956)]: - [@​sveltejs/kit](https://togithub.com/sveltejs/kit)[@​1](https://togithub.com/1).22.0
sveltejs/kit (@​sveltejs/kit) ### [`v1.22.3`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1223) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.22.2...@sveltejs/kit@1.22.3) ##### Patch Changes - fix: gracefully handle server endpoints that return `Response`s with immutable `Headers` ([#​10367](https://togithub.com/sveltejs/kit/pull/10367)) ### [`v1.22.2`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1222) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.22.1...@sveltejs/kit@1.22.2) ##### Patch Changes - fix: wait a tick before announcing new page title ([#​10363](https://togithub.com/sveltejs/kit/pull/10363)) - feat: more helpful error for preview if build output doesn't exist ([#​10337](https://togithub.com/sveltejs/kit/pull/10337)) ### [`v1.22.1`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1221) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.22.0...@sveltejs/kit@1.22.1) ##### Patch Changes - perf: only have Vite generate relative paths when required ([#​10287](https://togithub.com/sveltejs/kit/pull/10287)) ### [`v1.22.0`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1220) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.21.0...@sveltejs/kit@1.22.0) ##### Minor Changes - feat: add `HEAD` server method ([#​9753](https://togithub.com/sveltejs/kit/pull/9753)) - feat: support caching of responses with `Vary` header (except for `Vary: *`) ([#​9993](https://togithub.com/sveltejs/kit/pull/9993)) ##### Patch Changes - fix: avoid running load function on invalid requests ([#​9752](https://togithub.com/sveltejs/kit/pull/9752)) - fix: update page store when URL hash is changed from the address bar ([#​10202](https://togithub.com/sveltejs/kit/pull/10202)) - fix: include `Vary: Accept` header to fix browser caching of adjacent pages and endpoints ([#​9993](https://togithub.com/sveltejs/kit/pull/9993))
typescript-eslint/typescript-eslint (@​typescript-eslint/eslint-plugin) ### [`v5.62.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#5620-2023-07-10) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.61.0...v5.62.0) ##### Bug Fixes - **eslint-plugin:** \[comma-spacing] allow no space after trailing comma in objects and arrays ([#​6938](https://togithub.com/typescript-eslint/typescript-eslint/issues/6938)) ([24bdacc](https://togithub.com/typescript-eslint/typescript-eslint/commit/24bdacc7e5df40c92031a1bd7e9815d66a35b31d)) - **eslint-plugin:** \[prefer-includes] escape special characters ([#​7161](https://togithub.com/typescript-eslint/typescript-eslint/issues/7161)) ([5a347a5](https://togithub.com/typescript-eslint/typescript-eslint/commit/5a347a5978bc5737412bd12d61eb6058163cf4a0)), closes [#​7145](https://togithub.com/typescript-eslint/typescript-eslint/issues/7145) - **eslint-plugin:** replace auto-fix of class literal property style rule with suggestion ([#​7054](https://togithub.com/typescript-eslint/typescript-eslint/issues/7054)) ([a8c824a](https://togithub.com/typescript-eslint/typescript-eslint/commit/a8c824a1e84453f93cd2b464fc102bc878c1aff3)) ##### Features - **eslint-plugin:** \[prefer-nullish-coalescing] add `ignorePrimitives` option ([#​6487](https://togithub.com/typescript-eslint/typescript-eslint/issues/6487)) ([6edaa04](https://togithub.com/typescript-eslint/typescript-eslint/commit/6edaa04565576f0af7e60bc08602bd781c847804)) You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website.
typescript-eslint/typescript-eslint (@​typescript-eslint/parser) ### [`v5.62.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#5620-2023-07-10) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.61.0...v5.62.0) **Note:** Version bump only for package [@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website.
carbon-design-system/carbon-components-svelte (carbon-components-svelte) ### [`v0.77.0`](https://togithub.com/carbon-design-system/carbon-components-svelte/blob/HEAD/CHANGELOG.md#0770-2023-07-13) [Compare Source](https://togithub.com/carbon-design-system/carbon-components-svelte/compare/v0.76.1...v0.77.0) ##### Features - **ui-shell:** add `preventCloseOnClickOutside` to `HeaderAction` ([#​1625](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1625)) ([ea9b261](https://togithub.com/carbon-design-system/carbon-components-svelte/commit/ea9b261b60698f9314e0aae4d61025bae215cccf)), closes [#​1624](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1624) - **ui-shell:** make `company` in `Header` slottable ([#​1764](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1764)) ([9b3f014](https://togithub.com/carbon-design-system/carbon-components-svelte/commit/9b3f014a0ba43abb5a36be4a6156910b5d7644d7)) ##### [0.76.1](https://togithub.com/carbon-design-system/carbon-components-svelte/compare/v0.76.0...v0.76.1) (2023-07-08) ##### Bug Fixes - **date-picker:** hide `helperText` if invalid or warning state ([#​1759](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1759)) ([d5a4a8b](https://togithub.com/carbon-design-system/carbon-components-svelte/commit/d5a4a8b94a8753545a54f7e43f1773e49a1ff208)) - **select:** hide `helperText` if invalid or warning state ([#​1761](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1761)) ([7579c03](https://togithub.com/carbon-design-system/carbon-components-svelte/commit/7579c032faa3f1b9ad9d42f76da876f38725141e)) - **slider:** `disabled` Slider should not submit a form ([#​1758](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1758)) ([ab21c89](https://togithub.com/carbon-design-system/carbon-components-svelte/commit/ab21c89ab9240f61bd15d8c20bad65b3b469a29c)) - **types:** allow `data-*` attributes for props forwarded to HTML elements ([#​1741](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1741)) ([7fdc2ef](https://togithub.com/carbon-design-system/carbon-components-svelte/commit/7fdc2ef7f072382842cbb6bfc8e12e083aef1a1e)) ##### [0.76.0](https://togithub.com/carbon-design-system/carbon-components-svelte/compare/v0.75.1...v0.75.2) (2023-06-21) ##### Features - make `titleText` slottable in `MultiSelect`, `ComboBox` ([#​1750](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1750)) ([0b4f19c](https://togithub.com/carbon-design-system/carbon-components-svelte/commit/0b4f19c87e8479f0649fa2c5dc84beb4c1a1e302)), closes [#​1747](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1747) ##### [0.75.1](https://togithub.com/carbon-design-system/carbon-components-svelte/compare/v0.75.0...v0.75.1) (2023-06-02) ##### Bug Fixes - **expandable-tile:** set tile height using resize observer ([#​1738](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1738)) ([a369962](https://togithub.com/carbon-design-system/carbon-components-svelte/commit/a369962fdf96f95bbdcc2f8f9f84c5d900ec4087)) ##### [0.75.0](https://togithub.com/carbon-design-system/carbon-components-svelte/compare/v0.74.0...v0.74.1) (2023-05-21) ##### Features - **pagination-nav:** add `tooltipPosition` prop ([#​1733](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1733)) ([60a796e](https://togithub.com/carbon-design-system/carbon-components-svelte/commit/60a796ea48b17a4e8829b8782aaddb569534c7c4)), closes [#​1656](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1656) ##### [0.74.0](https://togithub.com/carbon-design-system/carbon-components-svelte/compare/v0.73.5...v0.74.0) (2023-05-18) ##### Features - **ui-shell:** make `HeaderNavItem` slottable ([#​1693](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1693)) ([b9aaa3a](https://togithub.com/carbon-design-system/carbon-components-svelte/commit/b9aaa3adcaf87e34ac3d45a2e39f1db92ebe1b33)) ##### Bug Fixes - resolve `a11y` warnings from Svelte version 3.58 ([#​1732](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1732)) ([c02b473](https://togithub.com/carbon-design-system/carbon-components-svelte/commit/c02b4738bce612359148267c79450c6650bf68d3)) ##### [0.73.5](https://togithub.com/carbon-design-system/carbon-components-svelte/compare/v0.73.4...v0.73.5) (2023-03-26) ##### [0.73.4](https://togithub.com/carbon-design-system/carbon-components-svelte/compare/v0.73.3...v0.73.4) (2023-03-21) ##### Bug Fixes - **selectable-tile:** include dispatched events in types ([#​1695](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1695)) ([ca40dd1](https://togithub.com/carbon-design-system/carbon-components-svelte/commit/ca40dd18c2af1bc755b857c39469427038f20ece)), closes [#​1694](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1694) - **text-input:** correctly set input padding for warning state ([#​1688](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1688)) ([821233a](https://togithub.com/carbon-design-system/carbon-components-svelte/commit/821233ab4f0bf247dea6a8aa32b79d15424ff059)), closes [#​1687](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1687) ##### [0.73.3](https://togithub.com/carbon-design-system/carbon-components-svelte/compare/v0.73.2...v0.73.3) (2023-03-11) ##### Bug Fixes - **1684:** hide helper text container in password input when not used ([#​1685](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1685)) ([42349eb](https://togithub.com/carbon-design-system/carbon-components-svelte/commit/42349ebc61fdc8756fc5209d4cb63f4f9a63dce9)) ##### [0.73.2](https://togithub.com/carbon-design-system/carbon-components-svelte/compare/v0.73.1...v0.73.2) (2023-02-27) ##### Bug Fixes - `readonly` should override `error` behavior in `TextInput`, `NumberInput` ([#​1666](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1666)) ([6386c33](https://togithub.com/carbon-design-system/carbon-components-svelte/commit/6386c33f939b5fa310e8eb5a51412c6151de75d2)), closes [/github.com/carbon-design-system/carbon-components-svelte/pull/1666#pullrequestreview-1314558645](https://togithub.com/carbon-design-system//github.com/carbon-design-system/carbon-components-svelte/pull/1666/issues/pullrequestreview-1314558645) ##### [0.73.1](https://togithub.com/carbon-design-system/carbon-components-svelte/compare/v0.73.0...v0.73.1) (2023-02-19) ##### Bug Fixes - **textinput/passwordinput:** apply aria-describedby to hint text ([b435be4](https://togithub.com/carbon-design-system/carbon-components-svelte/commit/b435be4f1221b30c9afd7a9e1c6867b38eeadeaa)), closes [#​1633](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1633) ##### [0.73.0](https://togithub.com/carbon-design-system/carbon-components-svelte/compare/v0.72.3...v0.73.0) (2023-02-19) ##### Features - **progress-bar:** add `status` prop ([#​1560](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1560)) ([7ddbf17](https://togithub.com/carbon-design-system/carbon-components-svelte/commit/7ddbf17cbb82bd78256037af8028ea20b9c35d5a)) ##### [0.72.3](https://togithub.com/carbon-design-system/carbon-components-svelte/compare/v0.72.2...v0.72.3) (2023-02-11) ##### Bug Fixes - **types:** add missing `$$restProps` for `Checkbox`, `Filename`, `FluidForm` ([#​1655](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1655)) ([6450e8b](https://togithub.com/carbon-design-system/carbon-components-svelte/commit/6450e8b0b17e1538043f131d64e2d1fc667c95a8)) ##### [0.72.2](https://togithub.com/carbon-design-system/carbon-components-svelte/compare/v0.72.1...v0.72.2) (2023-02-05) ##### Bug Fixes - **dropdown:** dispatch correct `selectedItem` in `select` event ([#​1646](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1646)) ([d897484](https://togithub.com/carbon-design-system/carbon-components-svelte/commit/d897484abfcc8be351ac87b0f0bb49900f4b4b1d)), closes [#​1645](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1645) ##### [0.72.1](https://togithub.com/carbon-design-system/carbon-components-svelte/compare/v0.72.0...v0.72.1) (2023-01-25) ##### Bug Fixes - **dropdown:** fix ssr issue ([#​1639](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1639)) ([8cb5d53](https://togithub.com/carbon-design-system/carbon-components-svelte/commit/8cb5d538f7ad10d7c93e10c04f01d2c77b4eba44)), closes [#​1638](https://togithub.com/carbon-design-system/carbon-components-svelte/issues/1638) ### [`v0.76.1`](https://togithub.com/carbon-design-system/carbon-components-svelte/blob/HEAD/CHANGELOG.md#0761-2023-07-08) [Compare Source](https://togithub.com/carbon-design-system/carbon-components-svelte/compare/v0.76.0...v0.76.1)
evanw/esbuild (esbuild) ### [`v0.18.14`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#01814) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.18.13...v0.18.14) - Implement local CSS names ([#​20](https://togithub.com/evanw/esbuild/issues/20)) This release introduces two new loaders called `global-css` and `local-css` and two new pseudo-class selectors `:local()` and `:global()`. This is a partial implementation of the popular [CSS modules](https://togithub.com/css-modules/css-modules) approach for avoiding unintentional name collisions in CSS. I'm not calling this feature "CSS modules" because although some people in the community call it that, other people in the community have started using "CSS modules" to refer to [something completely different](https://togithub.com/WICG/webcomponents/blob/60c9f682b63c622bfa0d8222ea6b1f3b659e007c/proposals/css-modules-v1-explainer.md) and now CSS modules is an overloaded term. Here's how this new local CSS name feature works with esbuild: - Identifiers that look like `.className` and `#idName` are global with the `global-css` loader and local with the `local-css` loader. Global identifiers are the same across all files (the way CSS normally works) but local identifiers are different between different files. If two separate CSS files use the same local identifier `.button`, esbuild will automatically rename one of them so that they don't collide. This is analogous to how esbuild automatically renames JS local variables with the same name in separate JS files to avoid name collisions. - It only makes sense to use local CSS names with esbuild when you are also using esbuild's bundler to bundle JS files that import CSS files. When you do that, esbuild will generate one export for each local name in the CSS file. The JS code can import these names and use them when constructing HTML DOM. For example: ```js // app.js import { outerShell } from './app.css' const div = document.createElement('div') div.className = outerShell document.body.appendChild(div) ``` ```css /* app.css */ .outerShell { position: absolute; inset: 0; } ``` When you bundle this with `esbuild app.js --bundle --loader:.css=local-css --outdir=out` you'll now get this (notice how the local CSS name `outerShell` has been renamed): ```js // out/app.js (() => { // app.css var outerShell = "app_outerShell"; // app.js var div = document.createElement("div"); div.className = outerShell; document.body.appendChild(div); })(); ``` ```css /* out/app.css */ .app_outerShell { position: absolute; inset: 0; } ``` This feature only makes sense to use when bundling is enabled both because your code needs to `import` the renamed local names so that it can use them, and because esbuild needs to be able to process all CSS files containing local names in a single bundling operation so that it can successfully rename conflicting local names to avoid collisions. - If you are in a global CSS file (with the `global-css` loader) you can create a local name using `:local()`, and if you are in a local CSS file (with the `local-css` loader) you can create a global name with `:global()`. So the choice of the `global-css` loader vs. the `local-css` loader just sets the default behavior for identifiers, but you can override it on a case-by-case basis as necessary. For example: ```css :local(.button) { color: red; } :global(.button) { color: blue; } ``` Processing this CSS file with esbuild with either the `global-css` or `local-css` loader will result in something like this: ```css .stdin_button { color: red; } .button { color: blue; } ``` - The names that esbuild generates for local CSS names are an implementation detail and are not intended to be hard-coded anywhere. The only way you should be referencing the local CSS names in your JS or HTML is with an `import` statement in JS that is bundled with esbuild, as demonstrated above. For example, when `--minify` is enabled esbuild will use a different name generation algorithm which generates names that are as short as possible (analogous to how esbuild minifies local identifiers in JS). - You can easily use both global CSS files and local CSS files simultaneously if you give them different file extensions. For example, you could pass `--loader:.css=global-css` and `--loader:.module.css=local-css` to esbuild so that `.css` files still use global names by default but `.module.css` files use local names by default. - Keep in mind that the `css` loader is different than the `global-css` loader. The `:local` and `:global` annotations are not enabled with the `css` loader and will be passed through unchanged. This allows you to have the option of using esbuild to process CSS containing while preserving these annotations. It also means that local CSS names are disabled by default for now (since the `css` loader is currently the default for CSS files). The `:local` and `:global` syntax may be enabled by default in a future release. Note that esbuild's implementation does not currently have feature parity with other implementations of modular CSS in similar tools. This is only a preliminary release with a partial implementation that includes some basic behavior to get the process started. Additional behavior may be added in future releases. In particular, this release does not implement: - The `composes` pragma - Tree shaking for unused local CSS - Local names for keyframe animations, grid lines, `@container`, `@counter-style`, etc. Issue [#​20](https://togithub.com/evanw/esbuild/issues/20) (the issue for this feature) is esbuild's most-upvoted issue! While this release still leaves that issue open, it's an important first step in that direction. - Parse `:is`, `:has`, `:not`, and `:where` in CSS With this release, esbuild will now parse the contents of these pseudo-class selectors as a selector list. This means you will now get syntax warnings within these selectors for invalid selector syntax. It also means that esbuild's CSS nesting transform behaves slightly differently than before because esbuild is now operating on an AST instead of a token stream. For example: ```css /* Original code */ div { :where(.foo&) { color: red; } } /* Old output (with --target=chrome90) */ :where(.foo:is(div)) { color: red; } /* New output (with --target=chrome90) */ :where(div.foo) { color: red; } ``` ### [`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) ### [`v0.18.12`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#01812) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.18.11...v0.18.12) - Fix a panic with `const enum` inside parentheses ([#​3205](https://togithub.com/evanw/esbuild/issues/3205)) This release fixes an edge case where esbuild could potentially panic if a TypeScript `const enum` statement was used inside of a parenthesized expression and was followed by certain other scope-related statements. Here's a minimal example that triggers this edge case: ```ts (() => { const enum E { a }; () => E.a }) ``` - Allow a newline in the middle of TypeScript `export type` statement ([#​3225](https://togithub.com/evanw/esbuild/issues/3225)) Previously esbuild incorrectly rejected the following valid TypeScript code: ```ts export type { T }; export type * as foo from 'bar'; ``` Code that uses a newline after `export type` is now allowed starting with this release. - Fix cross-module inlining of string enums ([#​3210](https://togithub.com/evanw/esbuild/issues/3210)) A refactoring typo in version 0.18.9 accidentally introduced a regression with cross-module inlining of string enums when combined with computed property accesses. This regression has been fixed. - Rewrite `.js` to `.ts` inside packages with `exports` ([#​3201](https://togithub.com/evanw/esbuild/issues/3201)) Packages with the `exports` field are supposed to disable node's path resolution behavior that allows you to import a file with a different extension than the one in the source code (for example, importing `foo/bar` to get `foo/bar.js`). And TypeScript has behavior where you can import a non-existent `.js` file and you will get the `.ts` file instead. Previously the presence of the `exports` field caused esbuild to disable all extension manipulation stuff which included both node's implicit file extension searching and TypeScript's file extension swapping. However, TypeScript appears to always apply file extension swapping even in this case. So with this release, esbuild will now rewrite `.js` to `.ts` even inside packages with `exports`. - Fix a redirect edge case in esbuild's development server ([#​3208](https://togithub.com/evanw/esbuild/issues/3208)) The development server canonicalizes directory URLs by adding a trailing slash. For example, visiting `/about` redirects to `/about/` if `/about/index.html` would be served. However, if the requested path begins with two slashes, then the redirect incorrectly turned into a protocol-relative URL. For example, visiting `//about` redirected to `//about/` which the browser turns into `http://about/`. This release fixes the bug by canonicalizing the URL path when doing this redirect.
eslint/eslint (eslint) ### [`v8.45.0`](https://togithub.com/eslint/eslint/releases/tag/v8.45.0) [Compare Source](https://togithub.com/eslint/eslint/compare/v8.44.0...v8.45.0) #### Features - [`cdd063c`](https://togithub.com/eslint/eslint/commit/cdd063c388bbfe1781d7a864a832f03a2c1cc277) feat: Expose LegacyESLint in unsupported API ([#​17341](https://togithub.com/eslint/eslint/issues/17341)) (Nicholas C. Zakas) - [`d34abe5`](https://togithub.com/eslint/eslint/commit/d34abe59eb23932dcbc79757d7932d08ee8b20e5) feat: fix indent rule for else-if ([#​17318](https://togithub.com/eslint/eslint/issues/17318)) (Milos Djermanovic) #### Bug Fixes - [`b79b6fb`](https://togithub.com/eslint/eslint/commit/b79b6fb64473969b426d086b484d2e29594a5e9a) fix: Fix suggestion message in `no-useless-escape` ([#​17339](https://togithub.com/eslint/eslint/issues/17339)) (Francesco Trotta) - [`c667055`](https://togithub.com/eslint/eslint/commit/c667055fb9da8ebac3a99f6e5a8b5565cc86af8e) fix: provide unique `fix` and `fix.range` objects in lint messages ([#​17332](https://togithub.com/eslint/eslint/issues/17332)) (Milos Djermanovic) #### Documentation - [`89f3225`](https://togithub.com/eslint/eslint/commit/89f3225108c66425e4132f76db6c1ab13aac98d7) docs: add playground links to correct and incorrect code blocks ([#​17306](https://togithub.com/eslint/eslint/issues/17306)) (Josh Goldberg ✨) - [`f8892b5`](https://togithub.com/eslint/eslint/commit/f8892b52920b8967f9e7bec23c75b74e03977d6b) docs: Expand rule option schema docs ([#​17198](https://togithub.com/eslint/eslint/issues/17198)) (Matt Wilkinson) - [`8bcbf11`](https://togithub.com/eslint/eslint/commit/8bcbf11b6050418262ffa8e0ca37f365ae92e7ce) docs: Config Migration Guide ([#​17230](https://togithub.com/eslint/eslint/issues/17230)) (Ben Perlmutter) - [`bb30908`](https://togithub.com/eslint/eslint/commit/bb3090897166dbfd2931a43a70e2a5c1f3fa0a07) docs: Update README (GitHub Actions Bot) - [`84d243b`](https://togithub.com/eslint/eslint/commit/84d243b245b01b667f0752b592e8bda02a9aa2b1) docs: Update README (GitHub Actions Bot) - [`b762632`](https://togithub.com/eslint/eslint/commit/b762632298f20c4f81e7d01ab850c3f5e3874637) docs: Update README (GitHub Actions Bot) - [`138c096`](https://togithub.com/eslint/eslint/commit/138c096bc9468b553dbafc0e573c6522a17a7922) docs: add more prefer-destructuring examples with array destructuring ([#​17330](https://togithub.com/eslint/eslint/issues/17330)) (Milos Djermanovic) - [`1fc50a8`](https://togithub.com/eslint/eslint/commit/1fc50a89753346f4f4c786ffd20ac4cf185bb036) docs: `max-len` rule `code` and `tabWidth` as positional arguments ([#​17331](https://togithub.com/eslint/eslint/issues/17331)) (Jesús Leganés-Combarro) #### Chores - [`68f63d7`](https://togithub.com/eslint/eslint/commit/68f63d76ce785fab4f42b76f1599026eea379bf7) chore: package.json update for [@​eslint/js](https://togithub.com/eslint/js) release (ESLint Jenkins) - [`5ca9b4d`](https://togithub.com/eslint/eslint/commit/5ca9b4d29f747e9cf5c9055e85c93b3b605d57fc) chore: update eslint-config-eslint exports ([#​17336](https://togithub.com/eslint/eslint/issues/17336)) (Milos Djermanovic) - [`7bf2e86`](https://togithub.com/eslint/eslint/commit/7bf2e86022c9e95db4ca1472fddfa2ea4edd1870) chore: remove unused dependencies ([#​17352](https://togithub.com/eslint/eslint/issues/17352)) (Percy Ma) - [`c6f8cd0`](https://togithub.com/eslint/eslint/commit/c6f8cd0d62e4a3c314c6860ff367490bbd05325a) chore: Remove `defaultIgnores` from FlatESLint private members ([#​17349](https://togithub.com/eslint/eslint/issues/17349)) (Francesco Trotta) - [`0052374`](https://togithub.com/eslint/eslint/commit/0052374035672efe9129343fc00ee51a4c288ff3) chore: move jsdoc settings to eslint-config-eslint ([#​17338](https://togithub.com/eslint/eslint/issues/17338)) (唯然)
rich-harris/magic-string (magic-string) ### [`v0.30.1`](https://togithub.com/rich-harris/magic-string/blob/HEAD/CHANGELOG.md#0301-2023-07-04) [Compare Source](https://togithub.com/rich-harris/magic-string/compare/v0.30.0...v0.30.1) ##### Bug Fixes - expose .d.ts as cjs version ([#​253](https://togithub.com/rich-harris/magic-string/issues/253)) ([262e113](https://togithub.com/rich-harris/magic-string/commit/262e113ee25e9c7d317282b3015102ec932ae2f5))
Microsoft/playwright (playwright-core) ### [`v1.36.1`](https://togithub.com/microsoft/playwright/releases/tag/v1.36.1) [Compare Source](https://togithub.com/Microsoft/playwright/compare/v1.36.0...v1.36.1) ##### Highlights [https://github.com/microsoft/playwright/issues/24184](https://togithub.com/microsoft/playwright/issues/24184) - \[REGRESSION]: Snapshot name contains some random string after test name when tests are run in container ##### Browser Versions - Chromium 115.0.5790.75 - Mozilla Firefox 115.0 - WebKit 17.0 This version was also tested against the following stable channels: - Google Chrome 114 - Microsoft Edge 114 ### [`v1.36.0`](https://togithub.com/microsoft/playwright/releases/tag/v1.36.0) [Compare Source](https://togithub.com/Microsoft/playwright/compare/v1.35.1...v1.36.0) ##### Highlights 🏝️ Summer maintenance release. ##### Browser Versions - Chromium 115.0.5790.75 - Mozilla Firefox 115.0 - WebKit 17.0 This version was also tested against the following stable channels: - Google Chrome 114 - Microsoft Edge 114
pnpm/pnpm (pnpm) ### [`v8.6.9`](https://togithub.com/pnpm/pnpm/releases/tag/v8.6.9) [Compare Source](https://togithub.com/pnpm/pnpm/compare/v8.6.8...v8.6.9) #### Patch Changes - Temporarily revert the fix to [#​6805](https://togithub.com/pnpm/pnpm/issues/6805) to fix the regression it caused [#​6827](https://togithub.com/pnpm/pnpm/issues/6827). #### Our Gold Sponsors
#### Our Silver Sponsors
### [`v8.6.8`](https://togithub.com/pnpm/pnpm/releases/tag/v8.6.8) [Compare Source](https://togithub.com/pnpm/pnpm/compare/v8.6.7...v8.6.8) #### Patch Changes - When the same file is appended multiple times into a tarball, the last occurrence is selected when unpacking the tarball. - Fixed a bug in which pnpm passed the wrong scheme to `git ls-remote`, causing a fallback to `git+ssh` and resulting in a 'host key verification failed' issue [#​6805](https://togithub.com/pnpm/pnpm/issues/6805). - Added support for `publishConfig.registry` in `package.json` for publishing [#​6775](https://togithub.com/pnpm/pnpm/issues/6775). - `pnpm rebuild` now uploads the built artifacts to the content-addressable store. - If a command cannot be created in `.bin`, the exact error message is now displayed. - Treat linked dependencies with a tag version type as up-to-date [#​6592](https://togithub.com/pnpm/pnpm/issues/6592). - `pnpm setup` now prints more details when it cannot detect the active shell. #### Our Gold Sponsors
#### Our Silver Sponsors
### [`v8.6.7`](https://togithub.com/pnpm/pnpm/releases/tag/v8.6.7) [Compare Source](https://togithub.com/pnpm/pnpm/compare/v8.6.6...v8.6.7) ##### Patch Changes - Ensure consistent output for scripts executed concurrently, both within a single project and across multiple projects. Each script's output will now be printed in a separate section of the terminal, when running multiple scripts in a single project [using regex](https://pnpm.io/cli/run#running-multiple-scripts) [#̴

Configuration

📅 Schedule: Branch creation - "before 4am on Monday" (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.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.



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