Skip to content
Merged
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
8 changes: 8 additions & 0 deletions .changeset/dependency-baseline-refresh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@typeonce/effect-machine-devtools": patch
"@typeonce/oxlint-plugin-effect-machine": patch
---

Update the devtools file watcher to chokidar 6. The devtools CLI now requires Node.js 22.22 or newer.

Build the Oxlint plugin against `@oxlint/plugins` 1.90.0. The plugin still supports `oxlint` `>=1.80.0 <2`.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@
},
"devDependencies": {
"@changesets/cli": "2.31.0",
"@effect/vitest": "4.0.0",
"@types/node": "25.7.0",
"dprint": "0.55.2",
"effect": "4.0.0",
"@effect/vitest": "4.1.1",
"@types/node": "26.6.6",
"dprint": "0.64.3",
"effect": "4.1.1",
"pagefind": "1.5.2",
"tinybench": "2.9.0",
"tstyche": "7.2.1",
"tstyche": "7.2.5",
"typedoc": "0.28.20",
"typescript": "6.0.3",
"vite": "8.1.5",
"vitest": "5.0.1"
"vite": "8.3.5",
"vitest": "5.0.5"
}
}
2 changes: 1 addition & 1 deletion packages/devtools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pnpm add --save-dev @typeonce/effect-machine-devtools@latest

When pinning a release instead of using `latest`, use the same explicit version for both packages.

The current release requires Node.js 22.19 or newer and stable Effect `^4.0.0`.
The current release requires Node.js 22.22 or newer and stable Effect `^4.0.0`.

The CLI brings its own TypeScript parser and Vite server, so a project does not need to install either. They are regular dependencies with ranges (`typescript` `>=5.9.0 <7.0.0`, `vite` `^8.1.5`), so a package manager can reuse a compatible version the project already has. The project can use any TypeScript version, including TypeScript 7. Devtools only parses source files with the JavaScript compiler API, which TypeScript 7 does not ship, so it keeps its own 5.9–6.x copy in that case.

Expand Down
8 changes: 4 additions & 4 deletions packages/devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@effect/platform-node": "^4.0.0",
"@effect/platform-node-shared": "^4.0.0",
"@typeonce/effect-machine": "workspace:^",
"chokidar": "4.0.3",
"chokidar": "6.0.0",
"elkjs": "0.12.0",
"typescript": ">=5.9.0 <7.0.0",
"vite": "^8.1.5"
Expand All @@ -45,8 +45,8 @@
"effect": "^4.0.0"
},
"devDependencies": {
"@types/node": "25.7.0",
"effect": "4.0.0",
"@types/node": "26.6.6",
"effect": "4.1.1",
"tsx": "4.21.0"
},
"files": [
Expand Down Expand Up @@ -74,6 +74,6 @@
}
},
"engines": {
"node": ">=22.19.0"
"node": ">=22.22.0"
}
}
4 changes: 2 additions & 2 deletions packages/devtools/src/internal/devServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ export const acquireWatcher = (
export const watcherOptions = (options: DevServer.Options): ChokidarOptions =>
({
ignoreInitial: true,
interval: 200,
usePolling: options.watchPolling ?? false,
backend: options.watchPolling === true ? "polling" : "auto",
pollingInterval: 200,
ignored: (file, stats) => isIgnored(file) || stats?.isFile() === true && !sourceExtension.test(file)
}) satisfies ChokidarOptions

Expand Down
5 changes: 3 additions & 2 deletions packages/devtools/test/DevServer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { watcherOptions } from "../src/internal/devServer.js"
describe("DevServer", () => {
it("uses native file-system events unless polling is requested", () => {
const options = { root: "/project", host: "127.0.0.1", port: 5173 }
assert.strictEqual(watcherOptions(options).usePolling, false)
assert.strictEqual(watcherOptions({ ...options, watchPolling: true }).usePolling, true)
assert.strictEqual(watcherOptions(options).backend, "auto")
assert.strictEqual(watcherOptions({ ...options, watchPolling: false }).backend, "auto")
assert.strictEqual(watcherOptions({ ...options, watchPolling: true }).backend, "polling")
})
})
14 changes: 7 additions & 7 deletions packages/effect-machine-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@
"react": ">=19.0.0 <20.0.0"
},
"devDependencies": {
"@effect/atom-react": "4.0.0",
"@effect/atom-react": "4.1.1",
"@testing-library/react": "16.3.0",
"@types/react": "19.2.16",
"@types/react-dom": "19.2.3",
"effect": "4.0.0",
"jsdom": "27.2.0",
"react": "19.2.7",
"react-dom": "19.2.7",
"tstyche": "7.2.1",
"effect": "4.1.1",
"jsdom": "30.1.3",
"react": "19.3.1",
"react-dom": "19.3.1",
"tstyche": "7.2.5",
"typescript": "6.0.3",
"vitest": "5.0.1"
"vitest": "5.0.5"
},
"engines": {
"node": ">=20"
Expand Down
10 changes: 5 additions & 5 deletions packages/effect-machine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@
"effect": "^4.0.0"
},
"devDependencies": {
"@effect/vitest": "4.0.0",
"@types/node": "25.7.0",
"effect": "4.0.0",
"@effect/vitest": "4.1.1",
"@types/node": "26.6.6",
"effect": "4.1.1",
"tinybench": "2.9.0",
"tstyche": "7.2.1",
"tstyche": "7.2.5",
"typescript": "6.0.3",
"vitest": "5.0.1"
"vitest": "5.0.5"
},
"engines": {
"node": ">=20"
Expand Down
6 changes: 3 additions & 3 deletions packages/oxlint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@
"oxlint": ">=1.80.0 <2"
},
"dependencies": {
"@oxlint/plugins": "1.80.0"
"@oxlint/plugins": "1.90.0"
},
"devDependencies": {
"oxlint": "1.80.0",
"oxlint": "1.90.0",
"typescript": "6.0.3",
"vitest": "5.0.1"
"vitest": "5.0.5"
},
"engines": {
"node": ">=20.19.0"
Expand Down
Loading
Loading