release: v0.3.1 (fingerprint + Pool double-count fixes)#8
Merged
Conversation
… active mysql2 Pool.query internally delegates to Connection.query. Both prototypes are patched and AsyncLocalStorage propagates through mysql2's getConnection boundary, so the same user-observable query recorded twice — surfacing in CI as a Pool N+1 test that saw 6 occurrences instead of 3. Guard with an AsyncLocalStorage flag set by the outermost patched call. A nested patched call sees the flag and invokes the original directly without recording. pg is unaffected because its Pool.connect callback does not preserve ALS (the existing Pool-layer patching still records as before). Add a unit test that exercises the nested-call path with a custom original that delegates to an inner patched method. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Bump package version, add changelog entry, and refresh landing-page stats (package size, test count, overhead) to reflect the hardening pass. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
GitHub Pages deploys from docs/. The previous commit only updated site/, so the live landing page kept the stale 18KB / 128 tests / 0% numbers. Sync the same refresh to docs/. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
Fixes
WHERE id = -1andWHERE id = 1now share a fingerprint). Previously silent miss.errorwithoutend(connection-level failures) now record correctly.Features
StackFrame,QueryGuardError,ScalingError,ScalingDetection,ScalingReport,AssertScalingOptions,AssertOptions.Test plan
noUncheckedIndexedAccesspassesRelease steps after merge
v0.3.1on master, push tag.github/workflows/publish.ymltriggers and runspnpm publish --provenanceNPM_TOKENsecret to be set on the repo — if it isn't, I'll flag that as a blocker🤖 Generated with Claude Code