GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Releases · purescript-node/purescript-node-buffer

Releases · purescript-node/purescript-node-buffer

v9.0.1

v9.0.1 Latest
Latest
@thomashoneyman thomashoneyman released this 10 Oct 02:17
v9.0.1
442251b
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Moves the package from Bower/Pulp to registry-backed Spago and pins PureScript. Preserves published dependency bounds.

Modernizes CI and dev tooling with Oxlint, Oxfmt, and purs-tidy. One dev-only Spago advisory remains, affecting three npm packages.

Assets 2
Loading

Uh oh!

There was an error while loading. Please reload this page.

All reactions

v9.0.0

v9.0.0
@JordanMartinez JordanMartinez released this 05 Jul 21:11
v9.0.0
8263037
This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
GPG key ID: 4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.

Breaking changes:

  • Expose Buffer API using typeclass-less API without removing typeclass API (#53 by @JordanMartinez)

    Previously, compiler would fail to infer the type of Buffer.create 1 as Effect Buffer
    because the Buffer API was exposed only via the multiparameter typeclass MonadBuffer.
    Due to the functional dependency between the two parameters, the monadic type cannot be inferred
    until the buffer type is known (either Buffer or STBuffer).:

    import Node.Buffer as Buffer
    
    -- Example 1
    main :: Effect Unit
    main = do
      x <- Buffer.create 1 -- compiler: is this `Int -> Effect Buffer` or `Int -> ST h (STBuffer h)?
      pure unit

    The workaround was to add a type annotation, indicating the x is a Buffer:

    import Node.Buffer as Buffer
    
    -- Example 2
    main :: Effect Unit
    main = do
      x :: Buffer <- Buffer.create 1 -- compiler: Oh! It's `Int -> Effect Buffer`
      pure unit

    This change does not break anyone's code if one was using a create (or another such typeclass member)
    to get Int -> Effect Buffer. Rather, such users can now drop the :: Buffer annotation
    (i.e. Example 1 above now compiles).

    If one was using create to get forall m buf. MonadBuffer buf m => Int -> m buf,
    then one will need to update their imports:

    -import Node.Buffer (class MonadBuffer)
    +import Node.Buffer.Class (class MonadBuffer)

New features:

  • Added the following APIs (#55 by @JordanMartinez)

    • Buffer.alloc, Buffer.allocUnsafe, Buffer.allocUnsafeSlow
    • Buffer.poolSize, Buffer.setPoolSize
    • buffer.swap16, buffer.swap32, buffer.swap64
    • buffer.compare: https://nodejs.org/docs/latest-v18.x/api/buffer.html#bufcomparetarget-targetstart-targetend-sourcestart-sourceend
    • buffer.toString(encoding, start, end): https://nodejs.org/docs/latest-v18.x/api/buffer.html#buftostringencoding-start-end
    • buffer.transcode(buf, from, to)
    • constants:
      • INSPECT_MAX_BYTES: https://nodejs.org/docs/latest-v18.x/api/buffer.html#bufferinspect_max_bytes
      • MAX_LENGTH: https://nodejs.org/docs/latest-v18.x/api/buffer.html#bufferconstantsmax_length
      • MAX_STRING_LENGTH: https://nodejs.org/docs/latest-v18.x/api/buffer.html#bufferconstantsmax_string_length
  • Added a new data constructor for Encoding: Base64Url (#56 by @JordanMartinez)

Bugfixes:

Other improvements:

  • Format code with purs-tidy; enforce in CI (#52 by @JordanMartinez)
  • Update FFI to use uncurried functions (#54 by @JordanMartinez)
  • Removed Internal.purs file (#54 by @JordanMartinez)
  • Bumped CI's node version to lts/* (#55/#57 by @JordanMartinez)
  • Updated CI actions/checkout and actions/setup-nodee to v3 (#55 by @JordanMartinez)

Contributors

  • @JordanMartinez
JordanMartinez
Assets 2
Loading

Uh oh!

There was an error while loading. Please reload this page.

All reactions

v8.0.0

v8.0.0
@JordanMartinez JordanMartinez released this 27 Apr 20:26
v8.0.0
7be7bd0
This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
GPG key ID: 4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.

Breaking changes:

  • Update project and deps to PureScript v0.15.0 (#46 by @sigma-andex and @JordanMartinez)

Contributors

  • @JordanMartinez
  • @sigma-andex
JordanMartinez and sigma-andex
Assets 2
Loading

Uh oh!

There was an error while loading. Please reload this page.

All reactions

v7.0.1

v7.0.1
@thomashoneyman thomashoneyman released this 06 May 17:13
v7.0.1
0721f1e
This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
GPG key ID: 4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.

Other improvements:

  • Fix warnings revealed by v0.14.1 PS release (#44 by @JordanMartinez)
Assets 2
Loading

Uh oh!

There was an error while loading. Please reload this page.

All reactions

v7.0.0

v7.0.0
@thomashoneyman thomashoneyman released this 26 Feb 22:50
v7.0.0
8ec2415
This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
GPG key ID: 4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.

Breaking changes:

  • Updated code for PureScript 0.14 and dropped the proxy dependency as the proxy library has been migrated into prelude (#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 Unit for a small performance benefit (#40)
  • Added a CHANGELOG.md file and pull request template to the repository (#41)
Assets 2
Loading

Uh oh!

There was an error while loading. Please reload this page.

All reactions

v6.0.0

v6.0.0
@hdgarrood hdgarrood released this 24 Jul 18:18
v6.0.0
dac7d47
This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
GPG key ID: 4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.
  • Add a MutableBuffer type class with instances for both Effect and ST, to allow mutating buffers in either monad, and potentially other monads too (#24, @Dretch)
  • Remove the Show Buffer instance, as reading from a mutable buffer is effectful (@Dretch)
  • Use Number for reading and writing with Buffers (#25, @hdgarrood)
Assets 2
Loading

Uh oh!

There was an error while loading. Please reload this page.

All reactions

v5.0.0

v5.0.0
@garyb garyb released this 26 May 23:45
v5.0.0
d279daa
This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
GPG key ID: 4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.

Updated for PureScript 0.12

Assets 2
Loading

Uh oh!

There was an error while loading. Please reload this page.

All reactions

v4.1.0

v4.1.0
@paf31 paf31 released this 11 Dec 00:08
v4.1.0
ef44e27
This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
GPG key ID: 4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.

Add fromArrayBuffer (@matthewleon)

Assets 2
Loading

Uh oh!

There was an error while loading. Please reload this page.

All reactions

v4.0.0

v4.0.0
@garyb garyb released this 19 Nov 23:09
v4.0.0
9298bf8
This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
GPG key ID: 4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.
  • Added toArrayBuffer (@matthewleon)
Assets 2
Loading

Uh oh!

There was an error while loading. Please reload this page.

All reactions

v3.0.1

v3.0.1
@paf31 paf31 released this 20 Jun 00:05
v3.0.1
6b7a3f4

Fix an encoding issue in writeString (@justinwoo)

Assets 2
Loading

Uh oh!

There was an error while loading. Please reload this page.

All reactions
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.