Title: optional BigInt support: map BigInt to int64/uint64 when `useBigInt64` is set to true by gfx · Pull Request #223 · msgpack/msgpack-javascript · GitHub
Open Graph Title: optional BigInt support: map BigInt to int64/uint64 when `useBigInt64` is set to true by gfx · Pull Request #223 · msgpack/msgpack-javascript
X Title: optional BigInt support: map BigInt to int64/uint64 when `useBigInt64` is set to true by gfx · Pull Request #223 · msgpack/msgpack-javascript
Description: This PR introduces a new option useBigInt64: boolean, which enables "bigint mode" in this library. Unfortunately, the bigint-mode handles JavaScript numbers completely differently than non-bigint-mode. The following table describes the type mappings. useBigInt64: trueuseBigInt64: false a JavaScript safe integer but larger than UINT32_MAXmsgpack float64msgpack uint64 a JavaScript safe integer but smaller than INT32_MINmsgpack float64msgpack int64 a JavaScript bigintmsgpack int64/uint64N/A or extension Because JavaScript's bigint is not calculable with number, they should not be mixed. A field that is a bigint must always be a bigint even if it's encoded and decoded by this library. The default value of the option will be changed to true in a future major upgrade. Not sure when I'll do it so far. ref. #115
Open Graph Description: This PR introduces a new option useBigInt64: boolean, which enables "bigint mode" in this library. Unfortunately, the bigint-mode handles JavaScript numbers completely differently than no...
X Description: This PR introduces a new option useBigInt64: boolean, which enables "bigint mode" in this library. Unfortunately, the bigint-mode handles JavaScript numbers completely differently...
Opengraph URL: https://github.com/msgpack/msgpack-javascript/pull/223
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:13342aad-632b-c776-5375-c9ed443f5d5d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D8CC:17402E:1396638:1A95D88:6A5458EF |
| html-safe-nonce | 2232132ec373a0dac69221af4454c80c26acd7226f0b6429de9f59fbde97c1eb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOENDOjE3NDAyRToxMzk2NjM4OjFBOTVEODg6NkE1NDU4RUYiLCJ2aXNpdG9yX2lkIjoiNDA2NTY4NzU2ODI2Nzg5Mjk3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 50dac467cbc81508c5556b14ca59e0bd2b50ac549e9fc54b6f2e02115f6a52b3 |
| hovercard-subject-tag | pull_request:1263098159 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/msgpack/msgpack-javascript/pull/223/files |
| twitter:image | https://avatars.githubusercontent.com/u/101800?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/101800?s=400&v=4 |
| og:image:alt | This PR introduces a new option useBigInt64: boolean, which enables "bigint mode" in this library. Unfortunately, the bigint-mode handles JavaScript numbers completely differently than no... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/msgpack/msgpack-javascript git https://github.com/msgpack/msgpack-javascript.git |
| octolytics-dimension-user_id | 198264 |
| octolytics-dimension-user_login | msgpack |
| octolytics-dimension-repository_id | 2761854 |
| octolytics-dimension-repository_nwo | msgpack/msgpack-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2761854 |
| octolytics-dimension-repository_network_root_nwo | msgpack/msgpack-javascript |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width