Skip to content

release: 0.2.2#10

Merged
rgarcia merged 9 commits intomainfrom
release-please--branches--main--changes--next--components--hypeman
Mar 28, 2026
Merged

release: 0.2.2#10
rgarcia merged 9 commits intomainfrom
release-please--branches--main--changes--next--components--hypeman

Conversation

@stainless-app
Copy link
Copy Markdown
Contributor

@stainless-app stainless-app bot commented Mar 28, 2026

Automated Release PR

0.2.2 (2026-03-28)

Full Changelog: v0.2.1...v0.2.2


This pull request is managed by Stainless's GitHub App.

The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.

For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.

🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions


Note

Low Risk
Low risk: this is a metadata-only release bump (manifest + changelog) with no runtime or API logic changes.

Overview
Bumps the release version from 0.2.1 to 0.2.2 and adds a corresponding CHANGELOG.md entry with the GitHub compare link.

Written by Cursor Bugbot for commit 5b37ce2. This will update automatically on new commits. Configure here.

rgarcia and others added 9 commits March 28, 2026 16:15
Ports the push functionality from hypeman-go/lib/push.go to TypeScript,
following the same patterns established by cp.ts. Provides:

- pushImage(): Push any OciImageSource to the registry
- push(): Convenience to load from Docker daemon and push
- pushFromURL(): Convenience with raw URL/apiKey
- loadDockerImage(): Load image from local Docker via docker save

Uses the OCI Distribution Spec for blob and manifest uploads with
JWT bearer auth matching the Go implementation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace hand-rolled docker save shelling and tar parsing with proper
libraries:
- Use dockerode for Docker daemon interaction (image.get() streams the
  tar, equivalent to go-containerregistry's daemon.Image)
- Use tar-stream for parsing the docker save archive
- Add extractPushConfig() to match Go's ExtractPushConfig API
- Change PushConfig to use registryHost (matching Go) instead of baseURL

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- push.ts: import Docker from 'dockerode' and import * as tar from
  'tar-stream' at top level, remove getDockerode/getTarStream wrappers
- cp.ts: import WebSocket from 'ws' at top level, remove getWebSocket
  wrapper and its call sites

No bundling concerns for this SDK so lazy loading is unnecessary.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Unit tests cover extractPushConfig, image reference parsing, blob upload
flow (auth headers, skip-existing, full upload sequence, error cases),
manifest content type, and pushFromURL. Integration tests are gated behind
HYPEMAN_INTEGRATION_TESTS=1 env var.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Regenerate pnpm-lock.yaml to include dockerode and tar-stream deps.
Fix TS4111 errors by using bracket notation for process.env access.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Default to hypeman-test repo (matching scoped token claims).
Allow override via HYPEMAN_TEST_REPO env var.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add push SDK for uploading container images to OCI registry
@stainless-app
Copy link
Copy Markdown
Contributor Author

stainless-app bot commented Mar 28, 2026

🧪 Testing

To try out this version of the SDK:

npm install 'https://pkg.stainless.com/s/hypeman-typescript/ae2d717ec24cc91592e450745f545f1de0e4f803/dist.tar.gz'

Expires at: Mon, 27 Apr 2026 19:31:35 GMT
Updated at: Sat, 28 Mar 2026 19:31:35 GMT

@rgarcia rgarcia merged commit 61c2abf into main Mar 28, 2026
8 checks passed
@stainless-app
Copy link
Copy Markdown
Contributor Author

stainless-app bot commented Mar 28, 2026

🤖 Release is at https://github.com/kernel/hypeman-ts/releases/tag/v0.2.2 🌻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant