Versioning and upgrades
What a major, minor or patch release means for you, and how deprecations work.
Focsd follows Semantic Versioning, and all packages share one version number, so @focsd-dev/[email protected] always works with @focsd-dev/[email protected].
| Release | What it can contain | Your upgrade |
|---|---|---|
| Patch (1.4.1) | Bug fixes, accessibility fixes, performance, docs | Update and ship |
| Minor (1.5.0) | New components, attributes, events, parts and tokens. Existing markup looks and behaves the same | Update and ship |
| Major (2.0.0) | Removals and renames, changed defaults | Follow the migration notes; a codemod when edits are mechanical |
Every breaking change is listed under Major changes in the changelog, with how to migrate.
Deprecations
Section titled “Deprecations”Nothing disappears without notice:
- A deprecated API keeps working for at least one minor release, next to its replacement.
- While you use it, the console shows one warning per page, for example:
Focsd: focsd-rating readonly property is deprecated and will be removed in the next major version; use readOnly. - It is removed only in the next major release, and the changelog says what to use instead.
What counts as breaking
Section titled “What counts as breaking”Renaming or removing any tag, attribute, property, method, event, slot, CSS part, CSS custom property or token is breaking. So is a changed default that alters how existing markup looks or behaves, and a change to how a component is announced or operated by keyboard (unless it fixes a WCAG failure).
Ask the docs
Hi, what are you building?
Ask about any component, theming, forms or frameworks. I answer with the right component, a snippet and a link to its docs.