Skip to content

Commit

Permalink
5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid committed Jul 7, 2019
1 parent 24cc2dd commit 8a8d9ba
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
24 changes: 17 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
# v5.0.0
5.0.0 / 2019-07-04
------------------

Major changes:

- `.toJSON()` returns padded hex value
- `new BN('string', base)` throws on invalid characters
- Deprecate `.modn()`, please use `.modrn()` instead
- Change `.strip()` to internal method
- travis: update node versions (#205)
- Refactor buffer constructor (#200)
- lib: fix for negative numbers: imuln, modrn, idivn (#185)
- bn: fix Red#imod (#178)
- check unexpected high bits for invalid characters (#173)
- document support very large integers (#158)
- only define toBuffer if Buffer is defined (#172)
- lib: better validation of string input (#151)
- tests: reject decimal input in constructor (#91)
- bn: make .strip() an internal method (#105)
- lib: deprecate `.modn()` introduce `.modrn()` (#112 #129 #130)
- bn: don't accept invalid characters (#141)
- package: use `files` insteadof `.npmignore` (#152)
- bn: improve allocation speed for buffers (#167)
- toJSON to default to interoperable hex (length % 2) (#164)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bn.js",
"version": "4.11.8",
"version": "5.0.0",
"description": "Big number implementation in pure javascript",
"main": "lib/bn.js",
"scripts": {
Expand Down

0 comments on commit 8a8d9ba

Please sign in to comment.