Versioning
Every LPM.dev Registry release uses Semantic Versioning. A package version identifies one release. Nobody can overwrite a version while that release exists.
Choose the next version
Semantic versions use three numbers:
MAJOR.MINOR.PATCH
| Part | Increment when |
|---|---|
| MAJOR | You make an incompatible change |
| MINOR | You add backward-compatible functionality |
| PATCH | You make a backward-compatible fix |
Update the package version with the LPM CLI. Then publish it:
lpm version patch
lpm publish
For a minor or major release, replace patch with minor or major. The LPM CLI version reference explains version sources, workspace behavior, and flags.
Version identity
The LPM.dev Registry rejects an invalid semantic version. It also rejects a version that already exists for the same package, even if two publishes of that version arrive at the same time. If the release contents change, publish a new version.
Revocation is the one exception. In a short window, you can revoke a release that nobody else downloaded. Revocation deletes the release data permanently, and you can then publish that version number again.
How latest is selected
The LPM.dev Registry sets the latest distribution tag. It points to the highest semantic version that is available to the consumer. The upload order does not change it.
In a Free, Pool, or Marketplace package, a version that waits for review does not replace the highest approved version. After approval, a prerelease can become latest if it is the highest available version in semantic version order.
To install a specific version or range, pass it to the LPM CLI:
lpm install @lpm.dev/acme.design-system@1.4.2
lpm install @lpm.dev/acme.design-system@^1.4.0
| Range | Selects |
|---|---|
1.4.2 | Exactly 1.4.2 |
^1.4.2 | Compatible releases before 2.0.0 |
~1.4.2 | Patch releases before 1.5.0 |
>=1.4.2 | Any release at or above 1.4.2 |
The LPM CLI resolves the full dependency graph and records the selected versions in its lockfile. Resolver and Save policy explain the client behavior in detail.
Revoke a recent release
For 30 minutes after publication, you can revoke a release in the Danger zone of the package dashboard. Revocation deletes the release data permanently, and you cannot undo it. After a revocation, you can publish the same version number again.
If someone outside the owner or the organization of the package downloads a release, you cannot revoke it. This applies in every distribution mode. Their lockfile records the contents of that release, so the version number must keep pointing at those contents. You also cannot revoke a Free release after it becomes public. You cannot revoke a Marketplace release while customers have active access to the package.
After the revocation window closes, unpublish the release, or publish a corrected version.
Unpublish a release
If you unpublish a release, nobody can install it, even from a lockfile that pins it. The version number stays used, so you cannot publish that number again. You cannot undo an unpublish.
You can unpublish a release in the Danger zone of the package dashboard. There, you type the version and complete an identity check. You can also use LPM CLI. It asks before it unpublishes, and the change needs your second factor:
lpm unpublish @lpm.dev/acme.kit@1.2.3
| Distribution | Can be unpublished |
|---|---|
| Private | At any time |
| Pool | For 72 hours after publication, while nobody outside the package's owner or organization has installed it |
| Marketplace | For 72 hours after publication, while no customer has access to the package |
| Free | Until it is public |
The Danger zone shows how long you can still unpublish each release, or why you cannot. If LPM.dev Registry refuses lpm unpublish, the command also shows the reason.
npm unpublish @lpm.dev/acme.kit@1.2.3 also works, with the same rules and second factor. LPM.dev Registry unpublishes one version at a time and does not delete a package. It refuses npm unpublish --force for a package with more than one version. For a package with one version left, it unpublishes that version.
Deprecate a version
Deprecation adds a warning of up to 500 characters and keeps the release. In the Danger zone or with LPM CLI, you can deprecate one release or the whole package. You can also remove a deprecation again. To change the warning of a release, undeprecate the release. Then deprecate it with the new warning.
lpm deprecate @lpm.dev/acme.kit@1.2.3 "Use 1.2.4, which fixes the crash"
lpm deprecate @lpm.dev/acme.kit "Moved to @lpm.dev/acme.kit2"
lpm undeprecate @lpm.dev/acme.kit@1.2.3
If you deprecate the whole package, LPM.dev Registry deprecates each version that is not deprecated or unpublished yet.
npm deprecate and npm undeprecate also work, with the same rules and second factor. LPM.dev Registry changes one version or every version at a time. A range must match one version, or every version that npm lists and that the change applies to. As with lpm deprecate, a version that is already deprecated keeps its message:
npm deprecate @lpm.dev/acme.kit@1.2.3 "Use 1.2.4, which fixes the crash"
npm undeprecate @lpm.dev/acme.kit
A deprecated version stays installable and can still be latest. Use deprecation to warn consumers about a known issue or a recommended replacement. To stop installs of a release, unpublish it.
Publishing explains the LPM CLI publication workflow. lpm unpublish and lpm deprecate explain these commands.