Skip to content

Releases: Fastcode/nbsdecoder.js

v0.4.6

Choose a tag to compare

@TrentHouliston TrentHouliston released this 20 Aug 06:33
847eebe

What's Changed

  • Add missing stdexcept includes by @Bidski in #15

New Contributors

Full Changelog: v0.4.5...v0.4.6

v0.4.5

Choose a tag to compare

@TrentHouliston TrentHouliston released this 29 Jul 02:56
bce2671

What's Changed

  • Fix encoder file opening on Windows by @AWann2 in #13
  • Fix issues building with node 22 by @TrentHouliston in #14

New Contributors

Full Changelog: v0.4.4...v0.4.5

v0.4.4

Choose a tag to compare

@JosephusPaye JosephusPaye released this 10 Apr 07:46
4b945eb
  • Bundle zlib for building and linking on Windows, to fix use in Electron

v0.4.3

Choose a tag to compare

@JosephusPaye JosephusPaye released this 04 Mar 00:35
240833b
  • Fixes a precision error when converting JS timestamp objects to uint64_t which affected all functions that took JS timestamps. See #11.

v0.4.2

Choose a tag to compare

@JosephusPaye JosephusPaye released this 28 Feb 01:00
0606f63

Relaxes the minimum supported Node version back to v14.

Note: although the package should work with Node 14 and above, it is only tested with 18 and above, since Node versions less than 18 are no longer actively maintained.

v0.4.1

Choose a tag to compare

@JosephusPaye JosephusPaye released this 26 Feb 02:04
08647c5

This is a re-tag of v0.4.0, with a fix for the version number in package.json.

  • Added getTypeIndex() and getPacketByIndex() functions to NbsDecoder class (#8)

Note: the package is no longer tested with Node 14 and Node 16, the latter of which has been EOL since September 2023.

v0.4.0

Choose a tag to compare

@JosephusPaye JosephusPaye released this 26 Feb 02:01
a970771
  • Added getTypeIndex() and getPacketByIndex() functions to NbsDecoder class (#8)

Note: the package is no longer tested with Node 14 and Node 16, the latter of which has been EOL since September 2023.

v0.3.0

Choose a tag to compare

@JosephusPaye JosephusPaye released this 05 Apr 00:53
  • Added NbsEncoder class, for writing NBS files
  • Added NbsEncoder.close() for closing loaded decoders and releasing associated file handles

Note: the package is no longer tested with Node 12, which has been EOL since April 2022.

v0.2.0

Choose a tag to compare

@JosephusPaye JosephusPaye released this 20 Mar 05:42
  • Added a new method nextTimestamp():
  /**
   * Get the timestamp to seek to such that all messages of the given types are stepped by (n) steps
   *
   * @param timestamp  The current timestamp to step from
   * @param type       The type or array of types to step. If unspecified, all types will be stepped.
   * @param steps      Number of steps to move forwards (positive number) or backwards (negative number).
   *                   If 0 or unspecified, returns min or max timestamp matching the given types.
   */
  public nextTimestamp(
    timestamp: number | BigInt | NbsTimestamp,
    type?: NbsTypeSubtype | NbsTypeSubtype[],
    steps?: number
  ): NbsTimestamp;

v0.1.2

Choose a tag to compare

@JosephusPaye JosephusPaye released this 02 Mar 07:57
  • Rename nbs.d.tsnbsdecoder.d.ts in README