Skip to content

Relax @onkernel/sdk peer version pin to a caret range - #94

Merged
dprevoznik merged 2 commits into
mainfrom
hypeship/relax-onkernel-sdk-pin
Sep 4, 2026
Merged

Relax @onkernel/sdk peer version pin to a caret range#94
dprevoznik merged 2 commits into
mainfrom
hypeship/relax-onkernel-sdk-pin

Conversation

@dprevoznik

@dprevoznik dprevoznik commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • @onkernel/sdk was pinned to an exact 0.49.0 in packages/browser-loop/package.json, which forces npm to hoist a second, mismatched copy whenever a consumer's project needs a newer SDK version elsewhere in the tree, producing incompatible KERNEL client types.
  • Relax the dependency to ^0.49.0 so a compatible newer SDK version can be installed and deduped instead of shadowed.

Test plan

  • npm run typecheck (workspace @onkernel/browser-loop) passes
  • npm test (workspace @onkernel/browser-loop) — same single pre-existing failure as on main (requires a dist build, unrelated to this change), no new failures

Note

Low Risk
Dependency-range-only change in one package; no runtime or API logic changes, with typecheck/tests reported passing aside from a pre-existing dist-related test failure.

Overview
@onkernel/browser-loop no longer pins @onkernel/sdk to exactly 0.49.0. The dependency is now >=0.49.0 <1.0.0, so installs can resolve a single compatible 0.x SDK across the tree instead of pulling a duplicate copy when the host app uses a newer SDK.

package-lock.json is updated to match the relaxed range.

Reviewed by Cursor Bugbot for commit 6d9eb10. Bugbot is set up for automated code reviews on this repo. Configure here.

Allows consumers to install a newer @onkernel/sdk without npm
resolving two conflicting copies in the same tree.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 571673a. Configure here.

Comment thread packages/browser-loop/package.json Outdated
Caret ranges on a 0.x version only allow patch bumps, so
^0.49.0 still shadowed newer published SDK versions and
didn't fix the mismatch the pin relaxation was meant to solve.
@dprevoznik
dprevoznik requested a review from rgarcia September 4, 2026 19:13
@dprevoznik

Copy link
Copy Markdown
Contributor Author

tested locally and discussed with @rgarcia

@dprevoznik
dprevoznik merged commit 7c7fb64 into main Sep 4, 2026
5 checks passed
dprevoznik added a commit to kernel/docs that referenced this pull request Sep 4, 2026
browser-loop's exact @onkernel/sdk pin is relaxed to a caret range
(kernel/browser-loop#94), matching the same removal already done for
the Playwright/computer-use fallback cookbook (#548).
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.

2 participants