Skip to content

deps: bump chokidar from 5.0.0 to 6.0.0 - #679

Closed
dependabot[bot] wants to merge 1 commit into
nextfrom
dependabot/npm_and_yarn/next/chokidar-6.0.0
Closed

dependabot[bot] wants to merge 1 commit into
nextfrom
dependabot/npm_and_yarn/next/chokidar-6.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 28, 2026

Copy link
Copy Markdown
Contributor

Bumps chokidar from 5.0.0 to 6.0.0.

Release notes

Sourced from chokidar's releases.

6.0.0

High-level changes

  • Rewrote the watcher around a single observation pipeline. Backend callbacks are treated as invalidations and confirmed with lstat, stat, or readdir before any event is emitted, so the final state after a burst of changes matches the filesystem.
  • Added native recursive watching through fs.watch({ recursive: true }). The default auto backend uses it on macOS and Windows and per-directory watching elsewhere.
  • Shared native handles across watchers and opened them per directory only: files no longer own handles. This fixes EBADF errors when watching many files on macOS (#1385, #1452).
  • Replaced fs.watchFile with Chokidar-owned stat polling. Poll loops are shared across watchers at the fastest requested interval.
  • Required Node.js 22.22 or later.

API changes

  • Added the backend option: 'auto' (default), 'native', 'native-recursive', or 'polling'.
    • usePolling: true remains as a deprecated alias for backend: 'polling'.
  • Renamed interval and binaryInterval to pollingInterval and pollingBinaryInterval.
    • The old names remain as deprecated aliases; the new names win when both are given.
  • Changed the atomic default to false with polling. An explicit value is preserved.
  • Made close() terminal: add() now throws once closing has started. Construct a new watcher instead.
  • Validated options in the constructor: invalid backend, atomic, depth, awaitWriteFinish, and polling intervals throw TypeError.
  • Emitted errors from add() as error events instead of unhandled rejections (#1378).
  • Made getWatched() return a null-prototype object, so a watched directory named __proto__ is listed (#1493). Use Object.hasOwn() instead of hasOwnProperty() on the result.
  • Stopped applying ignored to directories above a path passed to watch() or add(), so a missing path is still watched through its parent (#1374). Other entries in those directories are still filtered.

Fixes

  • Fixed a 100% CPU loop when the process working directory containing a relatively watched file was deleted (#1474).
  • Fixed watching a filesystem root, which emitted unlink and unlinkDir for every entry (#1184, #452).
  • Fixed UNKNOWN errors from fs.watch on macOS sockets, which prevented watching /var/run (#1391).
  • Fixed a symlink whose target passes through a regular file (ENOTDIR) disabling watching of its directory and preventing ready (#1476).
  • Fixed files created in a newly added directory between its scan and watch registration being missed (#1471).
  • Fixed watching a missing nested path stopping its parent directory's subtree from being watched (#1470).
  • Fixed false change events on Windows when many sibling files are written (#1466).
  • Fixed duplicate add events for unchanged files under directory activity (#1465).
  • Fixed replacing a watched directory with a file of the same name hanging the process (#1464).
  • Fixed persistent watching stopping after a watched directory was removed (#1463).
  • Fixed a deleted watched path not being reported when recreated: previously only a deleted file that was the sole watched path was watched for its return. Any path passed to watch() or add() is now awaited from its nearest existing parent.
  • Fixed event throttling discarding updates; the newest differing change is now replayed when the window closes (#1455).
  • Fixed relative ignored paths; relative strings now resolve against cwd or the process working directory (#1436).
  • Fixed files not being detected when their directory did not exist before watching (#1422).
  • Fixed removed files being reported as unlinkDir instead of unlink (#1421).
  • Fixed ignored files and directories still being watched in WSL (#1418).
  • Fixed change being reported for every file when one file changed under Deno (#1417).
  • Fixed changes not being detected after the second save (#1399).
  • Fixed renaming a watched directory that contains subdirectories on Windows (#1380, #1398).
  • Fixed re-watching a path not honoring ignoreInitial (#1386).
  • Fixed EISDIR errors during the initial scan of network drives (#1376).
  • Fixed watching an array of absolute file paths (#1366).
  • Fixed unwatching a deleted watched directory on Windows, contributed by @​sapphi-red in [pull request #1467](paulmillr/chokidar#1467).
  • Documented that unwatched paths stay ignored until they are added again (#1439).

Misc

... (truncated)

Changelog

Sourced from chokidar's changelog.

6.0.0 (2026-10-19)

High-level changes

  • Rewrote the watcher around a single observation pipeline. Backend callbacks are treated as invalidations and confirmed with lstat, stat, or readdir before any event is emitted, so the final state after a burst of changes matches the filesystem.
  • Added native recursive watching through fs.watch({ recursive: true }). The default auto backend uses it on macOS and Windows and per-directory watching elsewhere.
  • Shared native handles across watchers and opened them per directory only: files no longer own handles. This fixes EBADF errors when watching many files on macOS (#1385, #1452).
  • Replaced fs.watchFile with Chokidar-owned stat polling. Poll loops are shared across watchers at the fastest requested interval.
  • Required Node.js 22.22 or later.

API changes

  • Added the backend option: 'auto' (default), 'native', 'native-recursive', or 'polling'.
    • usePolling: true remains as a deprecated alias for backend: 'polling'.
  • Renamed interval and binaryInterval to pollingInterval and pollingBinaryInterval.
    • The old names remain as deprecated aliases; the new names win when both are given.
  • Changed the atomic default to false with polling. An explicit value is preserved.
  • Made close() terminal: add() now throws once closing has started. Construct a new watcher instead.
  • Validated options in the constructor: invalid backend, atomic, depth, awaitWriteFinish, and polling intervals throw TypeError.
  • Emitted errors from add() as error events instead of unhandled rejections (#1378).
  • Made getWatched() return a null-prototype object, so a watched directory named __proto__ is listed (#1493). Use Object.hasOwn() instead of hasOwnProperty() on the result.
  • Stopped applying ignored to directories above a path passed to watch() or add(), so a missing path is still watched through its parent (#1374). Other entries in those directories are still filtered.

Fixes

  • Fixed a 100% CPU loop when the process working directory containing a relatively watched file was deleted (#1474).
  • Fixed watching a filesystem root, which emitted unlink and unlinkDir for every entry (#1184, #452).
  • Fixed UNKNOWN errors from fs.watch on macOS sockets, which prevented watching /var/run (#1391).
  • Fixed a symlink whose target passes through a regular file (ENOTDIR) disabling watching of its directory and preventing ready (#1476).
  • Fixed files created in a newly added directory between its scan and watch registration being missed (#1471).
  • Fixed watching a missing nested path stopping its parent directory's subtree from being watched (#1470).
  • Fixed false change events on Windows when many sibling files are written (#1466).
  • Fixed duplicate add events for unchanged files under directory activity (#1465).
  • Fixed replacing a watched directory with a file of the same name hanging the process (#1464).
  • Fixed persistent watching stopping after a watched directory was removed (#1463).
  • Fixed a deleted watched path not being reported when recreated: previously only a deleted file that was the sole watched path was watched for its return. Any path passed to watch() or add() is now awaited from its nearest existing parent.
  • Fixed event throttling discarding updates; the newest differing change is now replayed when the window closes (#1455).
  • Fixed relative ignored paths; relative strings now resolve against cwd or the process working directory (#1436).
  • Fixed files not being detected when their directory did not exist before watching (#1422).
  • Fixed removed files being reported as unlinkDir instead of unlink (#1421).
  • Fixed ignored files and directories still being watched in WSL (#1418).
  • Fixed change being reported for every file when one file changed under Deno (#1417).
  • Fixed changes not being detected after the second save (#1399).
  • Fixed renaming a watched directory that contains subdirectories on Windows (#1380, #1398).
  • Fixed re-watching a path not honoring ignoreInitial (#1386).
  • Fixed EISDIR errors during the initial scan of network drives (#1376).
  • Fixed watching an array of absolute file paths (#1366).
  • Fixed unwatching a deleted watched directory on Windows, contributed by @​sapphi-red in [pull request #1467](paulmillr/chokidar#1467).
  • Documented that unwatched paths stay ignored until they are added again (#1439).

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [chokidar](https://github.com/paulmillr/chokidar) from 5.0.0 to 6.0.0.
- [Release notes](https://github.com/paulmillr/chokidar/releases)
- [Changelog](https://github.com/paulmillr/chokidar/blob/main/CHANGELOG.md)
- [Commits](paulmillr/chokidar@5.0.0...6.0.0)

---
updated-dependencies:
- dependency-name: chokidar
  dependency-version: 6.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@cldmv-bot cldmv-bot Bot added type: dependencies Relates to dependency updates, version bumps, or package management and removed dependencies labels Oct 28, 2026
@Shinrai

Shinrai commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Superseded by #689. chokidar 6 needs Node 22.22, so that PR raises the engines floor along with the bump.

@Shinrai Shinrai closed this Nov 1, 2026
cldmv-bot Bot added a commit that referenced this pull request Nov 2, 2026
# Slothlet v3.24.0 Changelog

**Release Date**: November 2026
**Release Type**: Minor
**Branch**: `next` → `master`

---

## Overview

Version 3.24.0 finishes the identity half of the permission work that 3.23.0 started. 3.23.0 made the ownership rule hold wherever module code can write; 3.24.0 makes sure the code being checked is attributed to the module that actually wrote it. Code a caller hands to a leaf (a callback, a getter, a `toString`, a Proxy trap) now runs as the caller, with the leaf it runs inside as its ceiling, and code a module hands out (closures, factories, classes and their instances, iterators, accessors) runs as the module that made it, wherever it is called from later. Frames are placed by the file and the script that run them, so code compiled under another file's name is not that file's.

The rest of the release is fixes: `new` on a lazy folder that has not loaded yet now constructs the class, reading a cyclic object through `self` inside a module closes the cycle again, and the repository's development tooling moves to Node 22.22 while the runtime floor stays at 22.15.

Nothing changes in `dependencies`, `optionalDependencies`, `peerDependencies` or `engines`. With permissions on, some calls that used to be allowed because supplied code ran as the leaf are now refused; see Behavior changes and Upgrade notes.

---

## ✨ Features

### Code a module made runs as that module, whoever runs it ([#597](#597), [#624](#624))

- **Code a caller hands to a leaf runs as the caller.** A leaf that converts, reads or calls a value it was handed runs code the value carries: `String(v)` runs a `toString`, `v.x` runs a getter or a Proxy `get` trap, `fn()` runs a callback. That code is the supplier's, so it runs as the supplier, with the leaf it runs inside as its ceiling: both have to be allowed. The leaf keeps its own rights for its own code, and `metadata.caller()` / `metadata.self()` report the supplier inside supplied code.
- **Code a module hands out runs as that module.** Closures, factories, classes and their instances, iterators, Proxies and accessors a module returns or stores keep running as the module that made them, with no ceiling from whoever calls them later.
- **`permissions.ceiling`** (`"leaf"` by default). With `"chain"`, the ceiling keeps every leaf the code was handed through on the way, not only the one it is running inside, and all of them are enforced.
- **`permissions.provenance`** (`true` by default). A module's own function that reaches another module's call by a route slothlet does not see (a shared object, a global, a built-in it replaced) still runs as that module, with the call it runs inside as its ceiling. `false` turns this off.
- **Frames are held to their script.** Slothlet records the SHA-256 of the source each instance module was loaded from (`CallSite#getScriptHash()`), so code compiled with `vm` or `Module#_compile` under a module's file name is not treated as that module's code.
- **Getters and setters on api objects** run as their module and are checked as calls of their node.
- **Module-initiated `api.add` and `reload`** build the added module as no module's code, while the host's own calls in the meantime stay the host's.
- **Values no module made** (a package's exports, a `node:` built-in's, slothlet's runtime) are handed out as they are, and everything callable they reach is made by no module too. Package files record their exports as they finish loading, through Node's module load hook.
- **Works with 3.23.0's ownership rules.** Every ceiling is held to the same ownership and rule checks as the caller, a kept `lockCaller.caller` run from handed-out code pins its module, and a node removed from the tree leaves what it made without standing.

See [docs/PERMISSIONS.md](https://github.com/CLDMV/slothlet/blob/master/docs/PERMISSIONS.md#code-a-caller-hands-to-a-leaf-runs-as-the-caller) for the placement rules and their limits.

## ⚠️ Behavior changes

These only apply while the permission system is on.

- **Supplied code needs both the supplier and the leaf to be allowed** ([#597](#597)). A callback, getter or conversion a module hands to a leaf used to run with the leaf's rights. It now runs as the module that supplied it, under the leaf as a ceiling, so a `self.*` call from inside it is refused unless both may make it. Asking a permitted module to do something on its own account still works.
- **Handing over a leaf's own function is checked as calling it** ([#597](#597)). Passing another module a function slothlet wraps, alone or inside plain data, gates the receiving call as though the caller had called that leaf through `self`.
- **Accessors on api objects are checked as calls** ([#597](#597)). Reading or writing a getter or setter a module exports needs permission to call the api object that holds it.
- **A callback kept and run later from another flow is no longer tied to its supplier.** Pin it with `self.slothlet.lockCaller.caller(fn)` where it is registered, or have the supplier pin it with `self.slothlet.lockCaller(fn)` before handing it over.

## 🐛 Bug Fixes

### `new` on a lazy folder that has not loaded yet ([#685](#685), [#686](#686))

`new` on the stand-in a lazy folder hands out before it loads ran the engine's default construction on the stand-in: the constructor never ran, and every member of the object it returned was another stand-in. The stand-in now loads the chain and constructs its end, under the caller identity captured at `new`, and resolves to the instance. A stand-in held across `restart()` now resolves to the live end of its chain instead of building an object without the class's prototype.

A subclass's `super()` through a node that has not loaded, or is still loading, has to finish synchronously, which it cannot. It now throws `LAZY_SUBCLASS_BEFORE_LOAD` instead of handing back a broken instance; await the node first, or use eager mode.

### Cyclic members read through `self` close again ([#688](#688), [#694](#694))

Since 3.23.0, a plain object reached through `self` inside a module is a per-reader view held to the api path it was reached at. Views were cached per path, so following a cycle like `conn.self = conn` gave a longer path and a new view on every lap: `c.self.self !== c.self`, and deep equality (`isDeepStrictEqual`, `toEqual`) never found the cycle and ran until the stack ran out. A member read that walks back into a value already on its walk now gets that value's earlier view, so the cycle closes. A write round the cycle is held to that earlier, shorter path. Host reads are unchanged.

## 🔧 CI & tooling

- **Development needs Node 22.22; using slothlet still needs 22.15** ([#689](#689)). The dev toolchain (chokidar 6) needs Node 22.22, which now sits in `devEngines` and is CI's minimum Node version. `engines.node` stays `>=22.15.0`, the floor slothlet's own code needs (`module.registerHooks()` and `CallSite#getScriptHash()`).
- **CI test workers sized to the runner** ([#696](#696)). On CI the test runner now runs one worker per 3 GB of memory and per core (4 on GitHub's hosted runner) instead of a fixed 8, which had been starving the runner until GitHub dropped it mid-run. Local runs are unchanged.
- **devcheck removed from the repository** ([#684](#684)). The `slothlet-dev` export condition already picks `src/` or `dist/` in a checkout. Nothing changes for installed packages; devcheck has not been published since 3.22.1.

## 📚 Documentation

- [docs/PERMISSIONS.md](https://github.com/CLDMV/slothlet/blob/master/docs/PERMISSIONS.md): code supplied to a leaf, code a module hands out, `permissions.ceiling` and `permissions.provenance`, script binding and its limits, and how a cycle read through `self` is held to its paths.
- **NEW:** [docs/changelog/v3/v3.24.0.md](./v3.24.0.md), this changelog.

## 🔧 Dependencies

All dev-only ([#689](#689), superseding [#679](#679) and [#680](#680)):

- chokidar ^5.0.0 → ^6.0.0
- `@vitest/istanbul-lib-coverage` ^1.0.1 → ^2.1.0
- `overrides`: katex `>=0.19.1 <1.0.0` and minimatch `^11.0.3`, both pulled in through the eslint chain, for their advisories

---

## Upgrade notes

- Without a `permissions` config, nothing changes.
- With permissions on, code a module hands to another module's leaf is now checked as its own module under that leaf. If a supplied callback stops being allowed, grant the supplier the call it makes, or keep that work inside the leaf's own code.
- A callback a leaf stores and runs later (a timer, an event, a queue) needs `lockCaller` to keep its supplier's identity.
- To check every leaf supplied code passed through, set `permissions: { ceiling: "chain" }`.
- Subclassing a lazy node before it has loaded throws `LAZY_SUBCLASS_BEFORE_LOAD`: `await api.path` first and extend what it resolves to.
- Contributors need Node 22.22 or later to install and run the tooling; consumers still need 22.15 or later.



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>

---

<!-- coverage-start -->

![coverage](https://img.shields.io/badge/coverage-96.3%25-brightgreen?style=for-the-badge&logo=vitest&logoColor=white)

| Metric | Coverage |
|--------|----------|
| Statements | 96.6% |
| Branches   | 94.2% |
| Functions  | 96.6% |
| Lines      | 98.1% |

*Avg: **96.3%** · `8bee650` · Node lts/**

<!-- coverage-end -->

<!-- co-authors -->

Co-authored-by: Nathaniel H <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: dependencies Relates to dependency updates, version bumps, or package management

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant