Skip to content

root - chore: upgrade hookified (breaking)#66

Merged
jaredwray merged 1 commit into
mainfrom
claude/jolly-hamilton-5juy8z
Jun 20, 2026
Merged

root - chore: upgrade hookified (breaking)#66
jaredwray merged 1 commit into
mainfrom
claude/jolly-hamilton-5juy8z

Conversation

@jaredwray

Copy link
Copy Markdown
Contributor

Summary

Upgrade hookified to v3 — runtime phase, PR 2 of 2 (final dependency-management item).

Versions

  • hookified 2.1.13.0.0 (major)

Impact

hookified is the SDK's one runtime dependency; Toggle extends Hookified. The APIs the SDK uses are unchanged in v3:

  • The Hookified constructor still accepts { throwOnEmptyListeners: false } — this is what keeps emit(ToggleEvents.Error, …) from re-throwing when no listener is attached, so the SDK can swallow eval errors and return the caller's default (src/index.ts:55).
  • emit() is unchanged; v3 only adds APIs (ParallelHook).

No source changes required.

Tests

  • pnpm build passes (hookified is bundled into the browser build)
  • pnpm test — 151/156 pass; no new failures
  • Error-path test (index.test.ts "should return defaultValue when error occurs") passes → throwOnEmptyListeners: false behavior preserved

The only failures are the 5 live-platform test/index-evals.test.ts tests (need HYPHEN_PUBLIC_API_KEY / HYPHEN_APPLICATION_ID, absent in the local sandbox) — identical to main, unrelated to this change. CI has those secrets.

Breaking notes

Labeled (breaking) because the dependency crossed a major version. For this repo there's no breaking impact — the constructor option and emit() behavior the SDK depends on are unchanged and verified.

🤖 Generated with Claude Code


Generated by Claude Code

- hookified 2.1.1 → 3.0.0 (major)

Runtime dependency; `Toggle extends Hookified`. The APIs the SDK
relies on are unchanged in v3: the Hookified constructor still
accepts `{ throwOnEmptyListeners: false }` (preserving the
error-swallowing behavior in src/index.ts) and `emit()` is
unchanged. v3 only adds APIs (ParallelHook). No source changes
required; `pnpm build` and the error-path test both pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UXjL3LurbiGcLiiep7Fnvr

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request updates the hookified dependency from version ^2.1.1 to ^3.0.0 in both package.json and pnpm-lock.yaml. There are no review comments, and I have no additional feedback to provide.

@jaredwray jaredwray merged commit 469e877 into main Jun 20, 2026
7 checks passed
@jaredwray jaredwray deleted the claude/jolly-hamilton-5juy8z branch June 20, 2026 19:26
@jaredwray jaredwray mentioned this pull request Jun 20, 2026
4 tasks
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