Skip to content

Bump Microsoft.IO.RecyclableMemoryStream from 1.3.4 to 2.3.1#57

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/nuget/Microsoft.IO.RecyclableMemoryStream-2.3.1
Open

Bump Microsoft.IO.RecyclableMemoryStream from 1.3.4 to 2.3.1#57
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/nuget/Microsoft.IO.RecyclableMemoryStream-2.3.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Mar 1, 2023

Copy link
Copy Markdown

Bumps Microsoft.IO.RecyclableMemoryStream from 1.3.4 to 2.3.1.

Release notes

Sourced from Microsoft.IO.RecyclableMemoryStream's releases.

Microsoft.IO.RecyclableMemoryStream 2.3.1

New Feature:

  • Stream lifetime (creation through dispose) is now tracked and reported through the MemoryStreamDispose EventSource event, as well as through the StreamDisposed .NET event.

Changes:

  • The pool statistics used to be reported only when blocks/buffers were returned to the pool. This could lead to lopsided reporting patterns in some cases. Now, pool statistics are reported on stream creation and disposal.
  • Added pool stats information to the MemoryStreamDiscardBuffer event.
  • Changed events relating to buffer creation to be at the warning level instead of verbose. These are signals that the pool might not be large enough to handle the load.

Bug Fixes:

  • Fixed allocation/finalization bug that could cause a NullReferenceException in some low-memory scenarios.

Internal:

  • .NET 7 SDK used to build
  • Changed coding style to match some newer patterns (and added .editorconfig file to enforce in the future)
  • Fixed punctuation and spelling in API documentation.

NuGet: Microsoft.IO.RecyclableMemoryStream 2.3.1

Microsoft.IO.RecyclableMemoryStream 2.2.1

API change:

  • There are now overloads that take a type long parameter for requestedSize.

Bug Fix:

  • ToString will no longer throw an exception if the stream is disposed.

NuGet: Microsoft.IO.RecyclableMemoryStream 2.2.1

Microsoft.IO.RecyclableMemoryStream 2.2.0

API changes:

  • Add an override for GetStream that takes a ReadOnlySpan<byte>. This supercedes the versions of GetStream that take Memory<byte>, which were marked as [Obsolete].

Bug Fixes:

  • Fixed: GetReadOnlySequence() throws ArgumentOutOfRangeException

Performance Improvements:

  • Removed enumerator allocation when returning blocks to the pool.
  • Changed default size of stream's block list to 0 because EnsureCapacity will always run, potentially resizing the list anyway.
  • Removed unneeded closure allocation when copying buffers.
  • Use GC.AllocateUninitializedArray in an additional spot, for better performance in .NET 5+.

Documentation:

  • Improved documentation, standardized puncutation, fixed code formatting.

NuGet: Microsoft.IO.RecyclableMemoryStream 2.2.0

Microsoft.IO.RecyclableMemoryStream 2.1.3

Fixed another integer overrun math bug related to the new 64-bit data sizes that handle longer streams. The tests have also been updated to check for more issues like this.

NuGet: Microsoft.IO.RecyclableMemoryStream 2.1.3

... (truncated)

Changelog

Sourced from Microsoft.IO.RecyclableMemoryStream's changelog.

Version 2.2.1

API change:

  • There are now overloads that take a type long parameter for requestedSize.

Bug Fix:

  • ToString will no longer throw an exception if the stream is disposed.

Version 2.2.0

API changes:

  • Add an override for GetStream that takes a ReadOnlySpan<byte>. This supersedes the versions of GetStream that take Memory<byte>, which were marked as [Obsolete].

Bug Fixes:

  • Fixed: GetReadOnlySequence() throws ArgumentOutOfRangeException

Performance Improvements:

  • Removed enumerator allocation when returning blocks to the pool.
  • Changed default size of stream's block list to 0 because EnsureCapacity will always run, potentially resizing the list anyway.
  • Removed unneeded closure allocation when copying buffers.
  • Use GC.AllocateUninitializedArray in an additional spot, for better performance in .NET 5+.

Documentation:

  • Improved documentation, standardized punctuation, fixed code formatting.

Version 2.1.3

Bug Fixes:

  • Fixed another integer overflow error when returning buffers to the pool.

Version 2.1.2

Bug Fixes:

  • Added [SecurityRules(SecurityRuyleSet.Level1)] to assembly to allow more relaxed inheritance security rules.
  • Fixed an integer overflow when calculating large buffer sizes.

Version 2.1.0

  • Added RecyclableMemoryStreamManager constructor overloads that take parameters for specifying the maximum free pool sizes. Updated IntelliSense documentation to make clear that these values need to be explicitly set to avoid unbounded pool growth.
  • Buffers are now allocated using GC.AllocateUninitializedArray in .NET 5.
  • net462 and netstandard2.0 targets can now support the Span-related APIs via a dependency on System.Memory.
  • Updated documentation to fix typos and clarify language in some parts.
  • Support for Source Link

Version 2.0

  • Breaking Changes
    • Removed 2 GB stream limit. Extremely large streams can be created by chaining together blocks. Attempts to convert a stream into a contiguous buffer longer than the runtime's limits will result in an exception.
    • Removed build targets for net40, net45, net46, and netstandard1.4. Added net462.

... (truncated)

Commits
  • 55c265b Prepare 2.3.1 release (#272)
  • 0a6f713 Fix bug. Can't have TimeSpan in event source. (#271)
  • 27f27f4 Update version numbers, regenerate documentation (#269)
  • ef7f82f NET7 and small cleanup (#266)
  • 0b445bd Add tracking for stream lifetime (#268)
  • 362550d Update some events to Warning, add more data (#264)
  • 23e28fd Change when pool stats are reported to be based on stream creation and dispos...
  • 324c6c4 Move blocks list allocation to constructor to ensure better consistency upon ...
  • 581c317 Bump Microsoft.NET.Test.Sdk from 17.4.0 to 17.4.1 in /UnitTests (#259)
  • 7cb1c3e Bump NUnit3TestAdapter from 4.3.0 to 4.3.1 in /UnitTests (#253)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [Microsoft.IO.RecyclableMemoryStream](https://github.com/Microsoft/Microsoft.IO.RecyclableMemoryStream) from 1.3.4 to 2.3.1.
- [Release notes](https://github.com/Microsoft/Microsoft.IO.RecyclableMemoryStream/releases)
- [Changelog](https://github.com/microsoft/Microsoft.IO.RecyclableMemoryStream/blob/master/CHANGES.md)
- [Commits](microsoft/Microsoft.IO.RecyclableMemoryStream@1.3.4...2.3.1)

---
updated-dependencies:
- dependency-name: Microsoft.IO.RecyclableMemoryStream
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants