Skip to content

Commit c7e85cd

Browse files
chore(deps): update dependencies (minor/patch) (#50)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | Type | Update | |---|---|---|---|---|---|---|---| | [@biomejs/biome](https://biomejs.dev) ([source](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome)) | [`1.0.0` -> `1.5.3`](https://renovatebot.com/diffs/npm/@biomejs%2fbiome/1.0.0/1.5.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@biomejs%2fbiome/1.5.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@biomejs%2fbiome/1.5.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@biomejs%2fbiome/1.0.0/1.5.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@biomejs%2fbiome/1.0.0/1.5.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [@types/babel__core](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel__core) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/babel__core)) | [`7.20.0` -> `7.20.5`](https://renovatebot.com/diffs/npm/@types%2fbabel__core/7.20.0/7.20.5) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fbabel__core/7.20.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fbabel__core/7.20.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fbabel__core/7.20.0/7.20.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fbabel__core/7.20.0/7.20.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | devDependencies | patch | | [@types/cytoscape](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cytoscape) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/cytoscape)) | [`3.19.9` -> `3.19.16`](https://renovatebot.com/diffs/npm/@types%2fcytoscape/3.19.9/3.19.16) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fcytoscape/3.19.16?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fcytoscape/3.19.16?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fcytoscape/3.19.9/3.19.16?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fcytoscape/3.19.9/3.19.16?slim=true)](https://docs.renovatebot.com/merge-confidence/) | devDependencies | patch | | [@types/d3](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/d3)) | [`7.4.0` -> `7.4.3`](https://renovatebot.com/diffs/npm/@types%2fd3/7.4.0/7.4.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fd3/7.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fd3/7.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fd3/7.4.0/7.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fd3/7.4.0/7.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | devDependencies | patch | | [@types/katex](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/katex) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/katex)) | [`0.16.0` -> `0.16.7`](https://renovatebot.com/diffs/npm/@types%2fkatex/0.16.0/0.16.7) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fkatex/0.16.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fkatex/0.16.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fkatex/0.16.0/0.16.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fkatex/0.16.0/0.16.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | devDependencies | patch | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`18.11.18` -> `18.19.21`](https://renovatebot.com/diffs/npm/@types%2fnode/18.11.18/18.19.21) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/18.19.21?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/18.19.21?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/18.11.18/18.19.21?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/18.11.18/18.19.21?slim=true)](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react)) | [`18.0.28` -> `18.2.61`](https://renovatebot.com/diffs/npm/@types%2freact/18.0.28/18.2.61) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2freact/18.2.61?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2freact/18.2.61?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2freact/18.0.28/18.2.61?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2freact/18.0.28/18.2.61?slim=true)](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [@types/react-cytoscapejs](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-cytoscapejs) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-cytoscapejs)) | [`1.2.2` -> `1.2.5`](https://renovatebot.com/diffs/npm/@types%2freact-cytoscapejs/1.2.2/1.2.5) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2freact-cytoscapejs/1.2.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2freact-cytoscapejs/1.2.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2freact-cytoscapejs/1.2.2/1.2.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2freact-cytoscapejs/1.2.2/1.2.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | devDependencies | patch | | [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom)) | [`18.0.11` -> `18.2.19`](https://renovatebot.com/diffs/npm/@types%2freact-dom/18.0.11/18.2.19) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2freact-dom/18.2.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2freact-dom/18.2.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2freact-dom/18.0.11/18.2.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2freact-dom/18.0.11/18.2.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [@types/unist](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/unist) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/unist)) | [`2.0.6` -> `2.0.10`](https://renovatebot.com/diffs/npm/@types%2funist/2.0.6/2.0.10) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2funist/2.0.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2funist/2.0.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2funist/2.0.6/2.0.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2funist/2.0.6/2.0.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) | devDependencies | patch | | [@types/uuid](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uuid) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/uuid)) | [`9.0.1` -> `9.0.8`](https://renovatebot.com/diffs/npm/@types%2fuuid/9.0.1/9.0.8) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fuuid/9.0.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fuuid/9.0.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fuuid/9.0.1/9.0.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fuuid/9.0.1/9.0.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | devDependencies | patch | | @&#8203;types/wanakana | [`4.0.3` -> `4.0.6`](https://renovatebot.com/diffs/npm/@types%2fwanakana/4.0.3/4.0.6) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fwanakana/4.0.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fwanakana/4.0.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fwanakana/4.0.3/4.0.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fwanakana/4.0.3/4.0.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | patch | | [autoprefixer](https://github.com/postcss/autoprefixer) | [`10.4.13` -> `10.4.18`](https://renovatebot.com/diffs/npm/autoprefixer/10.4.13/10.4.18) | [![age](https://developer.mend.io/api/mc/badges/age/npm/autoprefixer/10.4.18?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/autoprefixer/10.4.18?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/autoprefixer/10.4.13/10.4.18?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/autoprefixer/10.4.13/10.4.18?slim=true)](https://docs.renovatebot.com/merge-confidence/) | devDependencies | patch | | [cytoscape](http://js.cytoscape.org) ([source](https://github.com/cytoscape/cytoscape.js)) | [`3.23.0` -> `3.28.1`](https://renovatebot.com/diffs/npm/cytoscape/3.23.0/3.28.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/cytoscape/3.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/cytoscape/3.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/cytoscape/3.23.0/3.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/cytoscape/3.23.0/3.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [gradle](https://gradle.org) ([source](https://github.com/gradle/gradle)) | `8.1.1` -> `8.6` | [![age](https://developer.mend.io/api/mc/badges/age/gradle-version/gradle/8.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/gradle-version/gradle/8.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/gradle-version/gradle/8.1.1/8.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/gradle-version/gradle/8.1.1/8.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | minor | | gradle | `8.1.1-jdk11` -> `8.6.0-jdk11` | [![age](https://developer.mend.io/api/mc/badges/age/docker/gradle/8.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/docker/gradle/8.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/docker/gradle/8.1.1/8.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/docker/gradle/8.1.1/8.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | stage | minor | | [jotai](https://github.com/pmndrs/jotai) | [`2.0.1` -> `2.7.0`](https://renovatebot.com/diffs/npm/jotai/2.0.1/2.7.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/jotai/2.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/jotai/2.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/jotai/2.0.1/2.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/jotai/2.0.1/2.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | [katex](https://katex.org) ([source](https://github.com/KaTeX/KaTeX)) | [`0.16.4` -> `0.16.9`](https://renovatebot.com/diffs/npm/katex/0.16.4/0.16.9) | [![age](https://developer.mend.io/api/mc/badges/age/npm/katex/0.16.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/katex/0.16.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/katex/0.16.4/0.16.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/katex/0.16.4/0.16.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | patch | | [mermaid](https://github.com/mermaid-js/mermaid) | [`10.0.2` -> `10.8.0`](https://renovatebot.com/diffs/npm/mermaid/10.0.2/10.8.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/mermaid/10.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/mermaid/10.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/mermaid/10.0.2/10.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/mermaid/10.0.2/10.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | [next](https://nextjs.org) ([source](https://github.com/vercel/next.js)) | [`13.2.4` -> `13.5.6`](https://renovatebot.com/diffs/npm/next/13.2.4/13.5.6) | [![age](https://developer.mend.io/api/mc/badges/age/npm/next/13.5.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/next/13.5.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/next/13.2.4/13.5.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/next/13.2.4/13.5.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | [pnpm](https://pnpm.io) ([source](https://github.com/pnpm/pnpm)) | [`8.6.1` -> `8.15.4`](https://renovatebot.com/diffs/npm/pnpm/8.6.1/8.15.4) | [![age](https://developer.mend.io/api/mc/badges/age/npm/pnpm/8.15.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/pnpm/8.15.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/pnpm/8.6.1/8.15.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/pnpm/8.6.1/8.15.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | packageManager | minor | | [postcss](https://postcss.org/) ([source](https://github.com/postcss/postcss)) | [`8.4.21` -> `8.4.35`](https://renovatebot.com/diffs/npm/postcss/8.4.21/8.4.35) | [![age](https://developer.mend.io/api/mc/badges/age/npm/postcss/8.4.35?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/postcss/8.4.35?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/postcss/8.4.21/8.4.35?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/postcss/8.4.21/8.4.35?slim=true)](https://docs.renovatebot.com/merge-confidence/) | devDependencies | patch | | [reactflow](https://github.com/xyflow/xyflow) ([source](https://github.com/xyflow/xyflow/tree/HEAD/packages/reactflow)) | [`11.6.1` -> `11.10.4`](https://renovatebot.com/diffs/npm/reactflow/11.6.1/11.10.4) | [![age](https://developer.mend.io/api/mc/badges/age/npm/reactflow/11.10.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/reactflow/11.10.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/reactflow/11.6.1/11.10.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/reactflow/11.6.1/11.10.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | [tailwindcss](https://tailwindcss.com) ([source](https://github.com/tailwindlabs/tailwindcss)) | [`3.2.4` -> `3.4.1`](https://renovatebot.com/diffs/npm/tailwindcss/3.2.4/3.4.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/tailwindcss/3.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/tailwindcss/3.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/tailwindcss/3.2.4/3.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/tailwindcss/3.2.4/3.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [ts-pattern](https://github.com/gvergnaud/ts-pattern) | [`4.1.4` -> `4.3.0`](https://renovatebot.com/diffs/npm/ts-pattern/4.1.4/4.3.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/ts-pattern/4.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/ts-pattern/4.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/ts-pattern/4.1.4/4.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/ts-pattern/4.1.4/4.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | [typescript](https://www.typescriptlang.org/) ([source](https://github.com/Microsoft/TypeScript)) | [`5.0.2` -> `5.3.3`](https://renovatebot.com/diffs/npm/typescript/5.0.2/5.3.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/typescript/5.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/typescript/5.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/typescript/5.0.2/5.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/typescript/5.0.2/5.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [wanakana](http://www.wanakana.com) ([source](https://github.com/WaniKani/WanaKana)) | [`5.0.2` -> `5.3.1`](https://renovatebot.com/diffs/npm/wanakana/5.0.2/5.3.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/wanakana/5.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/wanakana/5.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/wanakana/5.0.2/5.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/wanakana/5.0.2/5.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | [io.github.xxfast:kstore](https://xxfast.github.io/KStore/) ([source](https://github.com/xxfast/KStore)) | `0.6.0` -> `0.7.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.github.xxfast:kstore/0.7.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.github.xxfast:kstore/0.7.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.github.xxfast:kstore/0.6.0/0.7.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.github.xxfast:kstore/0.6.0/0.7.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | [org.jetbrains.kotlinx:kotlinx-coroutines-core](https://github.com/Kotlin/kotlinx.coroutines) | `1.7.1` -> `1.8.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.jetbrains.kotlinx:kotlinx-coroutines-core/1.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.jetbrains.kotlinx:kotlinx-coroutines-core/1.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.jetbrains.kotlinx:kotlinx-coroutines-core/1.7.1/1.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.jetbrains.kotlinx:kotlinx-coroutines-core/1.7.1/1.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | [org.jetbrains.kotlinx:kotlinx-serialization-json](https://github.com/Kotlin/kotlinx.serialization) | `1.5.1` -> `1.6.3` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.jetbrains.kotlinx:kotlinx-serialization-json/1.6.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.jetbrains.kotlinx:kotlinx-serialization-json/1.6.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.jetbrains.kotlinx:kotlinx-serialization-json/1.5.1/1.6.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.jetbrains.kotlinx:kotlinx-serialization-json/1.5.1/1.6.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | [org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom](https://github.com/JetBrains/kotlin-wrappers) | `1.0.0-pre.565` -> `1.0.0-pre.707` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom/1.0.0-pre.707?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom/1.0.0-pre.707?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom/1.0.0-pre.565/1.0.0-pre.707?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom/1.0.0-pre.565/1.0.0-pre.707?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | patch | | [org.jetbrains:markdown](https://github.com/JetBrains/markdown) | `0.4.1` -> `0.6.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.jetbrains:markdown/0.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.jetbrains:markdown/0.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.jetbrains:markdown/0.4.1/0.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.jetbrains:markdown/0.4.1/0.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | org.jmailen.kotlinter | `3.15.0` -> `3.16.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.jmailen.kotlinter/3.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.jmailen.kotlinter/3.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.jmailen.kotlinter/3.15.0/3.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.jmailen.kotlinter/3.15.0/3.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | plugin | minor | | org.jetbrains.kotlin.plugin.serialization | `1.8.22` -> `1.9.22` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.jetbrains.kotlin.plugin.serialization/1.9.22?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.jetbrains.kotlin.plugin.serialization/1.9.22?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.jetbrains.kotlin.plugin.serialization/1.8.22/1.9.22?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.jetbrains.kotlin.plugin.serialization/1.8.22/1.9.22?slim=true)](https://docs.renovatebot.com/merge-confidence/) | plugin | minor | | org.jetbrains.kotlin.multiplatform | `1.8.22` -> `1.9.22` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.jetbrains.kotlin.multiplatform/1.9.22?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.jetbrains.kotlin.multiplatform/1.9.22?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.jetbrains.kotlin.multiplatform/1.8.22/1.9.22?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.jetbrains.kotlin.multiplatform/1.8.22/1.9.22?slim=true)](https://docs.renovatebot.com/merge-confidence/) | plugin | minor | | [com.pinterest.ktlint:ktlint-ruleset-standard](https://github.com/pinterest/ktlint) | `0.48.0` -> `0.50.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.pinterest.ktlint:ktlint-ruleset-standard/0.50.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.pinterest.ktlint:ktlint-ruleset-standard/0.50.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.pinterest.ktlint:ktlint-ruleset-standard/0.48.0/0.50.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.pinterest.ktlint:ktlint-ruleset-standard/0.48.0/0.50.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | --- ### Release Notes <details> <summary>biomejs/biome (@&#8203;biomejs/biome)</summary> ### [`v1.5.3`](https://github.com/biomejs/biome/blob/HEAD/CHANGELOG.md#153-2024-01-22) [Compare Source](https://github.com/biomejs/biome/compare/80bb3d7d978ca2eb376190ac7cfdcd45902a6b75...906de83449b5066554cd8e97c78a1f8e43749016) ##### LSP ##### Bug fixes - Fix [#&#8203;1584](https://github.com/biomejs/biome/issues/1584). Ensure the LSP only registers the formatter once. Contributed by [@&#8203;nhedger](https://github.com/nhedger) - Fix [#&#8203;1589](https://github.com/biomejs/biome/issues/1589). Fix invalid formatting of own line comments when they were at the end of an import/export list. Contributed by [@&#8203;spanishpear](https://github.com/spanishpear) ##### Configuration ##### Bug fixes - Override correctly the recommended preset ([#&#8203;1349](https://github.com/biomejs/biome/issues/1349)). Previously, if unspecified, Biome turned on the recommended preset in overrides. This resulted in reporting diagnostics with a severity level set to `off`. This in turn caused Biome to fail. Now Biome won't switch on the recommended preset in `overrides` unless told to do so. Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) - Don't format **ignored** files that are well-known JSONC files when `files.ignoreUnknown` is enabled ([#&#8203;1607](https://github.com/biomejs/biome/issues/1607)). Previously, Biome always formatted files that are known to be JSONC files (e.g. `.eslintrc`) when `files.ignoreUnknown` was enabled. Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) ##### Formatter ##### Bug fixes - Fix [#&#8203;1178](https://github.com/biomejs/biome/issues/1178), where the line ending option wasn't correctly applied. Contributed by [@&#8203;ematipico](https://github.com/ematipico) - Fix [#&#8203;1571](https://github.com/biomejs/biome/issues/1571). Fix invalid formatting of nested multiline comments. Contributed by [@&#8203;ah-yu](https://github.com/ah-yu) ##### Linter ##### Bug fixes - Fix [#&#8203;1575](https://github.com/biomejs/biome/issues/1575). [noArrayIndexKey](https://biomejs.dev/linter/rules/no-array-index-key/) now captures array index value inside template literals and with string concatination. Contributed by [@&#8203;vasucp1207](https://github.com/vasucp1207) - Linter rules that inspect regexes now handle multibyte characters correctly ([#&#8203;1522](https://github.com/biomejs/biome/issues/1522)). Previously, [noMisleadingCharacterClass](https://biomejs.dev/linter/no-misleading-character-class), [noMultipleSpacesInRegularExpressionLiterals](https://biomejs.dev/linter/no-multiple-spaces-in-regular-expression-literals), and [noEmptyCharacterClassInRegex](https://biomejs.dev/linter/no-empty-character-class-in-regex) made Biome errors on multi-bytes characters. Multibyte characters are now handled correctly. The following code no longer raises an internal error: ```js // Cyrillic characters /[\u200E\u2066-\u2069]/gu; ``` Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) - [useExhaustiveDependencies](https://biomejs.dev/linter/use-exhaustive-dependencies) no longer made Biome errors in code TypeScript import equal declarations ([#&#8203;1194](https://github.com/biomejs/biome/issues/1194)). Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) - Fix typo in the diagnostic of [noNodejsModules](https://biomejs.dev/linter/rules/no-nodejs-modules). Contributed by [@&#8203;huseeiin](https://github.com/huseeiin) ##### Parser ##### Bug fixes - Accept the `const` modifier for type parameter in method type signature ([#&#8203;1624](https://github.com/biomejs/biome/issues/1624)). The following code is now correctly parsed: ```ts type Foo = { <const T>(); method<const T>(); }; ``` Contributed by [@&#8203;magic-akari](https://github.com/magic-akari) - Correctly parse type arguments in expression([#&#8203;1184](https://github.com/biomejs/biome/issues/1184)). The following code is now correctly parsed in typescript: ```ts 0 < (0 >= 1); ``` Contributed by [@&#8203;ah-yu](https://github.com/ah-yu) ##### Website ##### New - Add a [page that maps the Biome rule to its source](https://biomejs.dev/linter/rules-sources/). Contributed by [@&#8203;ematipico](https://github.com/ematipico) ##### Fixes - Generate Open Graph images based on the linked page. Contributed by [@&#8203;ematipico](https://github.com/ematipico) - Fix examples of the [git hook page](https://biomejs.dev/recipes/git-hooks/). Contributed by [@&#8203;9renpoto](https://github.com/9renpoto), [@&#8203;lmauromb](https://github.com/lmauromb), and [@&#8203;Conaclos](https://github.com/Conaclos) - Fix dead and erroneous hyperlinks. Contributed by [@&#8203;Sec-ant](https://github.com/Sec-ant) and Conaclos ### [`v1.5.2`](https://github.com/biomejs/biome/blob/HEAD/CHANGELOG.md#152-2024-01-15) [Compare Source](https://github.com/biomejs/biome/compare/0ed9e3ef0a1ac0bcf3ba7f0030999dbc3e34a619...80bb3d7d978ca2eb376190ac7cfdcd45902a6b75) ##### CLI ##### Bug fixes - Fix [#&#8203;1512](https://github.com/biomejs/biome/issues/1512) by skipping verbose diagnostics from the count. Contributed by [@&#8203;ematipico](https://github.com/ematipico) - Correctly handle cascading `include` and `ignore`. Previously Biome incorrectly included files that were included at tool level and ignored at global level. In the following example, `file.js` was formatted when it should have been ignored. Now, Biome correctly ignores the directory `./src/sub/`. ```shell ❯ tree src src └── sub └── file.js ❯ cat biome.json { "files": { "ignore": ["./src/sub/"] }, "formatter": { "include": ["./src"] } } ``` Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) - Don't emit verbose warnings when a protected file is ignored. Some files, such as `package.json` and `tsconfig.json`, are [protected](https://biomejs.dev/guides/how-biome-works/#protected-files). Biome emits a verbose warning when it encounters a protected file. Previously, Biome emitted this verbose warning even if the file was ignored by the configuration. Now, it doesn't emit verbose warnings for protected files that are ignored. Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) - `overrides` no longer affect which files are ignored. Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) - The file `biome.json` can't be ignored anymore. Contributed by [@&#8203;ematipico](https://github.com/ematipico) - Fix [#&#8203;1541](https://github.com/biomejs/biome/issues/1541) where the content of protected files wasn't returned to `stdout`. Contributed by [@&#8203;ematipico](https://github.com/ematipico) - Don't handle CSS files, the formatter isn't ready yet. Contributed by [@&#8203;ematipico](https://github.com/ematipico) ##### Configuration ##### Bug fixes - Fix [1440](https://github.com/biomejs/biome/issues/1440), a case where `extends` and `overrides` weren't correctly emitting the final configuration. Contributed by [@&#8203;arendjr](https://github.com/arendjr) - Correctly handle `include` when `ignore` is set ([#&#8203;1468](https://github.com/biomejs/biome/issues/1468)). Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) Previously, Biome ignored `include` if `ignore` was set. Now, Biome check both `include` and `ignore`. A file is processed if it is included and not ignored. If `include` is not set all files are considered included. ##### Formatter ##### Bug fixes - Fix placement of comments before `*` token in generator methods with decorators. [#&#8203;1537](https://github.com/biomejs/biome/pull/1537) Contributed by [@&#8203;ah-yu](https://github.com/ah-yu) - Fix [#&#8203;1406](https://github.com/biomejs/biome/issues/1406). Ensure comments before the `async` keyword are placed before it. Contributed by [@&#8203;ah-yu](https://github.com/ah-yu) - Fix [#&#8203;1172](https://github.com/biomejs/biome/issues/1172). Fix placement of line comment after function expression parentheses, they are now attached to first statement in body. Contributed by [@&#8203;kalleep](https://github.com/kalleep) - Fix [#&#8203;1511](https://github.com/biomejs/biome/issues/1511) that made the JavaScript formatter crash. Contributed [@&#8203;Conaclos](https://github.com/Conaclos) ##### Linter ##### Enhancements - Add an unsafe code fix for [noConsoleLog](https://biomejs.dev/linter/rules/no-console-log/). Contributed by [@&#8203;vasucp1207](https://github.com/vasucp1207) - [useArrowFunction](https://biomejs.dev/linter/rules/use-arrow-function) no longer reports function in `extends` clauses or in a `new` expression. Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) These cases require the presence of a prototype. - Add dependency variable names on error message when useExhaustiveDependencies rule shows errors. Contributed by [@&#8203;mehm8128](https://github.com/mehm8128) ##### Bug fixes - The fix of [useArrowFunction](https://biomejs.dev/linter/rules/use-arrow-function) now adds parentheses around the arrow function in more cases where it is needed ([#&#8203;1524](https://github.com/biomejs/biome/issues/1524)). A function expression doesn't need parentheses in most expressions where it can appear. This is not the case with the arrow function. We previously added parentheses when the function appears in a call or member expression. We now add parentheses in binary-like expressions and other cases where they are needed, hopefully covering all cases. Previously: ```diff - f = f ?? function() {}; + f = f ?? () => {}; ``` Now: ```diff - f = f ?? function() {}; + f = f ?? (() => {}); ``` Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) - Fix [#&#8203;1514](https://github.com/biomejs/biome/issues/1514). Fix autofix suggestion to avoid the syntax error in `no_useless_fragments`. Contributed by [@&#8203;togami2864](https://github.com/togami2864) ### [`v1.5.1`](https://github.com/biomejs/biome/blob/HEAD/CHANGELOG.md#151-2024-01-10) [Compare Source](https://github.com/biomejs/biome/compare/c1fdabcde7f6517aa48bc511e71c8c66796637dd...0ed9e3ef0a1ac0bcf3ba7f0030999dbc3e34a619) ##### CLI ##### Bug fixes - The diagnostics `files/missingHandler` are now shown only when the option `--verbose` is passed. Contributed by [@&#8203;ematipico](https://github.com/ematipico) - The diagnostics for protected files are now shown only when the option `--verbose` is passed. Contributed by [@&#8203;ematipico](https://github.com/ematipico) - Fix [#&#8203;1465](https://github.com/biomejs/biome/issues/1465), by taking in consideration the workspace folder when matching a pattern. Contributed by [@&#8203;ematipico](https://github.com/ematipico) - Fix [#&#8203;1465](https://github.com/biomejs/biome/issues/1465), by correctly process globs that contain file names. Contributed by [@&#8203;ematipico](https://github.com/ematipico) ##### Formatter ##### Bug fixes - Fix [#&#8203;1170](https://github.com/biomejs/biome/issues/1170). Fix placement of comments inside default switch clause. Now all line comments that have a preceding node will keep their position. Contributed by [@&#8203;kalleep](https://github.com/kalleep) ##### Linter ##### Bug fixes - Fix [#&#8203;1335](https://github.com/biomejs/biome/issues/1335). [noUselessFragments](https://biomejs.dev/linter/rules/no-useless-fragments/) now ignores code action on component props when the fragment is empty. Contributed by [@&#8203;vasucp1207](https://github.com/vasucp1207) - [useConsistentArrayType](https://biomejs.dev/linter/rules/use-consistent-array-type) was accidentally placed in the `style` rule group instead of the `nursery` group. It is now correctly placed under `nursery`. - Fix [#&#8203;1483](https://github.com/biomejs/biome/issues/1483). [useConsistentArrayType](https://biomejs.dev/linter/rules/use-consistent-array-type) now correctly handles its option. Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) - Fix [#&#8203;1502](https://github.com/biomejs/biome/issues/1502). [useArrowFunction](https://biomejs.dev/linter/rules/use-arrow-function) now correctly handle functions that return a (comma) sequence expression. Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) Previously the rule made an erroneous suggestion: ```diff - f(function() { return 0, 1; }, ""); + f(() => 0, 1, "") ``` Now, the rule wraps any comma sequence between parentheses: ```diff - f(function() { return 0, 1; }, ""); + f(() => (0, 1), "") ``` - Fix [#&#8203;1473](https://github.com/biomejs/biome/issues/1473): [useHookAtTopLevel](https://biomejs.dev/linter/rules/use-hook-at-top-level/) now correctly handles React components and hooks that are nested inside other functions. Contributed by [@&#8203;arendjr](https://github.com/arendjr) ### [`v1.5.0`](https://github.com/biomejs/biome/blob/HEAD/CHANGELOG.md#150-2024-01-08) [Compare Source](https://github.com/biomejs/biome/compare/a88751306242058374575b9f511e3c22213032b6...c1fdabcde7f6517aa48bc511e71c8c66796637dd) Biome now scores 97% compatibility with Prettier and features more than 180 linter rules. ##### Analyzer ##### CLI ##### New features - Biome now shows a diagnostic when it encounters a protected file. Contributed by [@&#8203;ematipico](https://github.com/ematipico) - The command `biome migrate` now updates the `$schema` if there's an outdated version. - The CLI now takes in consideration the `.gitignore` in the home directory of the user, if it exists. Contributed by [@&#8203;ematipico](https://github.com/ematipico) - The `biome ci` command is now able to print [GitHub Workflow Commands](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions) when there are diagnostics in our code. Contributed by [@&#8203;nikeee](https://github.com/nikeee) This **might** require setting the proper permissions on your GitHub action: ```yaml permissions: pull-requests: write ``` - The commands `format`, `lint`, `check` and `ci` now accept two new arguments: `--changed` and `--since`. Use these options with the VCS integration is enabled to process only the files that were changed. Contributed by [@&#8203;simonxabris](https://github.com/simonxabris) ```shell biome format --write --changed ``` - Introduced a new command called `biome explain`, which has the capability to display documentation for lint rules. Contributed by [@&#8203;kalleep](https://github.com/kalleep) - You can use the command `biome explain` to print the documentation of lint rules. Contributed by [@&#8203;kalleep](https://github.com/kalleep) ```shell biome explain noDebugger biome explain useAltText ``` - You can use the command `biome explain` to print the directory where daemon logs are stored. Contributed by [@&#8203;ematipico](https://github.com/ematipico) ```shell biome explain daemon-logs ``` - Removed the hard coded limit of 200 printable diagnostics. Contributed by [@&#8203;ematipico](https://github.com/ematipico) ##### Bug fixes - Fix [#&#8203;1247](https://github.com/biomejs/biome/issues/1247), Biome now prints a **warning** diagnostic if it encounters files that can't handle. Contributed by [@&#8203;ematipico](https://github.com/ematipico) You can ignore unknown file types using the [`files.ignoreUnknown`](https://biomejs.dev/reference/configuration/#filesignoreunknown) configuration in `biome.json`: ```jsonc { "files": { "ignoreUnknown": true } } ``` Or the `--files-ignore-unknown` CLI option: ```shell biome format --files-ignore-unknown=true --write . ``` - Fix [#&#8203;709](https://github.com/biomejs/biome/issues/709) and [#&#8203;805](https://github.com/biomejs/biome/issues/805) by correctly parsing `.gitignore` files. Contributed by [@&#8203;ematipico](https://github.com/ematipico) - Fix [#&#8203;1117](https://github.com/biomejs/biome/issues/1117) by correctly respecting the matching. Contributed by [@&#8203;ematipico](https://github.com/ematipico) - Fix [#&#8203;691](https://github.com/biomejs/biome/issues/691) and [#&#8203;1190](https://github.com/biomejs/biome/issues/1190), by correctly apply the configuration when computing [`overrides` configuration](https://biomejs.dev/reference/configuration/#overrides). Contributed by [@&#8203;ematipico](https://github.com/ematipico) ##### Configuration ##### New features - Users can specify *git ignore patterns* inside `ignore` and `include` properties, for example it's possible to **allow list** globs of files using the `!` character: ```jsonc { "files": { "ignore": [ "node_modules/**", "!**/dist/**" // this is now accepted and allow files inside the `dist` folder ] } } ``` ##### Editors ##### New features - The LSP registers formatting without the need of using dynamic capabilities from the client. This brings formatting services to the editors that don't support or have limited support for dynamic capabilities. ##### Formatter ##### Bug fixes - Fix [#&#8203;1169](https://github.com/biomejs/biome/issues/1169). Account for escaped strings when computing layout for assignments. Contributed by [@&#8203;kalleep](https://github.com/kalleep) - Fix [#&#8203;851](https://github.com/biomejs/biome/issues/851). Allow regular function expressions to group and break as call arguments, just like arrow function expressions. [#&#8203;1003](https://github.com/biomejs/biome/issues/1003) Contributed by [@&#8203;faultyserver](https://github.com/faultyserver) - Fix [#&#8203;914](https://github.com/biomejs/biome/issues/914). Only parenthesize type-casted function expressions as default exports. [#&#8203;1023](https://github.com/biomejs/biome/issues/1023) Contributed by [@&#8203;faultyserver](https://github.com/faultyserver) - Fix [#&#8203;1112](https://github.com/biomejs/biome/issues/1112). Break block bodies in case clauses onto their own lines and preserve trailing fallthrough comments. [#&#8203;1035](https://github.com/biomejs/biome/pull/1035) Contributed by [@&#8203;faultyserver](https://github.com/faultyserver) - Fix `RemoveSoftLinesBuffer` behavior to also removed conditional expanded content, ensuring no accidental, unused line breaks are included [#&#8203;1032](https://github.com/biomejs/biome/pull/1032) Contributed by [@&#8203;faultyserver](https://github.com/faultyserver) - Fix [#&#8203;1024](https://github.com/biomejs/biome/issues/1024). Allow JSX expressions to nestle in arrow chains [#&#8203;1033](https://github.com/biomejs/biome/pull/1033) Contributed by [@&#8203;faultyserver](https://github.com/faultyserver) - Fix incorrect breaking on the left side of assignments by always using fluid assignment. [#&#8203;1021](https://github.com/biomejs/biome/pull/1021) Contributed by [@&#8203;faultyserver](https://github.com/faultyserver) - Fix breaking strategy for nested object patterns in function parameters [#&#8203;1054](https://github.com/biomejs/biome/pull/1054) Contributed by [@&#8203;faultyserver](https://github.com/faultyserver) - Fix over-indention of arrow chain expressions by simplifying the way each chain is grouped [#&#8203;1036](https://github.com/biomejs/biome/pull/1036), [#&#8203;1136](https://github.com/biomejs/biome/pull/1136), and [#&#8203;1162](https://github.com/biomejs/biome/pull/1162) Contributed by [@&#8203;faultyserver](https://github.com/faultyserver). - Fix "simple" checks for calls and member expressions to correctly handle array accesses, complex arguments to single-argument function calls, and multiple-argument function calls. [#&#8203;1057](https://github.com/biomejs/biome/pull/1057) Contributed by [@&#8203;faultyserver](https://github.com/faultyserver) - Fix text wrapping and empty line handling for JSX Text elements to match Prettier's behavior. [#&#8203;1075](https://github.com/biomejs/biome/pull/1075) Contributed by [@&#8203;faultyserver](https://github.com/faultyserver) - Fix leading comments in concisely-printed arrays to prevent unwanted line breaks. [#&#8203;1135](https://github.com/biomejs/biome/pull/1135) Contributed by [@&#8203;faultyserver](https://github.com/faultyserver) - Fix `best_fitting` and interned elements preventing expansion propagation from sibling elements. [#&#8203;1141](https://github.com/biomejs/biome/pull/1141) Contributed by [@&#8203;faultyserver](https://github.com/faultyserver) - Fix heuristic for grouping function parameters when type parameters with constraints are present. [#&#8203;1153](https://github.com/biomejs/biome/pull/1153). Contributed by [@&#8203;faultyserver](https://github.com/faultyserver). - Fix binary-ish and type annotation handling for grouping call arguments in function expressions and call signatures. [#&#8203;1152](https://github.com/biomejs/biome/pull/1152) and [#&#8203;1160](https://github.com/biomejs/biome/pull/1160) Contributed by [@&#8203;faultyserver](https://github.com/faultyserver) - Fix handling of nestled JSDoc comments to preserve behavior for overloads. [#&#8203;1195](https://github.com/biomejs/biome/pull/1195) Contributed by [@&#8203;faultyserver](https://github.com/faultyserver) - Fix [#&#8203;1208](https://github.com/biomejs/biome/issues/1208). Fix extraction of inner types when checking for simple type annotations in call arguments. [#&#8203;1195](https://github.com/biomejs/biome/pull/1195) Contributed by [@&#8203;faultyserver](https://github.com/faultyserver) - Fix [#&#8203;1220](https://github.com/biomejs/biome/issues/1220). Avoid duplicating comments in type unions for mapped, empty object, and empty tuple types. [#&#8203;1240](https://github.com/biomejs/biome/pull/1240) Contributed by [@&#8203;faultyserver](https://github.com/faultyserver) - Fix [#&#8203;1356](https://github.com/biomejs/biome/issues/1356). Ensure `if_group_fits_on_line` content is always written in `RemoveSoftLinesBuffer`s. [#&#8203;1357](https://github.com/biomejs/biome/pull/1357) Contributed by [@&#8203;faultyserver](https://github.com/faultyserver) - Fix [#&#8203;1171](https://github.com/biomejs/biome/issues/1171). Correctly format empty statement with comment inside arrow body when used as single argument in call expression. Contributed by [@&#8203;kalleep](https://github.com/kalleep) - Fix [#&#8203;1106](https://github.com/biomejs/biome/issues/1106). Fix invalid formatting of single bindings when Arrow Parentheses is set to "AsNeeded" and the expression breaks over multiple lines. [#&#8203;1449](https://github.com/biomejs/biome/pull/1449) Contributed by [@&#8203;faultyserver](https://github.com/faultyserver) ##### 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: - [a11y/noAriaHiddenOnFocusable](https://www.biomejs.dev/linter/rules/no-aria-hidden-on-focusable) - [a11y/useValidAriaRole](https://www.biomejs.dev/linter/rules/use-valid-aria-role) - [complexity/useRegexLiterals](https://www.biomejs.dev/linter/rules/use-regex-literals) - [suspicious/noImplicitAnyLet](https://www.biomejs.dev/linter/rules/no-implicit-any-let) - [style/noDefaultExport](https://www.biomejs.dev/linter/rules/no-default-export) ##### New features - Add [useExportType](https://biomejs.dev/linter/rules/use-export-type) that enforces the use of type-only exports for types. Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) ```diff interface A {} interface B {} class C {} - export type { A, C } + export { type A, C } - export { type B } + export type { B } ``` - Add [useImportType](https://biomejs.dev/linter/rules/use-import-type) that enforces the use of type-only imports for types. Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) ```diff - import { A, B } from "./mod.js"; + import { type A, B } from "mod"; let a: A; const b: B = new B(); ``` Also, the rule groups type-only imports: ```diff - import { type A, type B } from "./mod.js"; + import type { A, B } from "./mod.js"; ``` - Add [useFilenamingConvention](https://biomejs.dev/linter/rules/use-filenaming-convention), that enforces naming conventions for JavaScript and TypeScript filenames. Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) By default, the rule requires that a filename be in `camelCase`, `kebab-case`, `snake_case`, or matches the name of an `export` in the file. The rule provides options to restrict the allowed cases. - Add [useNodejsImportProtocol](https://biomejs.dev/linter/rules/use-nodejs-import-protocol) that enforces the use of the `node:` protocol when importing *Node.js* modules. Contributed by [@&#8203;2-NOW](https://github.com/2-NOW), [@&#8203;vasucp1207](https://github.com/vasucp1207), and [@&#8203;Conaclos](https://github.com/Conaclos) ```diff - import fs from "fs"; + import fs from "node:fs"; ``` - Add [useNumberNamespace](https://biomejs.dev/linter/rules/use-number-namespace) that enforces the use of the `Number` properties instead of the global ones. ```diff - parseInt; + Number.parseInt; - - Infinity; + Number.NEGATIVE_INFINITY; ``` - Add [useShorthandFunctionType](https://biomejs.dev/linter/rules/use-shorthand-function-type) that enforces using function types instead of object type with call signatures. Contributed by [@&#8203;emab](https://github.com/emab), [@&#8203;ImBIOS](https://github.com/ImBIOS), and [@&#8203;seitarof](https://github.com/seitarof) ```diff - interface Example { - (): string; - } + type Example = () => string ``` ```` - Add [noNodejsModules](https://biomejs.dev/linter/rules/no-nodejs-modules), that disallows the use of _Node.js_ modules. Contributed by @&#8203;anonrig, @&#8203;ematipico, and @&#8203;Conaclos - Add [noInvalidUseBeforeDeclaration](https://biomejs.dev/linter/rules/no-invalid-use-before-declaration) that reports variables and function parameters used before their declaration. Contributed by @&#8203;Conaclos ```js function f() { console.log(c); // Use of `c` before its declaration. const c = 0; } ```` - Add [useConsistentArrayType](https://biomejs.dev/linter/rules/use-consistent-array-type) that enforces the use of a consistent syntax for array types. Contributed by [@&#8203;eryue0220](https://github.com/eryue0220) This rule will replace [useShorthandArrayType](https://biomejs.dev/linter/rules/use-shorthand-array-type). It provides an option to choose between the shorthand or the generic syntax. - Add [noEmptyTypeParameters](https://biomejs.dev/linter/rules/no-empty-type-parameters) that ensures that any type parameter list has at least one type parameter. Contributed by [@&#8203;togami2864](https://github.com/togami2864) This will report the following empty type parameter lists: ```ts interface Foo<> {} // ^^ type Bar<> = {}; // ^^ ``` - Add [noGlobalEval](https://biomejs.dev/linter/rules/no-global-eval) that reports any use of the global `eval`. Contributed by [@&#8203;you-5805](https://github.com/you-5805) - Add [noGlobalAssign](https://biomejs.dev/linter/rules/no-global-assign) that reports assignment to global variables. Contributed by [@&#8203;chansuke](https://github.com/chansuke) ```js Object = {}; // report assignment to `Object`. ``` - Add [noMisleadingCharacterClass](https://biomejs.dev/linter/rules/no-misleading-character-class) that disallows characters made with multiple code points in character class. Contributed by [@&#8203;togami2864](https://github.com/togami2864) - Add [noThenProperty](https://biomejs.dev/linter/rules/no-then-property) that disallows the use of `then` as property name. Adding a `then` property makes an object *thenable* that can lead to errors with Promises. Contributed by [@&#8203;togami2864](https://github.com/togami2864) - Add [noUselessTernary](https://biomejs.dev/linter/rules/no-useless-ternary) that disallows conditional expressions (ternaries) when simpler alternatives exist. ```js var a = x ? true : true; // this could be simplified to `x` ``` ##### Enhancements - [noEmptyInterface](https://biomejs.dev/linter/rules/no-empty-interface) ignores empty interfaces that extend a type. Address [#&#8203;959](https://github.com/biomejs/biome/issues/959) and [#&#8203;1157](https://github.com/biomejs/biome/issues/1157). Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) This allows supporting interface augmentation in external modules as demonstrated in the following example: ```ts interface Extension { metadata: unknown; } declare module "@&#8203;external/module" { // Empty interface that extends a type. export interface ExistingInterface extends Extension {} } ``` - Preserve more comments in the code fix of [useExponentiati --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: turtton <top.gear7509@turtton.net>
1 parent 854ed75 commit c7e85cd

16 files changed

+1419
-1077
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ WORKDIR /app
1111
COPY package.json pnpm-lock.yaml* ./
1212
RUN yarn global add pnpm && pnpm i
1313

14-
FROM gradle:8.1.1-jdk11 AS kdeps
14+
FROM gradle:8.6.0-jdk11 AS kdeps
1515
WORKDIR /app
1616
COPY kotlin/*gradle* kotlin/kotlin-js-store ./kotlin/
1717
WORKDIR /app/kotlin

kotlin/build.gradle.kts

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
buildscript {
22
configurations.classpath {
33
resolutionStrategy {
4-
val ktlintVersion = "0.48.0"
4+
val ktlintVersion = "0.50.0"
55
force(
66
// "com.pinterest.ktlint:ktlint-rule-engine:$ktlintVersion",
77
// "com.pinterest.ktlint:ktlint-rule-engine-core:$ktlintVersion",
@@ -12,9 +12,9 @@ buildscript {
1212
}
1313
}
1414
plugins {
15-
kotlin("multiplatform") version "1.8.22"
16-
kotlin("plugin.serialization") version "1.8.22"
17-
id("org.jmailen.kotlinter") version "3.15.0"
15+
kotlin("multiplatform") version "1.9.22"
16+
kotlin("plugin.serialization") version "1.9.22"
17+
id("org.jmailen.kotlinter") version "3.16.0"
1818
}
1919

2020
group = "net.turtton"
@@ -45,21 +45,21 @@ kotlin {
4545
sourceSets {
4646
val commonMain by getting {
4747
dependencies {
48-
implementation("org.jetbrains:markdown:0.4.1")
48+
implementation("org.jetbrains:markdown:0.6.1")
4949
}
5050
}
5151
val jsMain by getting {
5252
dependencies {
53-
implementation(enforcedPlatform("org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom:1.0.0-pre.565"))
53+
implementation(enforcedPlatform("org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom:1.0.0-pre.707"))
5454
implementation("org.jetbrains.kotlin-wrappers:kotlin-react")
5555
implementation("org.jetbrains.kotlin-wrappers:kotlin-react-dom")
5656
implementation("org.jetbrains.kotlin-wrappers:kotlin-emotion")
5757
implementation("org.jetbrains.kotlin-wrappers:kotlin-react-router-dom")
5858

59-
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1")
60-
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1")
59+
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3")
60+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0")
6161

62-
implementation("io.github.xxfast:kstore:0.6.0")?.version?.also {
62+
implementation("io.github.xxfast:kstore:0.7.1")?.version?.also {
6363
implementation("io.github.xxfast:kstore-file:$it")
6464
}
6565

-18.2 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
44
networkTimeout=10000
5+
validateDistributionUrl=true
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists

kotlin/gradlew

+13-9
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ done
8383
# This is normally unused
8484
# shellcheck disable=SC2034
8585
APP_BASE_NAME=${0##*/}
86-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
86+
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87+
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
8788

8889
# Use the maximum available, or set MAX_FD != -1 to use that value.
8990
MAX_FD=maximum
@@ -130,26 +131,29 @@ location of your Java installation."
130131
fi
131132
else
132133
JAVACMD=java
133-
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
134+
if ! command -v java >/dev/null 2>&1
135+
then
136+
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
134137
135138
Please set the JAVA_HOME variable in your environment to match the
136139
location of your Java installation."
140+
fi
137141
fi
138142

139143
# Increase the maximum file descriptors if we can.
140144
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
141145
case $MAX_FD in #(
142146
max*)
143147
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
144-
# shellcheck disable=SC3045
148+
# shellcheck disable=SC2039,SC3045
145149
MAX_FD=$( ulimit -H -n ) ||
146150
warn "Could not query maximum file descriptor limit"
147151
esac
148152
case $MAX_FD in #(
149153
'' | soft) :;; #(
150154
*)
151155
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
152-
# shellcheck disable=SC3045
156+
# shellcheck disable=SC2039,SC3045
153157
ulimit -n "$MAX_FD" ||
154158
warn "Could not set maximum file descriptor limit to $MAX_FD"
155159
esac
@@ -198,11 +202,11 @@ fi
198202
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
199203
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
200204

201-
# Collect all arguments for the java command;
202-
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
203-
# shell script including quotes and variable substitutions, so put them in
204-
# double quotes to make sure that they get re-expanded; and
205-
# * put everything else in single quotes, so that it's not re-expanded.
205+
# Collect all arguments for the java command:
206+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
207+
# and any embedded shellness will be escaped.
208+
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
209+
# treated as '${Hostname}' itself on the command line.
206210

207211
set -- \
208212
"-Dorg.gradle.appname=$APP_BASE_NAME" \

kotlin/gradlew.bat

+10-10
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
4343
%JAVA_EXE% -version >NUL 2>&1
4444
if %ERRORLEVEL% equ 0 goto execute
4545

46-
echo.
47-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48-
echo.
49-
echo Please set the JAVA_HOME variable in your environment to match the
50-
echo location of your Java installation.
46+
echo. 1>&2
47+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
48+
echo. 1>&2
49+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
50+
echo location of your Java installation. 1>&2
5151

5252
goto fail
5353

@@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5757

5858
if exist "%JAVA_EXE%" goto execute
5959

60-
echo.
61-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62-
echo.
63-
echo Please set the JAVA_HOME variable in your environment to match the
64-
echo location of your Java installation.
60+
echo. 1>&2
61+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
62+
echo. 1>&2
63+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
64+
echo location of your Java installation. 1>&2
6565

6666
goto fail
6767

0 commit comments

Comments
 (0)