Skip to content

Release 0.3.0

Choose a tag to compare

@phun-ky phun-ky released this 04 Nov 15:27
· 87 commits to main since this release

0.3.0 (2026-11-04)

⚠ BREAKING CHANGES

  • Update code that uses the following:

    • stop is now end: stopElement is endElement, stopSide is endSide,
      geometry.stop and geometry.stopSide are geometry.end and
      geometry.endSide, .arc-anchor-stop is .arc-anchor-end, and
      data-stop-side is data-end-side
    • options are checked before anything is added. Wrong types throw a
      TypeError (strokeWidth: '3', label: 0, dashed: 'no', an empty or
      non-string id) and values out of range a RangeError (type: 'wavy',
      arrow: 'yes', an unknown side, a negative strokeWidth, spacing,
      radius or offset). defaults can't set an id, and autoUpdate must be
      true, false or 'frame'
    • failures throw ArclaceError, exported, instead of Error. An invalid
      selector throws an ArclaceError with the SyntaxError as its cause
    • find() returns [] for a selector that matches nothing, instead of
      throwing
    • disconnect() throws a TypeError for a target that is not a
      connection, a string, an element, null or undefined
    • setOptions() throws after the connection was removed or its
      instance destroyed, and when given an id
    • DEFAULT_CONNECTION_OPTIONS is frozen, and geometry is a read-only
      frozen object
    • the Connection constructor is private in the types; connections
      come from connect() and connectAll(). ArcConnectionParamsType and
      ArcOptionalKeysType are no longer exported
    • the path builders check their points (finite x and y) and sides

Documentation

  • ✏️ assurance case and VEX statements (73b4fe6), references #19
  • ✏️ governance, roadmap and a contributing guide for Arclace (5f5b33a), references #20 #21 #19 #60 #19
  • ✏️ link the ArclaceError source in the API reference (d22f104), references #20
  • ✏️ record the API review in the assurance case and OpenSSF answers (e4cc02f), closes #20, references #21

Refactoring