Skip to content

chore: version packages - #6

Merged
SergeevDmitry merged 1 commit into
masterfrom
changeset-release/master
Sep 1, 2026
Merged

chore: version packages#6
SergeevDmitry merged 1 commit into
masterfrom
changeset-release/master

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.

Releases

token-chunk@1.2.0

Minor Changes

  • 628c1b7: Add TextChunk.syntheticPrefixLength: number, how many leading characters of chunk.text were synthesized rather than sliced out of the input (a rendered heading breadcrumb, a repeated table header, or both) — so chunk.text.slice(chunk.syntheticPrefixLength) is exactly the documented source reconstruction, and a consumer can strip the non-source-backed part before hashing, deduplicating or mapping a position back to an input offset without re-deriving the prefix. It is 0 when nothing was prepended, including when a prefix was dropped to keep the chunk within budget.

Patch Changes

  • 0c727b4: Keep a table row's trailing newline when the row itself has to be split. The
    row unit was built from the bare line, one character short of the extent
    bodySpans records, so that newline landed in no chunk's text and in no
    chunk's source range: the chunk stopped reconstructing its own source slice,
    and the row ran straight into whatever unit packed after it.
  • eba51b9: Stop dropping a split table's header row. When the header fit the budget on its
    own but not alongside the first body row, that row was split out on a path that
    bypassed the only code emitting the header as text — so the header and
    separator lines appeared in no chunk's text and in no chunk's source
    range, leaving retrieved rows with no column names. The header is now emitted
    once as its own source-backed chunk, and every fragment of that row repeats it
    as a synthetic prefix, as documented.

@SergeevDmitry
SergeevDmitry merged commit fb41c6a into master Sep 1, 2026
5 checks passed
@SergeevDmitry
SergeevDmitry requested review from SergeevDmitry and removed request for SergeevDmitry September 1, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant