BusDiagram GitHub Download

Guide

#Versions and releases

BusDiagram follows Semantic Versioning. A version number MAJOR.MINOR.PATCH tells what an update can change for pages that already use the library. The changes of each version are listed in CHANGELOG.md.

#Find the version

#What the version covers

The public interface is what the reference documents:

The internal structure of the component (shadow DOM, CSS classes), the exact drawing, and the event log messages are not part of the public interface; they can change in any version.

Change From 1.0.0 Before 1.0.0
Incompatible change of the public interface New major version (2.0.0) New minor version (0.2.0)
New compatible feature, such as an optional field, port, or behavior New minor version (1.1.0) New minor version (0.2.0)
Correction without interface change New patch version (1.0.1) New patch version (0.1.1)

Behavior identifiers carry their own version (switchActuator/v1). An incompatible change of a behavior introduces a new identifier (switchActuator/v2) rather than changing the meaning of an existing one. The scenario format has its own number (formatVersion), independent of the library version; older formats remain readable, as format 1 is today.

#Pin a version

A page should load a known version of the library:

Before updating across a major version (or a minor version before 1.0.0), read the corresponding section of CHANGELOG.md and validate your scenarios with the designer or npm run validate.