Notable changes to this project are documented in this file. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
Breaking changes:
-
Invert module dependency of
Node.Buffer.Class(#51 by @JordanMartinez)The
MonadBuffertype class was seemingly used to expose an API for bothBufferandSTBufferwithout duplicating FFI. Members of the class (e.g.size,toString, etc.) had type inference issues due to this class-based approach.Now, both
BufferandSTBufferexpose the same API but with their type signatures hard-coded toEffectandST, respectively, thereby improving type inference.MonadBufferinstances for both types were moved into theNode/Buffer/Class.pursfile.One can migrate their code by either removing the usage of
MonadClassin their code if it was only used to get the needed API for a given type (e.g.Buffer) or update their module imports fromNode.Buffer/Node.Buffer.STtoNode.Buffer.Class. -
Encodingtype - dropped encodings that are only aliases (#51 by @JordanMartinez)Binary, an alias forLatin1was dropped.UCS2, an alias forUTF16LEwas dropped.
-
Encodingtype - addedBase64Urlencoding (supported in Node 18) (#51 by @JordanMartinez)
New features:
-
Added the following APIs
Buffer.alloc,Buffer.allocUnsafe,Buffer.allocUnsafeSlowBuffer.poolSize,Buffer.setPoolSizebuffer.swap16,buffer.swap32,buffer.swap64buffer.compare: https://nodejs.org/docs/latest-v18.x/api/buffer.html#bufcomparetarget-targetstart-targetend-sourcestart-sourceendbuffer.toString(encoding, start, end): https://nodejs.org/docs/latest-v18.x/api/buffer.html#buftostringencoding-start-end- constants:
Bugfixes:
Other improvements:
- Update all FFI to use uncurried functions (#51 by @JordanMartinez)
- Removal of the
Internal.pursfile (#51 by @JordanMartinez)
v8.0.0 - 2022-04-27
Breaking changes:
- Update project and deps to PureScript v0.15.0 (#46 by @sigma-andex and @JordanMartinez)
New features:
Bugfixes:
Other improvements:
v7.0.1 - 2021-05-06
Other improvements:
- Fix warnings revealed by v0.14.1 PS release (#44 by @JordanMartinez)
v7.0.0 - 2021-02-26
Breaking changes:
- Updated code for PureScript 0.14 and dropped the
proxydependency as theproxylibrary has been migrated intoprelude(#39).
Other improvements:
- Removed primes from the
concat'function in FFI in preparation for ES modules support (#36) - Migrated CI to use GitHub Actions and updated installation instructions to use Spago (#38)
- Stopped returning empty objects in foreign implementations for functions which return
Unitfor a small performance benefit (#40) - Added a CHANGELOG.md file and pull request template to the repository (#41)
v6.0.0 - 2019-07-24
- Add a
MutableBuffertype class with instances for bothEffectandST, to allow mutating buffers in either monad, and potentially other monads too (#24, @Dretch) - Remove the
Show Bufferinstance, as reading from a mutable buffer is effectful (@Dretch) - Use
Numberfor reading and writing with Buffers (#25, @hdgarrood)
v5.0.0 - 2018-05-26
- Updated for PureScript 0.12
v4.1.0 - 2017-12-11
- Added
fromArrayBuffer(@matthewleon)
v4.0.0 - 2017-11-19
- Added
toArrayBuffer(@matthewleon)
v3.0.1 - 2017-06-20
- Fixed an encoding issue in
writeString(@justinwoo)
v3.0.0 - 2017-04-04
- Updated for 0.11 (@anilanar)
v2.0.1 - 2017-02-10
- Fixed
getAtOffsetFFI implementation (@rightfold) - Fixed documentation typo (@rightfold)
v2.0.0 - 2016-10-17
- Updated dependencies (@nwolverson)
- Added
latin1encoding (@Risto-Stevcev)
v1.0.0 - 2016-06-06
- Compatibility with psc 0.9
- Better behaved
Showinstance, plus anencodingToNodefunction which is now recommended for use with node APIs instead ofshow.
v0.2.2 - 2016-04-03
- Fixed
byteLength, which had a bad FFI declaration, so that it would throw an error every time it was called.
v0.2.1 - 2016-04-03
- No code changes, this tag was just for publishing to Pursuit.
v0.2.0 - 2015-11-11
- Major important fixes. This is a breaking change as type signatures have changed. (@hdgarrood)
v0.1.1 - 2015-11-10
- Fixed
write,writeString, andfill, which used to immediately throw errors at runtime upon use.
v0.1.0 - 2015-07-06
- Support for compiler version 0.7
- Use Int instead of Number where appropriate (which happens to be everywhere)
v0.0.1 - 2014-10-14
- Initial versioned release