typescript-eslint/typescript-eslint (@typescript-eslint/eslint-plugin)
### [`v5.36.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#5361-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5360v5361-2022-08-30)
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.36.0...v5.36.1)
**Note:** Version bump only for package [@typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin)
### [`v5.36.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#5360-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5351v5360-2022-08-30)
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.35.1...v5.36.0)
##### Bug Fixes
- **eslint-plugin:** revert [#5266](https://togithub.com/typescript-eslint/typescript-eslint/issues/5266) ([#5564](https://togithub.com/typescript-eslint/typescript-eslint/issues/5564)) ([7a8afe2](https://togithub.com/typescript-eslint/typescript-eslint/commit/7a8afe29039c6c80fe584acaf5d933424a4452a9))
##### Features
- support TypeScript 4.8 ([#5551](https://togithub.com/typescript-eslint/typescript-eslint/issues/5551)) ([81450ed](https://togithub.com/typescript-eslint/typescript-eslint/commit/81450ed7eaede74b384e9a91a84e9b4d34513866))
#### [5.35.1](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.35.0...v5.35.1) (2022-08-24)
##### Bug Fixes
- **eslint-plugin:** correct rule schemas to pass ajv validation ([#5531](https://togithub.com/typescript-eslint/typescript-eslint/issues/5531)) ([dbf8b56](https://togithub.com/typescript-eslint/typescript-eslint/commit/dbf8b569dbada29e4a295d6c265976e55de1b2aa))
### [`v5.35.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#5351-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5350v5351-2022-08-24)
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.35.0...v5.35.1)
##### Bug Fixes
- **eslint-plugin:** correct rule schemas to pass ajv validation ([#5531](https://togithub.com/typescript-eslint/typescript-eslint/issues/5531)) ([dbf8b56](https://togithub.com/typescript-eslint/typescript-eslint/commit/dbf8b569dbada29e4a295d6c265976e55de1b2aa))
### [`v5.35.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#5350-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5340v5350-2022-08-24)
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.34.0...v5.35.0)
##### Features
- **eslint-plugin:** \[explicit-member-accessibility] suggest adding explicit accessibility specifiers ([#5492](https://togithub.com/typescript-eslint/typescript-eslint/issues/5492)) ([0edb94a](https://togithub.com/typescript-eslint/typescript-eslint/commit/0edb94aee55e1ec6afa7f46f99a9b308bbb66301))
### [`v5.34.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#5340-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5331v5340-2022-08-22)
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.33.1...v5.34.0)
##### Bug Fixes
- **eslint-plugin:** \[no-useless-constructor] handle parameter decorator ([#5450](https://togithub.com/typescript-eslint/typescript-eslint/issues/5450)) ([864dbcf](https://togithub.com/typescript-eslint/typescript-eslint/commit/864dbcfccba274fe1b26eac8aeeaf2a2355b5969))
##### Features
- **eslint-plugin:** \[prefer-optional-chain] support suggesting `!foo || !foo.bar` as a valid match for the rule ([#5266](https://togithub.com/typescript-eslint/typescript-eslint/issues/5266)) ([aca935c](https://togithub.com/typescript-eslint/typescript-eslint/commit/aca935c9696712d4aff18144c4690db4d6ba9bf9))
#### [5.33.1](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.33.0...v5.33.1) (2022-08-15)
##### Bug Fixes
- missing placeholders in violation messages for `no-unnecessary-type-constraint` and `no-unsafe-argument` (and enable `eslint-plugin/recommended` rules internally) ([#5453](https://togithub.com/typescript-eslint/typescript-eslint/issues/5453)) ([d023910](https://togithub.com/typescript-eslint/typescript-eslint/commit/d0239104f4dbffd2b5ecdb19e520c7d4b71962e0))
### [`v5.33.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#5331-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5330v5331-2022-08-15)
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.33.0...v5.33.1)
##### Bug Fixes
- missing placeholders in violation messages for `no-unnecessary-type-constraint` and `no-unsafe-argument` (and enable `eslint-plugin/recommended` rules internally) ([#5453](https://togithub.com/typescript-eslint/typescript-eslint/issues/5453)) ([d023910](https://togithub.com/typescript-eslint/typescript-eslint/commit/d0239104f4dbffd2b5ecdb19e520c7d4b71962e0))
### [`v5.33.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#5330-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5320v5330-2022-08-08)
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.32.0...v5.33.0)
##### Bug Fixes
- **eslint-plugin:** \[no-extra-parens] handle await with type assertion ([#5428](https://togithub.com/typescript-eslint/typescript-eslint/issues/5428)) ([e03826f](https://togithub.com/typescript-eslint/typescript-eslint/commit/e03826f08ce8bfdd6d6702025d975cfb7d867097))
- **website:** add explicit frontmatter description to rule docs ([#5429](https://togithub.com/typescript-eslint/typescript-eslint/issues/5429)) ([63cba5f](https://togithub.com/typescript-eslint/typescript-eslint/commit/63cba5f4c1884e102927b3b14b18a00e96ac63a1))
##### Features
- **eslint-plugin:** \[member-ordering] support static blocks ([#5417](https://togithub.com/typescript-eslint/typescript-eslint/issues/5417)) ([5983e5a](https://togithub.com/typescript-eslint/typescript-eslint/commit/5983e5ab3bfb94fec782bea54a37457fe31db545))
- **eslint-plugin:** \[prefer-as-const] adds support for class properties ([#5413](https://togithub.com/typescript-eslint/typescript-eslint/issues/5413)) ([d2394f8](https://togithub.com/typescript-eslint/typescript-eslint/commit/d2394f810960fda07b9c8affd47b769d16f4b8cb))
typescript-eslint/typescript-eslint (@typescript-eslint/parser)
### [`v5.36.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#5361-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5360v5361-2022-08-30)
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.36.0...v5.36.1)
**Note:** Version bump only for package [@typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)
### [`v5.36.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#5360-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5351v5360-2022-08-30)
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.35.1...v5.36.0)
**Note:** Version bump only for package [@typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)
#### [5.35.1](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.35.0...v5.35.1) (2022-08-24)
**Note:** Version bump only for package [@typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)
### [`v5.35.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#5351-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5350v5351-2022-08-24)
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.35.0...v5.35.1)
**Note:** Version bump only for package [@typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)
### [`v5.35.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#5350-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5340v5350-2022-08-24)
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.34.0...v5.35.0)
**Note:** Version bump only for package [@typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)
### [`v5.34.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#5340-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5331v5340-2022-08-22)
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.33.1...v5.34.0)
**Note:** Version bump only for package [@typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)
#### [5.33.1](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.33.0...v5.33.1) (2022-08-15)
**Note:** Version bump only for package [@typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)
### [`v5.33.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#5331-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5330v5331-2022-08-15)
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.33.0...v5.33.1)
**Note:** Version bump only for package [@typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)
### [`v5.33.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#5330-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5320v5330-2022-08-08)
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.32.0...v5.33.0)
**Note:** Version bump only for package [@typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)
evanw/esbuild
### [`v0.15.6`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#0156)
[Compare Source](https://togithub.com/evanw/esbuild/compare/v0.15.5...v0.15.6)
- Lower `for await` loops ([#1930](https://togithub.com/evanw/esbuild/issues/1930))
This release lowers `for await` loops to the equivalent `for` loop containing `await` when esbuild is configured such that `for await` loops are unsupported. This transform still requires at least generator functions to be supported since esbuild's lowering of `await` currently relies on generators. This new transformation is mostly modeled after what the TypeScript compiler does. Here's an example:
```js
async function f() {
for await (let x of y)
x()
}
```
The code above will now become the following code with `--target=es2017` (omitting the code for the `__forAwait` helper function):
```js
async function f() {
try {
for (var iter = __forAwait(y), more, temp, error; more = !(temp = await iter.next()).done; more = false) {
let x = temp.value;
x();
}
} catch (temp) {
error = [temp];
} finally {
try {
more && (temp = iter.return) && await temp.call(iter);
} finally {
if (error)
throw error[0];
}
}
}
```
- Automatically fix invalid `supported` configurations ([#2497](https://togithub.com/evanw/esbuild/issues/2497))
The `--target=` setting lets you tell esbuild to target a specific version of one or more JavaScript runtimes such as `chrome80,node14` and esbuild will restrict its output to only those features supported by all targeted JavaScript runtimes. More recently, esbuild introduced the `--supported:` setting that lets you override which features are supported on a per-feature basis. However, this now lets you configure nonsensical things such as `--supported:async-await=false --supported:async-generator=true`. Previously doing this could result in esbuild building successfully but producing invalid output.
Starting with this release, esbuild will now attempt to automatically fix nonsensical feature override configurations by introducing more overrides until the configuration makes sense. So now the configuration from previous example will be changed such that `async-await=false` implies `async-generator=false`. The full list of implications that were introduced is below:
- `async-await=false` implies:
- `async-generator=false`
- `for-await=false`
- `top-level-await=false`
- `generator=false` implies:
- `async-generator=false`
- `object-accessors=false` implies:
- `class-private-accessor=false`
- `class-private-static-accessor=false`
- `class-field=false` implies:
- `class-private-field=false`
- `class-static-field=false` implies:
- `class-private-static-field=false`
- `class=false` implies:
- `class-field=false`
- `class-private-accessor=false`
- `class-private-brand-check=false`
- `class-private-field=false`
- `class-private-method=false`
- `class-private-static-accessor=false`
- `class-private-static-field=false`
- `class-private-static-method=false`
- `class-static-blocks=false`
- `class-static-field=false`
- Implement a small minification improvement ([#2496](https://togithub.com/evanw/esbuild/issues/2496))
Some people write code that contains a label with an immediate break such as `x: break x`. Previously this code was not removed during minification but it will now be removed during minification starting with this release.
- Fix installing esbuild via Yarn with `enableScripts: false` configured ([#2457](https://togithub.com/evanw/esbuild/pull/2457))
If esbuild is installed with Yarn with the `enableScripts: false` setting configured, then Yarn will not "unplug" the `esbuild` package (i.e. it will keep the entire package inside a `.zip` file). This messes with esbuild's library code that extracts the platform-specific binary executable because that code copies the binary executable into the esbuild package directory, and Yarn's `.zip` file system shim doesn't let you write to a directory inside of a `.zip` file. This release fixes this problem by writing to the `node_modules/.cache/esbuild` directory instead in this case. So you should now be able to use esbuild with Yarn when `enableScripts: false` is configured.
This fix was contributed by [@jonaskuske](https://togithub.com/jonaskuske).
### [`v0.15.5`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#0155)
[Compare Source](https://togithub.com/evanw/esbuild/compare/v0.15.4...v0.15.5)
- Fix issues with Yarn PnP and Yarn's workspaces feature ([#2476](https://togithub.com/evanw/esbuild/issues/2476))
This release makes sure esbuild works with a Yarn feature called [workspaces](https://yarnpkg.com/features/workspaces/). Previously esbuild wasn't tested in this scenario, but this scenario now has test coverage. Getting this to work involved further tweaks to esbuild's custom code for what happens after Yarn PnP's path resolution algorithm runs, which is not currently covered by Yarn's PnP specification. These tweaks also fix `exports` map resolution with Yarn PnP for non-empty subpaths, which wasn't previously working.
### [`v0.15.4`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#0154)
[Compare Source](https://togithub.com/evanw/esbuild/compare/v0.15.3...v0.15.4)
- Consider TypeScript import assignments to be side-effect free ([#2468](https://togithub.com/evanw/esbuild/issues/2468))
TypeScript has a [legacy import syntax](https://www.typescriptlang.org/docs/handbook/namespaces.html#aliases) for working with TypeScript namespaces that looks like this:
```ts
import { someNamespace } from './some-file'
import bar = someNamespace.foo;
// some-file.ts
export namespace someNamespace {
export let foo = 123
}
```
Since esbuild converts TypeScript into JavaScript one file at a time, it doesn't know if `bar` is supposed to be a value or a type (or both, which TypeScript actually allows in this case). This is problematic because values are supposed to be kept during the conversion but types are supposed to be removed during the conversion. Currently esbuild keeps `bar` in the output, which is done because `someNamespace.foo` is a property access and property accesses run code that could potentially have a side effect (although there is no side effect in this case).
With this release, esbuild will now consider `someNamespace.foo` to have no side effects. This means `bar` will now be removed when bundling and when tree shaking is enabled. Note that it will still not be removed when tree shaking is disabled. This is because in this mode, esbuild supports adding additional code to the end of the generated output that's in the same scope as the module. That code could potentially make use of `bar`, so it would be incorrect to remove it. If you want `bar` to be removed, you'll have to enable tree shaking (which tells esbuild that nothing else depends on the unexported top-level symbols in the generated output).
- Change the order of the banner and the `"use strict"` directive ([#2467](https://togithub.com/evanw/esbuild/issues/2467))
Previously the top of the file contained the following things in order:
1. The hashbang comment (see below) from the source code, if present
2. The `"use strict"` directive from the source code, if present
3. The content of esbuild's `banner` API option, if specified
This was problematic for people that used the `banner` API option to insert the hashbang comment instead of using esbuild's hashbang comment preservation feature. So with this release, the order has now been changed to:
1. The hashbang comment (see below) from the source code, if present
2. The content of esbuild's `banner` API option, if specified
3. The `"use strict"` directive from the source code, if present
I'm considering this change to be a bug fix instead of a breaking change because esbuild's documentation states that the `banner` API option can be used to "insert an arbitrary string at the beginning of generated JavaScript files". While this isn't technically true because esbuild may still insert the original hashbang comment before the banner, it's at least more correct now because the banner will now come before the `"use strict"` directive.
For context: JavaScript files recently allowed using a [hashbang comment](https://togithub.com/tc39/proposal-hashbang), which starts with `#!` and which must start at the very first character of the file. It allows Unix systems to execute the file directly as a script without needing to prefix it by the `node` command. This comment typically has the value `#!/usr/bin/env node`. Hashbang comments will be a part of ES2023 when it's released next year.
- Fix `exports` maps with Yarn PnP path resolution ([#2473](https://togithub.com/evanw/esbuild/issues/2473))
The Yarn PnP specification says that to resolve a package path, you first resolve it to the absolute path of a directory, and then you run node's module resolution algorithm on it. Previously esbuild followed this part of the specification. However, doing this means that `exports` in `package.json` is not respected because node's module resolution algorithm doesn't interpret `exports` for absolute paths. So with this release, esbuild will now use a modified algorithm that deviates from both specifications but that should hopefully behave more similar to what Yarn actually does: node's module resolution algorithm is run with the original import path but starting from the directory returned by Yarn PnP.
### [`v0.15.3`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#0153)
[Compare Source](https://togithub.com/evanw/esbuild/compare/v0.15.2...v0.15.3)
- Change the Yarn PnP manifest to a singleton ([#2463](https://togithub.com/evanw/esbuild/issues/2463))
Previously esbuild searched for the Yarn PnP manifest in the parent directories of each file. But with Yarn's `enableGlobalCache` setting it's possible to configure Yarn PnP's implementation to reach outside of the directory subtree containing the Yarn PnP manifest. This was causing esbuild to fail to bundle projects with the `enableGlobalCache` setting enabled.
To handle this case, *esbuild will now only search for the Yarn PnP manifest in the current working directory of the esbuild process*. If you're using esbuild's CLI, this means you will now have to `cd` into the appropriate directory first. If you're using esbuild's API, you can override esbuild's value for the current working directory with the `absWorkingDir` API option.
- Fix Yarn PnP resolution failures due to backslashes in paths on Windows ([#2462](https://togithub.com/evanw/esbuild/issues/2462))
Previously dependencies of a Yarn PnP virtual dependency failed to resolve on Windows. This was because Windows uses `\` instead of `/` as a path separator, and the path manipulation algorithms used for Yarn PnP expected `/`. This release converts `\` into `/` in Windows paths, which fixes this issue.
- Fix `sideEffects` patterns containing slashes on Windows ([#2465](https://togithub.com/evanw/esbuild/issues/2465))
The `sideEffects` field in `package.json` lets you specify an array of patterns to mark which files have side effects (which causes all other files to be considered to not have side effects by exclusion). That looks like this:
```json
"sideEffects": [
"**/index.js",
"**/index.prod.js"
]
```
However, the presence of the `/` character in the pattern meant that the pattern failed to match Windows-style paths, which broke `sideEffects` on Windows in this case. This release fixes this problem by adding additional code to handle Windows-style paths.
### [`v0.15.2`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#0152)
[Compare Source](https://togithub.com/evanw/esbuild/compare/v0.15.1...v0.15.2)
- Fix Yarn PnP issue with packages containing `index.js` ([#2455](https://togithub.com/evanw/esbuild/issues/2455), [#2461](https://togithub.com/evanw/esbuild/issues/2461))
Yarn PnP's tests require the resolved paths to end in `/`. That's not how the rest of esbuild's internals work, however, and doing this messed up esbuild's node module path resolution regarding automatically-detected `index.js` files. Previously packages that relied on implicit `index.js` resolution rules didn't work with esbuild under Yarn PnP. Removing this slash has fixed esbuild's path resolution behavior regarding `index.js`, which should now the same both with and without Yarn PnP.
- Fix Yarn PnP support for `extends` in `tsconfig.json` ([#2456](https://togithub.com/evanw/esbuild/issues/2456))
Previously using `extends` in `tsconfig.json` with a path in a Yarn PnP package didn't work. This is because the process of setting up package path resolution rules requires parsing `tsconfig.json` files (due to the `baseUrl` and `paths` features) and resolving `extends` to a package path requires package path resolution rules to already be set up, which is a circular dependency. This cycle is broken by using special rules for `extends` in `tsconfig.json` that bypasses esbuild's normal package path resolution process. This is why using `extends` with a Yarn PnP package didn't automatically work. With this release, these special rules have been modified to check for a Yarn PnP manifest so this case should work now.
- Fix Yarn PnP support in `esbuild-wasm` ([#2458](https://togithub.com/evanw/esbuild/issues/2458))
When running esbuild via WebAssembly, Yarn PnP support previously failed because Go's file system internals return `EINVAL` when trying to read a `.zip` file as a directory when run with WebAssembly. This was unexpected because Go's file system internals return `ENOTDIR` for this case on native. This release updates esbuild to treat `EINVAL` like `ENOTDIR` in this case, which fixes using `esbuild-wasm` to bundle a Yarn PnP project.
Note that to be able to use `esbuild-wasm` for Yarn PnP successfully, you currently have to run it using `node` instead of `yarn node`. This is because the file system shim that Yarn overwrites node's native file system API with currently generates invalid file descriptors with negative values when inside a `.zip` file. This prevents esbuild from working correctly because Go's file system internals don't expect syscalls that succeed without an error to return an invalid file descriptor. Yarn is working on fixing their use of invalid file descriptors.
### [`v0.15.1`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#0151)
[Compare Source](https://togithub.com/evanw/esbuild/compare/v0.15.0...v0.15.1)
- Update esbuild's Yarn Plug'n'Play implementation to match the latest specification changes ([#2452](https://togithub.com/evanw/esbuild/issues/2452), [#2453](https://togithub.com/evanw/esbuild/pull/2453))
This release updates esbuild's implementation of Yarn Plug'n'Play to match some changes to Yarn's specification that just landed. The changes are as follows:
- Check for platform-specific absolute paths instead of always for the `/` prefix
The specification previously said that Yarn Plug'n'Play path resolution rules should not apply for paths that start with `/`. The intent was to avoid accidentally processing absolute paths. However, absolute paths on Windows such as `C:\project` start with drive letters instead of with `/`. So the specification was changed to instead explicitly avoid processing absolute paths.
- Make `$$virtual` an alias for `__virtual__`
Supporting Yarn-style path resolution requires implementing a custom Yarn-specific path traversal scheme where certain path segments are considered no-ops. Specifically any path containing segments of the form `__virtual__//` where `` is an integer must be treated as if they were `n` times the `..` operator instead (the `` path segment is ignored). So `/path/to/project/__virtual__/xyz/2/foo.js` maps to the underlying file `/path/to/project/../../foo.js`. This scheme makes it possible for Yarn to get node (and esbuild) to load the same file multiple times (which is sometimes required for correctness) without actually duplicating the file on the file system.
However, old versions of Yarn used to use `$$virtual` instead of `__virtual__`. This was changed because `$$virtual` was error-prone due to the use of the `$` character, which can cause bugs when it's not correctly escaped within regular expressions. Now that esbuild makes `$$virtual` an alias for `__virtual__`, esbuild should now work with manifests from these old Yarn versions.
- Ignore PnP manifests in virtual directories
The specification describes the algorithm for how to find the Plug'n'Play manifest when starting from a certain point in the file system: search through all parent directories in reverse order until the manifest is found. However, this interacts poorly with virtual paths since it can end up finding a virtual copy of the manifest instead of the original. To avoid this, esbuild now ignores manifests in virtual directories so that the search for the manifest will continue and find the original manifest in another parent directory later on.
These fixes mean that esbuild's implementation of Plug'n'Play now matches Yarn's implementation more closely, and esbuild can now correctly build more projects that use Plug'n'Play.
### [`v0.15.0`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#0150)
[Compare Source](https://togithub.com/evanw/esbuild/compare/v0.14.54...v0.15.0)
**This release contains backwards-incompatible changes.** Since esbuild is before version 1.0.0, these changes have been released as a new minor version to reflect this (as [recommended by npm](https://docs.npmjs.com/cli/v6/using-npm/semver/)). You should either be pinning the exact version of `esbuild` in your `package.json` file or be using a version range syntax that only accepts patch upgrades such as `~0.14.0`. See the documentation about [semver](https://docs.npmjs.com/cli/v6/using-npm/semver/) for more information.
- Implement the Yarn Plug'n'Play module resolution algorithm ([#154](https://togithub.com/evanw/esbuild/issues/154), [#237](https://togithub.com/evanw/esbuild/issues/237), [#1263](https://togithub.com/evanw/esbuild/issues/1263), [#2451](https://togithub.com/evanw/esbuild/pull/2451))
[Node](https://nodejs.org/) comes with a package manager called [npm](https://www.npmjs.com/), which installs packages into a `node_modules` folder. Node and esbuild both come with built-in rules for resolving import paths to packages within `node_modules`, so packages installed via npm work automatically without any configuration. However, many people use an alternative package manager called [Yarn](https://yarnpkg.com/). While Yarn can install packages using `node_modules`, it also offers a different package installation strategy called [Plug'n'Play](https://yarnpkg.com/features/pnp/), which is often shortened to "PnP" (not to be confused with [pnpm](https://pnpm.io/), which is an entirely different unrelated package manager).
Plug'n'Play installs packages as `.zip` files on your file system. The packages are never actually unzipped. Since Node doesn't know anything about Yarn's package installation strategy, this means you can no longer run your code with Node as it won't be able to find your packages. Instead, you need to run your code with Yarn, which applies patches to Node's file system APIs before running your code. These patches attempt to make zip files seem like normal directories. When running under Yarn, using Node's file system API to read `./some.zip/lib/file.js` actually automatically extracts `lib/file.js` from `./some.zip` at run-time as if it was a normal file. Other file system APIs behave similarly. However, these patches don't work with esbuild because esbuild is not written in JavaScript; it's a native binary executable that interacts with the file system directly through the operating system.
Previously the workaround for using esbuild with Plug'n'Play was to use the [`@yarnpkg/esbuild-plugin-pnp`](https://www.npmjs.com/package/@yarnpkg/esbuild-plugin-pnp) plugin with esbuild's JavaScript API. However, this wasn't great because the plugin needed to potentially intercept every single import path and file load to check whether it was a Plug'n'Play package, which has an unusually high performance cost. It also meant that certain subtleties of path resolution rules within a `.zip` file could differ slightly from the way esbuild normally works since path resolution inside `.zip` files was implemented by Yarn, not by esbuild (which is due to a limitation of esbuild's plugin API).
With this release, esbuild now contains an independent implementation of Yarn's Plug'n'Play algorithm (which is used when esbuild finds a `.pnp.js`, `.pnp.cjs`, or `.pnp.data.json` file in the directory tree). Creating additional implementations of this algorithm recently became possible because Yarn's package manifest format was recently documented: https://yarnpkg.com/advanced/pnp-spec/. This should mean that you can now use esbuild to bundle Plug'n'Play projects without any additional configuration (so you shouldn't need `@yarnpkg/esbuild-plugin-pnp` anymore). Bundling these projects should now happen much faster as Yarn no longer even needs to be run at all. Bundling the Yarn codebase itself with esbuild before and after this change seems to demonstrate over a 10x speedup (3.4s to 0.24s). And path resolution rules within Yarn packages should now be consistent with how esbuild handles regular Node packages. For example, fields such as `module` and `browser` in `package.json` files within `.zip` files should now be respected.
Keep in mind that this is brand new code and there may be some initial issues to work through before esbuild's implementation is solid. Yarn's Plug'n'Play specification is also brand new and may need some follow-up edits to guide new implementations to match Yarn's exact behavior. If you try this out, make sure to test it before committing to using it, and let me know if anything isn't working as expected. Should you need to debug esbuild's path resolution, you may find `--log-level=verbose` helpful.
### [`v0.14.54`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#01454)
[Compare Source](https://togithub.com/evanw/esbuild/compare/v0.14.53...v0.14.54)
- Fix optimizations for calls containing spread arguments ([#2445](https://togithub.com/evanw/esbuild/issues/2445))
This release fixes the handling of spread arguments in the optimization of `/* @__PURE__ */` comments, empty functions, and identity functions:
```js
// Original code
function empty() {}
function identity(x) { return x }
/* @__PURE__ */ a(...x)
/* @__PURE__ */ new b(...x)
empty(...x)
identity(...x)
// Old output (with --minify --tree-shaking=true)
...x;...x;...x;...x;
// New output (with --minify --tree-shaking=true)
function identity(n){return n}[...x];[...x];[...x];identity(...x);
```
Previously esbuild assumed arguments with side effects could be directly inlined. This is almost always true except for spread arguments, which are not syntactically valid on their own and which have the side effect of causing iteration, which might have further side effects. Now esbuild will wrap these elements in an unused array so that they are syntactically valid and so that the iteration side effects are preserved.
### [`v0.14.53`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#01453)
[Compare Source](https://togithub.com/evanw/esbuild/compare/v0.14.52...v0.14.53)
This release fixes a minor issue with the previous release: I had to rename the package `esbuild-linux-loong64` to `@esbuild/linux-loong64` in the contributed PR because someone registered the package name before I could claim it, and I missed a spot. Hopefully everything is working after this release. I plan to change all platform-specific package names to use the `@esbuild/` scope at some point to avoid this problem in the future.
### [`v0.14.52`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#01452)
[Compare Source](https://togithub.com/evanw/esbuild/compare/v0.14.51...v0.14.52)
- Allow binary data as input to the JS `transform` and `build` APIs ([#2424](https://togithub.com/evanw/esbuild/issues/2424))
Previously esbuild's `transform` and `build` APIs could only take a string. However, some people want to use esbuild to convert binary data to base64 text. This is problematic because JavaScript strings represent UTF-16 text and esbuild internally operates on arrays of bytes, so all strings coming from JavaScript undergo UTF-16 to UTF-8 conversion before use. This meant that using esbuild in this way was doing base64 encoding of the UTF-8 encoding of the text, which was undesired.
With this release, esbuild now accepts `Uint8Array` in addition to string as an input format for the `transform` and `build` APIs. Now you can use esbuild to convert binary data to base64 text:
```js
// Original code
import esbuild from 'esbuild'
console.log([
(await esbuild.transform('\xFF', { loader: 'base64' })).code,
(await esbuild.build({ stdin: { contents: '\xFF', loader: 'base64' }, write: false })).outputFiles[0].text,
])
console.log([
(await esbuild.transform(new Uint8Array([0xFF]), { loader: 'base64' })).code,
(await esbuild.build({ stdin: { contents: new Uint8Array([0xFF]), loader: 'base64' }, write: false })).outputFiles[0].text,
])
// Old output
[ 'module.exports = "w78=";\n', 'module.exports = "w78=";\n' ]
/* ERROR: The input to "transform" must be a string */
// New output
[ 'module.exports = "w78=";\n', 'module.exports = "w78=";\n' ]
[ 'module.exports = "/w==";\n', 'module.exports = "/w==";\n' ]
```
- Update the getter for `text` in build results ([#2423](https://togithub.com/evanw/esbuild/issues/2423))
Output files in build results returned from esbuild's JavaScript API have both a `contents` and a `text` property to return the contents of the output file. The `contents` property is a binary UTF-8 Uint8Array and the `text` property is a JavaScript UTF-16 string. The `text` property is a getter that does the UTF-8 to UTF-16 conversion only if it's needed for better performance.
Previously if you mutate the build results object, you had to overwrite both `contents` and `text` since the value returned from the `text` getter is the original text returned by esbuild. Some people find this confusing so with this release, the getter for `text` has been updated to do the UTF-8 to UTF-16 conversion on the current value of the `contents` property instead of the original value.
- Publish builds for Linux LoongArch 64-bit ([#1804](https://togithub.com/evanw/esbuild/issues/1804), [#2373](https://togithub.com/evanw/esbuild/pull/2373))
This release upgrades to [Go 1.19](https://go.dev/doc/go1.19), which now includes support for LoongArch 64-bit processors. LoongArch 64-bit builds of esbuild will now be published to npm, which means that in theory they can now be installed with `npm install esbuild`. This was contributed by [@beyond-1234](https://togithub.com/beyond-1234).
eslint/eslint
### [`v8.23.0`](https://togithub.com/eslint/eslint/releases/tag/v8.23.0)
[Compare Source](https://togithub.com/eslint/eslint/compare/v8.22.0...v8.23.0)
#### Features
- [`3e5839e`](https://togithub.com/eslint/eslint/commit/3e5839ecae96aecfbc1ac9526e88e0105e671032) feat: Enable eslint.config.js lookup from CLI ([#16235](https://togithub.com/eslint/eslint/issues/16235)) (Nicholas C. Zakas)
- [`30b1a2d`](https://togithub.com/eslint/eslint/commit/30b1a2dac9060673101485841c4c7521675bf917) feat: add `allowEmptyCase` option to no-fallthrough rule ([#15887](https://togithub.com/eslint/eslint/issues/15887)) (Amaresh S M)
- [`43f03aa`](https://togithub.com/eslint/eslint/commit/43f03aa96b632039b1d9cad097a70b227bb7d348) feat: no-warning-comments support comments with decoration ([#16120](https://togithub.com/eslint/eslint/issues/16120)) (Lachlan Hunt)
#### Documentation
- [`b1918da`](https://togithub.com/eslint/eslint/commit/b1918da0f6cb8fe690c7377667616ec7cb57111e) docs: package.json conventions ([#16206](https://togithub.com/eslint/eslint/issues/16206)) (Patrick McElhaney)
- [`0e03c33`](https://togithub.com/eslint/eslint/commit/0e03c333a70bebd00307deead0befa519f983f44) docs: remove word immediately ([#16217](https://togithub.com/eslint/eslint/issues/16217)) (Strek)
- [`c6790db`](https://togithub.com/eslint/eslint/commit/c6790db6494e64a5261d74c0f3c4dc6139c59435) docs: add anchor link for "migrating from jscs" ([#16207](https://togithub.com/eslint/eslint/issues/16207)) (Percy Ma)
- [`7137344`](https://togithub.com/eslint/eslint/commit/71373442c42b356f34179dba18f860e1d79a780d) docs: auto-generation edit link ([#16213](https://togithub.com/eslint/eslint/issues/16213)) (Percy Ma)
#### Chores
- [`2e004ab`](https://togithub.com/eslint/eslint/commit/2e004ab990a4a5a4efc44974da005d2161490256) chore: upgrade [@eslint/eslintrc](https://togithub.com/eslint/eslintrc)[@1](https://togithub.com/1).3.1 ([#16249](https://togithub.com/eslint/eslint/issues/16249)) (Milos Djermanovic)
- [`d35fbbe`](https://togithub.com/eslint/eslint/commit/d35fbbef895e8f4ac6eaf1756349230769a02b4d) chore: Upgrade to espree@9.4.0 ([#16243](https://togithub.com/eslint/eslint/issues/16243)) (Milos Djermanovic)
- [`ed26229`](https://togithub.com/eslint/eslint/commit/ed26229a19359b356f3a401698488c1707d4c029) test: add no-extra-parens tests with rest properties ([#16236](https://togithub.com/eslint/eslint/issues/16236)) (Milos Djermanovic)
- [`deaf69f`](https://togithub.com/eslint/eslint/commit/deaf69ffd8f9b97b4b8c29a244a79969ff14c80a) chore: fix off-by-one `min-width: 1023px` media queries ([#15974](https://togithub.com/eslint/eslint/issues/15974)) (Milos Djermanovic)
- [`63dec9f`](https://togithub.com/eslint/eslint/commit/63dec9fdee793be9bf2939e1bda0717b9cc6dcf8) refactor: simplify `parseListConfig` ([#16241](https://togithub.com/eslint/eslint/issues/16241)) (Milos Djermanovic)
### [`v8.22.0`](https://togithub.com/eslint/eslint/releases/tag/v8.22.0)
[Compare Source](https://togithub.com/eslint/eslint/compare/v8.21.0...v8.22.0)
##### Features
- [`2b97607`](https://togithub.com/eslint/eslint/commit/2b97607675e1d0920a3abedd736e2ae00ed26d52) feat: Implement caching for FlatESLint ([#16190](https://togithub.com/eslint/eslint/issues/16190)) (Nicholas C. Zakas)
- [`fd5d3d3`](https://togithub.com/eslint/eslint/commit/fd5d3d37c97001fad1d9ae4386f76b3587cceba9) feat: add `methodsIgnorePattern` option to object-shorthand rule ([#16185](https://togithub.com/eslint/eslint/issues/16185)) (Milos Djermanovic)
##### Documentation
- [`9f5a752`](https://togithub.com/eslint/eslint/commit/9f5a75206675f2404ad6733640cf05ab44b02274) docs: optimize image assets ([#16170](https://togithub.com/eslint/eslint/issues/16170)) (Sam Chen)
- [`61b2948`](https://togithub.com/eslint/eslint/commit/61b2948cb71ec505d2f7e904c7ad77ee1da64db2) docs: add svgo command to pre commit hook ([#16178](https://togithub.com/eslint/eslint/issues/16178)) (Amaresh S M)
- [`784096d`](https://togithub.com/eslint/eslint/commit/784096d37808e59ce8cc07c3c18018b31a31c3f8) docs: improve search result UI ([#16187](https://togithub.com/eslint/eslint/issues/16187)) (Sam Chen)
- [`d0f4cb4`](https://togithub.com/eslint/eslint/commit/d0f4cb42e86b4b9c7bdf91e88a4ec0d36074f36b) docs: use shorthand property name in example ([#16180](https://togithub.com/eslint/eslint/issues/16180)) (Kevin Elliott)
##### Chores
- [`10a6e0e`](https://togithub.com/eslint/eslint/commit/10a6e0e14488e4ae9ab267fb5db2ec0c5bb85d59) chore: remove deploy workflow for playground ([#16186](https://togithub.com/eslint/eslint/issues/16186)) (Milos Djermanovic)
substack/tape
### [`v5.6.0`](https://togithub.com/substack/tape/compare/v5.5.3...v5.6.0)
[Compare Source](https://togithub.com/substack/tape/compare/v5.5.3...v5.6.0)
Configuration
📅 Schedule: Branch creation - "on the first day of the month" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.
[ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
5.32.0
->5.36.1
5.32.0
->5.36.1
0.14.51
->0.15.6
8.21.0
->8.23.0
5.5.3
->5.6.0
Release Notes
typescript-eslint/typescript-eslint (@typescript-eslint/eslint-plugin)
### [`v5.36.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#5361-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5360v5361-2022-08-30) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.36.0...v5.36.1) **Note:** Version bump only for package [@typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin) ### [`v5.36.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#5360-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5351v5360-2022-08-30) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.35.1...v5.36.0) ##### Bug Fixes - **eslint-plugin:** revert [#5266](https://togithub.com/typescript-eslint/typescript-eslint/issues/5266) ([#5564](https://togithub.com/typescript-eslint/typescript-eslint/issues/5564)) ([7a8afe2](https://togithub.com/typescript-eslint/typescript-eslint/commit/7a8afe29039c6c80fe584acaf5d933424a4452a9)) ##### Features - support TypeScript 4.8 ([#5551](https://togithub.com/typescript-eslint/typescript-eslint/issues/5551)) ([81450ed](https://togithub.com/typescript-eslint/typescript-eslint/commit/81450ed7eaede74b384e9a91a84e9b4d34513866)) #### [5.35.1](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.35.0...v5.35.1) (2022-08-24) ##### Bug Fixes - **eslint-plugin:** correct rule schemas to pass ajv validation ([#5531](https://togithub.com/typescript-eslint/typescript-eslint/issues/5531)) ([dbf8b56](https://togithub.com/typescript-eslint/typescript-eslint/commit/dbf8b569dbada29e4a295d6c265976e55de1b2aa)) ### [`v5.35.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#5351-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5350v5351-2022-08-24) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.35.0...v5.35.1) ##### Bug Fixes - **eslint-plugin:** correct rule schemas to pass ajv validation ([#5531](https://togithub.com/typescript-eslint/typescript-eslint/issues/5531)) ([dbf8b56](https://togithub.com/typescript-eslint/typescript-eslint/commit/dbf8b569dbada29e4a295d6c265976e55de1b2aa)) ### [`v5.35.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#5350-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5340v5350-2022-08-24) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.34.0...v5.35.0) ##### Features - **eslint-plugin:** \[explicit-member-accessibility] suggest adding explicit accessibility specifiers ([#5492](https://togithub.com/typescript-eslint/typescript-eslint/issues/5492)) ([0edb94a](https://togithub.com/typescript-eslint/typescript-eslint/commit/0edb94aee55e1ec6afa7f46f99a9b308bbb66301)) ### [`v5.34.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#5340-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5331v5340-2022-08-22) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.33.1...v5.34.0) ##### Bug Fixes - **eslint-plugin:** \[no-useless-constructor] handle parameter decorator ([#5450](https://togithub.com/typescript-eslint/typescript-eslint/issues/5450)) ([864dbcf](https://togithub.com/typescript-eslint/typescript-eslint/commit/864dbcfccba274fe1b26eac8aeeaf2a2355b5969)) ##### Features - **eslint-plugin:** \[prefer-optional-chain] support suggesting `!foo || !foo.bar` as a valid match for the rule ([#5266](https://togithub.com/typescript-eslint/typescript-eslint/issues/5266)) ([aca935c](https://togithub.com/typescript-eslint/typescript-eslint/commit/aca935c9696712d4aff18144c4690db4d6ba9bf9)) #### [5.33.1](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.33.0...v5.33.1) (2022-08-15) ##### Bug Fixes - missing placeholders in violation messages for `no-unnecessary-type-constraint` and `no-unsafe-argument` (and enable `eslint-plugin/recommended` rules internally) ([#5453](https://togithub.com/typescript-eslint/typescript-eslint/issues/5453)) ([d023910](https://togithub.com/typescript-eslint/typescript-eslint/commit/d0239104f4dbffd2b5ecdb19e520c7d4b71962e0)) ### [`v5.33.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#5331-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5330v5331-2022-08-15) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.33.0...v5.33.1) ##### Bug Fixes - missing placeholders in violation messages for `no-unnecessary-type-constraint` and `no-unsafe-argument` (and enable `eslint-plugin/recommended` rules internally) ([#5453](https://togithub.com/typescript-eslint/typescript-eslint/issues/5453)) ([d023910](https://togithub.com/typescript-eslint/typescript-eslint/commit/d0239104f4dbffd2b5ecdb19e520c7d4b71962e0)) ### [`v5.33.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#5330-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5320v5330-2022-08-08) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.32.0...v5.33.0) ##### Bug Fixes - **eslint-plugin:** \[no-extra-parens] handle await with type assertion ([#5428](https://togithub.com/typescript-eslint/typescript-eslint/issues/5428)) ([e03826f](https://togithub.com/typescript-eslint/typescript-eslint/commit/e03826f08ce8bfdd6d6702025d975cfb7d867097)) - **website:** add explicit frontmatter description to rule docs ([#5429](https://togithub.com/typescript-eslint/typescript-eslint/issues/5429)) ([63cba5f](https://togithub.com/typescript-eslint/typescript-eslint/commit/63cba5f4c1884e102927b3b14b18a00e96ac63a1)) ##### Features - **eslint-plugin:** \[member-ordering] support static blocks ([#5417](https://togithub.com/typescript-eslint/typescript-eslint/issues/5417)) ([5983e5a](https://togithub.com/typescript-eslint/typescript-eslint/commit/5983e5ab3bfb94fec782bea54a37457fe31db545)) - **eslint-plugin:** \[prefer-as-const] adds support for class properties ([#5413](https://togithub.com/typescript-eslint/typescript-eslint/issues/5413)) ([d2394f8](https://togithub.com/typescript-eslint/typescript-eslint/commit/d2394f810960fda07b9c8affd47b769d16f4b8cb))typescript-eslint/typescript-eslint (@typescript-eslint/parser)
### [`v5.36.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#5361-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5360v5361-2022-08-30) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.36.0...v5.36.1) **Note:** Version bump only for package [@typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) ### [`v5.36.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#5360-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5351v5360-2022-08-30) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.35.1...v5.36.0) **Note:** Version bump only for package [@typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) #### [5.35.1](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.35.0...v5.35.1) (2022-08-24) **Note:** Version bump only for package [@typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) ### [`v5.35.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#5351-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5350v5351-2022-08-24) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.35.0...v5.35.1) **Note:** Version bump only for package [@typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) ### [`v5.35.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#5350-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5340v5350-2022-08-24) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.34.0...v5.35.0) **Note:** Version bump only for package [@typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) ### [`v5.34.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#5340-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5331v5340-2022-08-22) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.33.1...v5.34.0) **Note:** Version bump only for package [@typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) #### [5.33.1](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.33.0...v5.33.1) (2022-08-15) **Note:** Version bump only for package [@typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) ### [`v5.33.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#5331-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5330v5331-2022-08-15) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.33.0...v5.33.1) **Note:** Version bump only for package [@typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) ### [`v5.33.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#5330-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5320v5330-2022-08-08) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.32.0...v5.33.0) **Note:** Version bump only for package [@typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)evanw/esbuild
### [`v0.15.6`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#0156) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.15.5...v0.15.6) - Lower `for await` loops ([#1930](https://togithub.com/evanw/esbuild/issues/1930)) This release lowers `for await` loops to the equivalent `for` loop containing `await` when esbuild is configured such that `for await` loops are unsupported. This transform still requires at least generator functions to be supported since esbuild's lowering of `await` currently relies on generators. This new transformation is mostly modeled after what the TypeScript compiler does. Here's an example: ```js async function f() { for await (let x of y) x() } ``` The code above will now become the following code with `--target=es2017` (omitting the code for the `__forAwait` helper function): ```js async function f() { try { for (var iter = __forAwait(y), more, temp, error; more = !(temp = await iter.next()).done; more = false) { let x = temp.value; x(); } } catch (temp) { error = [temp]; } finally { try { more && (temp = iter.return) && await temp.call(iter); } finally { if (error) throw error[0]; } } } ``` - Automatically fix invalid `supported` configurations ([#2497](https://togithub.com/evanw/esbuild/issues/2497)) The `--target=` setting lets you tell esbuild to target a specific version of one or more JavaScript runtimes such as `chrome80,node14` and esbuild will restrict its output to only those features supported by all targeted JavaScript runtimes. More recently, esbuild introduced the `--supported:` setting that lets you override which features are supported on a per-feature basis. However, this now lets you configure nonsensical things such as `--supported:async-await=false --supported:async-generator=true`. Previously doing this could result in esbuild building successfully but producing invalid output. Starting with this release, esbuild will now attempt to automatically fix nonsensical feature override configurations by introducing more overrides until the configuration makes sense. So now the configuration from previous example will be changed such that `async-await=false` implies `async-generator=false`. The full list of implications that were introduced is below: - `async-await=false` implies: - `async-generator=false` - `for-await=false` - `top-level-await=false` - `generator=false` implies: - `async-generator=false` - `object-accessors=false` implies: - `class-private-accessor=false` - `class-private-static-accessor=false` - `class-field=false` implies: - `class-private-field=false` - `class-static-field=false` implies: - `class-private-static-field=false` - `class=false` implies: - `class-field=false` - `class-private-accessor=false` - `class-private-brand-check=false` - `class-private-field=false` - `class-private-method=false` - `class-private-static-accessor=false` - `class-private-static-field=false` - `class-private-static-method=false` - `class-static-blocks=false` - `class-static-field=false` - Implement a small minification improvement ([#2496](https://togithub.com/evanw/esbuild/issues/2496)) Some people write code that contains a label with an immediate break such as `x: break x`. Previously this code was not removed during minification but it will now be removed during minification starting with this release. - Fix installing esbuild via Yarn with `enableScripts: false` configured ([#2457](https://togithub.com/evanw/esbuild/pull/2457)) If esbuild is installed with Yarn with the `enableScripts: false` setting configured, then Yarn will not "unplug" the `esbuild` package (i.e. it will keep the entire package inside a `.zip` file). This messes with esbuild's library code that extracts the platform-specific binary executable because that code copies the binary executable into the esbuild package directory, and Yarn's `.zip` file system shim doesn't let you write to a directory inside of a `.zip` file. This release fixes this problem by writing to the `node_modules/.cache/esbuild` directory instead in this case. So you should now be able to use esbuild with Yarn when `enableScripts: false` is configured. This fix was contributed by [@jonaskuske](https://togithub.com/jonaskuske). ### [`v0.15.5`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#0155) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.15.4...v0.15.5) - Fix issues with Yarn PnP and Yarn's workspaces feature ([#2476](https://togithub.com/evanw/esbuild/issues/2476)) This release makes sure esbuild works with a Yarn feature called [workspaces](https://yarnpkg.com/features/workspaces/). Previously esbuild wasn't tested in this scenario, but this scenario now has test coverage. Getting this to work involved further tweaks to esbuild's custom code for what happens after Yarn PnP's path resolution algorithm runs, which is not currently covered by Yarn's PnP specification. These tweaks also fix `exports` map resolution with Yarn PnP for non-empty subpaths, which wasn't previously working. ### [`v0.15.4`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#0154) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.15.3...v0.15.4) - Consider TypeScript import assignments to be side-effect free ([#2468](https://togithub.com/evanw/esbuild/issues/2468)) TypeScript has a [legacy import syntax](https://www.typescriptlang.org/docs/handbook/namespaces.html#aliases) for working with TypeScript namespaces that looks like this: ```ts import { someNamespace } from './some-file' import bar = someNamespace.foo; // some-file.ts export namespace someNamespace { export let foo = 123 } ``` Since esbuild converts TypeScript into JavaScript one file at a time, it doesn't know if `bar` is supposed to be a value or a type (or both, which TypeScript actually allows in this case). This is problematic because values are supposed to be kept during the conversion but types are supposed to be removed during the conversion. Currently esbuild keeps `bar` in the output, which is done because `someNamespace.foo` is a property access and property accesses run code that could potentially have a side effect (although there is no side effect in this case). With this release, esbuild will now consider `someNamespace.foo` to have no side effects. This means `bar` will now be removed when bundling and when tree shaking is enabled. Note that it will still not be removed when tree shaking is disabled. This is because in this mode, esbuild supports adding additional code to the end of the generated output that's in the same scope as the module. That code could potentially make use of `bar`, so it would be incorrect to remove it. If you want `bar` to be removed, you'll have to enable tree shaking (which tells esbuild that nothing else depends on the unexported top-level symbols in the generated output). - Change the order of the banner and the `"use strict"` directive ([#2467](https://togithub.com/evanw/esbuild/issues/2467)) Previously the top of the file contained the following things in order: 1. The hashbang comment (see below) from the source code, if present 2. The `"use strict"` directive from the source code, if present 3. The content of esbuild's `banner` API option, if specified This was problematic for people that used the `banner` API option to insert the hashbang comment instead of using esbuild's hashbang comment preservation feature. So with this release, the order has now been changed to: 1. The hashbang comment (see below) from the source code, if present 2. The content of esbuild's `banner` API option, if specified 3. The `"use strict"` directive from the source code, if present I'm considering this change to be a bug fix instead of a breaking change because esbuild's documentation states that the `banner` API option can be used to "insert an arbitrary string at the beginning of generated JavaScript files". While this isn't technically true because esbuild may still insert the original hashbang comment before the banner, it's at least more correct now because the banner will now come before the `"use strict"` directive. For context: JavaScript files recently allowed using a [hashbang comment](https://togithub.com/tc39/proposal-hashbang), which starts with `#!` and which must start at the very first character of the file. It allows Unix systems to execute the file directly as a script without needing to prefix it by the `node` command. This comment typically has the value `#!/usr/bin/env node`. Hashbang comments will be a part of ES2023 when it's released next year. - Fix `exports` maps with Yarn PnP path resolution ([#2473](https://togithub.com/evanw/esbuild/issues/2473)) The Yarn PnP specification says that to resolve a package path, you first resolve it to the absolute path of a directory, and then you run node's module resolution algorithm on it. Previously esbuild followed this part of the specification. However, doing this means that `exports` in `package.json` is not respected because node's module resolution algorithm doesn't interpret `exports` for absolute paths. So with this release, esbuild will now use a modified algorithm that deviates from both specifications but that should hopefully behave more similar to what Yarn actually does: node's module resolution algorithm is run with the original import path but starting from the directory returned by Yarn PnP. ### [`v0.15.3`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#0153) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.15.2...v0.15.3) - Change the Yarn PnP manifest to a singleton ([#2463](https://togithub.com/evanw/esbuild/issues/2463)) Previously esbuild searched for the Yarn PnP manifest in the parent directories of each file. But with Yarn's `enableGlobalCache` setting it's possible to configure Yarn PnP's implementation to reach outside of the directory subtree containing the Yarn PnP manifest. This was causing esbuild to fail to bundle projects with the `enableGlobalCache` setting enabled. To handle this case, *esbuild will now only search for the Yarn PnP manifest in the current working directory of the esbuild process*. If you're using esbuild's CLI, this means you will now have to `cd` into the appropriate directory first. If you're using esbuild's API, you can override esbuild's value for the current working directory with the `absWorkingDir` API option. - Fix Yarn PnP resolution failures due to backslashes in paths on Windows ([#2462](https://togithub.com/evanw/esbuild/issues/2462)) Previously dependencies of a Yarn PnP virtual dependency failed to resolve on Windows. This was because Windows uses `\` instead of `/` as a path separator, and the path manipulation algorithms used for Yarn PnP expected `/`. This release converts `\` into `/` in Windows paths, which fixes this issue. - Fix `sideEffects` patterns containing slashes on Windows ([#2465](https://togithub.com/evanw/esbuild/issues/2465)) The `sideEffects` field in `package.json` lets you specify an array of patterns to mark which files have side effects (which causes all other files to be considered to not have side effects by exclusion). That looks like this: ```json "sideEffects": [ "**/index.js", "**/index.prod.js" ] ``` However, the presence of the `/` character in the pattern meant that the pattern failed to match Windows-style paths, which broke `sideEffects` on Windows in this case. This release fixes this problem by adding additional code to handle Windows-style paths. ### [`v0.15.2`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#0152) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.15.1...v0.15.2) - Fix Yarn PnP issue with packages containing `index.js` ([#2455](https://togithub.com/evanw/esbuild/issues/2455), [#2461](https://togithub.com/evanw/esbuild/issues/2461)) Yarn PnP's tests require the resolved paths to end in `/`. That's not how the rest of esbuild's internals work, however, and doing this messed up esbuild's node module path resolution regarding automatically-detected `index.js` files. Previously packages that relied on implicit `index.js` resolution rules didn't work with esbuild under Yarn PnP. Removing this slash has fixed esbuild's path resolution behavior regarding `index.js`, which should now the same both with and without Yarn PnP. - Fix Yarn PnP support for `extends` in `tsconfig.json` ([#2456](https://togithub.com/evanw/esbuild/issues/2456)) Previously using `extends` in `tsconfig.json` with a path in a Yarn PnP package didn't work. This is because the process of setting up package path resolution rules requires parsing `tsconfig.json` files (due to the `baseUrl` and `paths` features) and resolving `extends` to a package path requires package path resolution rules to already be set up, which is a circular dependency. This cycle is broken by using special rules for `extends` in `tsconfig.json` that bypasses esbuild's normal package path resolution process. This is why using `extends` with a Yarn PnP package didn't automatically work. With this release, these special rules have been modified to check for a Yarn PnP manifest so this case should work now. - Fix Yarn PnP support in `esbuild-wasm` ([#2458](https://togithub.com/evanw/esbuild/issues/2458)) When running esbuild via WebAssembly, Yarn PnP support previously failed because Go's file system internals return `EINVAL` when trying to read a `.zip` file as a directory when run with WebAssembly. This was unexpected because Go's file system internals return `ENOTDIR` for this case on native. This release updates esbuild to treat `EINVAL` like `ENOTDIR` in this case, which fixes using `esbuild-wasm` to bundle a Yarn PnP project. Note that to be able to use `esbuild-wasm` for Yarn PnP successfully, you currently have to run it using `node` instead of `yarn node`. This is because the file system shim that Yarn overwrites node's native file system API with currently generates invalid file descriptors with negative values when inside a `.zip` file. This prevents esbuild from working correctly because Go's file system internals don't expect syscalls that succeed without an error to return an invalid file descriptor. Yarn is working on fixing their use of invalid file descriptors. ### [`v0.15.1`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#0151) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.15.0...v0.15.1) - Update esbuild's Yarn Plug'n'Play implementation to match the latest specification changes ([#2452](https://togithub.com/evanw/esbuild/issues/2452), [#2453](https://togithub.com/evanw/esbuild/pull/2453)) This release updates esbuild's implementation of Yarn Plug'n'Play to match some changes to Yarn's specification that just landed. The changes are as follows: - Check for platform-specific absolute paths instead of always for the `/` prefix The specification previously said that Yarn Plug'n'Play path resolution rules should not apply for paths that start with `/`. The intent was to avoid accidentally processing absolute paths. However, absolute paths on Windows such as `C:\project` start with drive letters instead of with `/`. So the specification was changed to instead explicitly avoid processing absolute paths. - Make `$$virtual` an alias for `__virtual__` Supporting Yarn-style path resolution requires implementing a custom Yarn-specific path traversal scheme where certain path segments are considered no-ops. Specifically any path containing segments of the form `__virtual__/eslint/eslint
### [`v8.23.0`](https://togithub.com/eslint/eslint/releases/tag/v8.23.0) [Compare Source](https://togithub.com/eslint/eslint/compare/v8.22.0...v8.23.0) #### Features - [`3e5839e`](https://togithub.com/eslint/eslint/commit/3e5839ecae96aecfbc1ac9526e88e0105e671032) feat: Enable eslint.config.js lookup from CLI ([#16235](https://togithub.com/eslint/eslint/issues/16235)) (Nicholas C. Zakas) - [`30b1a2d`](https://togithub.com/eslint/eslint/commit/30b1a2dac9060673101485841c4c7521675bf917) feat: add `allowEmptyCase` option to no-fallthrough rule ([#15887](https://togithub.com/eslint/eslint/issues/15887)) (Amaresh S M) - [`43f03aa`](https://togithub.com/eslint/eslint/commit/43f03aa96b632039b1d9cad097a70b227bb7d348) feat: no-warning-comments support comments with decoration ([#16120](https://togithub.com/eslint/eslint/issues/16120)) (Lachlan Hunt) #### Documentation - [`b1918da`](https://togithub.com/eslint/eslint/commit/b1918da0f6cb8fe690c7377667616ec7cb57111e) docs: package.json conventions ([#16206](https://togithub.com/eslint/eslint/issues/16206)) (Patrick McElhaney) - [`0e03c33`](https://togithub.com/eslint/eslint/commit/0e03c333a70bebd00307deead0befa519f983f44) docs: remove word immediately ([#16217](https://togithub.com/eslint/eslint/issues/16217)) (Strek) - [`c6790db`](https://togithub.com/eslint/eslint/commit/c6790db6494e64a5261d74c0f3c4dc6139c59435) docs: add anchor link for "migrating from jscs" ([#16207](https://togithub.com/eslint/eslint/issues/16207)) (Percy Ma) - [`7137344`](https://togithub.com/eslint/eslint/commit/71373442c42b356f34179dba18f860e1d79a780d) docs: auto-generation edit link ([#16213](https://togithub.com/eslint/eslint/issues/16213)) (Percy Ma) #### Chores - [`2e004ab`](https://togithub.com/eslint/eslint/commit/2e004ab990a4a5a4efc44974da005d2161490256) chore: upgrade [@eslint/eslintrc](https://togithub.com/eslint/eslintrc)[@1](https://togithub.com/1).3.1 ([#16249](https://togithub.com/eslint/eslint/issues/16249)) (Milos Djermanovic) - [`d35fbbe`](https://togithub.com/eslint/eslint/commit/d35fbbef895e8f4ac6eaf1756349230769a02b4d) chore: Upgrade to espree@9.4.0 ([#16243](https://togithub.com/eslint/eslint/issues/16243)) (Milos Djermanovic) - [`ed26229`](https://togithub.com/eslint/eslint/commit/ed26229a19359b356f3a401698488c1707d4c029) test: add no-extra-parens tests with rest properties ([#16236](https://togithub.com/eslint/eslint/issues/16236)) (Milos Djermanovic) - [`deaf69f`](https://togithub.com/eslint/eslint/commit/deaf69ffd8f9b97b4b8c29a244a79969ff14c80a) chore: fix off-by-one `min-width: 1023px` media queries ([#15974](https://togithub.com/eslint/eslint/issues/15974)) (Milos Djermanovic) - [`63dec9f`](https://togithub.com/eslint/eslint/commit/63dec9fdee793be9bf2939e1bda0717b9cc6dcf8) refactor: simplify `parseListConfig` ([#16241](https://togithub.com/eslint/eslint/issues/16241)) (Milos Djermanovic) ### [`v8.22.0`](https://togithub.com/eslint/eslint/releases/tag/v8.22.0) [Compare Source](https://togithub.com/eslint/eslint/compare/v8.21.0...v8.22.0) ##### Features - [`2b97607`](https://togithub.com/eslint/eslint/commit/2b97607675e1d0920a3abedd736e2ae00ed26d52) feat: Implement caching for FlatESLint ([#16190](https://togithub.com/eslint/eslint/issues/16190)) (Nicholas C. Zakas) - [`fd5d3d3`](https://togithub.com/eslint/eslint/commit/fd5d3d37c97001fad1d9ae4386f76b3587cceba9) feat: add `methodsIgnorePattern` option to object-shorthand rule ([#16185](https://togithub.com/eslint/eslint/issues/16185)) (Milos Djermanovic) ##### Documentation - [`9f5a752`](https://togithub.com/eslint/eslint/commit/9f5a75206675f2404ad6733640cf05ab44b02274) docs: optimize image assets ([#16170](https://togithub.com/eslint/eslint/issues/16170)) (Sam Chen) - [`61b2948`](https://togithub.com/eslint/eslint/commit/61b2948cb71ec505d2f7e904c7ad77ee1da64db2) docs: add svgo command to pre commit hook ([#16178](https://togithub.com/eslint/eslint/issues/16178)) (Amaresh S M) - [`784096d`](https://togithub.com/eslint/eslint/commit/784096d37808e59ce8cc07c3c18018b31a31c3f8) docs: improve search result UI ([#16187](https://togithub.com/eslint/eslint/issues/16187)) (Sam Chen) - [`d0f4cb4`](https://togithub.com/eslint/eslint/commit/d0f4cb42e86b4b9c7bdf91e88a4ec0d36074f36b) docs: use shorthand property name in example ([#16180](https://togithub.com/eslint/eslint/issues/16180)) (Kevin Elliott) ##### Chores - [`10a6e0e`](https://togithub.com/eslint/eslint/commit/10a6e0e14488e4ae9ab267fb5db2ec0c5bb85d59) chore: remove deploy workflow for playground ([#16186](https://togithub.com/eslint/eslint/issues/16186)) (Milos Djermanovic)substack/tape
### [`v5.6.0`](https://togithub.com/substack/tape/compare/v5.5.3...v5.6.0) [Compare Source](https://togithub.com/substack/tape/compare/v5.5.3...v5.6.0)Configuration
📅 Schedule: Branch creation - "on the first day of the month" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.