kerfjs 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ All notable changes to **kerf** are documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.8.1] - 2026-05-19
8
+
9
+
10
+ - New `eslint-plugin-kerfjs` with four AST rules enforcing kerf Hard Rules
11
+
7
12
  ## [0.8.0] - 2026-05-18
8
13
 
9
14
 
package/README.md CHANGED
@@ -156,12 +156,29 @@ npm install kerfjs
156
156
  }
157
157
  ```
158
158
 
159
+ ### Optional: `eslint-plugin-kerfjs`
160
+
161
+ A companion ESLint plugin enforces four of kerf's hard rules at edit time — inline JSX event handlers, missing `data-key` in `each()`, nested `mount()`, and global `JSX.IntrinsicElements` augmentation. The plugin is AST-only (no parser-services dependency), so it works with any TypeScript-ESLint setup.
162
+
163
+ ```bash
164
+ npm install --save-dev eslint-plugin-kerfjs
165
+ ```
166
+
167
+ ```js
168
+ // eslint.config.js (flat config, ESLint v9+)
169
+ import kerfjs from 'eslint-plugin-kerfjs';
170
+ export default [kerfjs.configs.recommended];
171
+ ```
172
+
173
+ See [`eslint-plugin/README.md`](./eslint-plugin/README.md) for legacy `.eslintrc` config and per-rule docs.
174
+
159
175
  ## Links
160
176
 
161
177
  - **Site:** [brianwestphal.github.io/kerf](https://brianwestphal.github.io/kerf/)
162
178
  - **Docs:** [`docs/`](./docs/) — overview · reactivity · stores · render · events · jsx · svg · [API reference](./docs/8-api-reference.md)
163
179
  - **Migrating:** [coming from another framework?](https://brianwestphal.github.io/kerf/migrating/) — side-by-side TodoMVC translations + per-framework gotchas
164
180
  - **AI guide:** [`docs/ai/usage-guide.md`](./docs/ai/usage-guide.md) — reference for AI tools fetching kerf docs (linked from `llms.txt`)
181
+ - **ESLint plugin:** [`eslint-plugin/`](./eslint-plugin/) — `eslint-plugin-kerfjs`; four AST-only rules enforcing kerf hard rules at edit time
165
182
  - **Demo:** [live demo](https://brianwestphal.github.io/kerf/demo/) — eight sections exercising every primitive (counter, store-backed cart, focus survival, keyed list, morph-skip, SVG render, Tier-2 capture, `arraySignal` patches)
166
183
  - **Repo:** [github.com/brianwestphal/kerf](https://github.com/brianwestphal/kerf)
167
184
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kerfjs",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Tiny reactive UI framework — fine-grained signals + DOM morphing + JSX. Apply the smallest possible cut to update your DOM.",
5
5
  "type": "module",
6
6
  "sideEffects": false,