This repository has been archived by the owner on Jan 4, 2022. It is now read-only.
Releases: dashevo/js-dpp
Releases · dashevo/js-dpp
Dash Platform Protocol v0.12.0-dev.2
feat: applyStateTransition fetches and stores data with StateReposito…
Dash Platform Protocol v0.11.1
Bug Fixes
- documents validate against wrong Data Contract (0db6e44)
Dash Platform Protocol v0.11.0
Bug Fixes
- missing public key during ST signature validation (667402d)
- add npmignore (c2e5f5d)
- prevent to update dependencies with major version
0
to minor versions (ea7de93)
Features
- catch
decode
errors and rethrow consensus error (892be82) - limit data contract schema max depth (f78df33)
- limit serialized Data Contract size to 15Kb (7c95197)
- remove Data Contract restriction option (0edd6ff)
- validate documents JSON Schemas during data contract validation (d88817d)
- ensure
maxItems
withuniqueItems
for large non-scalar arrays (3364325) - ensure
maxLength
in case ofpattern
orformat
(297c754) - ensure all arrays items are defined (43d7b8f)
- ensure all object properties are defined (d9f71df)
- limit number of allowed indices (5adff5d)
validateData
method accept raw data too (e72a627)- prevent of defining
propertyNames
(c40663f) - prevent of defining remote
$ref
(34bdb3f) - prevent of using
default
keyword in Data Contract (7629878) - throw error if 16Kb reached for payload in
encode
function (c6aba8b) - accept
JsonSchemaValidator
as an option (ee1bb0f)
BREAKING CHANGES
- Data Contract schema max depth is now limited by 500
- Serialized Data Contract size is now limited to 15Kb
validate
,createFromSerialized
,createFromObject
methods of Data Contract Factory are now asyncitems
andadditionalItems
are required for arraysproperties
andadditionalProperties
are required for objects- number of indices limited to 10
- number of unique indices limited to 3
- number of properties in an index limited to 10
- required
maxItems
withuniqueItems
for large non-scalar arrays - required
maxLength
in case ofpattern
orformat
propertyNames
keyword is restricted in document schemadefault
keyword is restricted in Data Contractencode
function throws error if payload is bigger than 16Kb
v0.11.0-dev.6
feat: accept `JsonSchemaValidator` as an option
v0.11.0-dev.3: feat: plymorphic validation functions
Add option to pass raw transition to `validateData` method
v0.11.0-dev.1: fix: missing public key during ST signature validation
* Add check that public key exists before trying to get type of it * Bump the version
v0.10.1: fix: add npmignore
* Add .npmignore file to include dist folder to the npm package
v0.10.0-dev.10: fix: update indices schema to allow nested object fields
* feat: update indices schema to allow nested object fields * chore: bump version to `0.10.0-dev.10` * fix: property name should not start with a dot