protobuf v6.4.0 Release Notes
-
๐ฅ Breaking
๐ :hash: Dropped IE8 support ๐ :hash: Removed now unused util.longNeq which was used by early static code
๐ Fixed
๐ :hash: Do not swallow errors in loadSync, also accept negative enum values in Enum#add, fixes #609 ๐ :hash: Improved bytes field support, also fixes #606 ๐ป :hash: Fall back to browser Reader when passing an Uint8Array under node, fixes #605 ๐ :hash: Respect optional properties when writing interfaces in tsd-jsdoc, fixes #598
๐ New
๐ :hash: Instead of protobuf.parse.keepCase, fall back to protobuf.parse.defaults holding all possible defaults, see #608 ๐ :hash: Added global ParseOptions#keepCase fallback as protobuf.parse.keepCase, see #608 ๐ :hash: Converters use code generation and support custom implementations ๐ :hash: Be more verbose when throwing invalid wire type errors, see #602 ๐ :hash: Added an asJSON-option to always populate array fields, even if defaults=false, see #597 ๐ :hash: Attempt to improve TypeScript support by using explicit exports ๐ :hash: Copy-pasted typescript definitions to micro modules, see #599 ๐ :hash: Emit an error on resolveAll() if any extension fields cannot be resolved, see #595 + test case
CLI
๐ :hash: Removed 'not recommend' label for --keep-case, see #608 ๐ :hash: Added customizable linter configuration to pbjs ๐ :hash: Added stdin support to pbjs and pbts ๐ :hash: Static code no longer uses IE8 support utility ๐ :hash: Generated static code now supports asJSON/from ๐ :hash: Added support for TypeScript enums to pbts :hash: Added a few helpful comments to static code :hash: Slightly beautify statically generated code :hash: Do not wrap main definition as a module and export directly instead :hash: Generate prettier definitions with --no-comments ๐ :hash: Added variable arguments support to tsd-jsdoc ๐ :hash: Reference dependency imports as a module to prevent name collisions, see #596 ๐ :hash: Removed now unnecessary comment lines in generated static code
๐ Docs
๐ :hash: Added notes on CSP-restricted environments to README, see #593
Other
๐ :hash: Added test case for asJSON with arrays=true, see #597 ๐ป :hash: Added a tape adapter to assert message equality accross browsers ๐จ :hash: Refactored some internal utility away โช :hash: Reverted previous attempt on #597 ๐จ :hash: Minor tsd-jsdoc refactor ๐ :hash: Removed unused sandbox files โก๏ธ :hash: Updated package.json of micro modules to reference types, see #599 ๐ :hash: Reference dependencies as imports in generated typescript definitions, see #596 ๐ :hash: Allow null values on optional long fields, see #590 ๐ :hash: Various jsdoc improvements and a workaround for d.ts generation, see #592