Releases: JuliaIO/TranscodingStreams.jl
TestsForCodecPackages-v0.1.1
v0.11.3
v0.11.2
TranscodingStreams v0.11.2
Merged pull requests:
- Copy testing utilities into separate package (#235) (@nhz2)
- Copy license to subdir package (#237) (@nhz2)
- remove TestExt.jl (#238) (@nhz2)
Closed issues:
- Error during loading of extension TestExt of TranscodingStreams, use
Base.retry_load_extensions()
to retry (#234)
v0.11.1
v0.11.0
TranscodingStreams v0.11.0
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.
Merged pull requests:
- BREAKING: remove generic
seekend
method (#229) (@nhz2) - BREAKING:
eof
errors if stream isn't readable (#230) (@nhz2) - Bump version to 0.11.0 (#232) (@nhz2)
Closed issues:
- seekstart/seek/seekend leads to invalid position (#109)
v0.10.10
TranscodingStreams v0.10.10
Merged pull requests:
- Allow non 1-based arrays in
readbytes!
(#200) (@nhz2) - Avoid double counting in
stats
out
when writing to nested streams (#204) (@nhz2) - Remove
Memory(::ByteData)
constructor (#219) (@nhz2) - Add
GC.@preserve
when using pointers (#221) (@nhz2) - Fix position of underlying stream when sharing buffers (#222) (@nhz2)
- Fix peek Char (#225) (@nhz2)
- Fix printing of fuzz.jl results (#226) (@nhz2)
- Reset position in
seekstart
(#227) (@nhz2) - Add missing
ready_to_read!
tounread
(#228) (@nhz2) - Bump version to 0.10.10 (#231) (@nhz2)
Closed issues:
v0.10.9
TranscodingStreams v0.10.9
Merged pull requests:
- Bump julia-actions/cache from 1 to 2 (#214) (@dependabot[bot])
- Add a GC.@preserve when calling unsafe_transcode! (#216) (@mkitti)
- Add
test_roundtrip_seekstart
function to help test thatseekstart
resets the state of the codec (#218) (@nhz2) - Bump version to 0.10.9 (#220) (@nhz2)
Closed issues:
- Add function to test
seekstart
resets the state of a codec (#217)
v0.10.8
TranscodingStreams v0.10.8
Merged pull requests:
- Add HTTP.jl to downstream tests (#197) (@nhz2)
- Remove unneeded
Base.unsafe_read
NoopStream
method (#199) (@nhz2) - Make
mark
consistent withskip
andIOBuffer
(#201) (@nhz2) - Fixes for
position
with nestedNoopStreams
(#203) (@nhz2) - Bump julia-actions/setup-julia from 1 to 2 (#205) (@dependabot[bot])
- Add ZipStreams.jl to downstream tests (#206) (@nhz2)
- Fix interaction between unread and mark (#208) (@nhz2)
- Unread extra data when stopping (#209) (@nhz2)
- Allow
unread
ofAbstractVector{UInt8}
(#212) (@nhz2) - Bump version to 0.10.8 (#213) (@nhz2)
Closed issues:
- Allow
unread
ofAbstractVector{UInt8}
(#210)
v0.10.7
TranscodingStreams v0.10.7
Merged pull requests:
- Close underlying stream after process failure in
close
(#182) (@nhz2) - Remove internal checkmode macro (#184) (@nhz2)
- Implement
isreadable
andiswritable
(#185) (@nhz2) - Add basic Supposition.jl tests (#190) (@nhz2)
- Fix reading nested streams with
stop_on_end=true
set. (#191) (@nhz2) - Formatting: align arguments (#192) (@nhz2)
- Avoid infinite loop in
readbytes!(s, UInt8[], 1)
(#194) (@nhz2) - Bump version to 0.10.7 (#195) (@nhz2)
Closed issues: