Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

structurae

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

structurae - npm Package Versions

1
8

3.0.6

Diff

Changelog

Source

[3.0.6] - 2020-04-28

Changed

  • Use custom UTF8 encoding for StringView as a workaround to solve performance issues in V8.
maga
published 3.0.5 •

Changelog

Source

[3.0.5] - 2020-04-07

Fixed

  • TypeViewMixin caching custom TypeView classes.

Changed

  • Export TypedArrayView.
  • Rename *View.Array into *View.ArrayClass.
maga
published 3.0.4 •

Changelog

Source

[3.0.4] - 2020-04-05

Added

  • Export TypeView class.
  • Add *View.Array field to allow using custom ArrayView classes.
maga
published 3.0.3 •

Changelog

Source

[3.0.3] - 2020-04-03

Added

  • MapView can be used within a larger buffer.
maga
published 3.0.2 •

Changelog

Source

[3.0.2] - 2020-04-02

Added

  • MapView can use custom ObjectView classes to initialize nested objects.
maga
published 3.0.1 •

Changelog

Source

[3.0.1] - 2020-04-02

Fixed

  • MapView.from treats undefined and null fields as missing.
maga
published 3.0.0 •

Changelog

Source

[3.0.0] - 2020-03-30

Changed

(breaking changes)

  • ObjectView and all related *View classes use JSON Schema for schema definition.
  • All *View classes use little endian encoding by default.
  • ObjectView#get, ArrayView#get, MapView#get return JavaScript values, use *View.getView methods to get views.
  • CollectionView is replaced by MapView
  • TypedArrayView extends ArrayView, and TypedArrayViewMixin is replaced with ArrayViewMixin
maga
published 2.3.0 •

Changelog

Source

[2.3.0] - 2020-03-10

Added

  • Add static toJSON methods to View classes

Changed

  • 2x speed up View encoding/decoding by avoiding extra DataView instantiations.
  • (potentially breaking) TypeView.get & TypeView.set are renames into TypeView.toJSON and TypeView.from respectively.
maga
published 2.2.0 •

Changelog

Source

[2.2.0] - 2020-02-26

Added

  • Support boolean type in ObjectView.
  • Support type aliases in ObjectView.
  • Cache ArrayView & TypedArrayView classes to avoid duplications.
  • TypeView class to simplify creation of custom types for ObjectView.

Changed

  • (potentially breaking) Adding custom types to ObjectView is reworked. Custom types are now expected to be extensions of existing *View classes. A special TypeView class is added for types that extend number types.
maga
published 2.1.0 •

Changelog

Source

[2.1.0] - 2020-02-11

Added

  • BinaryProtocol class to simplify operating on tagged ObjectView.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc