Compare two custom-elements.json files and report API changes with a suggested semver release type — useful as a release gate.
| Argument | Description |
|---|---|
<baseline> | Baseline custom-elements.json. |
<current> | Current custom-elements.json. |
| Option | Description |
|---|---|
--json | Emit the diff as JSON. |
--changelog [path] | Render a paste-ready Markdown CHANGELOG block (Added / Changed / Removed); optional output path. |
--heading <text> | Release heading for --changelog, e.g. a version. (default: Unreleased) |
$ banira diff old/custom-elements.json custom-elements.json$ banira diff old/custom-elements.json custom-elements.json --changelog --heading 1.4.0Removals / type changes suggest major, additions suggest minor, otherwise
patch. --changelog groups the same change set under ### Added / Changed / Removed
with elements, attributes, events and properties/methods sub-headings. See CI & release for wiring it into a release gate.