Skip to content

Commit 56cbf53

Browse files
authored
release v1.1.0 (#248)
## Summary - update `trpc.Version()` from the stale `v0.14.0-dev` value to the v1.1.0 release value - make the version component constants package-private and keep `trpc.Version()` as the public version API - add a structured v1.1.0 changelog with compatibility notes and public PR references - backfill the public v1 release history from v1.0.0 through v1.0.4 - document that v1.0.4 was published as a Git tag without a separate GitHub Release - add continuous comparison links between every documented v1 release ## Changelog format Release dates are recorded once in ISO 8601 format at the version heading, while notable user-facing entries link to their public GitHub PRs. Maintenance-only Git history is intentionally omitted. The v1.1.0 section compares against v1.0.4 so that release sections do not overlap. Earlier public releases were reconstructed from their GitHub Releases, tags, and merged PRs. ## Compatibility The exported `MajorVersion`, `MinorVersion`, `PatchVersion`, and `VersionSuffix` constants are removed. Consumers should use `trpc.Version()` to obtain the complete version string. `go-apidiff` is expected to report the removal of these four constants. This is the intended API cleanup for the release; the PR does not add a CI exemption. ## Testing - `go test ./...` - `GOTOOLCHAIN=go1.19.13 go test ./...` RELEASE NOTES: Release tRPC-Go v1.1.0 with new transport, HTTP, streaming, lifecycle, overload-control, stability, and documentation improvements.
1 parent 56878a2 commit 56cbf53

2 files changed

Lines changed: 249 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 244 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,244 @@
1-
# Change Log
1+
# Changelog
2+
3+
## [Unreleased]
4+
5+
## [1.1.0] - 2026-07-28
6+
7+
### Compatibility
8+
9+
- The version component constants `MajorVersion`, `MinorVersion`,
10+
`PatchVersion`, and `VersionSuffix` are no longer exported. Use
11+
`trpc.Version()` to obtain the complete version string.
12+
- Restored compatibility of the `server.Service` interface by removing its
13+
`ServiceName` requirement. Code written specifically against the v1.0.4
14+
interface can use a local interface assertion to access the optional method.
15+
([#247](https://github.com/trpc-group/trpc-go/pull/247))
16+
- Adding overload-control configuration changed the exact anonymous type of
17+
`Config.Server`. Normal field access and YAML configuration remain
18+
compatible, but whole-struct assignments using an identical anonymous type
19+
need to include the new field.
20+
([#230](https://github.com/trpc-group/trpc-go/pull/230))
21+
- `transport.ListenServeOptions` is no longer comparable after adding
22+
keep-order callbacks. Code using the entire value as a map key or comparing
23+
it with `==` needs to compare individual fields instead.
24+
([#229](https://github.com/trpc-group/trpc-go/pull/229))
25+
- `http.ClientRspHeader` is no longer comparable after adding the SSE receive
26+
callback. Code using the entire value as a map key or comparing it with `==`
27+
needs to compare individual fields instead.
28+
([#223](https://github.com/trpc-group/trpc-go/pull/223))
29+
30+
### Added
31+
32+
- Added overload-control configuration, server hooks, and reusable
33+
overload-control helpers.
34+
([#230](https://github.com/trpc-group/trpc-go/pull/230))
35+
- Added keep-order request support to client and server transports.
36+
([#229](https://github.com/trpc-group/trpc-go/pull/229))
37+
- Added server precool checks for graceful readiness transitions.
38+
([#228](https://github.com/trpc-group/trpc-go/pull/228))
39+
- Added client connection prewarming.
40+
([#227](https://github.com/trpc-group/trpc-go/pull/227))
41+
- Added FastHTTP client and server transports.
42+
([#225](https://github.com/trpc-group/trpc-go/pull/225))
43+
- Added HTTP response-header helpers, HTTP decorators, server-sent events,
44+
stream initialization timeouts, and stream flow-control options.
45+
([#223](https://github.com/trpc-group/trpc-go/pull/223))
46+
- Added `log.DisableTrace` for disabling trace metadata injection.
47+
([#222](https://github.com/trpc-group/trpc-go/pull/222))
48+
- Exported the default HTTP serialization tag for integration reuse.
49+
([#233](https://github.com/trpc-group/trpc-go/pull/233))
50+
51+
### Changed
52+
53+
- Updated the tnet transport dependency to v1.1.0.
54+
([#236](https://github.com/trpc-group/trpc-go/pull/236))
55+
- Centralized protocol names in internal constants and refreshed protocol
56+
dependencies without exposing internal-only APIs.
57+
([#226](https://github.com/trpc-group/trpc-go/pull/226))
58+
59+
### Fixed
60+
61+
- Applied server filters to custom REST routes.
62+
([#237](https://github.com/trpc-group/trpc-go/pull/237))
63+
- Limited retained REST request and response body buffers to avoid keeping
64+
oversized allocations in pools.
65+
([#234](https://github.com/trpc-group/trpc-go/pull/234))
66+
- Preserved the configured cookie jar when an HTTP client enables TLS.
67+
([#231](https://github.com/trpc-group/trpc-go/pull/231))
68+
- Reported partial-read timeouts as read failures instead of successful
69+
transport reads.
70+
([#224](https://github.com/trpc-group/trpc-go/pull/224))
71+
- Fixed top-level YAML key handling, server log context, and wrapped errors in
72+
TCP multiplexed transports.
73+
([#221](https://github.com/trpc-group/trpc-go/pull/221))
74+
- Prevented late multiplexed responses from being dispatched after their
75+
request had closed.
76+
([#220](https://github.com/trpc-group/trpc-go/pull/220))
77+
- Fixed codec metadata cloning, close-frame business-error handling, and
78+
concurrent metrics access.
79+
([#219](https://github.com/trpc-group/trpc-go/pull/219))
80+
- Fixed unwatched configuration providers, propagated the latest HTTP context,
81+
and completed REST message lifecycle handling.
82+
([#218](https://github.com/trpc-group/trpc-go/pull/218))
83+
84+
### Documentation
85+
86+
- Clarified HTTP route and client usage documentation.
87+
([#238](https://github.com/trpc-group/trpc-go/pull/238))
88+
- Added examples for FastHTTP, precooling, HTTP features, RPC lifecycles,
89+
keep-order transports, TLS transports, timeout scenarios, connection
90+
prewarming, and server-sent events.
91+
([#240](https://github.com/trpc-group/trpc-go/pull/240),
92+
[#241](https://github.com/trpc-group/trpc-go/pull/241),
93+
[#242](https://github.com/trpc-group/trpc-go/pull/242),
94+
[#243](https://github.com/trpc-group/trpc-go/pull/243),
95+
[#244](https://github.com/trpc-group/trpc-go/pull/244),
96+
[#245](https://github.com/trpc-group/trpc-go/pull/245),
97+
[#246](https://github.com/trpc-group/trpc-go/pull/246))
98+
99+
## [1.0.4] - 2026-06-14
100+
101+
The v1.0.4 version was published as a Git tag without a separate GitHub
102+
Release.
103+
104+
### Compatibility
105+
106+
- Replaced the linear REST router with a trie-backed router that gives static
107+
segments precedence over parameters, and parameters precedence over
108+
wildcards. Applications relying on ambiguous route registration order should
109+
verify matching behavior.
110+
([#217](https://github.com/trpc-group/trpc-go/pull/217))
111+
- Added `ServiceName` to the `server.Service` interface. This requirement was
112+
removed in v1.1.0 while retaining optional service-name support on built-in
113+
services. ([#215](https://github.com/trpc-group/trpc-go/pull/215),
114+
[#247](https://github.com/trpc-group/trpc-go/pull/247))
115+
116+
### Added
117+
118+
- Added stream close-frame metadata, client-stream node selection, custom HTTP
119+
TLS certificate providers, HTTP/2 configuration, and server service names.
120+
([#215](https://github.com/trpc-group/trpc-go/pull/215))
121+
- Added LZ4 request and response compression.
122+
([#216](https://github.com/trpc-group/trpc-go/pull/216))
123+
124+
### Fixed
125+
126+
- Hardened admin pprof route handling and graceful shutdown behavior.
127+
([#206](https://github.com/trpc-group/trpc-go/pull/206))
128+
- Fixed transport half-close handling, HTTP edge cases, selector behavior,
129+
multiplexed connection pools, metrics, and configuration stability.
130+
([#214](https://github.com/trpc-group/trpc-go/pull/214))
131+
- Removed duplicate admin handler calls.
132+
([#193](https://github.com/trpc-group/trpc-go/pull/193))
133+
134+
## [1.0.3] - 2024-05-16
135+
136+
### Added
137+
138+
- Added registration for custom log format encoders.
139+
([#146](https://github.com/trpc-group/trpc-go/pull/146))
140+
- Allowed selectors to provide a custom `net.Addr` parser.
141+
([#176](https://github.com/trpc-group/trpc-go/pull/176))
142+
143+
### Changed
144+
145+
- Updated tnet to handle negative connection idle timeouts.
146+
([#169](https://github.com/trpc-group/trpc-go/pull/169))
147+
- Updated `google.golang.org/protobuf` from v1.30.0 to v1.33.0.
148+
([#171](https://github.com/trpc-group/trpc-go/pull/171))
149+
150+
### Fixed
151+
152+
- Synchronized a collection of client, codec, configuration, logging, metrics,
153+
naming, server, stream, and transport fixes.
154+
([#161](https://github.com/trpc-group/trpc-go/pull/161))
155+
156+
### Documentation
157+
158+
- Clarified service listeners, JSON API configuration, server and client idle
159+
timeouts, and related usage guidance.
160+
([#144](https://github.com/trpc-group/trpc-go/pull/144),
161+
[#160](https://github.com/trpc-group/trpc-go/pull/160),
162+
[#166](https://github.com/trpc-group/trpc-go/pull/166),
163+
[#170](https://github.com/trpc-group/trpc-go/pull/170),
164+
[#172](https://github.com/trpc-group/trpc-go/pull/172))
165+
166+
## [1.0.2] - 2023-12-05
167+
168+
### Added
169+
170+
- Restored the default HTTP server transport.
171+
([#140](https://github.com/trpc-group/trpc-go/pull/140))
172+
173+
### Changed
174+
175+
- Avoided mutating `registry.Node` in `LoadNodeConfig` to prevent data races
176+
during node selection.
177+
([#138](https://github.com/trpc-group/trpc-go/pull/138))
178+
- Replaced unnecessary `fmt.Errorf` calls with `errors.New`.
179+
([#127](https://github.com/trpc-group/trpc-go/pull/127))
180+
181+
### Fixed
182+
183+
- Fixed connection overwriting when a stream client reused the same local port.
184+
([#131](https://github.com/trpc-group/trpc-go/pull/131))
185+
- Fixed plugin and metadata examples.
186+
([#128](https://github.com/trpc-group/trpc-go/pull/128))
187+
188+
### Documentation
189+
190+
- Expanded contribution guidance, API testing documentation, test
191+
documentation, and server routine-limit guidance.
192+
([#125](https://github.com/trpc-group/trpc-go/pull/125),
193+
[#129](https://github.com/trpc-group/trpc-go/pull/129),
194+
[#133](https://github.com/trpc-group/trpc-go/pull/133),
195+
[#134](https://github.com/trpc-group/trpc-go/pull/134),
196+
[#137](https://github.com/trpc-group/trpc-go/pull/137))
197+
198+
## [1.0.1] - 2023-10-20
199+
200+
### Changed
201+
202+
- Updated module dependencies for the v1.0 release line and upgraded
203+
`golang.org/x/net`.
204+
([#98](https://github.com/trpc-group/trpc-go/pull/98),
205+
[#106](https://github.com/trpc-group/trpc-go/pull/106))
206+
- Removed internal-only information from the client package.
207+
([#103](https://github.com/trpc-group/trpc-go/pull/103))
208+
- Improved stream examples and normalized YAML import aliases.
209+
([#110](https://github.com/trpc-group/trpc-go/pull/110),
210+
[#112](https://github.com/trpc-group/trpc-go/pull/112))
211+
212+
### Fixed
213+
214+
- Registered the stream server transport when using the Go network transport.
215+
([#101](https://github.com/trpc-group/trpc-go/pull/101))
216+
- Corrected module definitions in examples.
217+
([#105](https://github.com/trpc-group/trpc-go/pull/105))
218+
219+
### Documentation
220+
221+
- Reworked package comments and repaired links across the README, quick start,
222+
server guide, examples, and benchmark documentation.
223+
([#92](https://github.com/trpc-group/trpc-go/pull/92),
224+
[#93](https://github.com/trpc-group/trpc-go/pull/93),
225+
[#94](https://github.com/trpc-group/trpc-go/pull/94),
226+
[#96](https://github.com/trpc-group/trpc-go/pull/96),
227+
[#97](https://github.com/trpc-group/trpc-go/pull/97),
228+
[#109](https://github.com/trpc-group/trpc-go/pull/109),
229+
[#113](https://github.com/trpc-group/trpc-go/pull/113),
230+
[#115](https://github.com/trpc-group/trpc-go/pull/115))
231+
232+
## [1.0.0] - 2023-10-17
233+
234+
### Added
235+
236+
- Published the first stable tRPC-Go release.
237+
238+
[Unreleased]: https://github.com/trpc-group/trpc-go/compare/v1.1.0...HEAD
239+
[1.1.0]: https://github.com/trpc-group/trpc-go/compare/v1.0.4...v1.1.0
240+
[1.0.4]: https://github.com/trpc-group/trpc-go/compare/v1.0.3...v1.0.4
241+
[1.0.3]: https://github.com/trpc-group/trpc-go/compare/v1.0.2...v1.0.3
242+
[1.0.2]: https://github.com/trpc-group/trpc-go/compare/v1.0.1...v1.0.2
243+
[1.0.1]: https://github.com/trpc-group/trpc-go/compare/v1.0.0...v1.0.1
244+
[1.0.0]: https://github.com/trpc-group/trpc-go/releases/tag/v1.0.0

version.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ import "fmt"
2525
// release candidate 0.1.0-rc
2626
// release 0.1.0
2727
const (
28-
MajorVersion = 0
29-
MinorVersion = 14
30-
PatchVersion = 0
31-
VersionSuffix = "-dev" // -alpha -alpha.1 -beta -rc -rc.1
28+
majorVersion = 1
29+
minorVersion = 1
30+
patchVersion = 0
31+
versionSuffix = "" // -alpha -alpha.1 -beta -rc -rc.1
3232
)
3333

3434
// Version returns the version of trpc.
3535
func Version() string {
36-
return fmt.Sprintf("v%d.%d.%d%s", MajorVersion, MinorVersion, PatchVersion, VersionSuffix)
36+
return fmt.Sprintf("v%d.%d.%d%s", majorVersion, minorVersion, patchVersion, versionSuffix)
3737
}

0 commit comments

Comments
 (0)