Skip to content

chore(release): npm packages to 0.10.0 - #376

Merged
BechsteinDigital merged 2 commits into
mainfrom
chore/release-0.10.0
Sep 1, 2026
Merged

chore(release): npm packages to 0.10.0#376
BechsteinDigital merged 2 commits into
mainfrom
chore/release-0.10.0

Conversation

@BechsteinDigital

Copy link
Copy Markdown
Owner

Preparation for the release that carries t() to plugins (#375). Without it, @callora/admin on npm stays at 0.9.0 and no plugin can import the function that is already in main.

Why both packages

npm-publish.yml runs a matrix over @callora/surface and @callora/admin and checks each one's version against the tag. A v0.10.0 tag with surface still on 0.9.0 fails that job — after building, with a message that names the mismatch but not why only one package moved.

Why minor, not patch

@callora/admin gained a public function. A patch release that adds API is the kind of version number that makes a consumer's caret range mean something other than what they read.

What is verified, and what is not

The plugin half of the snippet chain is proven end to end on the dev stack: after rebuilding the PBX and restarting the host, snippet_base holds 19 keys per language for pluginId pbx, read out of the plugin's registry.json. The /api/snippets endpoint answers 401 unauthenticated, so route and auth are in place; the resolver behind it is existing, covered host code.

What is not verified is the last step, because it cannot be until this ships: a plugin importing t from @callora/admin and rendering a translated label.

The tag is a separate decision

A v* tag also runs release.yml over the NuGet packages, so this is a platform release rather than a package bump. The number here is what such a release would carry — change it if you want a different one before tagging.

Both packages, not only the one that changed: npm-publish.yml runs a matrix over
@callora/surface and @callora/admin and checks each one's version against the tag. A
v0.10.0 tag with surface still on 0.9.0 fails that job — after building, with a message
that names the mismatch but not why only one package moved.

Minor rather than patch: @callora/admin gained a public function (t), and a patch that
adds API is the kind of version number that makes a consumer's caret range mean
something other than what they read.

This is the version number a release would carry; the tag itself is a separate
decision, and a v* tag also runs release.yml over the NuGet packages.
ADMIN_PACKAGE_VERSION is what a plugin compares against to refuse an incompatible
host, and it sits in the source as a literal. Bumping package.json without it would
have shipped 0.10.0 announcing itself as 0.9.0 — a plugin built for the new contract
would then refuse a host that has it.

The test that caught this asserts the two agree, which is exactly what it is for.
@BechsteinDigital
BechsteinDigital merged commit 8c9a33c into main Sep 1, 2026
5 checks passed
@BechsteinDigital
BechsteinDigital deleted the chore/release-0.10.0 branch September 1, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant