Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 19, 2024

Bumps go.mau.fi/util from 0.5.0 to 0.7.0.

Release notes

Sourced from go.mau.fi/util's releases.

v0.7.0

  • Bumped minimum Go version to 1.22.
  • (curl) Added Parse function to parse a curl command exported from browser devtools.
  • (exfmt) Moved FormatCurl to curl package.
  • (exslices) Added DeduplicateUnsorted utility for deduplicating items in a list while preserving order.
  • (exsync) Deprecated ReturnableOnce in favor of the standard library's [sync.OnceValues].
  • (exsync) Added Event which works similar to Python's [asyncio.Event].
  • (confusable) Added implementation of confusable detection from [UTS #39].
  • (dbutil) Added deadlock detection option which panics if a database call is made without the appropriate transaction context in a goroutine which previously entered a database transaction.

[UTS #39]: https://www.unicode.org/reports/tr39/#Confusable_Detection [sync.OnceValues]: https://pkg.go.dev/sync#OnceValues [asyncio.Event]: https://docs.python.org/3/library/asyncio-sync.html#asyncio.Event

v0.6.0

  • (dbutil) Added -- transaction: sqlite-fkey-off mode to upgrades, which allows safer upgrades that disable foreign keys without having to disable transactions entirely.
    • Breaking change: UpgradeTable.Register now takes a TxnMode instead of a bool as the 5th parameter.
    • Breaking change: Database.DoTxn now takes *dbutil.TxnOptions instead of *sql.TxOptions. nil is still allowed and the existing fields are still supported, but there's a new field too.
    • Breaking change: Database.Conn was renamed to Execable to avoid confusion with the new AcquireConn method (Execable just returns the current transaction or database, AcquireConn acquires a connection for exclusive use).
  • (dbutil) Added finalizer for RowIter to panic if the rows aren't iterated.
  • (dbutil) Changed QueryOne to return a zero value (usually nil) if the Scan method returns an error.
  • (progress) Implemented io.Seeker in Reader.
  • (ptr) Added new utilities for creating pointers to arbitrary values, as well as safely dereferencing pointers and making shallow clones.
  • (exslices) Added functions to cast slices to different types.
  • (gnuzip) Added wrappers for gzip that operate on []bytes instead of io.Reader/Writers.
  • (lottie) Added wrapper for lottieconverter similar to ffmpeg.
  • (variationselector) Fixed edge cases where Add and FullyQualify produced invalid output.
Changelog

Sourced from go.mau.fi/util's changelog.

v0.7.0 (2024-08-16)

  • Bumped minimum Go version to 1.22.
  • (curl) Added Parse function to parse a curl command exported from browser devtools.
  • (exfmt) Moved FormatCurl to curl package.
  • (exslices) Added DeduplicateUnsorted utility for deduplicating items in a list while preserving order.
  • (exsync) Deprecated ReturnableOnce in favor of the standard library's [sync.OnceValues].
  • (exsync) Added Event which works similar to Python's [asyncio.Event].
  • (confusable) Added implementation of confusable detection from [UTS #39].
  • (dbutil) Added deadlock detection option which panics if a database call is made without the appropriate transaction context in a goroutine which previously entered a database transaction.

[UTS #39]: https://www.unicode.org/reports/tr39/#Confusable_Detection [sync.OnceValues]: https://pkg.go.dev/sync#OnceValues [asyncio.Event]: https://docs.python.org/3/library/asyncio-sync.html#asyncio.Event

v0.6.0 (2024-07-16)

  • (dbutil) Added -- transaction: sqlite-fkey-off mode to upgrades, which allows safer upgrades that disable foreign keys without having to disable transactions entirely.
    • Breaking change: UpgradeTable.Register now takes a TxnMode instead of a bool as the 5th parameter.
    • Breaking change: Database.DoTxn now takes *dbutil.TxnOptions instead of *sql.TxOptions. nil is still allowed and the existing fields are still supported, but there's a new field too.
    • Breaking change: Database.Conn was renamed to Execable to avoid confusion with the new AcquireConn method (Execable just returns the current transaction or database, AcquireConn acquires a connection for exclusive use).
  • (dbutil) Added finalizer for RowIter to panic if the rows aren't iterated.
  • (dbutil) Changed QueryOne to return a zero value (usually nil) if the Scan method returns an error.
  • (progress) Implemented io.Seeker in Reader.
  • (ptr) Added new utilities for creating pointers to arbitrary values, as well as safely dereferencing pointers and making shallow clones.
  • (exslices) Added functions to cast slices to different types.
  • (gnuzip) Added wrappers for gzip that operate on []bytes instead of io.Reader/Writers.
  • (lottie) Added wrapper for lottieconverter similar to ffmpeg.
  • (variationselector) Fixed edge cases where Add and FullyQualify produced invalid output.
Commits
  • 8afe752 Bump version to v0.7.0
  • 77362c9 dependencies: update
  • 3841f51 ci: install staticcheck when linting
  • 4a4401d pre-commit: enable staticcheck and fix errors
  • 3ea0469 main: drop support for Go 1.21
  • 892c5e0 exsync: add Event which works like Python's asyncio.Event
  • 2ffacf2 exsync: deprecate ReturnableOnce in favor of sync.OnceValues
  • b00aa5c dependencies: update
  • eba5f6e dbutil: add option to detect database calls with incorrect context (#20)
  • c1b6f86 Remove auto-vacuum opts from RO pool DSN
  • 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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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 [go.mau.fi/util](https://github.com/mautrix/go-util) from 0.5.0 to 0.7.0.
- [Release notes](https://github.com/mautrix/go-util/releases)
- [Changelog](https://github.com/mautrix/go-util/blob/main/CHANGELOG.md)
- [Commits](mautrix/go-util@v0.5.0...v0.7.0)

---
updated-dependencies:
- dependency-name: go.mau.fi/util
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Aug 19, 2024
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 23, 2024

Superseded by #19.

@dependabot dependabot bot closed this Sep 23, 2024
@dependabot dependabot bot deleted the dependabot/go_modules/go.mau.fi/util-0.7.0 branch September 23, 2024 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant