Skip to content

build(deps): bump github.com/shopspring/decimal from 1.4.0 to 1.5.0 - #34

Merged
shing1211 merged 1 commit into
mainfrom
dependabot/go_modules/github.com/shopspring/decimal-1.5.0
Oct 14, 2026
Merged

shing1211 merged 1 commit into
mainfrom
dependabot/go_modules/github.com/shopspring/decimal-1.5.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 13, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/shopspring/decimal from 1.4.0 to 1.5.0.

Release notes

Sourced from github.com/shopspring/decimal's releases.

v1.5.0

Full Changelog can be found in CHANGELOG.md. Please read its BEHAVIOR CHANGES section before upgrading.

New Contributors

Changelog

Sourced from github.com/shopspring/decimal's changelog.

Decimal v1.5.0

BEHAVIOR CHANGES

  • NewFromString and UnmarshalBinary, and so JSON, text, SQL, gob and Spanner decoding, reject exponents larger than the new MaxDecodeExponent setting (default 10,000). Such input could hang the process or use gigabytes of memory. Raise MaxDecodeExponent if you need larger exponents #440
  • Pow, PowWithPrecision, PowInt32 and PowBigInt round correctly. Results for fractional exponents have PowPrecisionNegativeExponent (16) decimal places, and negative powers that used to return 0 keep 16 significant digits, so 10^-18 is 0.000000000000000001. Results too large to represent return an error, or 0 from Pow, instead of hanging or panicking #439
  • RoundUp, RoundDown, RoundCeil and RoundFloor always return exponent -places, like Round. Values don't change, but Exponent(), Coefficient() and String() with TrimTrailingZeros = false can #426 #441
  • Truncate supports negative precision: 5432 truncated to -2 is 5400. Before, it returned 5432 unchanged #426
  • Shift panics when the exponent overflows an int32, instead of wrapping around #437
  • NewFromString rejects a sign right after a leading decimal point, such as ".-5" #447

FEATURES

  • Add TrimTrailingZeros and UseScientificNotation settings for string output #389 #416
  • Add Spanner support with EncodeSpanner and DecodeSpanner for Decimal and NullDecimal #395

ENHANCEMENTS

  • Most operations are faster and allocate less, about twice as fast on average across the benchmarks #444 #445 #446 #447 #448 #449 #451
  • Faster UnmarshalJSON, Scan and NewFromString #403
  • ExpHullAbrham raises its partial sum to a power by squaring. Large inputs that took minutes now take seconds #450
  • Document that NewFromFloat returns the shortest decimal that converts back to the same float, and how to convert large whole numbers exactly #442
  • Split decimal.go into decimal.go, math.go and encoding.go #452
  • Lint with golangci-lint in CI, and test on Go 1.26 and 1.27 #453 #454

BUGFIXES

  • Fix Float64 hanging on decimals with huge exponents #438
  • Fix ExpHullAbrham returning 10^exp instead of 1 for tiny inputs #433
  • Fix a data race in ExpTaylor #414
  • Fix NumDigits for some exact powers of ten #425
  • Fix the omitzero struct tag for Decimal fields in nested structs #415
  • Fix RoundCash giving wrong results with a low DivisionPrecision #443
  • NullDecimal is no longer Valid after a failed Scan, UnmarshalJSON or DecodeSpanner #443
Commits
  • f658fbf docs: changelog for v1.5.0 (#455)
  • b260985 ci: test on Go 1.26 and 1.27 instead of 1.22 and 1.23 (#454)
  • d25658f chore: lint with golangci-lint in CI instead of Go Report Card (#453)
  • fc257b4 chore: split decimal.go into math.go and encoding.go (#452)
  • aed8543 fix: RoundCash with a low DivisionPrecision and NullDecimal.Valid after error...
  • 811854c perf: faster QuoRem, DivRound, Round, RoundBank, RoundUp, RoundCeil and Round...
  • 9b6d118 perf: raise the ExpHullAbrham sum to its power by squaring (#450)
  • cc8953c perf: build trig constants once (#449)
  • 84990cb perf: faster String, MarshalJSON and NewFromString; reject a sign after the d...
  • 71ebcfd Fix the scale of the small-input exponential result (#433)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/shopspring/decimal](https://github.com/shopspring/decimal) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/shopspring/decimal/releases)
- [Changelog](https://github.com/shopspring/decimal/blob/master/CHANGELOG.md)
- [Commits](shopspring/decimal@v1.4.0...v1.5.0)

---
updated-dependencies:
- dependency-name: github.com/shopspring/decimal
  dependency-version: 1.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: dependencies, gomod. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@shing1211
shing1211 self-requested a review October 14, 2026 14:36
@shing1211
shing1211 merged commit 8f0d1e7 into main Oct 14, 2026
9 of 36 checks passed
@dependabot
dependabot Bot deleted the dependabot/go_modules/github.com/shopspring/decimal-1.5.0 branch October 14, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant