Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.222 Home All releases olderv2.1.221 v2.1.223newer

File watcher no longer emits errors nobody is listening for

You'll notice
Useful3 Signal0
File Watcher not in their notes

File watching errors no longer blow up as unhandled crashes when nothing is listening for them.

ignorePermissionErrors
What

The watcher checks the error listener count before emitting, so a watch error or an error during a pending write can no longer surface as an unhandled 'error' event.

Details
  • Check sits alongside the existing ENOENT/ENOTDIR filtering and the ignorePermissionErrors option.
  • In the pending-write path, when no error listeners are registered the pending write is discarded rather than emitting an ERROR event.
Evidence

_pendingWrites, ignorePermissionErrors

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.222 →