Skip to content

Enforce JSONSerializer string output contract#21

Merged
foreverest merged 2 commits intomainfrom
codex/jsonserializer-string-contract
Feb 10, 2026
Merged

Enforce JSONSerializer string output contract#21
foreverest merged 2 commits intomainfrom
codex/jsonserializer-string-contract

Conversation

@foreverest
Copy link
Owner

Summary

  • add a post-JSON.stringify check so JSONSerializer now throws SerializerError unless it returns a string
  • surface the new guard via a regression test that expects undefined serialization to throw

Testing

  • Not run (not requested)

@codecov
Copy link

codecov bot commented Feb 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (675d379) to head (d9290cc).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #21   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines          193       200    +7     
  Branches        38        42    +4     
=========================================
+ Hits           193       200    +7     
Flag Coverage Δ
node20.x 100.00% <100.00%> (ø)
node22.x 100.00% <100.00%> (ø)
node24.x 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@foreverest foreverest merged commit 373b24a into main Feb 10, 2026
5 checks passed
@foreverest foreverest deleted the codex/jsonserializer-string-contract branch February 10, 2026 02:52
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