Skip to content

Pass Cache object to callbacks instead of identifier string#44

Merged
ngan merged 1 commit intomainfrom
np-pass-cache-to-callbacks
Apr 7, 2026
Merged

Pass Cache object to callbacks instead of identifier string#44
ngan merged 1 commit intomainfrom
np-pass-cache-to-callbacks

Conversation

@ngan
Copy link
Copy Markdown
Collaborator

@ngan ngan commented Apr 7, 2026

Summary

  • Callbacks now receive the FixtureKit::Cache instance as the first argument instead of the identifier string
  • Subscribers can access cache.identifier, cache.path, and any other cache state
  • Updated all specs and reference docs to reflect the new callback signature

Test plan

  • All 152 specs pass
  • Verify in consuming apps that callbacks are updated to use the new signature

🤖 Generated with Claude Code

Callbacks now receive the full FixtureKit::Cache instance as the first
argument, giving subscribers access to identifier, path, and other
cache state without needing to anticipate future needs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ngan ngan merged commit 6edec5f into main Apr 7, 2026
8 checks passed
@ngan ngan deleted the np-pass-cache-to-callbacks branch April 7, 2026 14:44
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