release: v4.0.0 (breaking)#142
Merged
Merged
Conversation
Bump @hyphen/sdk 3.1.0 -> 4.0.0 (major). Breaking: minimum Node.js raised to ^22.18.0 || >=24.0.0 (drops Node 20/21), driven by the engines.node bump (#134) and hookified@3 (#138). Also includes a fix for QR-code creation with custom options (#137) and dependency, CI, and publishing (OIDC trusted publishing + provenance) updates. https://claude.ai/code/session_01Ax3tVRkBGaifDzp8xYcZhr
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #142 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 8 8
Lines 492 492
Branches 105 105
=========================================
Hits 492 492 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release summary
Major release: raises the minimum Node.js runtime to 22.18+/24+ (drops Node 20/21) and fixes QR-code creation with custom options. One PR, version bump only —
3.1.0 → 4.0.0. (Branch synced with latestmain, which now includes #141.)@hyphen/sdk@4.0.0 — 2026-06-12
Raises the minimum Node.js runtime to 22.18+/24+ (drops Node 20/21) and fixes QR-code creation with custom options.
⚠ BREAKING CHANGES
^22.18.0 || >=24.0.0— Node 20 and 21 are no longer supported. Theengines.nodefloor was raised (45d8439, root - chore: upgrade TypeScript and build tooling (breaking) #134) to matchtsdown@0.22.2andhookified@3.0.0(865a5f3, root - chore: upgrade hookified (breaking) #138), both of which require Node ≥22.18. Node 20 reached end-of-life in April 2026.Migration: upgrade your runtime to Node 22.18+ or Node 24+. No SDK code changes are required — the public API (
Hyphen,Toggle,Link,BaseService,HookifiedOptions) is unchanged.hookifiedupgraded 2.1.1 → 3.0.0 (major) (865a5f3, root - chore: upgrade hookified (breaking) #138). Surfaced for consumers who usehookifieddirectly; its only breaking change is the Node ≥22.18 floor above. No SDK API changes.Bug Fixes
createQrCodenow sends custom options asmultipart/form-datainstead of JSON (6de740b, fix(link): send QR code custom options as multipart/form-data #137). Creating a QR code withtitle,backgroundColor,color,size, orlogopreviously failed with HTTP 400; these options now work. Calls without options are unaffected. Closes Flaky/failing test:should create a QR code with custom optionsreturns HTTP 400 #133.Internal
NPM_TOKEN(de6caf4, ci: migrate npm release to OIDC trusted publishing with provenance #140)pnpm publish --provenanceinstead ofnpm, dropping the.npmrctoken placeholder while preserving OIDC trusted publishing + provenance (770aae9, ci: publish release with pnpm instead of npm #141)allowBuilds; consolidate the CI matrix to Node 22/24/26 (24a8dde, root - chore: upgrade code quality dependencies + adopt pnpm 11 / Node 22-26 CI #132)pnpm/action-setupto v6.0.8 by commit SHA (7d1930f, root - chore: upgrade code quality dependencies + adopt pnpm 11 / Node 22-26 CI #132)Contributors
Full List of Changes
Full diff: v3.1.0...v4.0.0
Verification
pnpm installsucceeds — lockfile unchanged by the version bumppnpm buildsucceeds (targetnode22.18.0)pnpm testpasses locally — 233 tests, 100% coverage (statements/branches/functions/lines)mainis thepackage.jsonversion bump onlyPost-merge
v4.0.0— therelease.yamlworkflow publishes to npm viapnpm(OIDC trusted publishing + provenance) onrelease: [released].@hyphen/sdk(orgHyphen, reponodejs-sdk, workflowrelease.yaml) per ci: migrate npm release to OIDC trusted publishing with provenance #140/ci: publish release with pnpm instead of npm #141 — otherwise the publish fails with an auth error. TheNPM_TOKENsecret can be removed once it's in place.Generated by Claude Code