unstale

npm / @jupyter/ydoc

@jupyter/ydoc

What changed in @jupyter/ydoc 1 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-12.

5 breaking13 new APIs and options2 performance4 behavior and defaults1 tooling15 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.12 on npm

@jupyter/ydoc 48 changes

Breaking changes 2

  • The dirty argument is removed from methods.

    4.0.0release notes

  • Document changes set the dirty state automatically.

    4.0.0release notes

New APIs and options 2

  • Adds an optional finish event to aset_progressively.

    4.1.1release notes

  • The fromJSON API accepts a dirty parameter.

    4.0.0release notes

Behavior and default changes 2

  • Notebook cell source updates can now be made granularly.

    4.2.0release notes

  • Notebook loading streams content while delaying large outputs.

    4.1.0release notes

Fixes and other changes 2

  • Notebook JSON is serialized with deterministic key order.

    4.2.1release notes

  • State changes are emitted after content observers finish.

    4.2.1release notes

@jupyter/ydoc 330 changes

Breaking changes 3

  • The schema for notebook code cell stream output changed.

    3.0.0release notes

  • The Python requirement was updated to Python 3.8 or higher.

    3.0.0release notes

  • YBlob is stored as bytes instead of a base64-encoded string.

    3.0.0release notes

New APIs and options 10

  • Adds asynchronous document get/set so developers can access documents asynchronously.

    3.4.0release notes

  • A method to append stream output was added.

    3.0.0release notes

  • Awareness was added to the shared document interface.

    3.0.0release notes

  • Cell execution_state was added and exposed in the JS package.

    3.0.0release notes

  • A hash property with a getter and setter was added.

    3.0.0release notes

  • A method to remove stream output was added.

    3.0.0release notes

  • YDocument gained a source getter and setter.

    3.0.0release notes

  • Cell change objects gained a streamOutputChange attribute.

    3.0.0release notes

  • Transactions can now take an optional origin; the 'modeldb' origin is filtered out.

    3.0.0release notes

  • Y documents gained an undo_manager.

    3.0.0release notes

Performance 2

  • A fast path for initial set improves opening large textual files.

    3.4.1release notes

  • Slightly optimizes YNotebook.get by avoiding conversion of metadata for each cell.

    3.3.6release notes

Behavior and default changes 2

  • Reloading textual files now performs granular updates.

    3.3.2release notes

  • Notebook output stream initialization was improved.

    3.0.0release notes

Fixes and other changes 13

  • redo returns true if changes are done.

    3.4.1release notes

  • undo returns true if changes are done.

    3.4.1release notes

  • Deduplicates results on YNotebook.get calls.

    3.3.6release notes

  • Make ystate a property.

    3.3.5release notes

  • Fixes cell duplication when YStore diverges from disk.

    3.3.4release notes

  • Fixes handling of multi-byte Unicode in files.

    3.3.3release notes

  • Cells are hard-reloaded when their outputs change, including when the outputs include stream.

    3.3.1release notes

  • Fixes cell modifications causing cell output reload and a shift to the active cell index.

    3.3.0release notes

  • Fixes a regression where the default metadata structure was not being set, affecting syntax highlighting.

    3.2.1release notes

  • Preserves document_id state when setting notebook source.

    3.2.0release notes

  • Improves document reloading to avoid spurious side-effects.

    3.2.0release notes

  • Fixed assignment of the attachments change attribute.

    3.0.0release notes

  • createOutputs was fixed; the 'modeldb' origin was renamed to 'silent-change'.

    3.0.0release notes

@jupyter/ydoc 12 changes

New APIs and options 1

Tooling 1

  • Adds the py.typed marker to indicate that the package provides type information.

    1.0.0release notes