Skip to content

Releases

v0.141.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 19:55
980531a

Upgrade path: 0.140 → 0.141. A text or
richtext field declaring multiline: fails to load as
quill::field_parse_error, its hint naming shape:, and schema() and the
transform schema carry shape alone, without multiline;
QUILLMARK_MULTILINE_KEY is removed. An unquoted value whose text is not the
number YAML reads it as, such as 0012, 1.50 or +15551234567, is held as
the text written, through aliases and merges too, so a text field prints
0012; a number or integer field reads the number it did. quillmark_pdf::stamp
returns Stamped { pdf, warnings } and warns pdf::widgets_untagged when a
tagged base's structure tree keeps the widgets out, and quillmark_docx::lower's
CODE_* constants are removed in favour of notice::Code. The repository and
packages move to github.com/birdorbs.

  • feat(core)!: remove the legacy multiline spelling of a text field's shape
  • fix(core)!: a value YAML reads as a number keeps the text written, so a text field holds 0012
  • fix(core): a numeric spelling follows aliases and merges, and a shadowed one stays out
  • fix(core): a key a mapping holds itself shadows the spelling a merge brings
  • feat(pdf)!: warn pdf::widgets_untagged when a tagged base's tree keeps the widgets out
  • refactor(docx)!: lower's CODE_* constants are gone
  • chore(deps): one toml and one comemo in the graph
  • chore: point repository URLs at birdorbs

v0.140.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 02:31

Upgrade path: 0.139 → 0.140. Word is a
fourth output format: docx renders any Typst quill, unchanged, as a Word file
laid out by Word, with a docx:: warning wherever it carries less than the
PDF, and qm.hints, one function per hint kind, lets a quill give Word live
numbering, paragraph styles, keeps and font substitutes; a label whose printed
text is not the number Word counts stays text with docx::label_mismatch, and
a hint value of the wrong type fails the compile. The new quillmark-docx
crate writes it. A quill declares main and each card kind as peers of one
schema: block, and quill.schema is keyed by kind with no card_kinds
level; a top-level main: or card_kinds: fails as quill::unknown_section.
ui.layout: flat and the retired spellings fail to load, and an acroform quill
reads its field spec from Form.yaml alone.

  • refactor(typst): qm.hints is one function per hint kind
  • fix(typst): a hint value of the wrong type fails the compile, and a list hint states no version
  • fix(docx): a table's last row keeps its height when its cells are empty
  • feat(docx): check a label hint against its printed text, so value goes
  • fix(docx): a clipped justified paragraph stays text between its edges
  • fix(docx): an image inside a box in a line of text is placed
  • fix(docx): a ligature is measured as the letters Word sets, so a tight box or cell holds its line
  • fix(docx): a table row is as tall as Typst sets it, and an empty cell adds no height
  • fix(docx): spacing Typst sets between runs is a space or a tab, and a stack's lines keep their breaks
  • fix(docx): letter spacing is carried as the run's character spacing
  • feat(docx): the Word file carries the language its text is set in
  • fix(docx): a drawn rule or filled box anchored to the page is reported
  • fix(docx): a "Page N of M" footer keeps its page field on the last page, and an unfielded page number is reported
  • test(docx): a document the probes would move is read without them
  • fix(docx): a page that sets its own foreground keeps its margins
  • fix(docx): a label Word does not count keeps no list number of its own
  • test(docx): the hinted numbered_letter face raises no font_not_embedded
  • feat(docx): a hinted font with no Word clone is named as its alt
  • fix(docx): keep the space above a paragraph inside a table cell
  • feat(core)!: a quill declares main and each card kind as peers of one schema block
  • test(docx): snapshot only what lowering decides from a block's neighbours
  • test(docx): pin where a keep, a table's gap and a contents entry's space resolve
  • refactor(docx): name the reader's brackets by an enum, not by string
  • refactor(docx): read a table cell and a grid cell in one place
  • refactor(docx): settle what a block asks of its neighbours in one pass over a flat list
  • refactor(docx): one notice code per loss, with its message, tallied in one place
  • refactor(docx): read sections, page numbers and strides once, outside the walk
  • refactor(docx): split lowering into a module per concern
  • refactor(docx): one item push and one assumed page setup in the reader
  • refactor(docx): build a nested scope's context from the default
  • refactor(docx): one raised test, and a node chain that borrows its kinds
  • refactor(docx): read the page of the block before in one place
  • refactor(docx): make every fixed-height paragraph with spacer
  • refactor(docx): map a layout number format to Word's in one place
  • refactor(docx): find a table's own cells in one place
  • test(docx): pin the lowered Word model of each case with a snapshot
  • fix(docx): a table gap that goes to the level above leaves later ones to settle
  • docs(docx): one line in a block with no paragraph break keeps a left indent
  • fix(docx): a content-sized column grows only by what its widest line lacks
  • fix(docx): a content-sized column has a twip per character to spare
  • fix(docx): a break to an odd or even page starts a section of that parity
  • fix(docx): form fields, in-flow columns and right-to-left text are reported
  • fix(docx): a hint around what it cannot apply to raises docx::hint_unchecked
  • fix(docx): a section that changes only its chrome mid-flow starts on the same page
  • fix(docx): a section with no header or footer writes an empty one
  • fix(docx): an anchor paragraph forces a page break only for a page with no flow
  • fix(docx): widow and orphan control is on for every paragraph
  • fix(docx): a paragraph Typst put at a page top keeps its siblings' space before
  • fix(docx): a one-line paragraph takes its indent kind from where Typst starts it
  • fix(docx): an equation is a picture, and a superscript joins its line
  • fix(docx): a content-sized column is as wide as its text set without kerning
  • fix(docx): two tables in a row keep the gap between them and stay two tables
  • fix(docx): an inline raw line stays in its paragraph
  • feat(docx): block quotes, captions, term lists and raw blocks as Word has them
  • docs(docx): the Word section says what the export does and what it does not yet
  • fix(docx): hyperlink targets are URIs, script links are plain text, and the test-only zip reader leaves the crate
  • fix(docx): a table's gap is to its first baseline, mirrored ink is a picture, notices once, internal links reported
  • fix(docx): a picture of ink is bounded by the page, and a failed one is reported
  • fix(typst): a failed session update leaves the Word export of the served document
  • fix(docx): an em size with no block around it resolves at the page's text size
  • fix(docx): the newline probe no longer keeps a space before a line break
  • fix(docx): the footnote rule is left to Word and never reaches a header
  • fix(docx): an outline's leader is its tagged repeat, and the number follows it
  • fix(docx): a page with no flow anchors its own objects
  • fix(docx): a section per page numbering, with the page number as a field
  • fix(docx): text no element tags is a paragraph per line, with a notice
  • fix(docx): a heading whose show rule breaks the page keeps its style
  • fix(docx): a block starts its own paragraph, and an align bracket aligns it
  • feat(docx): an outline is a TOC field holding the PDF's entries
  • feat(typst): quill hints for live numbering, roles, tabbed lines, chrome, keeps and faces
  • fix(docx): measure pitch, header distance, gutter, table edges and cell fields instead of assuming them
  • fix(docx): carry list formats, footnote numbers, forced breaks and pictured ink from Typst's own fields
  • feat(docx): lower the layout tree to Word paragraphs, lists, tables and chrome
  • feat(typst): read the probed compile into a layout tree
  • feat(typst): the Word export reads a probed second compile
  • feat(typst)!: Word export as the fourth output format
  • feat(docx): a typed Word model and its deterministic writer
  • perf(content): convert a narrow change on a narrow value without a run
  • fix(core): number YAML error lines as the document does
  • fix(typst): the helper's manifest declares Typst 0.15.0 (#2495)
  • Add an issue form for what Quill.yaml cannot declare (#2490)
  • docs: link the playground at play.quillmark.dev
  • refactor(core)!: ui.layout: flat, the retired spelling messages and the acroform legacy spec names are gone
  • fix(pdf): an acroform stamp renders on every valid tagged base
  • docs: state the four pre-1.0 promises in README Status

v0.139.0

Choose a tag to compare

@github-actions github-actions released this 16 Nov 00:03
918c6b4

Upgrade path: 0.138 → 0.139. The typed
writer refuses a member a typed dictionary's properties, or every world of a
variant-bearing enum, leaves undeclared, as edit::unknown_field at the
member, where it stored a value nothing drew or rendered. A member the stored
value already carries, equal, still lands.

  • fix(writer)!: the typed writer refuses a member its group or variant leaves undeclared (#2487)

v0.138.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 00:07
0bbc52e

Upgrade path: 0.137 → 0.138. A newline
inside a Markdown paragraph is a line break, where it was a space, so a body
hard-wrapped in its source prints its wraps. A text or richtext field
declares shape: line | lines | blocks where it declared multiline, which
loads one more release with a quill::deprecated_multiline warning; shape: lines on a richtext is new, formatted lines where block syntax prints as
typed. YAML reads only the 1.2 Core casings as booleans and nulls, so tRue
is text. isLines and importMarkdown(markdown, shape) judge and read a
value as a field of that shape does, and quillmark_content::view::layout
and the line form's Markdown adapters are removed.

  • chore(deps): hayro 0.8 (#2484)
  • chore(deps)!: serde-saphyr 2.1, where only YAML 1.2 Core casings read as booleans and nulls (#2482)
  • fix(wasm): importMarkdown's shape is optional in its TypeScript signature
  • feat(bindings): isLines, and importMarkdown reads a string as a shape does
  • docs(migrations): the 0.137 → 0.138 guide names the removed view::layout
  • fix(content): a line opening an HTML block in a field of lines reads as text
  • chore(deps): Bump 6 of the cargo group with wasm-bindgen-cli 0.2.130 (#2479)
  • chore(deps-dev): Bump vitest in /crates/bindings/wasm in the npm group (#2453)
  • chore(deps): Bump the actions group across 1 directory with 2 updates (#2407)
  • test(wasm): a line break exports as a newline
  • feat(core)!: a text field declares a shape, and a newline is a line break
  • refactor(content)!: the line form's markdown adapters are gone
  • test(content): the export's tests read the model
  • test(content): the import walk's tests read the model
  • refactor(typst): the backend's tests build the model
  • refactor(core): cards and their tests hold the model, not the line form
  • refactor(content): the markdown import walk builds the model
  • refactor(content): the markdown import walk lives under markdown
  • refactor(content): the export probes read a model import
  • fix(content): an escaped <p> in an HTML table cell reads as text
  • refactor(content)!: quillmark_content::view::layout is removed
  • refactor(content): renderers read a table's layout off the island
  • refactor(content): marks and tables normalize on the model
  • refactor(content): the bidi and admit character rules stay crate-private
  • refactor(content): the markdown codec's own modules live under markdown
  • refactor(content): anchors and the revise carry stand on the model alone
  • refactor(content): IslandType lives in model and the table layout readers in table
  • refactor(core): resolve schema addresses through one QuillConfig::field_at
  • feat(typst): form-field widgets carry a /TU tooltip

v0.137.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 13:17
8102f09

Upgrade path: 0.136 → 0.137. Acroform
boxes with an option: stamp as one radio field whose value is the enum value,
and bound fields naming one schema_field stamp as one field named by the
first. A write now mints a new block id from a digest of the value it lands on
(b and six base32 characters), so a retired id never returns; block ids are
opaque, and import still numbers them positionally. blocks and applyBlocks
read and edit a content value's blocks by id.

  • test(content): drop the removed tagged read from the block id speed probe
  • refactor(content): leave the model-facing tagged read to the host
  • test(bindings): a minted block id is a digest, not the next number
  • feat(content): a write mints a new block id from a digest of the value it lands on
  • feat(wasm): blocks and applyBlocks
  • feat(content): read blocks by id and edit them with replace, insertAfter and delete ops
  • feat(typst): export PDF/UA-1 wherever the document conforms
  • feat(pdf): tag stamped widgets into a tagged base's structure tree
  • ci(release): PyPI publishes on every release
  • fix(content): a fence under searches the lines after its own for its closer
  • docs(migrations): add the 0.136 → 0.137 guide for acroform radio groups and shared fields
  • feat(acroform)!: boxes binding one schema field stamp as one field, option boxes as a radio group
  • feat(docs): publish a JSON Schema for Quill.yaml
  • chore(content): keep the anchor proptest regressions, drop a local one
  • feat(content): read HTML formatting tags and reference links in table cells
  • fix(typst): a font run stays reachable to a plate walking content
  • test: share the AcroForm field walk and collapse the hit-tolerance openers
  • test(core): let the authoring fixed point name a mark markdown cannot write
  • fix(fixtures): alt text on usaf_memo seals, no empty status_report headings
  • refactor(core): TypedReader::at reads the main card or a card through one CardReader

v0.136.0

Choose a tag to compare

@github-actions github-actions released this 08 Nov 19:54
9ba96d5
  • feat(content,core)!: an anchor id opening with ~ is transient and never stored
  • docs(migrations): add the 0.135 → 0.136 guide for the dropped Rust API
  • docs(prose): collapse the canon into one invariants page
  • refactor(core,content)!: drop public API no consumer calls
  • fix(content): a revise imports every row of the tables its value holds
  • refactor(core,content)!: drop the export::lost_construct helper nothing produces
  • docs(canon): the lenient stored read stays within a major
  • chore(python): drop the unreferenced quill_demo example
  • test: build content in the model encoding outside the v1-row tests
  • ci(canon): fail a canon file path that resolves to nothing
  • docs(canon): true rotted paths, names and claims in CONVERT, SCHEMAS, PLATE_DATA and PREVIEW
  • docs(content): the line form's module docs name who reads it
  • refactor(content,core): drop dead line-form and hidden CardMut helpers

v0.135.0

Choose a tag to compare

@github-actions github-actions released this 06 Nov 14:26
10be271

Upgrade path: 0.134 → 0.135. Core is
single-writer: a write under a stale base throws edit::stale_base where it
rebased, and writers that answer late merge through @quillmark/collab.
Saves move to quillmark/document@0.135.0, which a 0.134 build refuses, so
every reader of a store upgrades before any writer. Breaks no type checker
reports: a write refuses a Content that normalize would rewrite, an
anchor step naming a held id needs move: true, and a conformed text
field stores as content spelling codec: "plain", so its stored value and
hash change.

Single writer

  • refactor(core)!: core is single-writer; a stale base refuses. A
    write's base is the hash its writer read. A value that hashes otherwise
    refuses with edit::stale_base, carrying current, and writes nothing.
    The rebase engine (quillmark_content::rebase), the per-card change log,
    read_at, the structural document merge and Receipt::rebased are gone,
    and edit::rebase_conflict is retired. The writer's revise and
    reviseDocument take { baseHash } alone in WASM and base_hash= in
    Python; baseMarkdown is gone. EditError::StaleBase(StaleBase) and
    BoundParseError::StaleBase carry the refusal.
  • refactor!: collab policy leaves core. Core says which repair
    write-backs land twice (Repair::inserts) and leaves who writes one back
    to @quillmark/collab. The Delta type leaves @quillmark/wasm, since no
    verb takes or answers one.

Ids

  • feat(content)!: a write mints the ids its change leaves open. A record
    a change puts may carry a placeholder id opening with ?, which the write
    fills and names in the receipt's new minted; a value holding such an id
    is invalid. The mint module and ids::is_placeholder are new.
  • feat(core)!: a write mints from the value it lands on, never from the
    card's history of writes, so one write over equal values stores equal
    bytes on every card.
  • feat(core)!: addCard and unchecked.insertCard answer the placed
    card's $id
    : CardAdded { id, warnings } in Rust and WASM, a dict in
    Python.
  • fix(content): a mint past an id at the top of u64 takes the lowest
    number free under its prefix, where it overflowed.

Structural edits

  • feat(wasm)!: the structural edits are Document verbs.
    doc.splitBlock, joinBlocks, deleteRange, indent, outdent and
    wrap write and answer a Receipt, refusing a stale base, where module
    functions answered a Change. diffRange(before, after, { from, to })
    lowers the range a ProseMirror ReplaceStep names as one exact splice, and
    doc.blockAt(addr, offset) answers the block at an offset. In Rust,
    gestures is structural, Gesture is StructuralEdit, Edit::Gesture
    is Edit::Structural, and Card gains the verbs, block_at and
    diff::diff_range.

One spelling per value

  • feat(content)!: a write takes a Content only in its canonical form.
    Every verb taking one but normalize refuses a value normalize would
    rewrite (Invariant::NotCanonical). A stored row reads leniently through
    Content::from_value_lenient, warning content::noncanonical_read at each
    rewritten value so the host stores it again.
  • feat(content)!: a value, change or step holding a key its shape does
    not define is refused
    (ParseError::UnknownKey), a remove step holding
    its set twin's keys included, and a built-in member's attrs hold only the
    entries it names. Island props and x- attrs stay open; a stored value
    drops the key and warns.
  • feat(content)!: a table cell and a footnote's note are each one
    paragraph
    , its lines parted by U+2028. <br><br> and a <p> boundary
    in a cell import as one hard break, a value holding a \n there is
    refused (Invariant::BreakInCell), and a stored read and repair join
    one.
  • feat(core)!: every write on Document validates. A content value in a
    field, at any depth, decodes and stores canonical as a body's does, and an
    invalid one throws edit::field_decode. The writes no schema checks move
    under unchecked: doc.unchecked.storeField and insertCard in WASM,
    doc.unchecked.store_field and insert_card in Python, doc.unchecked()
    in Rust.

Text fields

  • feat(core)!: a text field is stored as content spelling codec: "plain", so it holds comment anchors and ids, and toMarkdown writes
    its literal text. getStored answers the object and reader.get the
    literal text. field_hash hashes the content, Invariant::NotPlain
    refuses a plain value holding a mark, island, container or block other
    than a paragraph, and reattach answers a whole-field selector as
    reattached, so a comment can sit on a field of any type.
  • fix(content)!: the plain codec spells a paragraph break as a blank
    line
    and a hard break as a lone \n, both ways.
  • fix(core): a typed revise of a text field still at rest as a string
    answers one splice over its literal text.

Anchors

  • feat(content)!: an anchor step places or moves, never both.
    {id, start, end} refuses an id the value holds (ApplyError::AnchorHeld),
    and move: true moves the held one. AnchorStep::Set is Place and
    Move.
  • feat(content)!: movedAnchors names every surviving anchor a write
    moved
    , a point included, each with a reason: position, block or
    context.
  • feat(content)!: anchor contexts read off the stored text: a selector's
    quote, prefix and suffix spell a hard break U+2028 and a cell's
    block break one \n. reattach places a selector in either spelling.
  • fix(content): a revise carries anchors through one word diff. Word
    tokens follow UAX #29 boundaries with each punctuation mark its own, a
    replaced run's lines pair by greatest similarity, and a quote moves within
    text the revise itself inserted.

Revise and markdown

  • feat!: the body is an address. writer.revise(addr, text, opts)
    replaces reviseBody and reviseField (Python writer.revise(text, field=None, card=None)), reader.get and getContent read the body with
    no field, and Rust's typed writers and readers take a Target in
    revise, hash_of, get and get_content.
  • feat(core)!: the writer's revise answers the content Receipt,
    { applied, hash, droppedAnchors, movedAnchors, warnings, minted }.
    Revised is gone: mapPos maps a position through applied, and
    reattach takes each path's applied.
  • feat(wasm,python)!: one markdown door each way. Document.parse
    replaces fromMarkdown, and doc.toMarkdown(addr?, { annotated })
    replaces toAnnotatedMarkdown, annotatedAt, annotated and
    bodyMarkdown. An annotated export answers { markdown, anchors }, and
    DocumentRevised.dropped_anchors holds the selectors reattach takes.
    Python gains import_markdown, export_markdown, normalize,
    is_inline and is_plain.
  • feat(core)!: every revise is the content revise. A typed
    reviseField or reviseDocument relocates a moved quote of four
    characters or more, a text field diffs by word, a typed richtext
    revise refuses to drop an x- island, and reviseDocument keeps a value
    whose markdown would not validate, warning edit::content_apply at its
    path.
  • fix(content): formatting inside a link's text writes inside its
    brackets, so a revise keeps it, and to_markdown_checked names an x-
    block or mark among its losses (Loss::ExtBlock, Loss::ExtMark).
  • fix(content): a revise of a short paragraph keeps its neighbours'
    records
    : lines pair by the diff's word tokens, and a rewrite of the first
    block keeps the \n that opens the next.
  • feat(core): edit::content_apply names its failure in reason
    (stale, unknown_block, anchor_held, bad_step, invalid and the
    rest), with the step it refuses at for stale and bad_step.

Repair and mapping

  • feat(content)!: repair answers its change, {content, repairs, change}, from the merged state, so a peer maps a caret through it.
    repair::change_in counts it in a host's units, and Python gains
    repair. A range anchor on a heading's repaired hard break shrinks off it.
  • fix(content): a position maps through an island a change moves, each
    removal paired with the insert that carries its slots, and invert's
    inverse splice carries what it deletes.

Bounds

  • feat(content)!: content values, changes and markdown are bounded at
    every door
    : marks per text (64, plus 4 per character), 100 000 anchors
    per value, 10 MiB of markdown per import and of text per binding input,
    16 384 steps per change, and 1 000 000 characters of footnote note copies.
    Each refuses under its own code (edit::too_many_marks,
    too_many_anchors, input_too_large, too_many_steps); a note
    reference past the budget stays as its text, warning footnote:size.

Storage and the line form

  • feat(core)!: saves write quillmark/document@0.135.0, whose content
    values may carry codec, so a 0.134 build refuses a row 0.135 saves. A
    0.134.0 row loads unchanged.
  • feat(core): a line-form value loads migrated, and warns. A v1 body,
    field at any depth or $seed value, under any tag, loads as the content
    model with content::noncanonical_read at its path, so a resave over
    every row finds and rewrites the rows still holding the line form. A
    $ext value stays as stored.
  • refactor(content,core)!: one content model. quillmark_core::Content
    is the content model, and the line form lives under the hidden
    quillmark_content::lines. Markdown import and export, the Typst emitter,
    acroform, card bodies and a revise's anchor carry read the model, with
    output unchanged across the parity corpus. quillmark::Lines, Delta and
    the line-form verbs (body_lines, overwrite_body, revise_body_content
    and their kin) are gone;...
Read more

v0.134.1

Choose a tag to compare

@github-actions github-actions released this 02 Nov 03:34
8bd7351
  • feat(wasm): repair(raw) reads a merged state as a valid value. It
    takes a RawContent, offsets in UTF-16 code units, and answers Repaired:
    the content and the Repairs it made, inserts: true on one a single
    writer writes back. An offset inside a character moves to its start, one
    past the text to its end. The runtime exports RawContent, Repair,
    Repaired, Pos, MapResult and WrapKind.
  • fix(content): diff edits a table's cells before its props, so a
    change merging or splitting cells lands its spans.

v0.134.0

Choose a tag to compare

@github-actions github-actions released this 02 Nov 02:18
f8fed89

Upgrade path: 0.133 → 0.134. Every
content value is the content model, and offsets in content values and changes
cross WASM in UTF-16 code units, where they counted scalar values. Python's
revise_body, revise_field and revise_document return a dict receipt,
where they returned a list of Diagnostic, so a loop over the result runs
over its keys: read receipt["warnings"].

Content v2

  • feat(content)!: the content model. One value per body or richtext
    field: flat text, blocks and containers with ids, marks, anchors apart from
    marks, and islands whose cells and notes are slots of nested content.
    Nothing derived is stored: an item's number is computed, and runs are told
    apart by container id. The line form moves under quillmark_content::lines
    and stays what the renderers and markdown codecs read; migrate moves
    values between the two, minting ids deterministically.
  • feat(content)!: the line form's op lane is removed. lines::ops
    (ChangeBundle, LineOp, MarkOp, IslandOp and their decoders),
    Card::apply_body_change, Card::apply_field_change, the Normalized
    apply_* methods and EditError::ContentApply go: a Change through
    Card::apply is the one edit. quillmark::session no longer re-exports
    them. The parity corpus's op-wire cell reads the Change diff takes
    from the empty value.
  • feat(content): Change, the one way a value is edited. Splice,
    setBlock, container, mark, anchor, island and nested steps,
    with invert, compose, map_pos and a word-aligned diff, each a
    property-tested law. A change yields a valid value or fails and changes
    nothing.
  • feat(content)!: a block's record rides the \n that opens it. A
    split names the right half and the left keeps its id, so Enter at the end
    of any block, the last included, leaves the text on its id; a join keeps
    the left block's id and kind. blocks[0] is the record no splice reaches,
    so diff and replace keep the stored first id, and repair gives the
    first piece of a block it splits beside an island the block's record.
  • feat(content): gestures::split_block and join_blocks build Enter
    and Backspace as one splice each, inserting ahead of a block's opening
    \n at its start so the text keeps its id.
  • feat(content): gestures::inherited_marks(content, at) answers the
    marks typed text carries: strong, emph, underline and strike grow
    at their end, code, link and an x- mark at neither edge,
    font_family at both.
  • feat(bindings)!: every WASM offset is UTF-16. A region's span,
    positionAt's and locate's pos, a typed revise's Revised.delta and
    the deltas reattach takes count in UTF-16 code units, as content values
    and changes do; core takes a host's units through LiveSession::*_in,
    Engine::render_in, Revised::delta_in and Document::reattach_in.
  • feat(content): repair makes a merged state valid. A missing
    container leaves a path, a container under two paths takes its first
    block's, a later run gets a derived container, an orphan slot or record
    goes, text beside a table splits off, and a collapsed range anchor is
    dropped. Total and deterministic.
  • feat(content): repair is how a merged state reads, and a write-back is
    optional.
    Peers holding one merged state compute one value without
    writing. Any peer may write back a repair that only deletes or sets; one
    that inserts (a block split beside an island, a heading's hard break, a
    missing cell) is written back by a single writer, since two peers would
    each insert their own. Repair::inserts says which, inserts: true on
    the wire, and a missing cell reports Repair::EmptyCell.
  • feat(core)!: storage moves to quillmark/document@0.134.0, each body
    and richtext field the content model. An older row loads migrated, with the
    same ids on every load. A value holds each anchor id once over its text
    and every slot, so a stored value holding one twice loads keeping its
    first holder.
  • feat(core)!: Card::apply, revise and replace write a body or
    richtext field and answer a Receipt: the applied change, the new hash,
    and the dropped and moved anchors. Each takes the hash its writer read and
    refuses a stale one with edit::stale_base. Card::write takes the
    Edit each builds its change from, and write_in takes a host's units.
  • feat(wasm)!: doc.read, apply, revise, replace, annotated and
    hash(addr), and invert and diff
    , offsets in UTF-16 code units.
    Every content payload crossing the binding is the model. overwrite,
    reviseContent, applyChange and mapMarks are removed: call replace
    and apply. compose, rebase and repair stay unbound until the
    editor or collaboration calls them.
  • feat(wasm)!: the editing gestures and mapPos(change, pos, assoc?).
    splitBlock, joinBlocks, deleteRange, indent, outdent, wrap and
    inheritedMarks take a Content and answer the Change to apply, offsets
    in UTF-16. mapPos carries a position across a Change, where it took a
    line delta, and answers a MapResult.
  • feat(python)!: the same surface in snake case, offsets in code points.
  • feat(core)!: a content write names its card by $id. An id no card
    holds refuses with edit::unknown_card_id. Document::card_index and
    card_by_id find a card by id. WASM Addr.card and Python card=
    take a card's $id on every verb, and apply, revise and
    replace take nothing else, so a card moved or inserted between a read and
    its write, its body equal to the one read, no longer takes the write.
  • feat(content)!: the receipt names every anchor a change loses. An
    island a splice deletes, or a slot a props step no longer names, names the
    anchors of its slots, each with the island and slot that held it.
    revise and replace name every anchor they lose; apply every one but
    those its own anchor steps removed. Applied.dropped and
    Receipt.dropped_anchors are change::Dropped, an AnchorContext and a
    SlotRef; WASM spells it DroppedAnchor.
  • feat(content)!: diff refuses an invalid target. diff and replace
    return the Invariant an invalid after breaks, where they returned zero
    steps, and reach every valid one step-wise. WASM and Python diff answer
    the Change.
  • feat(content)!: every offset-addressed step can hold to what its writer
    read.
    mark steps and an anchor placement take an optional quote,
    the text their range covered, and an island insert an optional block,
    the id of the block it lands in; a mismatch is ApplyError::Stale, as a
    splice's delete is. Applied.applied and invert fill both in.
    MarkStep::Add, MarkStep::Remove, AnchorStep::Set and
    IslandStep::Insert carry the new fields.
  • feat(content)!: map_pos answers a MapResult. A position always
    lands, inside deleted text on the deletion's assoc edge and inside an
    island a splice deleted on the island's slot, with deleted,
    deleted_before, deleted_after and deleted_across saying what went
    around it. A splice that deletes an island and names none in removed is
    refused, where it mapped a position inside that island as kept. New
    mapping::StepMap and Mapping, a list of step maps with mirror links, so
    a position a step deleted and its rebased mirror put back maps home.
  • feat(content)!: reserved x- names on three vocabularies. A block
    kind, mark type or island type spelled x- and more decodes into
    BlockKind::Ext, MarkKind::Ext or IslandType::Ext, its attrs or props
    held as written, and re-encodes to the same bytes; any other unknown name
    still refuses. Validation is structural only. An x- block reads as a
    paragraph, an x- mark formats nothing, and an x- island renders and
    exports to markdown as nothing, which the annotated read spells as its
    token so a revise keeps it; a content write's revise or replace that
    removes one refuses with edit::drops_ext_island, and apply removes it.
    Steps set and remove them. MarkStep::Remove's tag is a String,
    BlockKind::tag and MarkKind::tag return &str, and IslandType is no
    longer Copy.
  • feat(content): rebase(base, change, over) moves a change past another
    made from the same value
    , after ProseMirror's rebaseSteps. Each step
    maps through the inverse of its change's earlier steps, then over, then
    those steps rebased, and holds to its delete, quote or block on the
    value it now reads; a step over deleted the text of, or whose id is gone,
    is a rebase::Conflict naming it. A step by id that would overwrite what
    over changed (a block's kind or path, a container, an island's props)
    conflicts rather than undoing it, as does a splice that deletes an island
    or block over changed, so a diff's setBlock names only the fields it
    changes.
    Mapping::map_point and project map
    as apply moves a point anchor and inside one slot.
  • feat(core)!: a stale base rebases the write instead of refusing it.
    Each card keeps, in memory only, a log of its recent writes per value: one
    snapshot of the value, and each write's normalized change and the hash it
    left. A base rebases while the writes since it hold at most LOG_STEPS
    (4096) steps, thousands of keystrokes, and the base the newest write read
    whatever its size; past twice that, the oldest writes fold into the
    snapshot, so the log holds one copy of the value however large.
    apply, revise and replace with a base the log holds rebase over the
    changes since, and a revise or replace diffs from the value the base
    names. The receipt's new rebased says so. A conflict refuses with
    edit::rebase_conflict, carrying step and reason; a base the log does
    not reach is edit::stale_base as before. Card::read_at an...
Read more

v0.133.0

Choose a tag to compare

@github-actions github-actions released this 29 Oct 01:40
eca1af0

Upgrade path: 0.132 → 0.133. The
blueprint is retired: a model writes the JSON authoring document, so a prompt
built from quill.blueprint moves to quill.authoringSchema. A root
example.md is an ordinary file: a quill's example is what its Quill.yaml
declares, so move each value onto its field before upgrading.

LLM authoring

  • feat(core,cli,wasm,python)!: LLMs author documents as JSON; the blueprint
    is retired.
    The authoring document is the values form lifted to the whole
    document, {fields, body, cards: [{kind, fields, body}]}, every rich-text
    field and body a Markdown string and null absent.
    QuillConfig::authoring_schema() is its JSON Schema, built by
    build_transform_schema under the new SchemaCodec::Text: every cell admits
    null, every declared object refuses an undeclared key, a variant-bearing enum is a oneOf per world, and each slot carries
    its title, description, default and examples.
    Quill::to_authoring exports a document, a field stored as null absent, and Quill::from_authoring imports
    and conforms one, refusing a malformed shape with authoring::invalid_shape,
    its RFC 6901 pointer in args.pointer. Export never fails: an undecodable
    or string-held content leaf passes as stored, so every export validates
    against the schema and imports back unchanged.
    WASM authoringSchema / toAuthoring / fromAuthoring, Python
    authoring_schema / to_authoring / from_authoring, and
    quillmark schema --authoring expose them. QuillConfig::blueprint(),
    quill.blueprint, quillmark blueprint and print_blueprint are deleted;
    quillmark validate renders the empty and seeded documents.
    build_transform_schema takes a SchemaCodec. The blueprint's load rules go
    with it: a multi-line description: and an enum member holding >, ; or
    | load, and quill::description_multiline and
    quill::format_literal_reserved_char are deleted. (#2331)

Examples

  • feat(core)!: example: and a body's description and example join the
    quill schema.
    A slot at any depth declares at most one example:, a value
    of its type checked at load as default: is, under
    quill::example_{type_mismatch,not_in_enum,format_violation,held_stored,on_namespace,over_max,over_length}
    and quill::richtext_example_import. It answers no cell. A body's description is text for the writer and its
    example markdown that imports without a drop; either beside
    enabled: false is quill::invalid_body. schema() carries them,
    FieldSchema and BodyCardSchema gain the fields, and WASM types them as
    QuillFieldSchema.example and QuillCardBody.{description,example}. (#2329)
  • feat(core,cli,wasm,python)!: the example document is derived.
    Quill::example_document() returns Option<Document>: the seeded document
    with every declared example: committed and each kind's body.example as
    its body, None where the quill declares none. A root example.md is an
    ordinary file: EXAMPLE_FILE and quill::example_reference are deleted,
    WASM exampleDocument() and Python example_document() no longer throw, and
    quillmark validate validates and renders the derived document, warning
    cli::example_file_ignored while a root example.md remains. The
    fixture quills declare the values their example.md held. (#2329)

Content

  • feat(content,core,wasm): reviseContent revises a body or field to a
    content and keeps its prose anchors.
    WASM doc.reviseContent(addr, rt),
    over core's Card::revise_body_content / revise_field_content and the
    content crate's delta::carry_anchors, diffs a content built elsewhere
    against the stored value, carries each prose anchor whose id rt does not
    hold, and returns the Revised receipt with its text delta. rt's own
    anchors and island ids land as they are.
  • feat(content)!: normalizing content moves no text. A table's slot
    sharing its line with prose is canonical: Content::normalize leaves the
    line as given, where it inserted a \n on each side, and to_markdown
    breaks it instead. overwrite, reviseContent and
    serial::from_authored_value take the shape where they threw block island in a line's prose, an IslandOp::Set on such a table lands, and a stored
    row holding it loads as stored under the same tag. Typst sets the table as a
    block where its slot sits, closing a heading around it, and a hard break
    after a line the slot ends clears. WASM gains normalize(content), the form
    overwrite stores. (#2330)