Repository navigation
v0.17.1
Bug fixes only. Thanks to @jynxio and @brenelz for the reports and PRs.
Fixes
solid/reactivityregression from 0.16.1 (#223). ThestaleCapturecheck flagged captures read inside synchronous array-method callbacks (items.filter((item) => item.includes(q))) withincreateMemo/createEffectbodies. A function passed as a call argument doesn't escape through areturnbelow it — only the call's result does — so these callbacks run during the computation, where the capture is fresh. IIFEs are exempt for the same reason.solid/importstype mappings for Solid 2.0 (#220, #221, #222). TheJSXnamespace only exists in@solidjs/webin 2.0; the rule was autofixing correct imports into a module that doesn't export it.ValidComponent/ComponentPropsare now accepted from bothsolid-js(DOM-independent) and@solidjs/web(DOM-aware) since the two packages export genuinely different types. The fixer also no longer produces a duplicatetypemodifier (import type { type JSX }) when moving inline type specifiers.renderToStringAsyncis a removed API, not a misplaced one. It no longer exists in Solid 2.0 (renderToStringawaits async content). Dropped from the v2 imports map — which was autofixing imports into a dead end — and added tosolid/removed-apiwith migration guidance.solid/removed-apinow also scans@solidjs/webimports, so a mechanically source-rewritten import of a removed API is still reported.
Also verified fixed and closed: #193 (signals passed as create* arguments stopped warning with the 0.16.1 accessor-passing work).