-
Notifications
You must be signed in to change notification settings - Fork 0
Update module github.com/zeromicro/go-zero to v1.9.3 #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/github.com-zeromicro-go-zero-1.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59a4518 to
ac775ac
Compare
ac775ac to
833c020
Compare
833c020 to
a9bb458
Compare
Contributor
Author
ℹ Artifact update noticeFile name: helloworld/go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
|
a9bb458 to
f640111
Compare
f640111 to
43e26e1
Compare
43e26e1 to
149ee12
Compare
149ee12 to
4830193
Compare
4830193 to
10d8dee
Compare
10d8dee to
139d454
Compare
83042af to
139d454
Compare
800e83a to
139d454
Compare
139d454 to
dbf035c
Compare
2ec9a50 to
a56cfb0
Compare
a56cfb0 to
860bf8f
Compare
860bf8f to
1389e37
Compare
1389e37 to
0e0a631
Compare
b2ead69 to
0e0a631
Compare
f192e38 to
0e0a631
Compare
0e0a631 to
ac71537
Compare
ac71537 to
503bf27
Compare
503bf27 to
7135884
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v1.6.2->v1.9.3Release Notes
zeromicro/go-zero (github.com/zeromicro/go-zero)
v1.9.3Compare Source
We are excited to announce the release of go-zero v1.9.3! This release brings several important enhancements and bug fixes that improve the framework's reliability, performance, and alignment with industry best practices.
🎉 Highlights
✨ New Features
Consistent Hash Balancer Support (#5246)
Contributor: @zhoushuguang
A new consistent hash load balancer has been added to the zRPC package, enabling session affinity for gRPC services.
Key Features:
core/hash/ConsistentHashimplementationUsage Example:
Configuration:
Benefits:
🐛 Bug Fixes
Fixed Gateway Trace Headers (#5256, #5248)
Contributor: @kevwan
Fixed an issue where OpenTelemetry trace propagation headers were not being properly forwarded through the gateway to upstream gRPC services, breaking distributed tracing.
Problem:
The gateway was not forwarding critical W3C Trace Context headers (
traceparent,tracestate,baggage) to gRPC metadata, causing trace context to be lost at the gateway boundary.Solution:
ProcessHeadersfunction to forward trace propagation headersImpact:
Technical Details:
Fixed Multiple Trace Initialization (#5244)
Contributor: @kevwan
Problem:
When running multiple services (e.g., REST + RPC) in the same process, the trace agent could be initialized multiple times, potentially causing resource leaks or unexpected behavior.
Solution:
sync.Onceto ensure trace agent is initialized only onceprometheus.StartAgentandlogx.SetUpsync.OnceFuncfor shutdown to prevent double cleanupCode Changes:
Benefits:
Fixed ORM Zero Value Scanning for Pointer Destinations (#5270)
Contributor: @lerity-yao (first contribution! 🎊)
Problem:
When scanning database results into struct fields with pointer types, zero values (0, false, empty string) were not being properly distinguished from NULL values. This caused nil pointers to be set to zero values incorrectly.
Solution:
Enhanced the
getValueInterfacefunction to properly initialize nil pointers before scanning, ensuring the SQL driver can correctly populate them with zero or non-zero values.Code Changes:
Impact:
Benefits:
🔄 Breaking Changes (With Backward Compatibility)
Changed NonBlock Default to True (#5259)
Contributor: @kevwan
Motivation:
Aligned with gRPC official best practices which discourage blocking dials.
Change:
Why This Matters:
grpc.WithBlock()is an anti-patternMigration Guide:
For most users, no action required - the new default is the recommended behavior.
If you explicitly need blocking behavior (not recommended):
Backward Compatibility:
NonBlock: falsecontinue to workWithBlock()option available (marked deprecated)NonBlock: trueDocumentation:
See GRPC_NONBLOCK_CHANGE.md for detailed migration guide and rationale.
👥 New Contributors
We're thrilled to welcome new contributors to the go-zero community! 🎉
Thank you for your contributions! We look forward to your continued involvement in the project.
📦 Installation & Upgrade
Install
Update
# Update go.mod go get -u github.com/zeromicro/go-zero@v1.9.3 go mod tidy🔗 Links
📝 Detailed Changes
Core Enhancements
Load Balancing
zrpc/internal/balancer/consistenthash)SetHashKey()andGetHashKey()Distributed Tracing
sync.OncepatternORM/Database
getValueInterface()with nil pointer initializationsql.Null*typesgRPC Client
WithBlock()option for compatibilityTesting & Quality
🙏 Acknowledgments
Special thanks to all contributors, issue reporters, and community members who made this release possible. Your feedback and contributions continue to make go-zero better!
💬 Feedback
If you encounter any issues or have suggestions for future releases, please:
Happy coding with go-zero! 🚀
v1.9.2Compare Source
Overview
This release is solely focused on addressing a critical problem related to the go-redis dependency. Previous versions of go-redis were retracted, which could cause build failures, dependency resolution issues, or unexpected behavior for downstream projects relying on stable releases.
What's Fixed
Impact
New Contributors
While this release only addresses the go-redis issue, we'd like to acknowledge recent first-time contributors to the project:
Changelog
For a full list of changes between v1.9.1 and v1.9.2, see the changelog.
Upgrade Recommendation:
If you depend on redis, it is strongly recommended to upgrade to this release to avoid issues caused by the retracted versions.
v1.9.1Compare Source
Highlights
json.Marshaleroverfmt.Stringerwhen emitting JSON logs, improving correctness and structure.SetWriteDeadlineerrors to debug.SetSSESlowThresholdto help detect slow clients and long writes.Detailed Changes
Logging
PR: feat: support customize of log keys by @WqyJh (@5103)
json.Marshaleroverfmt.Stringerwhen generating JSON logs, ensuring structured fields are serialized using their explicit JSON representations rather than ad-hoc strings.PR: feat: prefer json.Marshaler over fmt.Stringer for JSON log output by @WqyJh (@5117)
REST/SSE
PR: fix: SSE handler blocking by @wuqinqiang (@5181)
SetWriteDeadlineerrors to debug level in REST SSE.PR: fix(rest): change SSE SetWriteDeadline error log to debug level by @wuqinqiang (@5162)
sseSlowThresholdto surface slow SSE writes, enabling better observability about backpressure or slow clients.PR: feat(handler): add sseSlowThreshold by @wuqinqiang (@5196)
MapReduce
PR: optimize: mapreduce panic stacktrace by @kevwan (@5168)
Performance and Runtime
PR: opt: optimization of machine performance data reading by @wanwusangzhi (@5174)
Bug Fixes
PR: fix: issue-5110 by @guonaihong (@5113)
Migration and Usage Notes
json.Marshaler, expect more accurate JSON in logs. If you previously depended on stringified representations, review downstream consumers to ensure compatibility.SetSSESlowThresholdto flag slow clients or network conditions in environments sensitive to latency.SetWriteDeadlinelog level change reduces noise; adjust logger settings if you still want to surface these events.Acknowledgements
Full Changelog
v1.9.0Compare Source
What's Changed
-) skip logic inunwrapFieldsin sqlx by @charmfocus in #5010zero-contribby @me-cs in #4687New Contributors
Detailed Release Notes: https://go-zero.dev/en/reference/releases/v1.9.0
Full Changelog: zeromicro/go-zero@v1.8.5...v1.9.0
v1.8.5Compare Source
Features
Bug Fixes & Improvements
0snot working in API files (#4932)time.Durationtype with numerical values (#4944)New Contributors
Full Changelog: v1.8.4...v1.8.5
v1.8.4Compare Source
Highlights
embed.FS, simplifying static file serving (#4847, #4851).What's Changed
embed.FS(#4847).New Contributors
Thank you to all our contributors!
Full Changelog: zeromicro/go-zero@v1.8.3...v1.8.4
v1.8.3Compare Source
🌟 Highlights
🚀 Features
MCP server SDK:
📚 Tutorial: For detailed documentation and usage examples, check out the MCP Tutorial
API Enhancements:
🐛 Bug Fixes
📦 Dependency Updates
👋 Welcome to New Contributors
A warm welcome to our new contributors who made their first contributions to go-zero in this release:
🔗 Links
v1.8.2Compare Source
We're pleased to announce the release of go-zero v1.8.2. This release includes new features, bug fixes, dependency updates, and code improvements.
🚀 New Features
rest.WithSSEto build Server-Sent Events routes more easily (#4729)GETDELcommand (#4709)🐛 Bug Fixes
📦 Dependency Updates
🧹 Code Maintenance
👋 New Contributors
We're excited to welcome the following new contributors to the go-zero project:
🔭 Coming Soon
🔗 Additional Information
v1.8.1Compare Source
🎉 Celebrating 30,000 Stars Milestone! 🎉
We are thrilled to announce that go-zero has reached the incredible milestone of 30,000 GitHub stars! This achievement wouldn't have been possible without our amazing community of developers, contributors, and users who have supported us throughout this journey.
From its humble beginnings, go-zero has grown to become one of the most popular Go microservices frameworks, enabling developers worldwide to build high-performance, reliable, and scalable systems with ease. This milestone is a testament to the value go-zero brings to the Go ecosystem and the trust the community places in our project.
✨ What's New in v1.8.1
We're excited to present go-zero v1.8.1, which includes several new features, bug fixes, and performance improvements.
🔑 Key Highlights
🚀 Features
🐛 Fixes
🔧 Improvements & Maintenance
📦 Dependency Updates
This release includes several dependency updates:
👋 Welcome New Contributors
A special welcome to our new contributor who made their first contribution in this release:
🙏 Thank You
As we celebrate 30,000 stars, we want to express our deepest gratitude to everyone who has contributed to go-zero, used it in their projects, filed issues, or helped spread the word. This community-driven success pushes us to continue improving and innovating.
For a complete list of changes, please check the full changelog.
v1.8.0Compare Source
✨ Highlights
🚀 Features
🐛 Bug Fixes
🧹 Chores & Optimizations
🎉 New Contributors
Welcome to our new contributors who helped make this release possible:
Full Changelog: zeromicro/go-zero@v1.7.6...v1.8.0
v1.7.6Compare Source
What's Changed
Full Changelog: zeromicro/go-zero@v1.7.5...v1.7.6
v1.7.5Compare Source
What's Changed
logDetailsby @wwwangxc in #4511New Contributors
Full Changelog: zeromicro/go-zero@v1.7.4...v1.7.5
v1.7.4Compare Source
What's Changed
New Contributors
Full Changelog: zeromicro/go-zero@v1.7.3...v1.7.4
v1.7.3Compare Source
What's Changed
New Contributors
Full Changelog: zeromicro/go-zero@v1.7.2...v1.7.3
v1.7.2Compare Source
What's Changed
New Contributors
Full Changelog: zeromicro/go-zero@v1.7.1...v1.7.2
v1.7.1Compare Source
What's Changed
New Contributors
Full Changelog: zeromicro/go-zero@v1.7.0...v1.7.1
v1.7.0Compare Source
What's Changed
New Contributors
Full Changelog: zeromicro/go-zero@v1.6.6...v1.7.0
v1.6.6Compare Source
What's Changed
New Contributors
Full Changelog: zeromicro/go-zero@v1.6.5...v1.6.6
v1.6.5Compare Source
What's Changed
New Contributors
Full Changelog: zeromicro/go-zero@v1.6.4...v1.6.5
v1.6.4Compare Source
What's Changed
New Contributors
Full Changelog: zeromicro/go-zero@v1.6.3...v1.6.4
v1.6.3Compare Source
What's Changed
SSE, ignore timeout on server-sent events by @chenquan in #2041ScheduleImmediatelyin TaskRunner by @kevwan in #3896BatchErrorthread safe by @ch3nnn in #3946ZADDNXcommand in redis by @Suyghur in #3944MSETcommand in redis by @codeErrorSleep in #3820FillDefaultwith fields mutable optional bug by @MarkJoyMa in #3940Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, 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.