Skip to content

Releases: mapbox/pbf

v4.0.1

08 Jul 15:00
Compare
Choose a tag to compare
  • Avoid creating redundant zero-byte buffer when writing Pbf.
  • Fix Pbf constructor typings (mark buf as optional).

v4.0.0

08 Jul 08:47
Compare
Choose a tag to compare
  • ⚠️ Expose the library as a ES module, dropping CommonJS support.
  • ⚠️ Rewrite the codebase to use modern ES syntax (you can still transpile on your end to keep IE11 support).
  • ⚠️ Make code generation generate ESM modules by default, with CommonJS available through --legacy mode.
  • ⚠️ Overhaul code generation to write simpler code that's more compact and more susceptible to efficient minimization — instead of nested objects, the generated code has flat exports of read and write functions (see readme and test fixtures).
  • Add TypeScript type check & first-class typings via JSDoc comments.
  • Remove dependency on ieee754 package and use native DataView instead, which is faster and universally supported.
  • Modernize dev tools (use Rollup instead of Browserify for UMD builds, ESLint 9+; in addition to an earlier switch from Tap to native Node test runner and coverage and to GitHub Actions from Travis).
  • Fix writing of default oneof fields. #103 by @farwayer

v3.3.0

03 Jul 15:52
Compare
Choose a tag to compare
  • Fix incorrect code generation for enums. 2e0dfa7
  • Use undefined instead of null as the default value for generated code (by @Timmmm in #112)
  • Add support for js_type annotations for generated code (by @UlysseM in #121)
  • Fix an error with TextDecoder in certain environments (by @evertbouw in #113)

Changelog for previous versions