UNPKG

safe-bigint

Version:

Safely create a BigInt from a numerical string, even one larger than MAX_SAFE_INTEGER.

47 lines (32 loc) 3.56 kB
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [v1.1.1](https://github.com/ljharb/safe-bigint/compare/v1.1.0...v1.1.1) - 2024-12-18 ### Commits - [actions] split out node 10-20, and 20+ [`6957cbe`](https://github.com/ljharb/safe-bigint/commit/6957cbe5ed8845f5aec2e7f32d8f2e34102d80e7) - [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/eslint-config`, `@ljharb/tsconfig`, `@types/get-intrinsic`, `@types/tape`, `auto-changelog`, `npmignore`, `object-inspect`, `tape` [`063d46f`](https://github.com/ljharb/safe-bigint/commit/063d46f53b838171e6f850fc06008ca67dc770f2) - [Refactor] use `call-bound` directly [`0b38419`](https://github.com/ljharb/safe-bigint/commit/0b384191518b549beaa3f01911f373c970441bbc) - [Deps] update `call-bind`, `get-intrinsic` [`c98b8fa`](https://github.com/ljharb/safe-bigint/commit/c98b8fadd0d9f5ff003caedf47858ffa67cbd32e) - [Tests] replace `aud` with `npm audit` [`e6923a6`](https://github.com/ljharb/safe-bigint/commit/e6923a66fcf49e51291b9b9e1eaf3cd3a3215c69) - [Dev Deps] update `@arethetypeswrong/cli`, `@types/tape` [`35a5b05`](https://github.com/ljharb/safe-bigint/commit/35a5b05b7dfd4a87e8ebe6fe076ae1d4873e6856) - [Dev Deps] add missing peer dep [`647cdee`](https://github.com/ljharb/safe-bigint/commit/647cdee78c3293c5e0dcb29d4d7a448fdb18c8c8) ## [v1.1.0](https://github.com/ljharb/safe-bigint/compare/v1.0.1...v1.1.0) - 2024-03-28 ### Commits - [New] add `is-safe` entrypoint [`ac6f82d`](https://github.com/ljharb/safe-bigint/commit/ac6f82d816191de6d6652a16f88a83326e2c3c97) - [Refactor] extract out "needs hack" logic [`d670522`](https://github.com/ljharb/safe-bigint/commit/d6705225e78b1fb828a6e5d868799119b734f1a7) - [Dev Deps] update `@ljharb/tsconfig` [`dc40964`](https://github.com/ljharb/safe-bigint/commit/dc40964d10c331f3ffbb34d5f06b5f91d50f6041) ## [v1.0.1](https://github.com/ljharb/safe-bigint/compare/v1.0.0...v1.0.1) - 2024-03-28 ### Commits - [types] use shared config [`380f73f`](https://github.com/ljharb/safe-bigint/commit/380f73f2f87a7eb811ace9ebd3a4ab6fb9034531) - [Fix] do not try to convert a bigint [`a47e900`](https://github.com/ljharb/safe-bigint/commit/a47e9005a27c4da684d69bf46140561f32572714) - [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/eslint-config`, `@ljharb/tsconfig`, `@types/object-inspect` [`75dfc21`](https://github.com/ljharb/safe-bigint/commit/75dfc213713029af571855a374511a8476478e03) - [Dev Deps] update `aud`, `npmignore`, `tape` [`0c3edf2`](https://github.com/ljharb/safe-bigint/commit/0c3edf27321a23c5f519053b63ff5a1d88216ca4) - [Tests] use `@arethetypeswrong/cli` [`1467c88`](https://github.com/ljharb/safe-bigint/commit/1467c88353d0d903d0b3038c12600b75fa549dc4) ## v1.0.0 - 2024-03-01 ### Commits - Initial implementation, tests, readme, types [`b8ef3e0`](https://github.com/ljharb/safe-bigint/commit/b8ef3e0bfb1c75313caf9fe79b7a1b7eddf6da50) - Initial commit [`240198a`](https://github.com/ljharb/safe-bigint/commit/240198abf093da224383bd20f0dcd925dd8bf808) - npm init [`9298be2`](https://github.com/ljharb/safe-bigint/commit/9298be22699d76b8696f2fbe87b5b1bef720034e) - Only apps should have lockfiles [`8bfd7eb`](https://github.com/ljharb/safe-bigint/commit/8bfd7ebaad3f15ff72493e5532425bb4d4ce0a61) - [actions] add notable versions to test [`ed3f8e6`](https://github.com/ljharb/safe-bigint/commit/ed3f8e6a5ebfde15221563dc750650a1ba8691a7)