Skip to content

chore(deps): bump pbf from 4.0.2 to 5.1.2#4091

Merged
Yeraze merged 1 commit into
mainfrom
dependabot/npm_and_yarn/pbf-5.1.2
Jul 20, 2026
Merged

chore(deps): bump pbf from 4.0.2 to 5.1.2#4091
Yeraze merged 1 commit into
mainfrom
dependabot/npm_and_yarn/pbf-5.1.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 13, 2026

Copy link
Copy Markdown
Contributor

Bumps pbf from 4.0.2 to 5.1.2.

Release notes

Sourced from pbf's releases.

v5.1.2

Fix a minor vulnerability in the compiler (potential code injection via unsafe schema) #149

v5.1.1

  • Add a fast path for writePackedVarint (20% speedup on the vector tiles encoding benchmark) (h/t @​dcodeIO)
  • Fix PbfReader and PbfWriter to honor non-zero byteOffset of the backing buffer (h/t @​mattico #147)

v5.1.0

  • Added a new PbfReader nextField(end) method that allows writing more compact, readable and bulletproof decoding code while preserving performance. #144
  • Updated pbf/compile to take advantage of nextField.

v5.0.0

Breaking changes

  • The Pbf class is split into separate PbfReader and PbfWriter classes, so bundlers can tree-shake the half you don't use.
  • Removed the legacy readVarint64 method — use readVarint(true) for signed 64-bit reads.

Performance

On the Mapbox vector-tile benchmark (439 tiles, 37.5 MB), v5 is ~25% faster to decode and ~27% faster to encode than v4. Highlights:

  • Generated reader code was rewritten from a callback-based style into inlined while loops with direct field-number dispatch, letting V8 fully inline each reader (biggest decode win).
  • writeVarint / readVarint got single-byte fast paths for the common case (tags, small ints).
  • Buffer growth in makeRoomForExtraLength now uses Uint8Array.copyWithin instead of a manual byte-shift loop (biggest encode win).
  • writeBytes uses typedArray.set instead of a manual copy loop.

Other improvements

  • The schema compiler (compile.js) was significantly simplified — generated code is cleaner and easier to read.
  • Fixed a bug in compiled packed sfixed64 fields.
Commits
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for pbf since your current version.


@dependabot @github

dependabot Bot commented on behalf of github Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: npm. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@github-actions

Copy link
Copy Markdown

⚠️ This PR contains a version-update:semver-major update and requires manual review before merging.

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/pbf-5.1.2 branch from a73f8bc to 75b0fdb Compare July 13, 2026 14:45
@github-actions

Copy link
Copy Markdown

⚠️ This PR contains a version-update:semver-major update and requires manual review before merging.

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/pbf-5.1.2 branch from 75b0fdb to 079e70c Compare July 13, 2026 16:02
@github-actions

Copy link
Copy Markdown

⚠️ This PR contains a version-update:semver-major update and requires manual review before merging.

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/pbf-5.1.2 branch from 079e70c to 5cc76f4 Compare July 16, 2026 15:51
@github-actions

Copy link
Copy Markdown

⚠️ This PR contains a version-update:semver-major update and requires manual review before merging.

Bumps [pbf](https://github.com/mapbox/pbf) from 4.0.2 to 5.1.2.
- [Release notes](https://github.com/mapbox/pbf/releases)
- [Commits](mapbox/pbf@v4.0.2...v5.1.2)

---
updated-dependencies:
- dependency-name: pbf
  dependency-version: 5.1.2
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/pbf-5.1.2 branch from 5cc76f4 to 2583ea5 Compare July 20, 2026 12:02
@github-actions

Copy link
Copy Markdown

⚠️ This PR contains a version-update:semver-major update and requires manual review before merging.

@Yeraze
Yeraze merged commit b58699b into main Jul 20, 2026
20 checks passed
@Yeraze
Yeraze deleted the dependabot/npm_and_yarn/pbf-5.1.2 branch July 20, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant