You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+15-4Lines changed: 15 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,19 @@
1
1
# Change log
2
2
3
+
## 2.0.0
4
+
This is a major version upgrade that introduces breaking changes. Please read carefully before upgrading.
5
+
6
+
### ⚠️ Breaking Changes
7
+
-**Region Configuration is Now Required**: The `region` field in `AliMNSClientConfig` is now mandatory. Client initialization will fail with error "ali-mns: region is empty" if not provided.
8
+
-**Region-Dependent Subscription Endpoints**: Subscription endpoints now use the explicitly configured region instead of attempting to parse from endpoint URL.
@@ -87,57 +86,38 @@ type AliMNSClientConfig struct {
87
86
AccessKeyIdstring
88
87
AccessKeySecretstring
89
88
Tokenstring
89
+
Regionstring
90
90
Credential credentials.Credential
91
91
TimeoutSecondint64
92
92
MaxConnsPerHostint
93
93
}
94
94
95
95
// NewClient Follow the Alibaba Cloud standards and set the AK (Access Key) and SK (Secret Key) in the environment variables.
96
96
// For more details, see: https://help.aliyun.com/zh/sdk/developer-reference/configure-the-alibaba-cloud-accesskey-environment-variable-on-linux-macos-and-windows-systems
// NewClientWithToken Follow the Alibaba Cloud standards and set the AK (Access Key) and SK (Secret Key) in the environment variables.
102
102
// For more details, see: https://help.aliyun.com/zh/sdk/developer-reference/configure-the-alibaba-cloud-accesskey-environment-variable-on-linux-macos-and-windows-systems
ERR_MNS_TOPIC_NAME_IS_TOO_LONG=errors.TN(ALI_MNS_ERR_NS, 208, "topic name is too long, the max length is 256")
67
67
ERR_MNS_TOPIC_ALREADY_EXIST_AND_HAVE_SAME_ATTR=errors.TN(ALI_MNS_ERR_NS, 209, "mns topic already exist, and the attribute is the same, topic name: {{.name}}")
0 commit comments