Skip to content

Releases: calebsander/structure-bytes

2.14.9

05 Sep 02:26
Compare
Choose a tag to compare
  • HTTP responses only use gzip if the client allows it
  • DateType and DayType store signed integers because apparently the world existed before 1970
  • Fixed a bug in strint.js so writing signed longs should work correctly
  • Removed unneeded files from npm package
  • Using Closure Compiler, so client-side files are a bit smaller
  • Updated dependencies

2.13.9

22 Aug 06:03
Compare
Choose a tag to compare
  • Quite a bit of source refactoring; shouldn't change API at all
  • Moved documentation directory and updated link in README

2.12.9

22 Aug 00:35
Compare
Choose a tag to compare
  • Added DayType and TimeType for storing days and times of day, respectively
  • Changed some type bytes
  • Fixed EnumType with types containing pointer types (correctly setting pointers now)
  • Removed unnecessary exports
  • Upgraded dev dependencies

2.11.8

17 Aug 18:04
Compare
Choose a tag to compare
  • Updated README and documentation
  • Refactoring of code; shouldn't affect the API at all

2.10.8

15 Aug 23:43
Compare
Choose a tag to compare

Fixed reading pointer types' values from buffers when the offset passed to r.value() is not 0. Pointers were incorrectly being calculated to be offsets from the start of the buffer rather than the start of the value in the buffer. This fixes both readTypeAndValue() and download() for types with pointers in them.

2.9.8

15 Aug 20:59
Compare
Choose a tag to compare
  • Added BigIntegerType and BigUnsignedIntegerType for storing arbitrary-precision ints
  • Added comments

2.8.7

10 Aug 00:25
Compare
Choose a tag to compare
  • Further shrunk compiled files by avoiding Buffer and using base64-js instead

2.7.7

09 Aug 22:27
Compare
Choose a tag to compare
  • Using ArrayBuffer instead of Buffer across the project
    • Compatibility seems to be pretty good across browsers, but some might not support this
  • Client-side code now has fewer dependencies and so is substantially smaller (download.js went from 110K to 66K, upload-download.js went from 110K to 67K, and upload.js went from 65K to 58K)

2.6.7

08 Aug 01:21
Compare
Choose a tag to compare
  • Integer, unsigned integer, and floating-point types can now be passed strings in writeValue(). The string will be coerced into a number and an error will be thrown if the string is invalid.
  • Passing floating-point numbers, e.g. 3.14 to writeValue() on an integer or unsigned integer type will correctly throw an error, rather than rounding down to the nearest integer

2.5.7

24 Jul 02:52
Compare
Choose a tag to compare
  • Added a compiled/upload-download.js script that can do both upload and download and is only a little larger than the compiled/download.js script.
  • Removed unused dependency in the upload script, making it much smaller (96KB -> 64KB)