2.16.0 • Published 1 month ago

@joystream/metadata-protobuf v2.16.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

Joystream Metadata Library

This package contains protobuf message definitions compiled to Javascript/Typescript used for creating and updating various metadata blobs in Joystream.

Message Specs

Documented in doc folder

Choice of protobuf protocol v2

For our usecase we wish to re-use same message to create and update subset of fields. For this reason we need the explicit information about wether a field has been set or not and this is only possible with proto v2.

Background: required/optional feilds are deprecated in proto v3

Helper methods

The custom Joystream types such as License have helper methods to construct pre-defined well known values.

Example code:

Best place to look at are the tests specs

Opaque types

We use simple ISO_639-1 code representation for Language. useful npm package https://www.npmjs.com/package/iso-639-1

Building the package

Building will compile the protofiles using protobufjs and build the library from source.

yarn && yarn build

Generating docs

yarn generate-docs

Tests

yarn test
2.16.0

1 month ago

2.15.0

2 months ago

2.14.0

3 months ago

2.13.0

3 months ago

2.12.0

5 months ago

2.11.0

6 months ago

2.10.0

7 months ago

2.9.0

8 months ago

2.7.0

1 year ago

2.8.1

1 year ago

2.5.1

1 year ago

2.8.0

1 year ago

2.6.0

2 years ago

2.5.0

2 years ago

2.4.0

2 years ago

2.3.0

2 years ago

2.2.0

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago