brave / go-sync

Brave sync server v2
Mozilla Public License 2.0
195 stars 48 forks source link

Update module github.com/redis/go-redis/v9 to v9.7.0 #273

Open renovate[bot] opened 5 months ago

renovate[bot] commented 5 months ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/redis/go-redis/v9 v9.5.1 -> v9.7.0 age adoption passing confidence

Release Notes

redis/go-redis (github.com/redis/go-redis/v9) ### [`v9.7.0`](https://redirect.github.com/redis/go-redis/releases/tag/v9.7.0): 9.7.0 [Compare Source](https://redirect.github.com/redis/go-redis/compare/v9.6.2...v9.7.0) ### Changes #### πŸš€ New Features - Support Redis search and query capabilities ([#​2801](https://redirect.github.com/redis/go-redis/issues/2801), [#​3098](https://redirect.github.com/redis/go-redis/issues/3098)) - Support indexing and querying empty values ([#​3053](https://redirect.github.com/redis/go-redis/issues/3053)) - Support for Redis JSON with RESP2 protocol ([#​3146](https://redirect.github.com/redis/go-redis/issues/3146)) #### πŸ› οΈ Improvements We're glad to announce that we added a search and query support in the current release. #### 🧰 Maintenance - Documentation examples ([#​3102](https://redirect.github.com/redis/go-redis/issues/3102), [#​3106](https://redirect.github.com/redis/go-redis/issues/3106), [#​3110](https://redirect.github.com/redis/go-redis/issues/3110), [#​3111](https://redirect.github.com/redis/go-redis/issues/3111), [#​3113](https://redirect.github.com/redis/go-redis/issues/3113), [#​3114](https://redirect.github.com/redis/go-redis/issues/3114), [#​3115](https://redirect.github.com/redis/go-redis/issues/3115), [#​3123](https://redirect.github.com/redis/go-redis/issues/3123), [#​3124](https://redirect.github.com/redis/go-redis/issues/3124)) - retract v9.5.3 of redisotel and other extra packages ([#​3108](https://redirect.github.com/redis/go-redis/issues/3108)) - Add test coverage reporting and Codecov badge ([#​3055](https://redirect.github.com/redis/go-redis/issues/3055)) - Updated module version that points to retracted package version ([#​3074](https://redirect.github.com/redis/go-redis/issues/3074)) #### Contributors We'd like to thank all the contributors who worked on this release! [@​andy-stark-redis](https://redirect.github.com/andy-stark-redis), [@​ipechorin](https://redirect.github.com/ipechorin), [@​ofekshenawa](https://redirect.github.com/ofekshenawa) and [@​vladvildanov](https://redirect.github.com/vladvildanov) ### [`v9.6.2`](https://redirect.github.com/redis/go-redis/releases/tag/v9.6.2): 9.6.2 [Compare Source](https://redirect.github.com/redis/go-redis/compare/v9.6.1...v9.6.2) ### Changes #### πŸ› Bug Fixes - Fixed bug with broken TLS sessions ([#​3145](https://redirect.github.com/redis/go-redis/issues/3145)) #### Contributors We'd like to thank all the contributors who worked on this release! [@​ofekshenawa](https://redirect.github.com/ofekshenawa) [@​vladvildanov](https://redirect.github.com/vladvildanov) [@​rentziass](https://redirect.github.com/rentziass) ### [`v9.6.1`](https://redirect.github.com/redis/go-redis/releases/tag/v9.6.1): 9.6.1 [Compare Source](https://redirect.github.com/redis/go-redis/compare/v9.6.0...v9.6.1) ### Changes #### 9.6 This release contains all new features from version 9.6. ##### πŸš€ New Features - Support Hash-field expiration commands ([#​2991](https://redirect.github.com/redis/go-redis/issues/2991)) - Support Hash-field expiration commands in Pipeline & Fix HExpire HExpireWithArgs expiration ([#​3038](https://redirect.github.com/redis/go-redis/issues/3038)) - Support NOVALUES parameter for HSCAN ([#​2925](https://redirect.github.com/redis/go-redis/issues/2925)) - Added test case for CLIENT KILL with MAXAGE option ([#​2971](https://redirect.github.com/redis/go-redis/issues/2971)) - Add support for XREAD last entry ([#​3005](https://redirect.github.com/redis/go-redis/issues/3005)) - Reduce the type assertion of CheckConn ([#​3066](https://redirect.github.com/redis/go-redis/issues/3066)) #### 9.6.1 In addition minor changes were performed to retract version 9.5.3 and 9.5.4 that were released accidentally. ##### 🧰 Maintenance - Change CI to 7.4.0-RC2 ([#​3070](https://redirect.github.com/redis/go-redis/issues/3070)) ##### 🎁 Package Distribution - Retract versions 9.5.3 and 9.5.4 ([#​3069](https://redirect.github.com/redis/go-redis/issues/3069)) #### Contributors We'd like to thank all the contributors who worked on this release! [@​LINKIWI](https://redirect.github.com/LINKIWI), [@​b1ron](https://redirect.github.com/b1ron), [@​gerzse](https://redirect.github.com/gerzse), [@​haines](https://redirect.github.com/haines), [@​immersedin](https://redirect.github.com/immersedin), [@​naiqianz](https://redirect.github.com/naiqianz), [@​ofekshenawa](https://redirect.github.com/ofekshenawa), [@​srikar-jilugu](https://redirect.github.com/srikar-jilugu), [@​tzongw](https://redirect.github.com/tzongw), [@​vladvildanov](https://redirect.github.com/vladvildanov), [@​vmihailenco](https://redirect.github.com/vmihailenco) and [@​monkey92t](https://redirect.github.com/monkey92t) ### [`v9.6.0`](https://redirect.github.com/redis/go-redis/releases/tag/v9.6.0): 9.6.0 [Compare Source](https://redirect.github.com/redis/go-redis/compare/v9.5.4...v9.6.0) ### Changes #### πŸš€ New Features - Support Hash-field expiration commands ([#​2991](https://redirect.github.com/redis/go-redis/issues/2991)) - Support Hash-field expiration commands in Pipeline & Fix HExpire HExpireWithArgs expiration ([#​3038](https://redirect.github.com/redis/go-redis/issues/3038)) - Support NOVALUES parameter for HSCAN ([#​2925](https://redirect.github.com/redis/go-redis/issues/2925)) - Added test case for CLIENT KILL with MAXAGE option ([#​2971](https://redirect.github.com/redis/go-redis/issues/2971)) - Add support for XREAD last entry ([#​3005](https://redirect.github.com/redis/go-redis/issues/3005)) - Reduce the type assertion of CheckConn ([#​3066](https://redirect.github.com/redis/go-redis/issues/3066)) #### πŸ› οΈ Improvements This release includes support for Redis Community Edition (CE) 7.4.0, ensuring compatibility with the latest features and improvements introduced in Redis CE 7.4.0. #### 🧰 Maintenance - chore(deps): bump golangci/golangci-lint-action from 4 to 6 ([#​2993](https://redirect.github.com/redis/go-redis/issues/2993)) - Avoid unnecessary retry delay in cluster client following MOVED and ASK redirection ([#​3048](https://redirect.github.com/redis/go-redis/issues/3048)) - add test for tls connCheck [#​3025](https://redirect.github.com/redis/go-redis/issues/3025) ([#​3047](https://redirect.github.com/redis/go-redis/issues/3047)) - fix node routing in slotClosestNode ([#​3043](https://redirect.github.com/redis/go-redis/issues/3043)) - Update pubsub.go ([#​3042](https://redirect.github.com/redis/go-redis/issues/3042)) - Change monitor test to run manually ([#​3041](https://redirect.github.com/redis/go-redis/issues/3041)) - chore(deps): bump rojopolis/spellcheck-github-actions from 0.36.0 to 0.38.0 ([#​3028](https://redirect.github.com/redis/go-redis/issues/3028)) - Add `(*StatusCmd).Bytes()` method ([#​3030](https://redirect.github.com/redis/go-redis/issues/3030)) - chore(deps): bump golang.org/x/net from 0.20.0 to 0.23.0 in /example/otel ([#​3000](https://redirect.github.com/redis/go-redis/issues/3000)) #### Contributors We'd like to thank all the contributors who worked on this release! [@​LINKIWI](https://redirect.github.com/LINKIWI), [@​b1ron](https://redirect.github.com/b1ron), [@​dependabot](https://redirect.github.com/dependabot), [@​dependabot](https://redirect.github.com/dependabot)\[bot], [@​gerzse](https://redirect.github.com/gerzse), [@​haines](https://redirect.github.com/haines), [@​immersedin](https://redirect.github.com/immersedin), [@​naiqianz](https://redirect.github.com/naiqianz), [@​ofekshenawa](https://redirect.github.com/ofekshenawa), [@​srikar-jilugu](https://redirect.github.com/srikar-jilugu), [@​tzongw](https://redirect.github.com/tzongw), [@​vladvildanov](https://redirect.github.com/vladvildanov) and [@​vmihailenco](https://redirect.github.com/vmihailenco) [@​monkey92t](https://redirect.github.com/monkey92t) ### [`v9.5.4`](https://redirect.github.com/redis/go-redis/compare/v9.5.3...v9.5.4) [Compare Source](https://redirect.github.com/redis/go-redis/compare/v9.5.3...v9.5.4) ### [`v9.5.3`](https://redirect.github.com/redis/go-redis/compare/v9.5.2...v9.5.3) [Compare Source](https://redirect.github.com/redis/go-redis/compare/v9.5.2...v9.5.3) ### [`v9.5.2`](https://redirect.github.com/redis/go-redis/releases/tag/v9.5.2): 9.5.2 [Compare Source](https://redirect.github.com/redis/go-redis/compare/v9.5.1...v9.5.2) ### Changes - fix: fix [#​2681](https://redirect.github.com/redis/go-redis/issues/2681) ([#​2998](https://redirect.github.com/redis/go-redis/issues/2998)) - Remove skipping span creation by checking parent spans ([#​2980](https://redirect.github.com/redis/go-redis/issues/2980)) - Handle IPv6 in isMovedError ([#​2981](https://redirect.github.com/redis/go-redis/issues/2981)) - Fix XGroup first pos key ([#​2983](https://redirect.github.com/redis/go-redis/issues/2983)) - Adding BitfieldRo in BitMapCmdable interface ([#​2962](https://redirect.github.com/redis/go-redis/issues/2962)) - Optimize docs useless imports and typo ([#​2970](https://redirect.github.com/redis/go-redis/issues/2970)) - chore: fix some comments ([#​2967](https://redirect.github.com/redis/go-redis/issues/2967)) - Fix for issues [#​2959](https://redirect.github.com/redis/go-redis/issues/2959) and [#​2960](https://redirect.github.com/redis/go-redis/issues/2960) ([#​2961](https://redirect.github.com/redis/go-redis/issues/2961)) - fix: [#​2956](https://redirect.github.com/redis/go-redis/issues/2956) ([#​2957](https://redirect.github.com/redis/go-redis/issues/2957)) - fix misuses of a vs an ([#​2936](https://redirect.github.com/redis/go-redis/issues/2936)) - add server address and port span attributes to redis otel trace instrumentation ([#​2826](https://redirect.github.com/redis/go-redis/issues/2826)) - chore(deps): bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in /example/otel ([#​2944](https://redirect.github.com/redis/go-redis/issues/2944)) - Remove secrets from Redis Enterprise CI ([#​2938](https://redirect.github.com/redis/go-redis/issues/2938)) - Fix monitor on go 1.19 ([#​2908](https://redirect.github.com/redis/go-redis/issues/2908)) - chore(deps): bump google.golang.org/protobuf from 1.28.1 to 1.33.0 in /extra/redisprometheus ([#​2942](https://redirect.github.com/redis/go-redis/issues/2942)) - Change RE image to public RE image ([#​2935](https://redirect.github.com/redis/go-redis/issues/2935)) #### Contributors We'd like to thank all the contributors who worked on this release! [@​XSAM](https://redirect.github.com/XSAM), [@​akash14darshan](https://redirect.github.com/akash14darshan), [@​daviddzxy](https://redirect.github.com/daviddzxy), [@​dependabot](https://redirect.github.com/dependabot), [@​dependabot](https://redirect.github.com/dependabot)\[bot], [@​esara](https://redirect.github.com/esara), [@​hakusai22](https://redirect.github.com/hakusai22), [@​hishope](https://redirect.github.com/hishope), [@​kindknow](https://redirect.github.com/kindknow), [@​monkey92t](https://redirect.github.com/monkey92t), [@​ofekshenawa](https://redirect.github.com/ofekshenawa), [@​singular-seal](https://redirect.github.com/singular-seal) and deferdeter

Configuration

πŸ“… Schedule: Branch creation - " 0-4 * 3" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

β™» Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

πŸ”• Ignore: Close this PR and you won't be reminded about this update again.



This PR was generated by Mend Renovate. View the repository job log.

github-actions[bot] commented 4 months ago

[puLL-Merge] - redis/go-redis@v9.5.1..v9.5.3

Description

This pull request updates the go-redis library, incorporating various improvements, bug fixes, and compatibility updates. The changes span across multiple files and include updates to dependencies, code refactoring, and new feature additions.

Changes ### Changes 1. `.github/workflows/build.yml`: - Added Go version 1.19.x to the build matrix. 2. `.github/workflows/test-redis-enterprise.yml`: - Updated Redis Enterprise version to 7.4.2-54. - Replaced sensitive information with placeholder values. 3. `CHANGELOG.md`: - Added an entry for an unreleased version, mentioning changes to span creation behavior. 4. `Makefile`: - Modified the test command to skip certain tests for Go version 1.19 in example directories. 5. `README.md`: - Minor changes to the import statements in the example code. 6. `bitmap_commands.go`: - Added a new `BitFieldRO` command. - Optimized the `BitCount` command implementation. 7. `command.go`: - Improved the `readMonitor` function to reduce lock contention. 8. `error.go`: - Added a call to `internal.GetAddr` for better address handling. 9. Various `go.mod` and `go.sum` files: - Updated dependencies, including upgrading go-redis version to v9.5.3. 10. `internal/util.go` and `internal/util_test.go`: - Added a new `GetAddr` function and corresponding tests. 11. `monitor_test.go`: - Added a new test function `TestMonitorCommand`. 12. `options.go`: - Added a new `CredentialsProviderContext` field to `Options` struct. 13. `osscluster.go`: - Added `CredentialsProviderContext` to `ClusterOptions`. - Improved error handling in pipeline operations. 14. `pubsub.go`: - Fixed a typo in a comment. 15. `redis.go`: - Implemented support for `CredentialsProviderContext`. 16. `stream_commands.go`: - Added `SetFirstKeyPos` calls to various XGroup commands. 17. `version.go`: - Updated version to 9.5.3.

Possible Issues

Security Hotspots

github-actions[bot] commented 4 months ago

[puLL-Merge] - redis/go-redis@v9.5.1..v9.5.2

Description

This PR introduces several changes to the go-redis library, including updates to dependencies, improvements to tracing and monitoring functionality, and various bug fixes and enhancements.

Changes ### Changes 1. `.github/workflows/build.yml`: - Added Go version 1.19.x to the test matrix. 2. `.github/workflows/test-redis-enterprise.yml`: - Updated Redis Enterprise version to 7.4.2-54. - Simplified credentials and configuration setup. 3. `CHANGELOG.md`: - Added entry for unreleased changes regarding span creation behavior. 4. `Makefile`: - Added logic to skip tests in example directories for Go version 1.19. 5. `README.md`: - Minor cleanup in code example. 6. `bitmap_commands.go`: - Added `BitFieldRO` command. - Optimized `BitCount` command implementation. 7. `command.go`: - Improved concurrency handling in `MonitorCmd`. 8. `error.go`: - Added support for IPv6 addresses in moved error parsing. 9. `example/otel/go.mod`: - Updated OpenTelemetry dependencies. 10. `extra/rediscensus/go.mod`, `extra/rediscmd/go.mod`, `extra/redisotel/go.mod`, `extra/redisprometheus/go.mod`: - Updated Go version and dependencies. 11. `extra/redisotel/config.go`, `extra/redisotel/tracing.go`: - Updated OpenTelemetry semantic conventions. - Added server address and port attributes to tracing. 12. `internal/util.go`, `internal/util_test.go`: - Added `GetAddr` function to handle different address formats. 13. `monitor_test.go`: - Added new test for monitor command. 14. `options.go`: - Added `CredentialsProviderContext` for enhanced credential handling. 15. `osscluster.go`: - Added `CredentialsProviderContext` to `ClusterOptions`. - Improved error handling in pipeline processing. 16. `pubsub.go`: - Fixed typo in comment. 17. `redis.go`: - Implemented `CredentialsProviderContext` in connection initialization. 18. `stream_commands.go`: - Added `SetFirstKeyPos` to stream-related commands for better key tracking.

Possible Issues

Security Hotspots

No significant security issues were identified in this PR. However, the changes to credential handling (introduction of CredentialsProviderContext) should be carefully reviewed to ensure they don't introduce any security vulnerabilities.

github-actions[bot] commented 4 months ago

[puLL-Merge] - redis/go-redis@v9.5.1..v9.6.0

Description

This PR introduces several significant changes and improvements to the go-redis library. The changes include new features, bug fixes, optimizations, and updates to dependencies. Some key changes involve enhancing connection handling, improving cluster operations, adding new Redis commands support, and updating OpenTelemetry integration.

Possible Issues

  1. The changes to connection handling and cluster operations might introduce subtle behavioral changes that could affect existing applications.
  2. Updates to dependencies, especially OpenTelemetry, may require adjustments in applications using these features.

Security Hotspots

No significant security vulnerabilities are apparent in this change set. However, changes to connection handling and authentication should be carefully reviewed to ensure they don't introduce any security weaknesses.

Changes ### Changes 1. `.github/workflows/build.yml`: - Updated branch targets and Go versions for CI/CD. 2. `.github/workflows/golangci-lint.yml` and `.github/workflows/spellcheck.yml`: - Updated versions of linting and spellchecking tools. 3. `.github/workflows/test-redis-enterprise.yml`: - Updated Redis Enterprise version and simplified test configuration. 4. `CHANGELOG.md`: - Added entry for changes in OpenTelemetry span creation behavior. 5. `Makefile`: - Updated Redis version and added conditional test skipping for older Go versions. 6. `README.md`: - Minor code example update. 7. `bitmap_commands.go`: - Optimized `BitCount` command implementation. 8. `command.go`: - Added new fields and methods to various command structures. - Enhanced `MonitorCmd` to improve concurrency safety. 9. `commands_test.go`: - Added new tests for various Redis commands, including hash expiration commands. 10. `error.go`: - Improved error handling for moved errors in cluster operations. 11. `extra/redisotel/`: - Updated OpenTelemetry integration with latest conventions and improved tracing. 12. `hash_commands.go`: - Added new hash commands for expiration and TTL operations. 13. `internal/pool/conn.go` and `internal/pool/pool.go`: - Improved connection health checking and management. 14. `options.go`: - Added `CredentialsProviderContext` for enhanced credential management. 15. `osscluster.go`: - Improved cluster node selection logic and error handling. 16. `pubsub.go`: - Minor improvements to context handling in PubSub operations. 17. `redis.go`: - Enhanced connection initialization with new credential provider support. 18. `stream_commands.go`: - Added support for the "ID" field in XReadArgs. 19. Various test files: - Added and updated tests to cover new features and edge cases. 20. `version.go`: - Updated version to 9.6.0. These changes collectively represent a significant update to the go-redis library, improving its functionality, performance, and compatibility with the latest Redis features.
github-actions[bot] commented 3 months ago

[puLL-Merge] - redis/go-redis@v9.5.1..v9.6.1

Description

This PR introduces several improvements and new features to the go-redis library. It includes updates to dependencies, enhancements to existing functionalities, and the addition of new Redis commands support. The changes span across multiple files and involve modifications to core functionalities, test cases, and documentation.

Changes ### Changes 1. `bitmap_commands.go`: - Optimized `BitCount` implementation. - Added `BitFieldRO` command support. 2. `command.go`: - Enhanced `ClientInfo` struct with new fields. - Improved `MonitorCmd` implementation. 3. `commands_test.go`: - Added new test cases for various Redis commands. - Updated existing tests to accommodate new functionalities. 4. `error.go`: - Improved error handling for moved errors. 5. `hash_commands.go`: - Added new hash commands support (HExpire, HPExpire, HExpireAt, HPExpireAt, HPersist, HExpireTime, HPExpireTime, HTTL, HPTTL). 6. `internal/pool/conn.go` and `internal/pool/pool.go`: - Enhanced connection handling and health checks. 7. `osscluster.go`: - Improved cluster node selection logic. - Enhanced error handling and retries for cluster operations. 8. `options.go`: - Added `CredentialsProviderContext` for enhanced credential management. 9. `pubsub.go`: - Minor improvements in PubSub implementation. 10. `redis.go`: - Enhanced connection initialization process. 11. `stream_commands.go`: - Added support for new stream-related commands. 12. Various test files: - Updated and added new test cases to cover new functionalities. 13. `version.go`: - Updated version to 9.6.1.

Possible Issues

Security Hotspots

No significant security issues were identified in this change. However, as always, careful review of credential handling changes is recommended.

github-actions[bot] commented 1 month ago

[puLL-Merge] - redis/go-redis@v9.5.1..v9.6.2

Description

This pull request introduces several changes and improvements to the go-redis library. The main changes include updates to various commands, enhancements to connection handling, improvements in cluster operations, and additions to hash commands for expiration management.

Changes ### Changes 1. `.github/workflows/`: - Updated Go versions and Redis image versions in CI workflows. 2. `CHANGELOG.md`: - Added an unreleased section mentioning changes to span creation behavior. 3. `Makefile`: - Updated Redis version and added Go version check for tests. 4. `bitmap_commands.go`: - Optimized `BitCount` command implementation. 5. `command.go`: - Added `Watch` field to `ClientInfo` struct. - Enhanced `MonitorCmd` implementation. 6. `commands_test.go`: - Added tests for new hash expiration commands. 7. `error.go`: - Improved handling of moved errors. 8. `extra/redisotel/`: - Updated OpenTelemetry dependencies and implementation. 9. `hash_commands.go`: - Added new commands for hash field expiration management (HExpire, HPExpire, HExpireAt, HPExpireAt, HPersist, HExpireTime, HPExpireTime, HTTL, HPTTL). 10. `internal/pool/conn.go`: - Improved connection health checking. 11. `osscluster.go`: - Enhanced cluster node selection logic. - Improved handling of MOVED and ASK redirections. 12. `options.go`: - Added `CredentialsProviderContext` for enhanced credential management. 13. `pubsub.go`: - Fixed context usage in `writeCmd` method. 14. `redis.go`: - Implemented `CredentialsProviderContext` in connection initialization. 15. `stream_commands.go`: - Added `ID` field to `XReadArgs` struct. - Set first key position for various XGroup commands. 16. `version.go`: - Updated version to 9.6.2.

Possible Issues

Security Hotspots

No significant security hotspots were identified in this change set.