Skip to content

chore(release): npm publish readiness — stage v0.4.2#17

Merged
Mlaz-code merged 1 commit into
mainfrom
chore/npm-publish-readiness
Jul 2, 2026
Merged

chore(release): npm publish readiness — stage v0.4.2#17
Mlaz-code merged 1 commit into
mainfrom
chore/npm-publish-readiness

Conversation

@Mlaz-code

Copy link
Copy Markdown
Contributor

What

Stages the next npm release of @sharp-api/client. Main carries one unreleased API addition past v0.4.1 — the is_suspended / suspended_since EVOpportunity fields (#13) — but the version was never bumped, so cutting a release today would run npm publish at 0.4.1, which npm rejects (0.4.1 is already live, published 2026-06-04).

  • Bump version 0.4.1 → 0.4.2 (patch — additive optional fields, same precedent as 0.3.1 / 0.4.1).
  • CHANGELOG entry for 0.4.2 documenting the suspended-opportunity fields (inert until the server flag EV_SUSPENDED_STATE flips).
  • Add engines: { node: ">=18" } — matches the Node 18/20/22 CI matrix; metadata only.

Readiness audit (all run on this branch)

  • npm ci + npm run lint (biome) — clean
  • npm run typecheck (tsc --noEmit) — clean
  • npm run build (tsup) — ESM + CJS + .d.ts/.d.cts, matches the exports map
  • npm pack --dry-run — 9 files, 33.3 kB: LICENSE, README, dist/{index.js,.cjs,+maps,+types}, package.json. No src, no .env; sourcemaps ship without sourcesContent (tsup strips it).
  • Published 0.4.1 tarball diffed against a local build of main: the only API delta is the two new optional fields.

After merge, the release itself is one command (see #16 for the drafted notes):

gh release create v0.4.2 --title "v0.4.2 — suspended-opportunity state" --notes-file <notes>

publish.yml then gates on the Node 18/20/22 matrix (lint + tsc) and publishes with --provenance via NPM_TOKEN.

Refs #16
Type: chore

- Bump 0.4.1 -> 0.4.2: main carries the unreleased is_suspended /
  suspended_since EVOpportunity fields (#13); npm already has 0.4.1,
  so the next `gh release create` requires the bump or publish 403s.
- CHANGELOG entry for 0.4.2 documenting the suspended-opportunity
  fields (inert until EV_SUSPENDED_STATE flips server-side).
- Add engines: node >=18, matching the Node 18/20/22 CI matrix.

Refs #16

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Mlaz-code Mlaz-code merged commit 4dcad7a into main Jul 2, 2026
3 checks passed
@Mlaz-code Mlaz-code deleted the chore/npm-publish-readiness branch July 2, 2026 16:22
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