-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Update dependency gonzales #83
Conversation
36e8ea2
to
d361f8e
Compare
d361f8e
to
982b549
Compare
982b549
to
9cdf401
Compare
export default { | ||
parse: (...args) => { | ||
try { | ||
return gonzales.parse(...args); | ||
} catch (e) { | ||
try { | ||
return gonzalesPrimitive.parse(...args); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this no longer needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's mentioned in the PR description:
Update gonzales-pe to v4.3.0 which fixed a parsing bug and more.
Remove gonzales-primitives that was previously added as a bandaid for that parsing bug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, Steve. To elaborate on that:
gonzalesPrimitive
is an old gonzales-pe
version build that was added by the previous maintainer, possibly to address some bugs introduced in the version of gonzales-pe
used at that time (v4.0.3
).
With the latest version gonzales-pe v4.3.0
, a lot of bugs were fixed and the test case added was no longer failing. Therefore, I'm removing this fallback after upgrading to v4.3.0
.
Changes:
gonzales-pe
to v4.3.0 which fixed a parsing bug and more.gonzales-primitives
that was previously added as a bandaid for that parsing bug.