biomejs/biome (@biomejs/biome)
### [`v1.7.1`](https://togithub.com/biomejs/biome/blob/HEAD/CHANGELOG.md#171-2024-04-22)
[Compare Source](https://togithub.com/biomejs/biome/compare/2dce6af835cc9339669b09f3a758de36a90b15f7...aba7b0c1c40a6137b3b78064841f621b53aa5fd0)
##### Editors
##### Bug fixes
- Fix [#2403](https://togithub.com/biomejs/biome/issues/2403) by printing the errors in the client console. Contributed by [@ematipico](https://togithub.com/ematipico)
##### Formatter
##### Bug fixes
- Add parentheses for the return expression that has leading multiline comments. [#2504](https://togithub.com/biomejs/biome/pull/2504). Contributed by [@ah-yu](https://togithub.com/ah-yu)
- Correctly format dangling comments of continue statements. [#2555](https://togithub.com/biomejs/biome/pull/2555). Contributed by [@ah-yu](https://togithub.com/ah-yu)
##### Linter
##### Bug fixes
- Fix case where `jsxRuntime` wasn't being respected by `useImportType` rule ([#2473](https://togithub.com/biomejs/biome/issues/2473)).Contributed by [@arendjr](https://togithub.com/arendjr)
- Fix [#2460](https://togithub.com/biomejs/biome/issues/2460), where the rule `noUselessFragments` was crashing the linter in some cases. Now cases like these are correctly handled:
```jsx
callFunction(<>{bar}>)
```
Contributed by [@ematipico](https://togithub.com/ematipico)
- Fix [#2366](https://togithub.com/biomejs/biome/issues/2366), where `noDuplicateJsonKeys` incorrectly computed the kes to highlight. Contributed by [@ematipico](https://togithub.com/ematipico)
##### Enhancements
- The rule `noMisplacedAssertions` now considers valid calling `expect` inside `waitFor`:
```js
import { waitFor } from '@testing-library/react';
await waitFor(() => {
expect(111).toBe(222);
});
```
Contributed by [@ematipico](https://togithub.com/ematipico)
### [`v1.7.0`](https://togithub.com/biomejs/biome/blob/HEAD/CHANGELOG.md#170-2024-04-15)
[Compare Source](https://togithub.com/biomejs/biome/compare/f6fd1ef7130e7bcd1466aa78ae7295fc5fdd5d58...2dce6af835cc9339669b09f3a758de36a90b15f7)
##### Analyzer
##### Bug fixes
- Now Biome can detect the script language in Svelte and Vue script blocks more reliably ([#2245](https://togithub.com/biomejs/biome/issues/2245)). Contributed by [@Sec-ant](https://togithub.com/Sec-ant)
- `useExhaustiveDependencies` no longer reports recursive calls as missing
dependencies ([#2361](https://togithub.com/biomejs/biome/issues/2361)).
Contributed by [@arendjr](https://togithub.com/arendjr)
- `useExhaustiveDependencies` correctly reports missing dependencies declared
using function declarations ([#2362](https://togithub.com/biomejs/biome/issues/2362)).
Contributed by [@arendjr](https://togithub.com/arendjr)
- Biome now can handle `.svelte` and `.vue` files with `CRLF` as the end-of-line sequence. Contributed by [@Sec-ant](https://togithub.com/Sec-ant)
- `noMisplacedAssertion` no longer reports method calls by `describe`, `test`, `it` objects (e.g. `test.each([])()`) ([#2443](https://togithub.com/biomejs/biome/issues/2443)). Contributed by [@unvalley](https://togithub.com/unvalley).
- Biome now can handle `.vue` files with [generic components](https://vuejs.org/api/sfc-script-setup#generics) ([#2456](https://togithub.com/biomejs/biome/issues/2456)).
```vue
```
Contributed by [@Sec-ant](https://togithub.com/Sec-ant)
##### Enhancements
- Complete the well-known file lists for JSON-like files. Trailing commas are allowed in `.jsonc` files by default. Some well-known files like `tsconfig.json` and `.babelrc` don't use the `.jsonc` extension but still allow comments and trailing commas. While others, such as `.eslintrc.json`, only allow comments. Biome is able to identify these files and adjusts the `json.parser.allowTrailingCommas` option accordingly to ensure they are correctly parsed. Contributed by [@Sec-ant](https://togithub.com/Sec-ant)
- Fix dedent logic inconsistent with prettier where the indent-style is space and the indent-width is not 2. Contributed by [@mdm317](https://togithub.com/mdm317)
##### CLI
##### New features
- Add a command to migrate from ESLint
`biome migrate eslint` allows you to migrate an ESLint configuration to Biome.
The command supports [legacy ESLint configurations](https://eslint.org/docs/latest/use/configure/configuration-files) and [new flat ESLint configurations](https://eslint.org/docs/latest/use/configure/configuration-files-new).
Legacy ESLint configurations using the YAML format are not supported.
When loading a legacy ESLint configuration, Biome resolves the `extends` field.
It resolves both shared configurations and plugin presets!
To do this, it invokes *Node.js*.
Biome relies on the metadata of its rules to determine the [equivalent rule of an ESLint rule](https://biomejs.dev/linter/rules-sources/).
A Biome rule is either inspired or roughly identical to an ESLint rules.
By default, inspired and nursery rules are excluded from the migration.
You can use the CLI flags `--include-inspired` and `--include-nursery` to migrate them as well.
Note that this is a best-effort approach.
You are not guaranteed to get the same behavior as ESLint.
Given the following ESLint configuration:
```json
{
"ignore_patterns": ["**/*.test.js"],
"globals": { "var2": "readonly" },
"rules": {
"eqeqeq": "error"
},
"overrides": [{
"files": ["lib/*.js"],
"rules": {
"default-param-last": "off"
}
}]
}
```
`biome migrate eslint --write` changes the Biome configuration as follows:
```json
{
"linter": {
"rules": {
"recommended": false,
"suspicious": {
"noDoubleEquals": "error"
}
}
},
"javascript": { "globals": ["var2"] },
"overrides": [{
"include": ["lib/*.js"],
"linter": {
"rules": {
"style": {
"useDefaultParameterLast": "off"
}
}
}
}]
}
```
Also, if the working directory contains `.eslintignore`, then Biome migrates the glob patterns.
Nested `.eslintignore` in subdirectories and negated glob patterns are not supported.
If you find any issue, please don't hesitate to report them.
Contributed by [@Conaclos](https://togithub.com/Conaclos)
- Added two new options to customise the emitted output of the CLI: `--reporter=json` and `--reporter=json-pretty`. With `--reporter=json`, the diagnostics and the
summary will be printed in the **terminal** in JSON format. With `--reporter=json-pretty`, you can print the same information, but formatted using the same options of your configuration.
NOTE: the shape of the JSON is considered experimental, and the shape of the JSON might change in the future.
Example of output when running `biome format` command
```json
{
"summary": {
"changed": 0,
"unchanged": 1,
"errors": 1,
"warnings": 0,
"skipped": 0,
"suggestedFixesSkipped": 0,
"diagnosticsNotPrinted": 0
},
"diagnostics": [
{
"category": "format",
"severity": "error",
"description": "Formatter would have printed the following content:",
"message": [
{
"elements": [],
"content": "Formatter would have printed the following content:"
}
],
"advices": {
"advices": [
{
"diff": {
"dictionary": " statement();\n",
"ops": [
{ "diffOp": { "delete": { "range": [0, 2] } } },
{ "diffOp": { "equal": { "range": [2, 12] } } },
{ "diffOp": { "delete": { "range": [0, 2] } } },
{ "diffOp": { "equal": { "range": [12, 13] } } },
{ "diffOp": { "delete": { "range": [0, 2] } } },
{ "diffOp": { "insert": { "range": [13, 15] } } }
]
}
}
]
},
"verboseAdvices": { "advices": [] },
"location": {
"path": { "file": "format.js" },
"span": null,
"sourceCode": null
},
"tags": [],
"source": null
}
],
"command": "format"
}
```
- Added new `--staged` flag to the `check`, `format` and `lint` subcommands.
This new option allows users to apply the command *only* to the files that are staged (the
ones that will be committed), which can be very useful to simplify writing git hook scripts
such as `pre-commit`. Contributed by [@castarco](https://togithub.com/castarco)
##### Enhancements
- Improve support of `.prettierignore` when migrating from Prettier
Now, Biome translates most of the glob patterns in `.prettierignore` to the equivalent Biome ignore pattern.
Only negated glob patterns are not supported.
Contributed by [@Conaclos](https://togithub.com/Conaclos)
- Support JavaScript configuration files when migrating from Prettier
`biome migrate prettier` is now able to migrate Prettier configuration files
ending with `js`, `mjs`, or `cjs` extensions.
To do this, Biome invokes Node.js.
Also, embedded Prettier configurations in `package.json` are now supported.
Contributed by [@Conaclos](https://togithub.com/Conaclos)
- Support `overrides` field in Prettier configuration files when migrating from Prettier.
Contributed by [@Conaclos](https://togithub.com/Conaclos)
- Support passing a file path to the `--config-path` flag or the `BIOME_CONFIG_PATH` environment variable.
Now you can pass a `.json`/`.jsonc` file path with any filename to the `--config-path` flag or the
`BIOME_CONFIG_PATH` environment variable. This will disable the configuration auto-resolution and Biome
will try to read the configuration from the said file path ([#2265](https://togithub.com/biomejs/biome/issues/2265)).
```shell
biome format --config-path=../biome.json ./src
```
Contributed by [@Sec-ant](https://togithub.com/Sec-ant)
##### Bug fixes
- Biome now tags the diagnostics emitted by `organizeImports` and `formatter` with correct severity levels, so they will be properly filtered by the flag `--diagnostic-level` ([#2288](https://togithub.com/biomejs/biome/issues/2288)). Contributed by [@Sec-ant](https://togithub.com/Sec-ant)
- Biome now correctly filters out files that are not present in the current directory when using the `--changed` flag [#1996](https://togithub.com/biomejs/biome/issues/1996). Contributed by [@castarco](https://togithub.com/castarco)
- Biome now skips traversing `fifo` or `socket` files ([#2311](https://togithub.com/biomejs/biome/issues/2311)). Contributed by [@Sec-ant](https://togithub.com/Sec-ant)
- Biome now resolves configuration files exported from external libraries in `extends` from the working directory (CLI) or project root (LSP). This is the documented behavior and previous resolution behavior is considered as a bug ([#2231](https://togithub.com/biomejs/biome/issues/2231)). Contributed by [@Sec-ant](https://togithub.com/Sec-ant)
##### Configuration
##### Bug fixes
- Now setting group level `all` to `false` can disable recommended rules from that group when top level `recommended` is `true` or unset. Contributed by [@Sec-ant](https://togithub.com/Sec-ant)
- Biome configuration files can correctly extends `.jsonc` configuration files now ([#2279](https://togithub.com/biomejs/biome/issues/2279)). Contributed by [@Sec-ant](https://togithub.com/Sec-ant)
- Fixed the JSON schema for React hooks configuration ([#2396](https://togithub.com/biomejs/biome/issues/2396)). Contributed by [@arendjr](https://togithub.com/arendjr)
##### Enhancements
- Biome now displays the location of a parsing error for its configuration file ([#1627](https://togithub.com/biomejs/biome/issues/1627)).
Previously, when Biome encountered a parsing error in its configuration file,
it didn't indicate the location of the error.
It now displays the name of the configuration file and the range where the error occurred.
Contributed by [@Conaclos](https://togithub.com/Conaclos)
- `options` is no longer required for rules without any options ([#2313](https://togithub.com/biomejs/biome/issues/2313)).
Previously, the JSON schema required to set `options` to `null` when an object is used to set the diagnostic level of a rule without any option.
However, if `options` is set to `null`, Biome emits an error.
The schema is now fixed and it no longer requires specifying `options`.
This makes the following configuration valid:
```json
{
"linter": {
"rules": {
"style": {
"noDefaultExport": {
"level": "off"
}
}
}
}
}
```
Contributed by [@Conaclos](https://togithub.com/Conaclos)
##### Editors
##### Bug fixes
- Biome extension is now able to parse the JSX syntax in files that associated with the `javascript` [language identifier](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocumentItem). This is an ad hoc fix, because [in the React world, `.js` files are allowed to include JSX syntax](https://togithub.com/facebook/create-react-app/issues/87#issuecomment-234627904), and these files are often associated with the `javascript` language identifier in most of the editors. Plus, [some editor extensions](https://togithub.com/michaelgmcd/vscode-language-babel/blob/8b3a472748ad07c99dc022b66795c9eb46be4ccb/package.json#L63-L80) will also associate `.jsx` files with the `javascript` language identifier. Relative links: [discussion](https://togithub.com/biomejs/biome/discussions/838#discussioncomment-9047539), [#2085](https://togithub.com/biomejs/biome/issues/2085). Contributed by [@Sec-ant](https://togithub.com/Sec-ant)
##### Formatter
##### Bug fixes
- Fix [#2291](https://togithub.com/biomejs/biome/issues/2291) by correctly handle comment placement for JSX spread attributes and JSX spread children. Contributed by [@ah-yu](https://togithub.com/ah-yu)
##### JavaScript APIs
##### Linter
##### Promoted rules
New rules are incubated in the nursery group.
Once stable, we promote them to a stable group.
The following rules are promoted:
- [complecity/noExcessiveNestedTestSuites](https://biomejs.dev/linter/rules/no-excessive-nested-test-suites)
- [complexity/noUselessTernary](https://biomejs.dev/linter/rules/no-useless-ternary)
- [correctness/useJsxKeyInIterable](https://biomejs.dev/linter/rules/use-jsx-key-in-iterable)
- [performance/noBarrelFile](https://biomejs.dev/linter/rules/no-barrel-file/)
- [performance/noReExportAll](https://biomejs.dev/linter/rules/no-re-export-all/)
- [style/noNamespaceImport](https://biomejs.dev/linter/rules/no-namespace-import/)
- [style/useNodeAssertStrict](https://biomejs.dev/linter/rules/use-node-assert-strict/)
- [suspicious/noDuplicateTestHooks](https://biomejs.dev/linter/rules/no-duplicate-test-hooks/)
- [suspicious/noExportsInTest](https://biomejs.dev/linter/rules/no-exports-in-test/)
- [suspicious/noFocusedTests](https://biomejs.dev/linter/rules/no-focused-tests/)
- [suspicious/noSkippedTests](https://biomejs.dev/linter/rules/no-skipped-tests/)
- [suspicious/noSuspiciousSemicolonInJsx](https://biomejs.dev/linter/rules/no-suspicious-semicolon-in-jsx)
##### New features
- Add a new option `jsxRuntime` to the `javascript` configuration. When set to `reactClassic`, the [noUnusedImports](https://biomejs.dev/linter/rules/no-unused-imports) and [useImportType](https://biomejs.dev/linter/rules/use-import-type) rules use this information to make exceptions for the React global that is required by the React Classic JSX transform.
This is only necessary for React users who haven't upgraded to the [new JSX transform](https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html).
Contributed by [@Conaclos](https://togithub.com/Conaclos) and [@arendjr](https://togithub.com/arendjr)
- Implement [#2043](https://togithub.com/biomejs/biome/issues/2043): The React rule [`useExhaustiveDependencies`](https://biomejs.dev/linter/rules/use-exhaustive-dependencies/) is now also compatible with Preact hooks imported from `preact/hooks` or `preact/compat`. Contributed by [@arendjr](https://togithub.com/arendjr)
- Add rule [noFlatMapIdentity](https://biomejs.dev/linter/rules/no-flat-map-identity) to disallow unnecessary callback use on `flatMap`. Contributed by [@isnakode](https://togithub.com/isnakode)
- Add rule [noConstantMathMinMaxClamp](https://biomejs.dev/linter/rules/no-constant-math-min-max-clamp), which disallows using `Math.min` and `Math.max` to clamp a value where the result itself is constant. Contributed by [@mgomulak](https://togithub.com/mgomulak)
##### Enhancements
- [style/useFilenamingConvention](https://biomejs.dev/linter/rules/use-filenaming-convention/) now allows prefixing a filename with `+` ([#2341](https://togithub.com/biomejs/biome/issues/2341)).
This is a convention used by [Sveltekit](https://kit.svelte.dev/docs/routing#page) and [Vike](https://vike.dev/route).
Contributed by [@Conaclos](https://togithub.com/Conaclos)
- [style/useNamingConvention](https://biomejs.dev/linter/rules/use-naming-convention/) now accepts `PascalCase` for local and top-level variables.
This allows supporting local variables that hold a component or a regular class.
The following code is now accepted:
```tsx
function loadComponent() {
const Component = getComponent();
return ;
}
```
Contributed by [@Conaclos](https://togithub.com/Conaclos)
- [complexity/useLiteralKeys](https://biomejs.dev/linter/rules/use-literal-keys/) no longer report computed properties named `__proto__` ([#2430](https://togithub.com/biomejs/biome/issues/2430)).
In JavaScript, `{["__proto__"]: null}` and `{__proto__: null}` have not the same semantic.
The first code set a regular property to `null`.
The second one set the prototype of the object to `null`.
See the [MDN Docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto) for more details.
The rule now ignores computed properties named `__proto__`.
Contributed by [@Conaclos](https://togithub.com/Conaclos)
##### Bug fixes
- Lint rules `useNodejsImportProtocol`, `useNodeAssertStrict`, `noRestrictedImports`, `noNodejsModules` will no longer check `declare module` statements anymore. Contributed by [@Sec-ant](https://togithub.com/Sec-ant)
- [style/useNamingConvention](https://biomejs.dev/linter/rules/use-naming-convention/) now accepts any case for variables from object destructuring ([#2332](https://togithub.com/biomejs/biome/issues/2332)).
The following name is now ignored:
```js
const { Strange_Style } = obj;
```
Previously, the rule renamed this variable. This led to a runtime error.
Contributed by [@Conaclos](https://togithub.com/Conaclos)
##### Parser
##### Bug fixes
- Fixed an issue when Unicode surrogate pairs were encoded in JavaScript strings
using an escape sequence ([#2384](https://togithub.com/biomejs/biome/issues/2384)).
Contributed by [@arendjr](https://togithub.com/arendjr)
conventional-changelog/commitlint (@commitlint/cli)
### [`v19.3.0`](https://togithub.com/conventional-changelog/commitlint/blob/HEAD/@commitlint/cli/CHANGELOG.md#1930-2024-04-23)
[Compare Source](https://togithub.com/conventional-changelog/commitlint/compare/v19.2.2...v19.3.0)
**Note:** Version bump only for package [@commitlint/cli](https://togithub.com/commitlint/cli)
#### [19.2.2](https://togithub.com/conventional-changelog/commitlint/compare/v19.2.1...v19.2.2) (2024-04-14)
**Note:** Version bump only for package [@commitlint/cli](https://togithub.com/commitlint/cli)
#### [19.2.1](https://togithub.com/conventional-changelog/commitlint/compare/v19.2.0...v19.2.1) (2024-03-19)
**Note:** Version bump only for package [@commitlint/cli](https://togithub.com/commitlint/cli)
swc-project/swc (@swc/wasm)
### [`v1.5.2`](https://togithub.com/swc-project/swc/compare/v1.5.1...v1.5.2)
[Compare Source](https://togithub.com/swc-project/swc/compare/v1.5.1...v1.5.2)
### [`v1.5.1`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#151---2024-04-27)
[Compare Source](https://togithub.com/swc-project/swc/compare/v1.5.0...v1.5.1)
##### Bug Fixes
- **(es/decorator)** Support for legacy decorators in class expressions ([#8892](https://togithub.com/swc-project/swc/issues/8892)) ([8fe57ad](https://togithub.com/swc-project/swc/commit/8fe57adc02f1a67ece9b73769d90320ae4e72808))
- **(es/helpers)** Remove unused export from `_using_ctx.js` ([#8891](https://togithub.com/swc-project/swc/issues/8891)) ([438d0b3](https://togithub.com/swc-project/swc/commit/438d0b32b680a1a64861e97cb4a1e14213335e48))
- **(es/minifier)** Do not add vars if `eval` exists ([#8888](https://togithub.com/swc-project/swc/issues/8888)) ([be359fa](https://togithub.com/swc-project/swc/commit/be359fa75318d645f954feb90353b884dfa51e6e))
### [`v1.5.0`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#150---2024-04-24)
[Compare Source](https://togithub.com/swc-project/swc/compare/v1.4.17...v1.5.0)
##### Bug Fixes
- **(es/minifier)** Abort seq inline on recursive usage ([#8887](https://togithub.com/swc-project/swc/issues/8887)) ([cd4548f](https://togithub.com/swc-project/swc/commit/cd4548fd8c32f67d0e8373f7a2c3cb625f43e6c4))
##### Features
- **(es/ast)** Support abstract auto-accessors ([#8736](https://togithub.com/swc-project/swc/issues/8736)) ([1155ac7](https://togithub.com/swc-project/swc/commit/1155ac79720512625568c45bfd3542ec340c0ebd))
typescript-eslint/typescript-eslint (@typescript-eslint/eslint-plugin)
### [`v7.7.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#771-2024-04-22)
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v7.7.0...v7.7.1)
##### 🩹 Fixes
- **eslint-plugin:** \[no-unsafe-assignment] handle shorthand property assignment
- **eslint-plugin:** \[explicit-function-return-type] fix checking wrong ancestor's return type
- **eslint-plugin:** \[prefer-optional-chain] only look at left operand for `requireNullish`
- **eslint-plugin:** \[no-for-in-array] refine report location
- **eslint-plugin:** \[no-unnecessary-type-assertion] allow non-null assertion for void type
##### ❤️ Thank You
- Abraham Guo
- Kirk Waiblinger
- YeonJuan
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.
### [`v7.7.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#770-2024-04-15)
[Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v7.6.0...v7.7.0)
##### 🚀 Features
- **eslint-plugin:** replace `no-new-symbol` with `no-new-native-nonconstructor`
##### ❤️ Thank You
- Dave
- Josh Goldberg ✨
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.
streetsidesoftware/cspell (cspell)
### [`v8.7.0`](https://togithub.com/streetsidesoftware/cspell/blob/HEAD/packages/cspell/CHANGELOG.md#870-2024-04-10)
[Compare Source](https://togithub.com/streetsidesoftware/cspell/compare/v8.6.1...v8.7.0)
**Note:** Version bump only for package cspell
eslint/eslint (eslint)
### [`v9.1.1`](https://togithub.com/eslint/eslint/compare/v9.1.0...b4d2512809a1b28466ad1ce5af9d01c181b9bf9e)
[Compare Source](https://togithub.com/eslint/eslint/compare/v9.1.0...v9.1.1)
### [`v9.1.0`](https://togithub.com/eslint/eslint/compare/v9.0.0...b78d831e244171c939279b03be519b5c13836fce)
[Compare Source](https://togithub.com/eslint/eslint/compare/v9.0.0...v9.1.0)
unjs/pkg-types (pkg-types)
### [`v1.1.0`](https://togithub.com/unjs/pkg-types/blob/HEAD/CHANGELOG.md#v110)
[Compare Source](https://togithub.com/unjs/pkg-types/compare/v1.0.3...v1.1.0)
[compare changes](https://togithub.com/unjs/pkg-types/compare/v1.0.3...v1.1.0)
##### 🚀 Enhancements
- Auto detect and preserve format ([#175](https://togithub.com/unjs/pkg-types/pull/175))
- Try to parse `package.json` as jsonc ([#176](https://togithub.com/unjs/pkg-types/pull/176))
##### 🩹 Fixes
- Add object syntax browser field type ([#145](https://togithub.com/unjs/pkg-types/pull/145))
- **types:** Allow `extends` as array ([#151](https://togithub.com/unjs/pkg-types/pull/151))
- Add `imports` field to the types ([#160](https://togithub.com/unjs/pkg-types/pull/160))
##### 💅 Refactors
- Migrate from `jsonc-parser` to `unjs/confbox` ([#174](https://togithub.com/unjs/pkg-types/pull/174))
##### 📖 Documentation
- Add missing jsdocs ([#171](https://togithub.com/unjs/pkg-types/pull/171))
##### 🏡 Chore
- Update repo ([f289b3a](https://togithub.com/unjs/pkg-types/commit/f289b3a))
- Add build command ([984edb6](https://togithub.com/unjs/pkg-types/commit/984edb6))
- Remove `.eslintignore` ([f1c1705](https://togithub.com/unjs/pkg-types/commit/f1c1705))
##### ❤️ Contributors
- Pooya Parsa ([@pi0](http://github.com/pi0))
- Max ([@onmax](http://github.com/onmax))
- Parbez rollup/rollup (rollup)
### [`v4.17.0`](https://togithub.com/rollup/rollup/blob/HEAD/CHANGELOG.md#4170)
[Compare Source](https://togithub.com/rollup/rollup/compare/v4.16.4...v4.17.0)
*2024-04-27*
##### Features
- Track function call arguments to optimize functions only called once or with the same literal values (re-release from 4.16.0) ([#5483](https://togithub.com/rollup/rollup/issues/5483))
##### Bug Fixes
- Reduce browser WASM size to a fraction by changing optimization settings ([#5494](https://togithub.com/rollup/rollup/issues/5494))
##### Pull Requests
- [#5483](https://togithub.com/rollup/rollup/pull/5483): feature(fix): function parameter tracking ([@liuly0322](https://togithub.com/liuly0322))
- [#5488](https://togithub.com/rollup/rollup/pull/5488): Report performance in CI ([@TrickyPi](https://togithub.com/TrickyPi))
- [#5489](https://togithub.com/rollup/rollup/pull/5489): Create FUNDING.json ([@BenJam](https://togithub.com/BenJam))
- [#5492](https://togithub.com/rollup/rollup/pull/5492): chore(deps): lock file maintenance minor/patch updates ([@renovate](https://togithub.com/renovate)\[bot])
- [#5493](https://togithub.com/rollup/rollup/pull/5493): chore(deps): lock file maintenance minor/patch updates ([@renovate](https://togithub.com/renovate)\[bot])
- [#5494](https://togithub.com/rollup/rollup/pull/5494): Use opt-level=z for browser wasm ([@sapphi-red](https://togithub.com/sapphi-red))
### [`v4.16.4`](https://togithub.com/rollup/rollup/blob/HEAD/CHANGELOG.md#4164)
[Compare Source](https://togithub.com/rollup/rollup/compare/v4.16.3...v4.16.4)
*2024-04-23*
##### Bug Fixes
- Revert function parameter tracking logic introduced in 4.16.0 to work on some remaining issues ([#5487](https://togithub.com/rollup/rollup/issues/5487))
##### Pull Requests
- [#5487](https://togithub.com/rollup/rollup/pull/5487): Revert function parameter tracking logic for now ([@lukastaegert](https://togithub.com/lukastaegert))
### [`v4.16.3`](https://togithub.com/rollup/rollup/blob/HEAD/CHANGELOG.md#4163)
[Compare Source](https://togithub.com/rollup/rollup/compare/v4.16.2...v4.16.3)
*2024-04-23*
##### Bug Fixes
- Do not optimize IIFEs that have a name and are again referenced inside their definition ([#5486](https://togithub.com/rollup/rollup/issues/5486))
##### Pull Requests
- [#5486](https://togithub.com/rollup/rollup/pull/5486): fix: only optimize annoymous iife ([@liuly0322](https://togithub.com/liuly0322))
### [`v4.16.2`](https://togithub.com/rollup/rollup/blob/HEAD/CHANGELOG.md#4162)
[Compare Source](https://togithub.com/rollup/rollup/compare/v4.16.1...v4.16.2)
*2024-04-22*
##### Bug Fixes
- Resolve a situation condition where reassignments of function parameters were not tracked properly ([#5482](https://togithub.com/rollup/rollup/issues/5482))
- Make sure that for armv7 packages, only one package is downloaded for the user (musl or gnu) ([#5479](https://togithub.com/rollup/rollup/issues/5479))
##### Pull Requests
- [#5479](https://togithub.com/rollup/rollup/pull/5479): Add libc field to armv7 packages ([@sapphi-red](https://togithub.com/sapphi-red))
- [#5482](https://togithub.com/rollup/rollup/pull/5482): fix: function parameter reassigned update ([@liuly0322](https://togithub.com/liuly0322))
### [`v4.16.1`](https://togithub.com/rollup/rollup/blob/HEAD/CHANGELOG.md#4161)
[Compare Source](https://togithub.com/rollup/rollup/compare/v4.16.0...v4.16.1)
*2024-04-21*
##### Bug Fixes
- Fix crash when rendering logical or conditional expressions ([#5481](https://togithub.com/rollup/rollup/issues/5481))
##### Pull Requests
- [#5481](https://togithub.com/rollup/rollup/pull/5481): fix: conditional/logical expression should request a new tree-shaking ([@liuly0322](https://togithub.com/liuly0322))
### [`v4.16.0`](https://togithub.com/rollup/rollup/blob/HEAD/CHANGELOG.md#4160)
[Compare Source](https://togithub.com/rollup/rollup/compare/v4.15.0...v4.16.0)
*2024-04-21*
##### Features
- Track function call arguments to optimize functions only called once or with the same literal values ([#5443](https://togithub.com/rollup/rollup/issues/5443))
##### Pull Requests
- [#5443](https://togithub.com/rollup/rollup/pull/5443): feat: improve tree-shaking by propagate const parameter ([@liuly0322](https://togithub.com/liuly0322), [@lukastaegert](https://togithub.com/lukastaegert))
### [`v4.15.0`](https://togithub.com/rollup/rollup/blob/HEAD/CHANGELOG.md#4150)
[Compare Source](https://togithub.com/rollup/rollup/compare/v4.14.3...v4.15.0)
*2024-04-20*
##### Features
- Add output.importAttributesKey option to select whether to use "with" or "assert" for import attributes ([#5474](https://togithub.com/rollup/rollup/issues/5474))
##### Pull Requests
- [#5474](https://togithub.com/rollup/rollup/pull/5474): Add ImportAttributesKey to choose keyword ("with" | "assert") ([@doubleaa93](https://togithub.com/doubleaa93), [@lukastaegert](https://togithub.com/lukastaegert))
- [#5475](https://togithub.com/rollup/rollup/pull/5475): chore(deps): lock file maintenance minor/patch updates ([@renovate](https://togithub.com/renovate)\[bot])
- [#5477](https://togithub.com/rollup/rollup/pull/5477): Try to run emulated smoke tests for Linux environments ([@lukastaegert](https://togithub.com/lukastaegert))
sass/dart-sass (sass)
### [`v1.75.0`](https://togithub.com/sass/dart-sass/blob/HEAD/CHANGELOG.md#1750)
[Compare Source](https://togithub.com/sass/dart-sass/compare/1.74.1...1.75.0)
- Fix a bug in which stylesheet canonicalization could be cached incorrectly
when custom importers or the Node.js package importer made decisions based on
the URL of the containing stylesheet.
##### JS API
- Allow `importer` to be passed without `url` in `StringOptionsWithImporter`.
cloudflare/workers-sdk (wrangler)
### [`v3.52.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3520)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.51.2...wrangler@3.52.0)
##### Minor Changes
- [#5666](https://togithub.com/cloudflare/workers-sdk/pull/5666) [`81d9615`](https://togithub.com/cloudflare/workers-sdk/commit/81d961582da2db2b020305c63a9f1f1573ff873d) Thanks [@CarmenPopoviciu](https://togithub.com/CarmenPopoviciu)! - fix: Fix Pages config validation around Durable Objects
Today Pages cannot deploy Durable Objects itself. For this reason it is mandatory that when declaring Durable Objects bindings in the config file, the `script_name` is specified. We are currently not failing validation if
`script_name` is not specified but we should. These changes fix that.
##### Patch Changes
- [#5610](https://togithub.com/cloudflare/workers-sdk/pull/5610) [`24840f6`](https://togithub.com/cloudflare/workers-sdk/commit/24840f67b6495a664f5463697aa49fa9478435b9) Thanks [@SuperchupuDev](https://togithub.com/SuperchupuDev)! - Mark `ts-json-schema-generator` as a dev dependency
- [#5669](https://togithub.com/cloudflare/workers-sdk/pull/5669) [`a7e36d5`](https://togithub.com/cloudflare/workers-sdk/commit/a7e36d503f442a8225ffdedef30b569a8a396663) Thanks [@dario-piotrowicz](https://togithub.com/dario-piotrowicz)! - fix: fix broken Durable Object local proxying (when no `cf` property is present)
A regression was introduced in wrangler 3.46.0 ([https://github.com/cloudflare/workers-sdk/pull/5215](https://togithub.com/cloudflare/workers-sdk/pull/5215))
which made it so that missing `Request#cf` properties are serialized as `"undefined"`, this in turn
throws a syntax parse error when such values are parsed via `JSON.parse` breaking the communication
with Durable Object local proxies. Fix such issue by serializing missing `Request#cf` properties as
`"{}"` instead.
- [#5616](https://togithub.com/cloudflare/workers-sdk/pull/5616) [`c6312b5`](https://togithub.com/cloudflare/workers-sdk/commit/c6312b5017279b31ce99c761e2063973f7d948bf) Thanks [@webbertakken](https://togithub.com/webbertakken)! - fix: broken link to durable object migrations docs
- [#5482](https://togithub.com/cloudflare/workers-sdk/pull/5482) [`1b7739e`](https://togithub.com/cloudflare/workers-sdk/commit/1b7739e0af99860aa063f01c0a6e7712ac072fdb) Thanks [@DaniFoldi](https://togithub.com/DaniFoldi)! - docs: show new Discord url everywhere for consistency. The old URL still works, but https://discord.cloudflare.com is preferred.
- Updated dependencies \[[`3a0d735`](https://togithub.com/cloudflare/workers-sdk/commit/3a0d7356bd8bc6fe614a3ef3f9c1278659555568), [`1b7739e`](https://togithub.com/cloudflare/workers-sdk/commit/1b7739e0af99860aa063f01c0a6e7712ac072fdb)]:
- miniflare@3.20240419.0
- [@cloudflare/kv-asset-handler](https://togithub.com/cloudflare/kv-asset-handler)[@0](https://togithub.com/0).3.2
colinhacks/zod (zod)
### [`v3.23.4`](https://togithub.com/colinhacks/zod/releases/tag/v3.23.4)
[Compare Source](https://togithub.com/colinhacks/zod/compare/v3.23.3...v3.23.4)
#### Commits:
- [`157b18d`](https://togithub.com/colinhacks/zod/commit/157b18d742c86d85b26a8421af46ad6d6d6b6ea7) Add 3.23 announcement
- [`aedf93f`](https://togithub.com/colinhacks/zod/commit/aedf93f1435a29463d915c3be45b4dcbeefa8cc1) Revert change to default Input
- [`45107f7`](https://togithub.com/colinhacks/zod/commit/45107f7a7230fe48ee24dc37e621422c9dc64ec4) v3.23.4
### [`v3.23.3`](https://togithub.com/colinhacks/zod/compare/v3.23.2...103d2436f85872ca0e0e6247652989cc93d46a39)
[Compare Source](https://togithub.com/colinhacks/zod/compare/v3.23.2...v3.23.3)
### [`v3.23.2`](https://togithub.com/colinhacks/zod/releases/tag/v3.23.2)
[Compare Source](https://togithub.com/colinhacks/zod/compare/v3.23.1...v3.23.2)
#### Commits:
- [`c340558`](https://togithub.com/colinhacks/zod/commit/c340558d14f5222a2ca177e0591463c06cc5edc3) Update protocol
- [`ef588d0`](https://togithub.com/colinhacks/zod/commit/ef588d036f3e98b832796e9a681dbaf097631ea0) Fix t3env
- [`9df70dd`](https://togithub.com/colinhacks/zod/commit/9df70dd71195df951c43f180fbe5e64ea1f835df) 3.23.2
### [`v3.23.1`](https://togithub.com/colinhacks/zod/compare/v3.23.0...2ff5ceb428634de0ea4501495039c05a8e95b60a)
[Compare Source](https://togithub.com/colinhacks/zod/compare/v3.23.0...v3.23.1)
### [`v3.23.0`](https://togithub.com/colinhacks/zod/releases/tag/v3.23.0)
[Compare Source](https://togithub.com/colinhacks/zod/compare/e7a9b9b3033991be6b4225f1be21da39c250bbb0...v3.23.0)
Zod 3.23 is now available. This is the final `3.x` release before Zod 4.0. To try it out:
```sh
npm install zod
```
#### Features
##### `z.string().date()`
Zod can now validate ISO 8601 date strings. Thanks [@igalklebanov](https://togithub.com/igalklebanov)! [https://github.com/colinhacks/zod/pull/1766](https://togithub.com/colinhacks/zod/pull/1766)
```ts
const schema = z.string().date();
schema.parse("2022-01-01"); // OK
```
##### `z.string().time()`
Zod can now validate ISO 8601 time strings. Thanks [@igalklebanov](https://togithub.com/igalklebanov)! [https://github.com/colinhacks/zod/pull/1766](https://togithub.com/colinhacks/zod/pull/1766)
```ts
const schema = z.string().time();
schema.parse("12:00:00"); // OK
```
You can specify sub-second precision using the `precision` option:
```ts
const schema = z.string().time({ precision: 3 });
schema.parse("12:00:00.123"); // OK
schema.parse("12:00:00.123456"); // Error
schema.parse("12:00:00"); // Error
```
##### `z.string().duration()`
Zod can now validate ISO 8601 duration strings. Thanks [@mastermatt](https://togithub.com/mastermatt)! [https://github.com/colinhacks/zod/pull/3265](https://togithub.com/colinhacks/zod/pull/3265)
```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```
##### Improvements to `z.string().datetime()`
Thanks [@bchrobot](https://togithub.com/bchrobot) [https://github.com/colinhacks/zod/pull/2522](https://togithub.com/colinhacks/zod/pull/2522)
You can now allow *unqualified* (timezone-less) datetimes using the `local: true` flag.
```ts
const schema = z.string().datetime({ local: true });
schema.parse("2022-01-01T12:00:00"); // OK
```
Plus, Zod now validates the day-of-month correctly to ensure no invalid dates (e.g. February 30th) pass validation. Thanks [@szamanr](https://togithub.com/szamanr)! [https://github.com/colinhacks/zod/pull/3391](https://togithub.com/colinhacks/zod/pull/3391)
##### `z.string().base64()`
Zod can now validate base64 strings. Thanks [@StefanTerdell](https://togithub.com/StefanTerdell)! [https://github.com/colinhacks/zod/pull/3047](https://togithub.com/colinhacks/zod/pull/3047)
```ts
const schema = z.string().base64();
schema.parse("SGVsbG8gV29ybGQ="); // OK
```
##### Improved discriminated unions
The following can now be used as discriminator keys in `z.discriminatedUnion()`:
- `ZodOptional`
- `ZodNullable`
- `ZodReadonly`
- `ZodBranded`
- `ZodCatch`
```ts
const schema = z.discriminatedUnion("type", [
z.object({ type: z.literal("A").optional(), value: z.number() }),
z.object({ type: z.literal("B").nullable(), value: z.string() }),
z.object({ type: z.literal("C").readonly(), value: z.boolean() }),
z.object({ type: z.literal("D").brand<"D">(), value: z.boolean() }),
z.object({ type: z.literal("E").catch("E"), value: z.unknown() }),
]);
```
##### Misc
- feature: allow falsy error message by [@fernandollisboa](https://togithub.com/fernandollisboa) in [https://github.com/colinhacks/zod/pull/3178](https://togithub.com/colinhacks/zod/pull/3178)
- feature: add attribute message to enum validatiion by [@fernandollisboa](https://togithub.com/fernandollisboa) in [https://github.com/colinhacks/zod/pull/3169](https://togithub.com/colinhacks/zod/pull/3169)
#### Breaking changes
There are no breaking changes to the public API of Zod. However some changes can impact ecosystem tools that rely on Zod internals.
##### `ZodFirstPartySchemaTypes`
Three new types have been added to the `ZodFirstPartySchemaTypes` union. This may impact some codegen libraries. [https://github.com/colinhacks/zod/pull/3247](https://togithub.com/colinhacks/zod/pull/3247)
```diff
+ | ZodPipeline
+ | ZodReadonly
+ | ZodSymbol;
```
##### Default generics in `ZodType`
The third argument of the `ZodType` base class now defaults to `unknown`. This makes it easier to define recursive schemas and write generic functions that accept Zod schemas.
```diff
- class ZodType
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.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
1.6.4
->1.7.1
19.2.2
->19.3.0
1.4.17
->1.5.2
7.6.0
->7.7.1
>=1.6.0
->1.6.8
8.6.1
->8.7.0
9.0.0
->9.1.1
>=12.1.0
->14.2.1
1.0.3
->1.1.0
4.14.3
->4.17.0
1.74.1
->1.75.0
>=4.1.3
->4.1.3
3.51.2
->3.52.0
3.22.5
->3.23.4
3.22.5
->3.23.0
Release Notes
biomejs/biome (@biomejs/biome)
### [`v1.7.1`](https://togithub.com/biomejs/biome/blob/HEAD/CHANGELOG.md#171-2024-04-22) [Compare Source](https://togithub.com/biomejs/biome/compare/2dce6af835cc9339669b09f3a758de36a90b15f7...aba7b0c1c40a6137b3b78064841f621b53aa5fd0) ##### Editors ##### Bug fixes - Fix [#2403](https://togithub.com/biomejs/biome/issues/2403) by printing the errors in the client console. Contributed by [@ematipico](https://togithub.com/ematipico) ##### Formatter ##### Bug fixes - Add parentheses for the return expression that has leading multiline comments. [#2504](https://togithub.com/biomejs/biome/pull/2504). Contributed by [@ah-yu](https://togithub.com/ah-yu) - Correctly format dangling comments of continue statements. [#2555](https://togithub.com/biomejs/biome/pull/2555). Contributed by [@ah-yu](https://togithub.com/ah-yu) ##### Linter ##### Bug fixes - Fix case where `jsxRuntime` wasn't being respected by `useImportType` rule ([#2473](https://togithub.com/biomejs/biome/issues/2473)).Contributed by [@arendjr](https://togithub.com/arendjr) - Fix [#2460](https://togithub.com/biomejs/biome/issues/2460), where the rule `noUselessFragments` was crashing the linter in some cases. Now cases like these are correctly handled: ```jsx callFunction(<>{bar}>) ``` Contributed by [@ematipico](https://togithub.com/ematipico) - Fix [#2366](https://togithub.com/biomejs/biome/issues/2366), where `noDuplicateJsonKeys` incorrectly computed the kes to highlight. Contributed by [@ematipico](https://togithub.com/ematipico) ##### Enhancements - The rule `noMisplacedAssertions` now considers valid calling `expect` inside `waitFor`: ```js import { waitFor } from '@testing-library/react'; await waitFor(() => { expect(111).toBe(222); }); ``` Contributed by [@ematipico](https://togithub.com/ematipico) ### [`v1.7.0`](https://togithub.com/biomejs/biome/blob/HEAD/CHANGELOG.md#170-2024-04-15) [Compare Source](https://togithub.com/biomejs/biome/compare/f6fd1ef7130e7bcd1466aa78ae7295fc5fdd5d58...2dce6af835cc9339669b09f3a758de36a90b15f7) ##### Analyzer ##### Bug fixes - Now Biome can detect the script language in Svelte and Vue script blocks more reliably ([#2245](https://togithub.com/biomejs/biome/issues/2245)). Contributed by [@Sec-ant](https://togithub.com/Sec-ant) - `useExhaustiveDependencies` no longer reports recursive calls as missing dependencies ([#2361](https://togithub.com/biomejs/biome/issues/2361)). Contributed by [@arendjr](https://togithub.com/arendjr) - `useExhaustiveDependencies` correctly reports missing dependencies declared using function declarations ([#2362](https://togithub.com/biomejs/biome/issues/2362)). Contributed by [@arendjr](https://togithub.com/arendjr) - Biome now can handle `.svelte` and `.vue` files with `CRLF` as the end-of-line sequence. Contributed by [@Sec-ant](https://togithub.com/Sec-ant) - `noMisplacedAssertion` no longer reports method calls by `describe`, `test`, `it` objects (e.g. `test.each([])()`) ([#2443](https://togithub.com/biomejs/biome/issues/2443)). Contributed by [@unvalley](https://togithub.com/unvalley). - Biome now can handle `.vue` files with [generic components](https://vuejs.org/api/sfc-script-setup#generics) ([#2456](https://togithub.com/biomejs/biome/issues/2456)). ```vue ``` Contributed by [@Sec-ant](https://togithub.com/Sec-ant) ##### Enhancements - Complete the well-known file lists for JSON-like files. Trailing commas are allowed in `.jsonc` files by default. Some well-known files like `tsconfig.json` and `.babelrc` don't use the `.jsonc` extension but still allow comments and trailing commas. While others, such as `.eslintrc.json`, only allow comments. Biome is able to identify these files and adjusts the `json.parser.allowTrailingCommas` option accordingly to ensure they are correctly parsed. Contributed by [@Sec-ant](https://togithub.com/Sec-ant) - Fix dedent logic inconsistent with prettier where the indent-style is space and the indent-width is not 2. Contributed by [@mdm317](https://togithub.com/mdm317) ##### CLI ##### New features - Add a command to migrate from ESLint `biome migrate eslint` allows you to migrate an ESLint configuration to Biome. The command supports [legacy ESLint configurations](https://eslint.org/docs/latest/use/configure/configuration-files) and [new flat ESLint configurations](https://eslint.org/docs/latest/use/configure/configuration-files-new). Legacy ESLint configurations using the YAML format are not supported. When loading a legacy ESLint configuration, Biome resolves the `extends` field. It resolves both shared configurations and plugin presets! To do this, it invokes *Node.js*. Biome relies on the metadata of its rules to determine the [equivalent rule of an ESLint rule](https://biomejs.dev/linter/rules-sources/). A Biome rule is either inspired or roughly identical to an ESLint rules. By default, inspired and nursery rules are excluded from the migration. You can use the CLI flags `--include-inspired` and `--include-nursery` to migrate them as well. Note that this is a best-effort approach. You are not guaranteed to get the same behavior as ESLint. Given the following ESLint configuration: ```json { "ignore_patterns": ["**/*.test.js"], "globals": { "var2": "readonly" }, "rules": { "eqeqeq": "error" }, "overrides": [{ "files": ["lib/*.js"], "rules": { "default-param-last": "off" } }] } ``` `biome migrate eslint --write` changes the Biome configuration as follows: ```json { "linter": { "rules": { "recommended": false, "suspicious": { "noDoubleEquals": "error" } } }, "javascript": { "globals": ["var2"] }, "overrides": [{ "include": ["lib/*.js"], "linter": { "rules": { "style": { "useDefaultParameterLast": "off" } } } }] } ``` Also, if the working directory contains `.eslintignore`, then Biome migrates the glob patterns. Nested `.eslintignore` in subdirectories and negated glob patterns are not supported. If you find any issue, please don't hesitate to report them. Contributed by [@Conaclos](https://togithub.com/Conaclos) - Added two new options to customise the emitted output of the CLI: `--reporter=json` and `--reporter=json-pretty`. With `--reporter=json`, the diagnostics and the summary will be printed in the **terminal** in JSON format. With `--reporter=json-pretty`, you can print the same information, but formatted using the same options of your configuration. NOTE: the shape of the JSON is considered experimental, and the shape of the JSON might change in the future.Example of output when running `biome format` command
```json { "summary": { "changed": 0, "unchanged": 1, "errors": 1, "warnings": 0, "skipped": 0, "suggestedFixesSkipped": 0, "diagnosticsNotPrinted": 0 }, "diagnostics": [ { "category": "format", "severity": "error", "description": "Formatter would have printed the following content:", "message": [ { "elements": [], "content": "Formatter would have printed the following content:" } ], "advices": { "advices": [ { "diff": { "dictionary": " statement();\n", "ops": [ { "diffOp": { "delete": { "range": [0, 2] } } }, { "diffOp": { "equal": { "range": [2, 12] } } }, { "diffOp": { "delete": { "range": [0, 2] } } }, { "diffOp": { "equal": { "range": [12, 13] } } }, { "diffOp": { "delete": { "range": [0, 2] } } }, { "diffOp": { "insert": { "range": [13, 15] } } } ] } } ] }, "verboseAdvices": { "advices": [] }, "location": { "path": { "file": "format.js" }, "span": null, "sourceCode": null }, "tags": [], "source": null } ], "command": "format" } ```conventional-changelog/commitlint (@commitlint/cli)
### [`v19.3.0`](https://togithub.com/conventional-changelog/commitlint/blob/HEAD/@commitlint/cli/CHANGELOG.md#1930-2024-04-23) [Compare Source](https://togithub.com/conventional-changelog/commitlint/compare/v19.2.2...v19.3.0) **Note:** Version bump only for package [@commitlint/cli](https://togithub.com/commitlint/cli) #### [19.2.2](https://togithub.com/conventional-changelog/commitlint/compare/v19.2.1...v19.2.2) (2024-04-14) **Note:** Version bump only for package [@commitlint/cli](https://togithub.com/commitlint/cli) #### [19.2.1](https://togithub.com/conventional-changelog/commitlint/compare/v19.2.0...v19.2.1) (2024-03-19) **Note:** Version bump only for package [@commitlint/cli](https://togithub.com/commitlint/cli)swc-project/swc (@swc/wasm)
### [`v1.5.2`](https://togithub.com/swc-project/swc/compare/v1.5.1...v1.5.2) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.5.1...v1.5.2) ### [`v1.5.1`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#151---2024-04-27) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.5.0...v1.5.1) ##### Bug Fixes - **(es/decorator)** Support for legacy decorators in class expressions ([#8892](https://togithub.com/swc-project/swc/issues/8892)) ([8fe57ad](https://togithub.com/swc-project/swc/commit/8fe57adc02f1a67ece9b73769d90320ae4e72808)) - **(es/helpers)** Remove unused export from `_using_ctx.js` ([#8891](https://togithub.com/swc-project/swc/issues/8891)) ([438d0b3](https://togithub.com/swc-project/swc/commit/438d0b32b680a1a64861e97cb4a1e14213335e48)) - **(es/minifier)** Do not add vars if `eval` exists ([#8888](https://togithub.com/swc-project/swc/issues/8888)) ([be359fa](https://togithub.com/swc-project/swc/commit/be359fa75318d645f954feb90353b884dfa51e6e)) ### [`v1.5.0`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#150---2024-04-24) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.4.17...v1.5.0) ##### Bug Fixes - **(es/minifier)** Abort seq inline on recursive usage ([#8887](https://togithub.com/swc-project/swc/issues/8887)) ([cd4548f](https://togithub.com/swc-project/swc/commit/cd4548fd8c32f67d0e8373f7a2c3cb625f43e6c4)) ##### Features - **(es/ast)** Support abstract auto-accessors ([#8736](https://togithub.com/swc-project/swc/issues/8736)) ([1155ac7](https://togithub.com/swc-project/swc/commit/1155ac79720512625568c45bfd3542ec340c0ebd))typescript-eslint/typescript-eslint (@typescript-eslint/eslint-plugin)
### [`v7.7.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#771-2024-04-22) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v7.7.0...v7.7.1) ##### 🩹 Fixes - **eslint-plugin:** \[no-unsafe-assignment] handle shorthand property assignment - **eslint-plugin:** \[explicit-function-return-type] fix checking wrong ancestor's return type - **eslint-plugin:** \[prefer-optional-chain] only look at left operand for `requireNullish` - **eslint-plugin:** \[no-for-in-array] refine report location - **eslint-plugin:** \[no-unnecessary-type-assertion] allow non-null assertion for void type ##### ❤️ Thank You - Abraham Guo - Kirk Waiblinger - YeonJuan 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. ### [`v7.7.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#770-2024-04-15) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v7.6.0...v7.7.0) ##### 🚀 Features - **eslint-plugin:** replace `no-new-symbol` with `no-new-native-nonconstructor` ##### ❤️ Thank You - Dave - Josh Goldberg ✨ 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.streetsidesoftware/cspell (cspell)
### [`v8.7.0`](https://togithub.com/streetsidesoftware/cspell/blob/HEAD/packages/cspell/CHANGELOG.md#870-2024-04-10) [Compare Source](https://togithub.com/streetsidesoftware/cspell/compare/v8.6.1...v8.7.0) **Note:** Version bump only for package cspelleslint/eslint (eslint)
### [`v9.1.1`](https://togithub.com/eslint/eslint/compare/v9.1.0...b4d2512809a1b28466ad1ce5af9d01c181b9bf9e) [Compare Source](https://togithub.com/eslint/eslint/compare/v9.1.0...v9.1.1) ### [`v9.1.0`](https://togithub.com/eslint/eslint/compare/v9.0.0...b78d831e244171c939279b03be519b5c13836fce) [Compare Source](https://togithub.com/eslint/eslint/compare/v9.0.0...v9.1.0)unjs/pkg-types (pkg-types)
### [`v1.1.0`](https://togithub.com/unjs/pkg-types/blob/HEAD/CHANGELOG.md#v110) [Compare Source](https://togithub.com/unjs/pkg-types/compare/v1.0.3...v1.1.0) [compare changes](https://togithub.com/unjs/pkg-types/compare/v1.0.3...v1.1.0) ##### 🚀 Enhancements - Auto detect and preserve format ([#175](https://togithub.com/unjs/pkg-types/pull/175)) - Try to parse `package.json` as jsonc ([#176](https://togithub.com/unjs/pkg-types/pull/176)) ##### 🩹 Fixes - Add object syntax browser field type ([#145](https://togithub.com/unjs/pkg-types/pull/145)) - **types:** Allow `extends` as array ([#151](https://togithub.com/unjs/pkg-types/pull/151)) - Add `imports` field to the types ([#160](https://togithub.com/unjs/pkg-types/pull/160)) ##### 💅 Refactors - Migrate from `jsonc-parser` to `unjs/confbox` ([#174](https://togithub.com/unjs/pkg-types/pull/174)) ##### 📖 Documentation - Add missing jsdocs ([#171](https://togithub.com/unjs/pkg-types/pull/171)) ##### 🏡 Chore - Update repo ([f289b3a](https://togithub.com/unjs/pkg-types/commit/f289b3a)) - Add build command ([984edb6](https://togithub.com/unjs/pkg-types/commit/984edb6)) - Remove `.eslintignore` ([f1c1705](https://togithub.com/unjs/pkg-types/commit/f1c1705)) ##### ❤️ Contributors - Pooya Parsa ([@pi0](http://github.com/pi0)) - Max ([@onmax](http://github.com/onmax)) - Parbezrollup/rollup (rollup)
### [`v4.17.0`](https://togithub.com/rollup/rollup/blob/HEAD/CHANGELOG.md#4170) [Compare Source](https://togithub.com/rollup/rollup/compare/v4.16.4...v4.17.0) *2024-04-27* ##### Features - Track function call arguments to optimize functions only called once or with the same literal values (re-release from 4.16.0) ([#5483](https://togithub.com/rollup/rollup/issues/5483)) ##### Bug Fixes - Reduce browser WASM size to a fraction by changing optimization settings ([#5494](https://togithub.com/rollup/rollup/issues/5494)) ##### Pull Requests - [#5483](https://togithub.com/rollup/rollup/pull/5483): feature(fix): function parameter tracking ([@liuly0322](https://togithub.com/liuly0322)) - [#5488](https://togithub.com/rollup/rollup/pull/5488): Report performance in CI ([@TrickyPi](https://togithub.com/TrickyPi)) - [#5489](https://togithub.com/rollup/rollup/pull/5489): Create FUNDING.json ([@BenJam](https://togithub.com/BenJam)) - [#5492](https://togithub.com/rollup/rollup/pull/5492): chore(deps): lock file maintenance minor/patch updates ([@renovate](https://togithub.com/renovate)\[bot]) - [#5493](https://togithub.com/rollup/rollup/pull/5493): chore(deps): lock file maintenance minor/patch updates ([@renovate](https://togithub.com/renovate)\[bot]) - [#5494](https://togithub.com/rollup/rollup/pull/5494): Use opt-level=z for browser wasm ([@sapphi-red](https://togithub.com/sapphi-red)) ### [`v4.16.4`](https://togithub.com/rollup/rollup/blob/HEAD/CHANGELOG.md#4164) [Compare Source](https://togithub.com/rollup/rollup/compare/v4.16.3...v4.16.4) *2024-04-23* ##### Bug Fixes - Revert function parameter tracking logic introduced in 4.16.0 to work on some remaining issues ([#5487](https://togithub.com/rollup/rollup/issues/5487)) ##### Pull Requests - [#5487](https://togithub.com/rollup/rollup/pull/5487): Revert function parameter tracking logic for now ([@lukastaegert](https://togithub.com/lukastaegert)) ### [`v4.16.3`](https://togithub.com/rollup/rollup/blob/HEAD/CHANGELOG.md#4163) [Compare Source](https://togithub.com/rollup/rollup/compare/v4.16.2...v4.16.3) *2024-04-23* ##### Bug Fixes - Do not optimize IIFEs that have a name and are again referenced inside their definition ([#5486](https://togithub.com/rollup/rollup/issues/5486)) ##### Pull Requests - [#5486](https://togithub.com/rollup/rollup/pull/5486): fix: only optimize annoymous iife ([@liuly0322](https://togithub.com/liuly0322)) ### [`v4.16.2`](https://togithub.com/rollup/rollup/blob/HEAD/CHANGELOG.md#4162) [Compare Source](https://togithub.com/rollup/rollup/compare/v4.16.1...v4.16.2) *2024-04-22* ##### Bug Fixes - Resolve a situation condition where reassignments of function parameters were not tracked properly ([#5482](https://togithub.com/rollup/rollup/issues/5482)) - Make sure that for armv7 packages, only one package is downloaded for the user (musl or gnu) ([#5479](https://togithub.com/rollup/rollup/issues/5479)) ##### Pull Requests - [#5479](https://togithub.com/rollup/rollup/pull/5479): Add libc field to armv7 packages ([@sapphi-red](https://togithub.com/sapphi-red)) - [#5482](https://togithub.com/rollup/rollup/pull/5482): fix: function parameter reassigned update ([@liuly0322](https://togithub.com/liuly0322)) ### [`v4.16.1`](https://togithub.com/rollup/rollup/blob/HEAD/CHANGELOG.md#4161) [Compare Source](https://togithub.com/rollup/rollup/compare/v4.16.0...v4.16.1) *2024-04-21* ##### Bug Fixes - Fix crash when rendering logical or conditional expressions ([#5481](https://togithub.com/rollup/rollup/issues/5481)) ##### Pull Requests - [#5481](https://togithub.com/rollup/rollup/pull/5481): fix: conditional/logical expression should request a new tree-shaking ([@liuly0322](https://togithub.com/liuly0322)) ### [`v4.16.0`](https://togithub.com/rollup/rollup/blob/HEAD/CHANGELOG.md#4160) [Compare Source](https://togithub.com/rollup/rollup/compare/v4.15.0...v4.16.0) *2024-04-21* ##### Features - Track function call arguments to optimize functions only called once or with the same literal values ([#5443](https://togithub.com/rollup/rollup/issues/5443)) ##### Pull Requests - [#5443](https://togithub.com/rollup/rollup/pull/5443): feat: improve tree-shaking by propagate const parameter ([@liuly0322](https://togithub.com/liuly0322), [@lukastaegert](https://togithub.com/lukastaegert)) ### [`v4.15.0`](https://togithub.com/rollup/rollup/blob/HEAD/CHANGELOG.md#4150) [Compare Source](https://togithub.com/rollup/rollup/compare/v4.14.3...v4.15.0) *2024-04-20* ##### Features - Add output.importAttributesKey option to select whether to use "with" or "assert" for import attributes ([#5474](https://togithub.com/rollup/rollup/issues/5474)) ##### Pull Requests - [#5474](https://togithub.com/rollup/rollup/pull/5474): Add ImportAttributesKey to choose keyword ("with" | "assert") ([@doubleaa93](https://togithub.com/doubleaa93), [@lukastaegert](https://togithub.com/lukastaegert)) - [#5475](https://togithub.com/rollup/rollup/pull/5475): chore(deps): lock file maintenance minor/patch updates ([@renovate](https://togithub.com/renovate)\[bot]) - [#5477](https://togithub.com/rollup/rollup/pull/5477): Try to run emulated smoke tests for Linux environments ([@lukastaegert](https://togithub.com/lukastaegert))sass/dart-sass (sass)
### [`v1.75.0`](https://togithub.com/sass/dart-sass/blob/HEAD/CHANGELOG.md#1750) [Compare Source](https://togithub.com/sass/dart-sass/compare/1.74.1...1.75.0) - Fix a bug in which stylesheet canonicalization could be cached incorrectly when custom importers or the Node.js package importer made decisions based on the URL of the containing stylesheet. ##### JS API - Allow `importer` to be passed without `url` in `StringOptionsWithImporter`.cloudflare/workers-sdk (wrangler)
### [`v3.52.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3520) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.51.2...wrangler@3.52.0) ##### Minor Changes - [#5666](https://togithub.com/cloudflare/workers-sdk/pull/5666) [`81d9615`](https://togithub.com/cloudflare/workers-sdk/commit/81d961582da2db2b020305c63a9f1f1573ff873d) Thanks [@CarmenPopoviciu](https://togithub.com/CarmenPopoviciu)! - fix: Fix Pages config validation around Durable Objects Today Pages cannot deploy Durable Objects itself. For this reason it is mandatory that when declaring Durable Objects bindings in the config file, the `script_name` is specified. We are currently not failing validation if `script_name` is not specified but we should. These changes fix that. ##### Patch Changes - [#5610](https://togithub.com/cloudflare/workers-sdk/pull/5610) [`24840f6`](https://togithub.com/cloudflare/workers-sdk/commit/24840f67b6495a664f5463697aa49fa9478435b9) Thanks [@SuperchupuDev](https://togithub.com/SuperchupuDev)! - Mark `ts-json-schema-generator` as a dev dependency - [#5669](https://togithub.com/cloudflare/workers-sdk/pull/5669) [`a7e36d5`](https://togithub.com/cloudflare/workers-sdk/commit/a7e36d503f442a8225ffdedef30b569a8a396663) Thanks [@dario-piotrowicz](https://togithub.com/dario-piotrowicz)! - fix: fix broken Durable Object local proxying (when no `cf` property is present) A regression was introduced in wrangler 3.46.0 ([https://github.com/cloudflare/workers-sdk/pull/5215](https://togithub.com/cloudflare/workers-sdk/pull/5215)) which made it so that missing `Request#cf` properties are serialized as `"undefined"`, this in turn throws a syntax parse error when such values are parsed via `JSON.parse` breaking the communication with Durable Object local proxies. Fix such issue by serializing missing `Request#cf` properties as `"{}"` instead. - [#5616](https://togithub.com/cloudflare/workers-sdk/pull/5616) [`c6312b5`](https://togithub.com/cloudflare/workers-sdk/commit/c6312b5017279b31ce99c761e2063973f7d948bf) Thanks [@webbertakken](https://togithub.com/webbertakken)! - fix: broken link to durable object migrations docs - [#5482](https://togithub.com/cloudflare/workers-sdk/pull/5482) [`1b7739e`](https://togithub.com/cloudflare/workers-sdk/commit/1b7739e0af99860aa063f01c0a6e7712ac072fdb) Thanks [@DaniFoldi](https://togithub.com/DaniFoldi)! - docs: show new Discord url everywhere for consistency. The old URL still works, but https://discord.cloudflare.com is preferred. - Updated dependencies \[[`3a0d735`](https://togithub.com/cloudflare/workers-sdk/commit/3a0d7356bd8bc6fe614a3ef3f9c1278659555568), [`1b7739e`](https://togithub.com/cloudflare/workers-sdk/commit/1b7739e0af99860aa063f01c0a6e7712ac072fdb)]: - miniflare@3.20240419.0 - [@cloudflare/kv-asset-handler](https://togithub.com/cloudflare/kv-asset-handler)[@0](https://togithub.com/0).3.2colinhacks/zod (zod)
### [`v3.23.4`](https://togithub.com/colinhacks/zod/releases/tag/v3.23.4) [Compare Source](https://togithub.com/colinhacks/zod/compare/v3.23.3...v3.23.4) #### Commits: - [`157b18d`](https://togithub.com/colinhacks/zod/commit/157b18d742c86d85b26a8421af46ad6d6d6b6ea7) Add 3.23 announcement - [`aedf93f`](https://togithub.com/colinhacks/zod/commit/aedf93f1435a29463d915c3be45b4dcbeefa8cc1) Revert change to default Input - [`45107f7`](https://togithub.com/colinhacks/zod/commit/45107f7a7230fe48ee24dc37e621422c9dc64ec4) v3.23.4 ### [`v3.23.3`](https://togithub.com/colinhacks/zod/compare/v3.23.2...103d2436f85872ca0e0e6247652989cc93d46a39) [Compare Source](https://togithub.com/colinhacks/zod/compare/v3.23.2...v3.23.3) ### [`v3.23.2`](https://togithub.com/colinhacks/zod/releases/tag/v3.23.2) [Compare Source](https://togithub.com/colinhacks/zod/compare/v3.23.1...v3.23.2) #### Commits: - [`c340558`](https://togithub.com/colinhacks/zod/commit/c340558d14f5222a2ca177e0591463c06cc5edc3) Update protocol - [`ef588d0`](https://togithub.com/colinhacks/zod/commit/ef588d036f3e98b832796e9a681dbaf097631ea0) Fix t3env - [`9df70dd`](https://togithub.com/colinhacks/zod/commit/9df70dd71195df951c43f180fbe5e64ea1f835df) 3.23.2 ### [`v3.23.1`](https://togithub.com/colinhacks/zod/compare/v3.23.0...2ff5ceb428634de0ea4501495039c05a8e95b60a) [Compare Source](https://togithub.com/colinhacks/zod/compare/v3.23.0...v3.23.1) ### [`v3.23.0`](https://togithub.com/colinhacks/zod/releases/tag/v3.23.0) [Compare Source](https://togithub.com/colinhacks/zod/compare/e7a9b9b3033991be6b4225f1be21da39c250bbb0...v3.23.0) Zod 3.23 is now available. This is the final `3.x` release before Zod 4.0. To try it out: ```sh npm install zod ``` #### Features ##### `z.string().date()` Zod can now validate ISO 8601 date strings. Thanks [@igalklebanov](https://togithub.com/igalklebanov)! [https://github.com/colinhacks/zod/pull/1766](https://togithub.com/colinhacks/zod/pull/1766) ```ts const schema = z.string().date(); schema.parse("2022-01-01"); // OK ``` ##### `z.string().time()` Zod can now validate ISO 8601 time strings. Thanks [@igalklebanov](https://togithub.com/igalklebanov)! [https://github.com/colinhacks/zod/pull/1766](https://togithub.com/colinhacks/zod/pull/1766) ```ts const schema = z.string().time(); schema.parse("12:00:00"); // OK ``` You can specify sub-second precision using the `precision` option: ```ts const schema = z.string().time({ precision: 3 }); schema.parse("12:00:00.123"); // OK schema.parse("12:00:00.123456"); // Error schema.parse("12:00:00"); // Error ``` ##### `z.string().duration()` Zod can now validate ISO 8601 duration strings. Thanks [@mastermatt](https://togithub.com/mastermatt)! [https://github.com/colinhacks/zod/pull/3265](https://togithub.com/colinhacks/zod/pull/3265) ```ts const schema = z.string().duration(); schema.parse("P3Y6M4DT12H30M5S"); // OK ``` ##### Improvements to `z.string().datetime()` Thanks [@bchrobot](https://togithub.com/bchrobot) [https://github.com/colinhacks/zod/pull/2522](https://togithub.com/colinhacks/zod/pull/2522) You can now allow *unqualified* (timezone-less) datetimes using the `local: true` flag. ```ts const schema = z.string().datetime({ local: true }); schema.parse("2022-01-01T12:00:00"); // OK ``` Plus, Zod now validates the day-of-month correctly to ensure no invalid dates (e.g. February 30th) pass validation. Thanks [@szamanr](https://togithub.com/szamanr)! [https://github.com/colinhacks/zod/pull/3391](https://togithub.com/colinhacks/zod/pull/3391) ##### `z.string().base64()` Zod can now validate base64 strings. Thanks [@StefanTerdell](https://togithub.com/StefanTerdell)! [https://github.com/colinhacks/zod/pull/3047](https://togithub.com/colinhacks/zod/pull/3047) ```ts const schema = z.string().base64(); schema.parse("SGVsbG8gV29ybGQ="); // OK ``` ##### Improved discriminated unions The following can now be used as discriminator keys in `z.discriminatedUnion()`: - `ZodOptional` - `ZodNullable` - `ZodReadonly` - `ZodBranded` - `ZodCatch` ```ts const schema = z.discriminatedUnion("type", [ z.object({ type: z.literal("A").optional(), value: z.number() }), z.object({ type: z.literal("B").nullable(), value: z.string() }), z.object({ type: z.literal("C").readonly(), value: z.boolean() }), z.object({ type: z.literal("D").brand<"D">(), value: z.boolean() }), z.object({ type: z.literal("E").catch("E"), value: z.unknown() }), ]); ``` ##### Misc - feature: allow falsy error message by [@fernandollisboa](https://togithub.com/fernandollisboa) in [https://github.com/colinhacks/zod/pull/3178](https://togithub.com/colinhacks/zod/pull/3178) - feature: add attribute message to enum validatiion by [@fernandollisboa](https://togithub.com/fernandollisboa) in [https://github.com/colinhacks/zod/pull/3169](https://togithub.com/colinhacks/zod/pull/3169) #### Breaking changes There are no breaking changes to the public API of Zod. However some changes can impact ecosystem tools that rely on Zod internals. ##### `ZodFirstPartySchemaTypes` Three new types have been added to the `ZodFirstPartySchemaTypes` union. This may impact some codegen libraries. [https://github.com/colinhacks/zod/pull/3247](https://togithub.com/colinhacks/zod/pull/3247) ```diff + | ZodPipelineConfiguration
📅 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.