Skip to content

Commit

Permalink
Bump version to 0.11.0 (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhz2 authored Jul 2, 2024
1 parent 1dbf35c commit 76543ed
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = "TranscodingStreams"
uuid = "3bb67fe8-82b1-5028-8e26-92a6c54297fa"
license = "MIT"
authors = ["Kenta Sato <bicycle1885@gmail.com>"]
version = "0.10.10"
version = "0.11.0"

[deps]
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Expand Down
1 change: 0 additions & 1 deletion src/TranscodingStreams.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ include("stream.jl")
include("io.jl")
include("noop.jl")
include("transcode.jl")
include("deprecated.jl")

function test_roundtrip_read end
function test_roundtrip_write end
Expand Down
1 change: 0 additions & 1 deletion src/deprecated.jl

This file was deleted.

2 comments on commit 76543ed

@nhz2
Copy link
Member Author

@nhz2 nhz2 commented on 76543ed Jul 2, 2024

Choose a reason for hiding this comment

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

@JuliaRegistrator register

Release notes:

Breaking changes

v0.11 has a few subtle breaking changes to eof and seekend.

Memory(data::ByteData)

The Memory(data::ByteData) constructor was removed.
Use Memory(pointer(data), sizeof(data)) instead.

seekend(stream::TranscodingStream)

Generic seekend for TranscodingStream was removed.
If the objective is to discard all remaining data in the stream, use skip(stream, typemax(Int64)) instead where typemax(Int64) is meant to be a large number to exhaust the stream.
Ideally, specific implementations of TranscodingStream will implement seekend only if efficient means exist to avoid fully processing the stream.
NoopStream still supports seekend.

The previous behavior of the generic seekend was something like
(seekstart(stream); seekend(stream.stream); stream) but this led to
inconsistencies with the position of the stream.

eof(stream::TranscodingStream)

eof now throws an error if called on a stream that is closed or in writing mode.
Use !isreadable(stream) || eof(stream) if you need to more closely match previous behavior.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/110226

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.11.0 -m "<description of version>" 76543edbc3e2433d5a83d252d021d352675bf931
git push origin v0.11.0

Please sign in to comment.