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

2.0.1

Diff

Changelog

Source

[2.0.1] - 2020-01-09

Fixed

  • TypeScript type declarations for ObjectView.
maga
published 2.0.0 •

Changelog

Source

[2.0.0] - 2019-11-21

Removed

Deprecated classes and methods:

  • Remove RecordArray (consider using ObjectView instead).
  • Remove StringArrayView (use ArrayView instead).
  • Remove toObject methods of *View classes (use toJSON methods instead).

Changed

  • Rename BitField.fields to BitField.schema, simplify the schema definition.
  • BitField no longer implicitly switches to using BigInts.
  • Add BigBitField that uses BigInts for bitfields longer than 31 bits.
  • BitFieldMixin automatically switches to BigBitField if the size of the bitfield exceeds 31 bits.
  • BitField no longer auto-initializes upon first call, use BitField.initialize() or BitFieldMixin to initialize the class after creation.
maga
published 1.8.0 •

Changelog

Source

[1.8.0] - 2019-09-27

Added

  • Support default field values in ObjectView.

Changed

  • (potentially breaking) ObjectView.from no longer initializes ObjectView upon the first call. Call ObjectView.initialize() upon setting the schema (ObjectView.schema) for the extending class, or use ObjectViewMixin
maga
published 1.7.5 •

Changelog

Source

[1.7.5] - 2019-09-22

Added

  • Add BitFieldMixin.

Fixed

  • Avoid BigInts in RecordArray if not supported.
maga
published 1.7.4 •

Changelog

Source

[1.7.4] - 2019-09-21

Added

  • Add ObjectViewMixin and expose ArrayView.
  • Add ObjectView#getView.
maga
published 1.7.3 •

Changelog

Source

[1.7.3] - 2019-09-13

Fixed

  • Handle non-string values in StringView.from
maga
published 1.7.2 •

Changelog

Source

[1.7.2] - 2019-09-13

Added

  • Add StringView.from that uses TextEncoder#encodeInto

Changed

  • Support strings in ArrayView replacing StringArrayView
maga
published 1.7.1 •

Changelog

Source

[1.7.1] - 2019-09-11

Added

  • Support custom types in nested ObjectViews
maga
published 1.7.0 •

Changelog

Source

[1.7.0] - 2019-09-09

Added

  • Support custom types in ObjectView
  • Add getValue methods to View classes
  • Add toJSON methods and deprecate toObject in View classes
maga
published 1.6.1 •

Changelog

Source

[1.6.1] - 2019-08-20

Fixed

  • Add iterators in TypeScript definitions
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