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

fix(NewtonsoftJson)!: Upgrade RecyclableMemoryStream re MissingMethodException #118

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

bartelink
Copy link
Collaborator

RecylableMemoryStream V3 has a breaking change to GetStream (it returns RecyclableMemoryStream instead of MemoryStream)

This means that the transitive dependency on >=2.3.2 is unsafe (MissingMethodExceptions if you supply a V3).

While I'm tempted to rip the usage out entirely in order to align the NSJ impl with the STJ impl, I've opted to do a minor change for now to simply require the newer version (which makes sense given FsCodec V3 has plenty other changes)

It can also be argued that the dep should now change to [3.0.0, 4.0.0), but I feel this is overly defensive given that it is a broadly used library that the Bing team/Ben uses heavily and maintains.

If I'm proven very wrong, then the likely next fix to something like this will be to rip the usage out given nobody that's worried about allocations is likely to be on NSJ in the pretty near term.

Base automatically changed from case-values to master February 26, 2024 11:02
@bartelink bartelink changed the title fix(NewtonsoftJson)!: Upgrade RecyclableMemoryStream re breaking change fix(NewtonsoftJson)!: Upgrade RecyclableMemoryStream re MissingMethod Feb 26, 2024
@bartelink bartelink changed the title fix(NewtonsoftJson)!: Upgrade RecyclableMemoryStream re MissingMethod fix(NewtonsoftJson)!: Upgrade RecyclableMemoryStream Feb 26, 2024
@bartelink bartelink merged commit fb245a5 into master Feb 26, 2024
7 of 9 checks passed
@bartelink bartelink deleted the fix-rmsm branch February 26, 2024 11:12
@bartelink bartelink changed the title fix(NewtonsoftJson)!: Upgrade RecyclableMemoryStream fix(NewtonsoftJson)!: Upgrade RecyclableMemoryStream re MissingMethodException Feb 26, 2024
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