Versioning and stability
One version for every package, and a clear promise about what may change between versions.
One version
The 15 @prismora/* packages are built, tested and released together under one version number.
Keep them on the same version in your project: prismora doctor reports a mismatch, and prismora update moves all of them at once.
Before 1.0 (now)
| Release | May contain | What you do |
|---|---|---|
| Patch (0.2.1) | Fixes only. No change to anything public. | Update without reading. |
| Minor (0.3.0) | New features. Breaking changes are allowed, each with a Migration note in the changelog. | Read the upgrade guide for that version. |
To stay on fixes only, pin the minor version: "@prismora/elements": "~0.2.0".
What counts as public
These are the things a breaking change is about. Everything else may change in any release.
- Elements: tag names, attributes and properties, events and their
detail, slots, CSS parts and public methods, as listed on each component page and incomponents.json. - CSS: the
--pm-*tokens, thepm-*classes anddata-*attributes described in the docs, and the names of the published CSS files. - Packages: every export path and exported name.
- CLI and files: commands, flags,
--jsonoutput andprismora.json.
Not public: the shadow DOM inside an element (style it through tokens and parts), class names that start with an
underscore or are not documented, private custom properties (--_name), the exact pixels of a
component, and generated file contents.
The public surface is recorded in the repository as snapshots (exports of each package, the element manifest, the full token list). A pull request that changes it shows the change in review, so nothing public changes by accident.
Deprecation
Where it is possible, something that will be removed is first deprecated: it keeps working, the console says once what to use instead, and the changelog names it.
Before 1.0, a deprecated API is kept for at least one minor release. From 1.0, it is kept until the next major version.
What 1.0 means
1.0 is a promise about stability, not a feature list. It is released when all of these hold:
- The public surface had no breaking change for one full minor release.
- Everything removed on the way was deprecated first.
- Continuous integration, including the browser, accessibility and size-budget suites, was green on every push for that whole cycle.
From 1.0, Prismora follows semantic versioning: breaking changes only in major versions.
The version at run time
Two different versions of @prismora/elements on one page share one icon registry, id counter and
toast stack, and the console warns about the second copy, so a page keeps working while you remove the duplicate.
Documentation of each version
This site documents v0.2.0. Each earlier release line keeps its own copy of the whole site (documentation, components, templates and the theme generator) as it was at the last release of that line, so what you read matches what you have installed. The version menu in the header switches between them.
| Release line | Documents | Install | Site |
|---|---|---|---|
| 0.2 (this site) | v0.2.0 | @prismora/[email protected] | Here |
- Before 1.0 there is one copy for each minor line (0.1, 0.2, …). From 1.0 there is one for each major version.
- A copy is frozen: it gets corrections to its text, not new features. It says at the top of every page that a newer version exists and links to the same page there.
- Copies of earlier versions are kept out of search engines, so a search leads to the latest version.
- What changed between versions is in the changelog; what you have to do is in the upgrade guide.
What is planned
The roadmap lists what each coming release is for.