Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make undefined behavior of optionalized work like partial #735

Conversation

bitgopatmcl
Copy link
Contributor

Makes optionalized.encode behave like t.partial.encode in the event that it is passed undefined. This is technically undefined behavior, but having it work this way appears to fix issues in places that treat objects missing keys and ones with accessors or keys set to undefined in a loose manner.

@bitgopatmcl bitgopatmcl requested a review from a team as a code owner April 10, 2024 19:01
@andrew-scott-fischer andrew-scott-fischer merged commit 9308b94 into BitGo:master Apr 10, 2024
8 checks passed
@bitgopatmcl bitgopatmcl deleted the make-optionalized-work-like-partial branch April 10, 2024 19:24
Copy link

🎉 This PR is included in version @api-ts/[email protected] 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

Copy link

🎉 This PR is included in version @api-ts/[email protected] 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

Copy link

🎉 This PR is included in version @api-ts/[email protected] 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants