Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .changeset/cruel-pans-kick.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/fair-goats-scream.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/few-jeans-pick.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-issue-9994-styled-css.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/floppy-lines-write.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/frogs-like-green.md

This file was deleted.

17 changes: 0 additions & 17 deletions .changeset/hungry-meals-wash.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/mighty-news-taste.md

This file was deleted.

24 changes: 0 additions & 24 deletions .changeset/no-react-native-literal-colors.md

This file was deleted.

28 changes: 0 additions & 28 deletions .changeset/no-react-native-raw-text.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shaggy-planets-yawn.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tidy-planes-stay.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ declare_lint_rule! {
/// ```
///
pub NoReactNativeDeepImports {
version: "next",
version: "2.4.13",
name: "noReactNativeDeepImports",
language: "js",
sources: &[RuleSource::EslintReactNative("no-deep-imports").same()],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ declare_lint_rule! {
/// ```
///
pub NoReactNativeLiteralColors {
version: "next",
version: "2.4.13",
name: "noReactNativeLiteralColors",
language: "js",
sources: &[RuleSource::EslintReactNative("no-color-literals").same()],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ declare_lint_rule! {
/// ```
///
pub NoReactNativeRawText {
version: "next",
version: "2.4.13",
name: "noReactNativeRawText",
language: "jsx",
sources: &[RuleSource::EslintReactNative("no-raw-text").same()],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ declare_lint_rule! {
/// ```
///
pub UseDomNodeTextContent {
version: "next",
version: "2.4.13",
name: "useDomNodeTextContent",
language: "js",
recommended: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ declare_lint_rule! {
/// ```
///
pub UseDomQuerySelector {
version: "next",
version: "2.4.13",
name: "useDomQuerySelector",
language: "js",
sources: &[RuleSource::EslintUnicorn("prefer-query-selector").inspired()],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ declare_lint_rule! {
/// ```
///
pub UseRegexpTest {
version: "next",
version: "2.4.13",
name: "useRegexpTest",
language: "js",
recommended: false,
Expand Down
2 changes: 2 additions & 0 deletions packages/@biomejs/backend-jsonrpc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @biomejs/backend-jsonrpc

## 2.0.50

## 2.0.49

## 2.0.48
Expand Down
18 changes: 9 additions & 9 deletions packages/@biomejs/backend-jsonrpc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@biomejs/backend-jsonrpc",
"version": "2.0.49",
"version": "2.0.50",
"main": "dist/index.js",
"scripts": {
"test": "vitest",
Expand Down Expand Up @@ -45,13 +45,13 @@
"provenance": true
},
"optionalDependencies": {
"@biomejs/cli-win32-x64": "2.4.12",
"@biomejs/cli-win32-arm64": "2.4.12",
"@biomejs/cli-darwin-x64": "2.4.12",
"@biomejs/cli-darwin-arm64": "2.4.12",
"@biomejs/cli-linux-x64": "2.4.12",
"@biomejs/cli-linux-arm64": "2.4.12",
"@biomejs/cli-linux-x64-musl": "2.4.12",
"@biomejs/cli-linux-arm64-musl": "2.4.12"
"@biomejs/cli-win32-x64": "2.4.13",
"@biomejs/cli-win32-arm64": "2.4.13",
"@biomejs/cli-darwin-x64": "2.4.13",
"@biomejs/cli-darwin-arm64": "2.4.13",
"@biomejs/cli-linux-x64": "2.4.13",
"@biomejs/cli-linux-arm64": "2.4.13",
"@biomejs/cli-linux-x64-musl": "2.4.13",
"@biomejs/cli-linux-arm64-musl": "2.4.13"
}
}
98 changes: 98 additions & 0 deletions packages/@biomejs/biome/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,103 @@
# @biomejs/biome

## 2.4.13

### Patch Changes

- [#9865](https://github.com/biomejs/biome/pull/9865) [`68fb8d4`](https://github.com/biomejs/biome/commit/68fb8d468c01732c4283a336eca42223983df09b) Thanks [@dyc3](https://github.com/dyc3)! - Added the new nursery rule [`useDomNodeTextContent`](https://biomejs.dev/linter/rules/use-dom-node-text-content/), which prefers `textContent` over `innerText` for DOM node text access and destructuring.

For example, the following snippet triggers the rule:

```js
const foo = node.innerText;
```

- [#10023](https://github.com/biomejs/biome/pull/10023) [`bd1e74f`](https://github.com/biomejs/biome/commit/bd1e74fd80b0cadafd091513950275e0ff75d80f) Thanks [@ematipico](https://github.com/ematipico)! - Added a new nursery rule [`noReactNativeDeepImports`](https://biomejs.dev/linter/rules/no-react-native-deep-imports/) that disallows deep imports from the `react-native` package. Internal paths like `react-native/Libraries/...` are not part of the public API and may change between versions.

For example, the following code triggers the rule:

```js
import View from "react-native/Libraries/Components/View/View";
```

- [#9885](https://github.com/biomejs/biome/pull/9885) [`3dce737`](https://github.com/biomejs/biome/commit/3dce737e5050cfda7d2b9be8f809aee417f01196) Thanks [@dyc3](https://github.com/dyc3)! - Added a new nursery rule [`useDomQuerySelector`](https://biomejs.dev/linter/rules/use-dom-query-selector/) that prefers `querySelector()` and `querySelectorAll()` over older DOM query methods such as `getElementById()` and `getElementsByClassName()`.

- [#9995](https://github.com/biomejs/biome/pull/9995) [`4da9caf`](https://github.com/biomejs/biome/commit/4da9caf8281473177fac3332610c710b31e89546) Thanks [@siketyan](https://github.com/siketyan)! - Fixed [#9994](https://github.com/biomejs/biome/issues/9994): Biome now parses nested CSS rules correctly when declarations follow them inside embedded snippets.

- [#10009](https://github.com/biomejs/biome/pull/10009) [`b41cc5a`](https://github.com/biomejs/biome/commit/b41cc5a58c74fd6b237352c1772e64e74fcc7546) Thanks [@Jayllyz](https://github.com/Jayllyz)! - Fixed [#10004](https://github.com/biomejs/biome/issues/10004): [`noComponentHookFactories`](https://biomejs.dev/linter/rules/no-component-hook-factories/) no longer reports false positives for object methods and class methods.

- [#9988](https://github.com/biomejs/biome/pull/9988) [`eabf54a`](https://github.com/biomejs/biome/commit/eabf54ad03c6c1d63753a641c8ad1ef385e42d2b) Thanks [@Netail](https://github.com/Netail)! - Tweaked the diagnostics range for [useAltText](https://biomejs.dev/linter/rules/use-alt-text), [useButtonType](https://biomejs.dev/linter/rules/use-button-type), [useHtmlLang](https://biomejs.dev/linter/rules/use-html-lang), [useIframeTitle](https://biomejs.dev/linter/rules/use-iframe-title), [useValidAriaRole](https://biomejs.dev/linter/rules/use-valid-aria-role) & [useIfameSandbox](https://biomejs.dev/linter/rules/use-iframe-sandbox) to report on the opening tag instead of the full tag.

- [#9702](https://github.com/biomejs/biome/pull/9702) [`ef470ba`](https://github.com/biomejs/biome/commit/ef470ba2db119aa52c24f918bcef451cf2770ccb) Thanks [@ryan-m-walker](https://github.com/ryan-m-walker)! - Added the nursery rule [`useRegexpTest`](https://biomejs.dev/linter/rules/use-regexp-test/) that enforces `RegExp.prototype.test()` over `String.prototype.match()` and `RegExp.prototype.exec()` in boolean contexts. `test()` returns a boolean directly, avoiding unnecessary computation of match results.

**Invalid**

```js
if ("hello world".match(/hello/)) {
}
```

**Valid**

```js
if (/hello/.test("hello world")) {
}
```

- [#9743](https://github.com/biomejs/biome/pull/9743) [`245307d`](https://github.com/biomejs/biome/commit/245307dc4ee7af87f62873162107b608084d40f3) Thanks [@leetdavid](https://github.com/leetdavid)! - Fixed [#2245](https://github.com/biomejs/biome/issues/2245): Svelte `<script>` tag language detection when the `generics` attribute contains `>` characters (e.g., `<script lang="ts" generics="T extends Record<string, unknown>">`). Biome now correctly recognizes TypeScript in such script blocks.

- [#10012](https://github.com/biomejs/biome/pull/10012) [`94ccca9`](https://github.com/biomejs/biome/commit/94ccca96800e73732b3f26d7eb21a5e3e025e51e) Thanks [@ematipico](https://github.com/ematipico)! - Added the nursery rule [`noReactNativeLiteralColors`](https://biomejs.dev/linter/rules/no-react-native-literal-colors/), which disallows color literals inside React Native styles.

The rule belongs to the `reactNative` domain. It reports properties whose name contains `color` and whose value is a string literal when they appear inside a `StyleSheet.create(...)` call or inside a JSX attribute whose name contains `style`.

```jsx
// Invalid
const Hello = () => <Text style={{ backgroundColor: "#FFFFFF" }}>hi</Text>;

const styles = StyleSheet.create({
text: { color: "red" },
});
```

```jsx
// Valid
const red = "#f00";
const styles = StyleSheet.create({
text: { color: red },
});
```

- [#10005](https://github.com/biomejs/biome/pull/10005) [`131019e`](https://github.com/biomejs/biome/commit/131019e161b69fd755742ba509b1c51fcb2af183) Thanks [@ematipico](https://github.com/ematipico)! - Added the nursery rule [`noReactNativeRawText`](https://biomejs.dev/linter/rules/no-react-native-raw-text/), which disallows raw text outside of `<Text>` components in React Native.

The rule belongs to the new `reactNative` domain.

```jsx
// Invalid
<View>some text</View>
<View>{'some text'}</View>
```

```jsx
// Valid
<View>
<Text>some text</Text>
</View>
```

Additional components can be allowlisted through the `skip` option:

```json
{
"options": {
"skip": ["Title"]
}
}
```

- [#9999](https://github.com/biomejs/biome/pull/9999) [`f42405f`](https://github.com/biomejs/biome/commit/f42405fca77302bbbca573474c59ae49f027f75d) Thanks [@minseong0324](https://github.com/minseong0324)! - Fixed `noMisleadingReturnType` incorrectly flagging functions with reassigned `let` variables.

- [#10006](https://github.com/biomejs/biome/pull/10006) [`cf4c1c9`](https://github.com/biomejs/biome/commit/cf4c1c943a53612648d052d843aaf977652c79d6) Thanks [@minseong0324](https://github.com/minseong0324)! - Fixed [#9810](https://github.com/biomejs/biome/issues/9810): `noMisleadingReturnType` incorrectly flagging nested object literals with widened properties.

## 2.4.12

### Patch Changes
Expand Down
18 changes: 9 additions & 9 deletions packages/@biomejs/biome/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@biomejs/biome",
"version": "2.4.12",
"version": "2.4.13",
"bin": {
"biome": "bin/biome"
},
Expand Down Expand Up @@ -46,13 +46,13 @@
"provenance": true
},
"optionalDependencies": {
"@biomejs/cli-win32-x64": "2.4.12",
"@biomejs/cli-win32-arm64": "2.4.12",
"@biomejs/cli-darwin-x64": "2.4.12",
"@biomejs/cli-darwin-arm64": "2.4.12",
"@biomejs/cli-linux-x64": "2.4.12",
"@biomejs/cli-linux-arm64": "2.4.12",
"@biomejs/cli-linux-x64-musl": "2.4.12",
"@biomejs/cli-linux-arm64-musl": "2.4.12"
"@biomejs/cli-win32-x64": "2.4.13",
"@biomejs/cli-win32-arm64": "2.4.13",
"@biomejs/cli-darwin-x64": "2.4.13",
"@biomejs/cli-darwin-arm64": "2.4.13",
"@biomejs/cli-linux-x64": "2.4.13",
"@biomejs/cli-linux-arm64": "2.4.13",
"@biomejs/cli-linux-x64-musl": "2.4.13",
"@biomejs/cli-linux-arm64-musl": "2.4.13"
}
}
2 changes: 2 additions & 0 deletions packages/@biomejs/cli-darwin-arm64/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @biomejs/cli-darwin-arm64

## 2.4.13

## 2.4.12

## 2.4.11
Expand Down
2 changes: 1 addition & 1 deletion packages/@biomejs/cli-darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@biomejs/cli-darwin-arm64",
"version": "2.4.12",
"version": "2.4.13",
"license": "MIT OR Apache-2.0",
"repository": {
"type": "git",
Expand Down
2 changes: 2 additions & 0 deletions packages/@biomejs/cli-darwin-x64/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @biomejs/cli-darwin-x64

## 2.4.13

## 2.4.12

## 2.4.11
Expand Down
2 changes: 1 addition & 1 deletion packages/@biomejs/cli-darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@biomejs/cli-darwin-x64",
"version": "2.4.12",
"version": "2.4.13",
"license": "MIT OR Apache-2.0",
"repository": {
"type": "git",
Expand Down
Loading