Skip to content

Migrate to @pierre/diffs 1.3.0-beta.10 editor attach flow #68

Description

@badcuban

Dependabot's bump to 1.3.0-beta.10 (#67) needs a real migration, not a version bump.

Done on the (closed) PR branch, reusable as a starting point:

  • EditorState no longer carries the document; editor.getText() replaces getState().file.contents
  • EditorProvider renamed EditProvider (same props)
  • Typecheck/lint pass with those changes

Outstanding: editor attachment semantics changed — the pierre editing browser tests fail with Error: Editor is not attached under beta.10. The new CodeViewCreateEditorOptions/createEditor factory in the beta.10 types suggests the attach wiring moved. FileEditorPane.tsx (production file editing) uses the same flow, so this needs a deliberate migration with browser-test verification before the bump lands.

Until then @pierre/diffs stays pinned at 1.3.0-beta.9 (catalog) and beta.10 is dependabot-ignored.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency file

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions