From 321fba924a74439b085e2f19454425b2a475e392 Mon Sep 17 00:00:00 2001 From: Ryan Carniato Date: Tue, 17 Nov 2026 09:49:56 -0800 Subject: [PATCH] chore: release 0.20.0 Co-Authored-By: Claude Opus 5.5 --- README.md | 4 +- packages/eslint-plugin-solid/CHANGELOG.md | 48 +++++++++++++++++++ packages/eslint-plugin-solid/README.md | 4 +- packages/eslint-plugin-solid/package.json | 2 +- packages/eslint-solid-standalone/package.json | 2 +- 5 files changed, 54 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index dcad80f..0c6170f 100644 --- a/README.md +++ b/README.md @@ -286,7 +286,7 @@ If you want to pin a minor version, use a tilde in your `package.json`. ```diff -- "eslint-plugin-solid": "^0.19.0" -+ "eslint-plugin-solid": "~0.19.0" +- "eslint-plugin-solid": "^0.20.0" ++ "eslint-plugin-solid": "~0.20.0" ``` diff --git a/packages/eslint-plugin-solid/CHANGELOG.md b/packages/eslint-plugin-solid/CHANGELOG.md index 4b480cd..7a41f60 100644 --- a/packages/eslint-plugin-solid/CHANGELOG.md +++ b/packages/eslint-plugin-solid/CHANGELOG.md @@ -1,5 +1,53 @@ # Changelog +## 0.20.0 + +A pass against the stable Solid 2.0.0 API, plus autofix and false-positive fixes. No new rules, +but `removed-api` reports more 1.x APIs under the `v2` configs, so this is a minor release. +Thanks to @anubhavlal07 (#260), @Deniffer001 (#258 report), @ethan-huo (#259 report) and +@trackoor (#261 report). + +### Rule changes + +- **`solid/removed-api` covers more of the 2.0 migration** (#262). It now reports + `createDynamic` (use the `dynamic()` factory from `@solidjs/web`), `pipeToWritable` and + `pipeToNodeWritable` (use `renderToStream(...).pipeTo/pipe`, or `.readable`), and + `enableScheduling`. Imports from `solid-js/h`, `solid-js/html` and `solid-js/universal` are + rewritten to `@solidjs/h`, `@solidjs/html` and `@solidjs/universal`, like `solid-js/web`. + `` on a local Solid `createContext()` is reported and fixed to ``, + since 2.0 contexts are the provider and have no `.Provider`. +- **`solid/no-write-in-pure-computation` and `solid/no-module-scope-reactive-primitive` cover + `createDeferred`** (#262), which is an async memo in 2.0. +- **`solid/imports` (v2) knows more 2.0 exports** (#262): `createDeferred`, + `createTrackedEffect`, `onFlush`, `until`, `from`, `Hydration`, `NoHydration`, + `dynamicComponent` and `isHydrating` from `solid-js`; `dynamic`, `clientOnly`, `useHead`, + `getRequestEvent`, `redirect`, `reload`, `respond`, `httpStatus` and `httpHeader` from + `@solidjs/web`. `storePath`, which is not a public `solid-js` export, is dropped. +- **`solid/no-unknown-namespaces`**: the `use:` message points at ref directive factories + (`ref={tooltip(options)}`), as in the 2.0 migration guide (#262). + +### Fixes + +- **`solid/reactivity`: 2.0 false positives** (#262, fixes #259). `createDeferred(async () => ...)` + is allowed, `until(fn)` tracks its predicate, and `onFlush(fn)` is treated like `onSettled`. +- **`solid/reactivity`: stale captures in handlers declared as statements are reported again** + (#260 by @anubhavlal07, fixes #258). A regression from #251: `const onClick = () => ...` or + `function onClick() {}` in a component, passed into the returned JSX, is checked like an inline + handler. Helpers that are only called (`return share(2)`, `items.map(scale)`) stay valid. +- **`solid/no-destructure`: no broken autofixes** (#263, fixes #261). The rule still reports, but + skips the fix for nested patterns, a default that reads another destructured prop (which used to + crash ESLint with overlapping fixes), and functions where `props` or `_props` is already declared + or read from an enclosing scope. +- **Auto-imports and namespace imports** (#263, fixes #261). `jsx-no-undef` and `imports` add a + separate `import { ... }` next to `import * as Solid from "solid-js"` instead of writing invalid + syntax. + +### Maintenance + +- Dev dependencies refreshed and dev-only audit alerts fixed with overrides; none affected the + published packages (#264). +- The fixture integration tests get a 30s timeout, fixing a CI flake since #227 (#264). + ## 0.19.0 Two new rules, a lighter install, and fixes so `--fix` stops writing 1.x code or changing behavior diff --git a/packages/eslint-plugin-solid/README.md b/packages/eslint-plugin-solid/README.md index dcad80f..0c6170f 100644 --- a/packages/eslint-plugin-solid/README.md +++ b/packages/eslint-plugin-solid/README.md @@ -286,7 +286,7 @@ If you want to pin a minor version, use a tilde in your `package.json`. ```diff -- "eslint-plugin-solid": "^0.19.0" -+ "eslint-plugin-solid": "~0.19.0" +- "eslint-plugin-solid": "^0.20.0" ++ "eslint-plugin-solid": "~0.20.0" ``` diff --git a/packages/eslint-plugin-solid/package.json b/packages/eslint-plugin-solid/package.json index 15e98fa..f1a60f5 100644 --- a/packages/eslint-plugin-solid/package.json +++ b/packages/eslint-plugin-solid/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-solid", - "version": "0.19.0", + "version": "0.20.0", "description": "Solid-specific linting rules for ESLint.", "keywords": [ "eslint", diff --git a/packages/eslint-solid-standalone/package.json b/packages/eslint-solid-standalone/package.json index 0e2e211..31acf37 100644 --- a/packages/eslint-solid-standalone/package.json +++ b/packages/eslint-solid-standalone/package.json @@ -1,6 +1,6 @@ { "name": "eslint-solid-standalone", - "version": "0.19.0", + "version": "0.20.0", "description": "A bundle with eslint and eslint-plugin-solid that can be used in the browser.", "repository": "https://github.com/solidjs-community/eslint-plugin-solid", "license": "MIT",