v0.2.1 — Hotfix: workspace protocol resolution
Hotfix release. 0.2.0 published with broken dependency declarations and is unusable for downstream consumers. Use 0.2.1.
What was broken in 0.2.0
The 0.2.0 tarballs on npm shipped with "@dualmark/core": "workspace:*" in their dependencies. This is bun's workspace protocol, which is only valid inside a workspace — external installers reject it:
bun add @dualmark/cli
# error: @dualmark/core@workspace:* failed to resolve
npm install @dualmark/cli
# npm error code EUNSUPPORTEDPROTOCOL
Root cause
We use @changesets/cli for release orchestration. Changesets only knows about pnpm and falls back to npm publish for everything else (including bun). When we migrated this repo from pnpm → bun, changeset publish started using npm publish under the hood, which does not rewrite the workspace:* protocol.
Fix
Switched the release workflow from changeset publish to a per-package loop using bun publish. Bun correctly rewrites workspace:* → the actual pinned version at pack time. Verified:
| Package | 0.2.0 (broken) | 0.2.1 (fixed) |
|---|---|---|
@dualmark/cli |
"@dualmark/core": "workspace:*" |
"@dualmark/core": "0.2.1" |
@dualmark/astro |
"@dualmark/core": "workspace:*", "@dualmark/converters": "workspace:*" |
"@dualmark/core": "0.2.1", "@dualmark/converters": "0.2.1" |
@dualmark/cloudflare |
"@dualmark/core": "workspace:*" |
"@dualmark/core": "0.2.1" |
Migration
Just upgrade. There are no API or behavioral changes from 0.2.0 to 0.2.1 — only the dependency declarations were broken.
bun add @dualmark/astro@0.2.1 @dualmark/core@0.2.1 @dualmark/converters@0.2.1Or for a fresh install, just install latest:
bun add @dualmark/astro
# resolves to @dualmark/astro@0.2.1 with valid transitive depsPackages republished at 0.2.1
| Package | npm |
|---|---|
@dualmark/core |
npm i @dualmark/core |
@dualmark/converters |
npm i @dualmark/converters |
@dualmark/astro |
npm i @dualmark/astro |
@dualmark/cloudflare |
npm i @dualmark/cloudflare |
@dualmark/cli |
npm i -g @dualmark/cli |
The 0.2.0 versions will be marked npm deprecate after this release lands.