Skip to content

fix(json codec): encode the empty buffer properly#312

Merged
jackyzha0 merged 2 commits intomainfrom
jackyzha0/fix-implicit-coercion-in-json-codec
Apr 18, 2025
Merged

fix(json codec): encode the empty buffer properly#312
jackyzha0 merged 2 commits intomainfrom
jackyzha0/fix-implicit-coercion-in-json-codec

Conversation

@jackyzha0
Copy link
Member

Why

{ $t: "" } means that $t is false-y so we dont treat it as the buffer type

What changed

make it a strict undefined check

Versioning

  • Breaking protocol change
  • Breaking ts/js API change

@jackyzha0 jackyzha0 requested a review from a team as a code owner April 16, 2025 23:56
@jackyzha0 jackyzha0 requested review from daweifeng-replit and removed request for a team April 16, 2025 23:56
Copy link
Contributor

@daweifeng-replit daweifeng-replit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jackyzha0 jackyzha0 merged commit e1a7ac1 into main Apr 18, 2025
6 checks passed
@jackyzha0 jackyzha0 deleted the jackyzha0/fix-implicit-coercion-in-json-codec branch April 18, 2025 01:31
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.

2 participants