Changelog
[2.0.0-alpha.0] - 2022-03-11
type
property in schema property definitions. Instead, the type
will be string literals indicating the property's type (e.g. 'string'
).Connection
, Document
, Schema
, and the various Error
classes.createConnection
has been changed from a standalone exported function to a static method on the Connection
class. This is now the only supported mechanism for instantiating a Connection
.ConnectionManagerError
has been renamed as MvisError
and its properties similarly renamed since the official Rocket product is "MVIS"package.json
(#3)Changelog
[1.0.0] - 2022-02-22
No changes; only publish 1.0.0 stable release
Changelog
[1.0.0-rc.1] - 2021-10-19
Changelog
[1.0.0-rc.0] - 2021-10-18
$and
operator for queriesChangelog
[0.9.4] - 2021-06-30
Changelog
[0.9.3] - 2021-05-07
Changelog
[0.9.2] - 2020-11-19
Document
instance were intended to not be enumerable and were not getting configured properly to ensure that. This change ensures that the transformDocumentToRecord
, _transformRecordToDocument
, and validate
properties are not configurable, not enumerable, and not writable. Since Model
inherits from Document
, this will affect instances of that class as well.Changelog
[0.9.1] - 2020-05-22
required
validation will fail when the property is not defined. This is because during validation the undefined
property gets cast to null
and then the array gets cast to [null]
during validation which fails. The issue is that undefined
and null
values are not cast to arrays prior to validation in the same way that DocumentArray
s are. This change casts null
and undefined
properties to []
and scalars to an array of that scalar during property validation.Changelog
[0.9.0] - 2020-05-18
required
validation of primitive arrays that was occurring if the primitive's schema definition indicated it was required
. This effectively made it so that arrays must have a length greater than 0 if the contents of the array were required. This caused the required
flag to effectively serve double-duty -- preventing null
/undefined
contents of arrays and enforcing that arrays contained contents.Changelog
[0.8.0] - 2020-04-21
encrypted
. The Schema constructor now accepts optional encrypt
and decrypt
functions. If a field is marked as encrypted
these provided functions will be run.