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

[New] parse: call decoder when parsing objects #479

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nbgraham
Copy link

Fixes #284.

lib/parse.js Outdated Show resolved Hide resolved
lib/parse.js Outdated Show resolved Hide resolved
test/parse.js Outdated Show resolved Hide resolved
test/parse.js Outdated Show resolved Hide resolved
test/parse.js Outdated Show resolved Hide resolved
@ljharb
Copy link
Owner

ljharb commented Aug 5, 2023

This seems like it's either a bugfix - a patch - or a breaking change, in which case it should be implemented behind an option instead.

Co-authored-by: Jordan Harband <ljharb@gmail.com>
@nbgraham
Copy link
Author

@ljharb
Based on this I was treating it as a bugfix. It's kinda already behind the decoder option. If you don't provide that, this won't do anything.
But I guess someone could be providing the decoder option today, and this could change the behavior for them.

@ljharb
Copy link
Owner

ljharb commented Aug 15, 2023

That's exactly my concern - especially since this issue was filed five years ago and the behavior probably long predates that.

Astrabacus

This comment was marked as spam.

@Rizvy420 Rizvy420 mentioned this pull request Feb 27, 2024
@ljharb ljharb marked this pull request as draft February 28, 2024 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Decoder function not being called
3 participants