#31595b82631d Thanks @iegik! - Renamed an internal hasOwnProperty to hasOwn. This avoids problems in CommonJS environments when the consumer tries to prevent prototype pollution with Object.freeze(Object.prototype).
Fix #319. The command biome lint now shows the correct options. Contributed by @ematipico
Fix #312. Running biome --version now exits with status code 0 instead of 1. Contributed by @nhedger
Fix a bug where the extends functionality doesn't carry over organizeImports.ignore. Contributed by @ematipico
The CLI now returns the original content when using stdin and the original content doesn't change. Contributed by @ematipico
New features
Add support for BIOME_BINARY environment variable to override the location of the binary. Contributed by @ematipico
Add option --indent-width, and deprecated the option --indent-size. Contributed by @ematipico
Add option --javascript-formatter-indent-width, and deprecated the option --javascript-formatter-indent-size. Contributed by @ematipico
Add option --json-formatter-indent-width, and deprecated the option --json-formatter-indent-size. Contributed by @ematipico
Add option --daemon-logs to biome rage. The option is required to view Biome daemon server logs. Contributed by @unvalley
Add support for logging. By default, Biome doesn't log anything other than diagnostics. Logging can be enabled with the new option --log-level:
biome format --log-level=info ./src
There are four different levels of logging, from the most verbose to the least verbose: debug, info, warn and error. Here's how an INFO log will look like:
2023-10-05T08:27:01.954727Z INFO Analyze file ./website/src/playground/components/Resizable.tsx
at crates/biome_service/src/file_handlers/javascript.rs:298 on biome::worker_5
in Pulling diagnostics with categories: RuleCategories(SYNTAX)
in Processes formatting with path: "./website/src/playground/components/Resizable.tsx"
in Process check with path: "./website/src/playground/components/Resizable.tsx"
You can customize how the log will look like with a new option --log-kind. The supported kinds are: pretty, compact and json.
pretty is the default logging. Here's how a compact log will look like:
2023-10-05T08:29:04.864247Z INFO biome::worker_2 Process check:Processes linting:Pulling diagnostics: crates/biome_service/src/file_handlers/javascript.rs: Analyze file ./website/src/playground/components/Resizable.tsx path="./website/src/playground/components/Resizable.tsx" path="./website/src/playground/components/Resizable.tsx" categories=RuleCategories(LINT)
2023-10-05T08:29:04.864290Z INFO biome::worker_7 Process check:Processes formatting: crates/biome_service/src/file_handlers/javascript.rs: Format file ./website/src/playground/components/Tabs.tsx path="./website/src/playground/components/Tabs.tsx" path="./website/src/playground/components/Tabs.tsx"
2023-10-05T08:29:04.879332Z INFO biome::worker_2 Process check:Processes formatting:Pulling diagnostics: crates/biome_service/src/file_handlers/javascript.rs: Analyze file ./website/src/playground/components/Resizable.tsx path="./website/src/playground/components/Resizable.tsx" path="./website/src/playground/components/Resizable.tsx" categories=RuleCategories(SYNTAX)
2023-10-05T08:29:04.879383Z INFO biome::worker_2 Process check:Processes formatting: crates/biome_service/src/file_handlers/javascript.rs: Format file ./website/src/playground/components/Resizable.tsx path="./website/src/playground/components/Resizable.tsx" path="./website/src/playground/components/Resizable.tsx"
Add partial for .astro files. Biome is able to sort imports inside the frontmatter of the Astro files. Contributed
by @ematipico
---
- import { getLocale } from "astro:i18n";
- import { Code } from "astro:components";
+ import { Code } from "astro:components";
+ import { getLocale } from "astro:i18n";
---
<div></div>
Add partial for .vue files. Biome is able to sort imports inside the script block of Vue files. Contributed by
@nhedger
<script setup lang="ts">
- import Button from "./components/Button.vue";
- import * as vueUse from "vue-use";
+ import * as vueUse from "vue-use";
+ import Button from "./components/Button.vue";
</script/>
<template></template>
Add partial for .svelte files. Biome is able to sort imports inside the script block of Svelte files. Contributed by
@ematipico
<script setup lang="ts">
- import Button from "./components/Button.svelte";
- import * as svelteUse from "svelte-use";
+ import * as svelteUse from "svelte-use";
+ import Button from "./components/Button.svelte";
</script/>
The analyzer now infers the correct quote from javascript.formatter.quoteStyle, if set. This means that code fixes suggested by the analyzer will use the same quote of the formatter. Contributed by @ematipico
Bumps the npm group with 18 updates:
11.11.3
11.11.4
5.15.10
5.15.12
1.5.3
1.6.0
5.0.8
5.0.12
5.15.10
5.15.12
7.6.16
7.6.17
7.6.16
7.6.17
7.6.16
7.6.17
7.6.16
7.6.17
7.6.16
7.6.17
7.6.16
7.6.17
7.6.16
7.6.17
7.6.16
7.6.17
18.2.56
18.2.64
18.2.19
18.2.21
7.6.16
7.6.17
5.3.3
5.4.2
5.1.3
5.1.5
Updates
@emotion/react
from 11.11.3 to 11.11.4Release notes
Sourced from
@emotion/react
's releases.Commits
6e0e388
Version Packages (#3160)5b82631
Renamed an internalhasOwnProperty
tohasOwn
(#3159)0bfa978
AdddisableRemotePlayback
to valid prop types (#3156)Updates
@mui/material
from 5.15.10 to 5.15.12Release notes
Sourced from
@mui/material
's releases.... (truncated)
Changelog
Sourced from
@mui/material
's changelog.... (truncated)
Commits
5ad69e1
v5.15.12 (#41373)cbab3e6
Revert "v5.15.12" (#41371)0a478bb
v5.15.12 (#41289)9d8dc9b
Bump express to ^4.18.3 (#41338)1bd213d
Bump Playwright (#41349)4e549d0
[material-ui][Checkbox]large
size added in type (#34909)e93d4ac
[material-ui][Alert] Convert to support zero runtime (#41230)bf80b50
Bump eslint-plugin-mocha to ^10.3.0 (#41161)6d168ac
[material-ui] Support props callback type in theme variants (#40946)fd00acb
Bump@types/chai
to ^4.3.12 (#41264)Updates
@biomejs/biome
from 1.5.3 to 1.6.0Release notes
Sourced from
@biomejs/biome
's releases.... (truncated)
Changelog
Sourced from
@biomejs/biome
's changelog.... (truncated)
Commits
560628b
chore: trigger CI (#2001)efe55da
ci: revert package number, to trigger the CIa03de64
release: 1.6.0 (#1969)f5dd086
Implement stable hook configuration (#1979)2c3741e
chore: fix json schema generation (#1972)08e1b2e
chore: replace TypeScript ESLint with typescript-eslint (#1963)d945159
feat(formatter): add optionjson.formatter.trailingComma
(#1948)f73af5d
feat(analyzer): implement noBarrelFile (#1912)0a749e3
feat(biome_js_analyze): useJsxKeyInIterable (#1913)29f9227
feat(lint/noNestTestSuites): add rule (#1887)Updates
@fontsource/roboto
from 5.0.8 to 5.0.12Commits
Updates
@mui/icons-material
from 5.15.10 to 5.15.12Release notes
Sourced from
@mui/icons-material
's releases.... (truncated)
Changelog
Sourced from
@mui/icons-material
's changelog.... (truncated)
Commits
5ad69e1
v5.15.12 (#41373)cbab3e6
Revert "v5.15.12" (#41371)0a478bb
v5.15.12 (#41289)6afcb73
[pigment] Rename scope to@pigment-css
(#41354)fd00acb
Bump@types/chai
to ^4.3.12 (#41264)a3a1be9
[pigmentcss] Rename zero-runtime to pigmentcss (#41317)5e4e18a
[code-infra] Prepare the markdown package for publishing (#41240)e3257a4
v5.15.11 (#41213)47e1cf9
[code-infra] Move typescript-to-proptypes to internal-scripts package (#41079)Updates
@storybook/addon-essentials
from 7.6.16 to 7.6.17Release notes
Sourced from
@storybook/addon-essentials
's releases.