mapbox / mapbox/pbf

Support BigInts for 64-bit numbers above 2 ** 53

Open
#128 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
881
Forks
113
PR merge metrics
No merged PRs in 30d

Description

Numbers >= 2 ** 53 aren't accurate integers in JS. This is why we have BigInts to handle values larger than this. But this library doesn't utilize them at all

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start by tracing how this library currently encodes and decodes 64-bit numbers, then determine the expected BigInt behavior for values at and above 2 ** 53. Done means those values remain accurate without breaking existing number handling, with coverage for the new cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.