@exodus/bigint 4.0.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.0.1](https://github.com/ExodusMovement/hydra/compare/@exodus/bigint@4.0.0...@exodus/bigint@4.0.1) (2026-04-06)
7
+
8
+ ### Bug Fixes
9
+
10
+ - fix(bigint): abs() returns new instance instead of this for non-negative values (#15857)
11
+
6
12
  ## [4.0.0](https://github.com/ExodusMovement/hydra/compare/@exodus/bigint@3.0.1...@exodus/bigint@4.0.0) (2025-10-21)
7
13
 
8
14
  ### ⚠ BREAKING CHANGES
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/bigint",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "bigint wrapper for native BigInt",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -31,5 +31,5 @@
31
31
  "publishConfig": {
32
32
  "provenance": false
33
33
  },
34
- "gitHead": "dd404f90b5ed03b47027726a301f7dcca5887ef7"
34
+ "gitHead": "ede11eff74bfb4c6c8d288a16ce5ec7cddfbf173"
35
35
  }
@@ -96,7 +96,7 @@ export default class Wrapper {
96
96
  }
97
97
 
98
98
  abs() {
99
- return this.__value__ < BI_ZERO ? Wrapper.wrap(-this.__value__) : this
99
+ return Wrapper.wrap(this.__value__ < BI_ZERO ? -this.__value__ : this.__value__)
100
100
  }
101
101
 
102
102
  mutateAbs() {