Skip to content

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

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/shopspring/decimal-1.5.0
Open

dependabot[bot] wants to merge 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
dependabot Bot requested a review from a team as a code owner October 13, 2026 09:13
@dependabot dependabot Bot added area/dependencies Pull requests that update a dependency file dependency/go Pull requests that update Go code release-note/dependency-update Release note: Dependency Updates labels Oct 13, 2026
@coderabbitai

coderabbitai Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: openmeterio/openmeter/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 36c539dd-0267-41b4-a48d-41a47b956dc1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dependabot
dependabot Bot force-pushed the dependabot/go_modules/github.com/shopspring/decimal-1.5.0 branch from 49ca1be to 33b1d0d Compare October 15, 2026 15:17
@chrisgacsal

Copy link
Copy Markdown
Collaborator

We should not use this but the github.com/alpacahq/alpacadecimal instead.

@chrisgacsal chrisgacsal left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above.

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
dependabot Bot force-pushed the dependabot/go_modules/github.com/shopspring/decimal-1.5.0 branch from 33b1d0d to 4215289 Compare October 16, 2026 12:10

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/dependencies Pull requests that update a dependency file dependency/go Pull requests that update Go code release-note/dependency-update Release note: Dependency Updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant