Releases: calebsander/structure-bytes
Releases · calebsander/structure-bytes
2.14.9
- HTTP responses only use
gzip
if the client allows it DateType
andDayType
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
- Quite a bit of source refactoring; shouldn't change API at all
- Moved documentation directory and updated link in README
2.12.9
- Added
DayType
andTimeType
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
- Updated README and documentation
- Refactoring of code; shouldn't affect the API at all
2.10.8
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
- Added
BigIntegerType
andBigUnsignedIntegerType
for storing arbitrary-precision ints - Added comments
2.8.7
- Further shrunk compiled files by avoiding
Buffer
and usingbase64-js
instead
2.7.7
- Using
ArrayBuffer
instead ofBuffer
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, andupload.js
went from 65K to 58K)
2.6.7
- 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
towriteValue()
on an integer or unsigned integer type will correctly throw an error, rather than rounding down to the nearest integer
2.5.7
- Added a
compiled/upload-download.js
script that can do both upload and download and is only a little larger than thecompiled/download.js
script. - Removed unused dependency in the upload script, making it much smaller (96KB -> 64KB)