Skip to content

Releases: noahm/struct-buffer

v6.1.1

Choose a tag to compare

@noahm noahm released this 09 Jul 18:03
dba6e1c
  • 🐛 fix Reshape when indexed as an array (e.g. reshaped[n])
  • 🐛 fix decorator types (Reshape, LittleEndian, RelativeOffset) and runtime types falling back to any when indexed more than one level deep (e.g. reshaped[n][m])

Full Changelog: v6.1.0...v6.1.1

v6.1.0

Choose a tag to compare

@noahm noahm released this 08 Jul 19:01
d4b9373

What's Changed

  • Add Reshape decorator for post-decode/pre-encode data transformation by @noahm in #25

Full Changelog: v6.0.1...v6.1.0

v6.0.1

Choose a tag to compare

@noahm noahm released this 13 Dec 23:35
f7bcc0f

A new major version! This is based on published changes from the original upstream project which included a lot of refactoring and cleanup work. (note there is no 6.0.0 due to a mistake in publishing)

BREAKING CHANGES

  • 📦 Package is now published as ESM only. UMD build has been removed.
  • 💥 remove sizeof, display, c-struct, windows type
  • 🔨 remove StructBuffer.structName attribute
  • 🔨 remove StructType.names attribute

Other changes

  • ✨ add LittleEndian and RelativeOffset. See unit tests for example usage
  • ✅ ✔️ add test
  • 🎨 improve code

v6.0.0 Beta 1

v6.0.0 Beta 1 Pre-release
Pre-release

Choose a tag to compare

@noahm noahm released this 14 Oct 19:22
59c91c1

A new major version! This is based on published changes from the original upstream project which included a lot of refactoring and cleanup work.

BREAKING CHANGES

  • 📦 Package is now published as ESM only. UMD build has been removed.
  • 💥 remove sizeof, display, c-struct, windows type
  • 🔨 remove StructBuffer.structName attribute
  • 🔨 remove StructType.names attribute

Other changes

  • ✨ add LittleEndian and RelativeOffset. See unit tests for example usage
  • ✅ ✔️ add test
  • 🎨 improve code

v5.4.1

Choose a tag to compare

@noahm noahm released this 11 Apr 04:41
1903f70
  • Fixed decoded types when using sequences of nested structs

v5.4.0

Choose a tag to compare

@noahm noahm released this 01 Apr 19:01
ae3d87c
  • bits structures now decode into boolean type instead of 0 | 1
  • char[n] fields are now typed as regular strings instead of string arrays

v5.3.0

Choose a tag to compare

@noahm noahm released this 29 Mar 01:51
d768a37

First release of forked package. See original changelog for previous releases

  • ✨ Updated types of StructBuffer class and bits and bitFields functions to have fully typed returns from the .decode() method