Releases: ipfs/protons
Releases · ipfs/protons
v3.1.1
protons-runtime-5.5.0
protons-7.6.0
v3.1.0
v3.0.1
v3.0.0
3.0.0 (2024-08-07)
⚠ BREAKING CHANGES
- singular fields should be optional to write (#83)
- ts definitions will need to be generated from
.proto
files - singular message fields have become optional as message fields are always optional in proto3 - the exported types of
protons-runtime
have changed and protobuf encoders/decoders will need to be regenerated - Uses Uint8ArrayList v2
- This module is now ESM only
Features
- add custom protons options for limiting list/map sizes (#120) (a5ba36b), closes #113
- add strict option to CLI (#119) (8c039c5)
- add support for maps (#75) (e8dfc0a)
- allow limiting nested repeating fields (#129) (a81f997)
- define default types during decode (#62) (6453809), closes #43
- runtime size limits for arrays and maps (#128) (a737d05)
- support jstype custom options (#117) (ba35475), closes #112
- support no-copy serialization (#54) (caa0d71)
- transpile to ts (#17) (74d3b7a)
Bug Fixes
- add uint8arraylist peer dep (#61) (eb16e86), closes #59
- adhere more closely to the language guide for proto3 default values (#66) (406d775), closes #43
- encode enum values (#30) (676c01d)
- improve uint64 perf (#122) (3234bb6)
- increase encoding/decoding performance (#58) (9987b97)
- only import reader/writer to decrease bundle size (#69) (8eea129)
- port protobuf reader/writer to ts (#60) (d101804)
- remove redundant defs and declare codec return type (#28) (c3ea5ec)
- remove writing default values (#88) (078c62f)
- single instance codec (#55) (66d9387), closes #51
- singular fields should be optional to write (#83) (229afbc), closes #42
- sort imports (#84) (6f796f1)
- support empty messages (#78) (8a02910)
- throw when .proto is empty (#81) (ed392cb)
- throw when unsupported fields are detected (#80) (8108875), closes #34
- tidy up formatting of generated code (#57) (387c9e9)
- treat nested enums as enums and not messages (#87) (3af689b)
- update aegir, make codec creation dynamic (#26) (ecc46cc)
- update project config (3199131)
- update sibling dep versions (a77d027)
- use CLI flag
--output
(#46) (58dc0ba) - use uint8-varint, byte-accesor and longbits modules (#56) (66d72f5)
- use uint8arrays alloc for new buffers (#123) (d1bfc94)
- write string into output buffer as uint8array (#118) (03ab706)
Trivial Changes
- add or force update .github/workflows/js-test-and-release.yml (#111) (9898b47)
- add protobuf-ts to benchmarks (#68) (559191d)
- benchmark Protobuf-ES (#89) (47a4dcb)
- delete templates [skip ci] (#110) (196ca52)
- fix generated code (b6a9c18)
- move bad fixtures to separate directory (#82) (76aa198)
- release: 1.0.0 [skip ci] (5aa82f7), closes #17
- release: 1.0.1 [skip ci] (398f066), closes #26
- release: 1.0.2 [skip ci] (193dbfe), closes #27
- release: 1.0.3 [skip ci] (6a078c0), closes #28
- release: 1.0.4 [skip ci] (ab0d4ac), closes #30
- release: 2.0.0 [skip ci] (3fec56a), closes #54
- release: 2.0.1 [skip ci] (b2d78dd)
- release: 2.0.2 [skip ci] (8bf01d0), closes #56
- release: 3.0.0 [skip ci] (fd1622d), closes #58
- release: 3.0.0 [skip ci] (6fd81c1), closes #17 #19
- release: 3.0.1 [skip ci] (25e46dd), closes #59
- release: 3.0.1 [skip ci] ([64fe094](64fe094...