Skip to content

v0.7.0

Choose a tag to compare

@github-actions github-actions released this 24 Oct 10:40
· 56 commits to main since this release
c6d8db8
  • Promote the 0.7 line to stable on latest. This release contains everything
    in 0.7.0-rc.1, rc.2 and rc.3 (their sections below). Since rc.3 only an
    unused local was removed and test tooling was refreshed; package behavior is
    unchanged. Upgrade from 0.6 with docs/migration-0.7.md.

Readability and authoring refinement

  • Add experimental opt-in polyline readability reports and bounded refinement.
    Prefer fewer connector-crossing pairs and shorter routes without worsening
    any existing geometric-quality metric. Preserve manual notes and report
    unmeasured curves explicitly; default layout and quality scores are unchanged.
  • Keep every authored note accessible in the incremental example's full-text
    list. Narrow and crowded hosts default to text-first presentation with an
    explicit full-diagram control. Synchronize keyboard selection, editing,
    undo/redo and focus recovery; provide direct diagram/selected-note navigation.
  • Replace the long version warning with always-visible source/stable identity
    and native expandable install details. Add version-matched SVG, DOM-report
    and React Flow onboarding paths with executable snippet checks.
  • Run responsive scenarios in the existing browser gate, retain their evidence
    across later builds, and reuse verified output in the fast check instead of
    compiling repeatedly. Preserve all existing browser/package/quality gates.
  • Retain paired 12/40-note readability timings and both improved and unchanged
    layouts. These do not establish physical-device or screen-reader acceptance.

Breaking API changes

  • Return lean layouts by default; move candidate lists out of each placement
    into optional layout.diagnostics.annotations, requested with
    diagnostics: { candidates: number | "all" }. Diagnostic retention no longer
    changes refinement quality. Remove placement.maxCandidates.
  • Use <AnnotationLayer layout={layout} /> for externally resolved geometry.
    Remove the old resolvedLayout prop and reject mixed input/render-only modes.
  • Move D3-specific helpers and types to @ponchia/annotations/d3.
    Remove post-hoc refineAnnotationLayout from the root; refine during resolution.
  • Prepare 0.7.0-dev.0 as an unpublished development artifact. See
    docs/migration-0.7.md for the complete migration.

Correctness hardening

  • Preserve the legacy UI helper behavior for oversized notes: anchor their
    leading edge inside padded bounds instead of returning off-canvas starts.

  • Reject unknown timeline directions and subject kinds rather than returning
    undefined SVG or treating invalid subjects as rectangles. Run the unchanged
    20-test geometry suite from UI v0.16.3 against this package's built exports.

  • Make ID tie ordering independent of runtime locale and reject duplicate
    annotation IDs before resolution or session updates.

  • Preserve incremental reuse when refinement is disabled in any supported
    equivalent form.

  • Wrap whole Unicode grapheme clusters instead of splitting surrogate pairs.

  • Expose geometryValid, hostContentClear and a stricter ok quality
    verdict; protected host-content overlap now fails the default assertion.

  • Clarify that raw host metadata can prevent JSON serialization and
    Worker structured cloning; lean layout outputs do not sanitize it.

Performance and internal boundaries

  • Profile actual document and Worker V8 isolates separately in the maintained
    production-browser harness. Keep collected-object samples, reconstructable
    stacks, per-cycle timings, GC-separated heap endpoints and a clone-only
    control distinct from normal timing runs and native allocation claims.

  • Avoid transient candidate arrays and wrappers when choosing a finite
    connector endpoint. Preserve exact hypot arithmetic, stable tie order and
    nonfinite fallback; compare against the independent old-algorithm oracle.

  • Retain integrity-checked CI package artifacts for full-application acceptance
    without publishing or replacing a live dependency.

  • Investigate exact refinement scoring with at most 1 MiB of per-call scratch.
    Cache unchanged geometric contributions, but sum areas in the same order as
    the public evaluator. Candidate trials restore their base; large inputs fall
    back to the original full evaluator. No public API or persistent cache.
    A separate paired benchmark checks the pre-optimization algorithm and keeps
    measurements separate from output/quality parity.

  • Preserve exact placement ranking while avoiding connector routing for candidates
    whose geometric lower bound cannot enter the solver frontier. The default is
    lean; exhaustive diagnostics are opt-in. Regression tests compare geometry,
    scores and reference topology against an independent eager oracle.

  • Separate basic presets from D3-style migration, ordinary resolution from
    incremental-session bookkeeping, and React presentation from interaction
    orchestration. The breaking export changes are listed above; no runtime
    dependencies are added.

  • Use lean Worker responses without routine candidate diagnostics; keep
    authoritative revision checks intact.

Verification and guidance

  • Add wide/narrow chart, report, graph and long-text quality fixtures, expected
    impossible layouts, and negative-control tests. Compare exact placement,
    measured collision budgets, retained JSON bytes and fixed-host resize motion.
  • Add checksum-pinned, licensed upstream Vega/Mermaid inputs and real packed
    browser consumers. Verify rendered alignment, readable text, note collisions,
    host hover interaction and mobile scrolling without external browser requests.
  • Route quality and upstream proof guides, add a fast contributor check, and
    distinguish current guidance from historical release/readiness records.