Skip to content

Releases: richard-viney/file_streams

v1.0.0

26 Jul 01:06
Compare
Choose a tag to compare
  • Fixed documentation for file_stream.open_write_text().
  • Updated dependency versions.

v0.6.3

12 Jun 03:46
Compare
Choose a tag to compare
  • Add file_stream.set_encoding() function.

v0.6.2

11 Jun 22:45
Compare
Choose a tag to compare
  • Improve README and API documentation.

v0.6.1

08 Jun 02:25
Compare
Choose a tag to compare
  • Add example to the readme of reading and writing a UTF-16 text file.
  • Add Erlang badge to the readme.

v0.6.0

07 Jun 03:18
Compare
Choose a tag to compare
  • Allow use of read_line() in Raw mode to improve performance. Note that this only supports reading UTF-8 text and read_chars() can't be used in Raw mode.
  • Improve performance of streams that use an explicit text encoding.
  • open() now returns an error if the Raw and Encoding modes are specified together as Erlang doesn't support this.
  • The text encoding must now be specified when using open_read_text() and open_write_text(). These functions now aren't typically needed when using UTF-8 unless read_chars() is required.
  • Document which file stream functions are available based on the open mode, e.g. read_bytes() is not available with most text encodings.
  • Fixed certain io module errors not being wrapped correctly and replaced the InvalidTextData error with InvalidUnicode.
  • The default text encoding is now Latin1 to match the Erlang default.

v0.5.1

06 Jun 09:47
Compare
Choose a tag to compare
  • Add file_open_mode.Raw which can be used to improve performance of binary file streams. Raw mode is enabled when using in file_stream.open_read() and file_stream.open_write().

v0.5.0

24 May 22:12
Compare
Choose a tag to compare
  • Replace write_stream, read_stream, and read_text_stream with a single file_stream module.
  • Reading and writing on a single stream is now possible.
  • Text file streams can now choose from the Latin1, UTF-8, UTF-16, and UTF-32 text encodings.
  • The read ahead buffer size and delayed write parameters can now be configured precisely if desired.

v0.4.4

23 May 12:12
Compare
Choose a tag to compare
  • Add read_stream.position for setting the current position of a read stream.

v0.4.3

22 May 22:59
Compare
Choose a tag to compare
  • Add read_stream.read_remaining_bytes().

v0.4.2

10 May 06:07
Compare
Choose a tag to compare
  • Fix missing import in example code.