Skip to content

feat: add structured Swift errors - #11

Merged
biw merged 4 commits into
mainfrom
biw/structured-errors
Aug 15, 2026
Merged

feat: add structured Swift errors#11
biw merged 4 commits into
mainfrom
biw/structured-errors

Conversation

@biw

@biw biw commented Aug 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • add opt-in SwiftNodeStructuredError with code, message, and JSON-safe details
  • preserve ordinary Swift errors as normal JavaScript Errors while attaching structured properties across sync, async, and stream bridges
  • export matching TypeScript error types, document the API, and bump the paired release packages to 0.1.5

Validation

  • pnpm exec vp test run test/production-bridge.test.mjs
  • pnpm --filter swift-node test -- generator.test.ts
  • vp check
  • pnpm check:package-versions
  • pnpm precommit

@biw
biw merged commit 4944d49 into main Aug 15, 2026
21 checks passed
@biw
biw deleted the biw/structured-errors branch August 15, 2026 00:03
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