Version Packages#13
Merged
Merged
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
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 was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@rei-standard/amsg-client@2.8.0
Minor Changes
avatarUrl本地预检改用@rei-standard/amsg-shared的统一校验,与 server / instant 对齐。现在非法(非data:)URL —— 例如缺少协议的foo.com/a.png—— 也会在客户端被console.warn并置空;此前 client 只检查data:与长度,会放行这类 URL(之后由服务端兜底置空)。软清空策略不变:装饰性字段不合法时只做清空,不会让整条请求失败。Patch Changes
@rei-standard/amsg-instant@0.10.0
Minor Changes
X-Amsg-Request-Encoding: gzip头的请求会先 gunzip 再解析,不带这个头的请求按原样读取,行为不变。CORS 预检白名单里也加上了这个头。这样@rei-standard/amsg-client的deliver({ compressRequest })就能直接发到amsg-instant的/instant//continue,不用自己在后端解压。Patch Changes
@rei-standard/amsg-shared@0.3.0
Minor Changes
5c0e047: 新增三组共享纯函数,让 server / instant / client 复用同一份规则,不再各自维护副本:
validateAvatarUrl(含isValidUrl与AVATAR_URL_MAX_LENGTH)—— 头像 URL 校验normalizeVapidSubject—— VAPID subject 规范化(mailto:/https:均保留,裸邮箱补mailto:)readReasoningContent/stripReasoningTags—— 读取推理内容与剥离私有<think>链式思考@rei-standard/amsg-server@2.5.3
Patch Changes
https:形式:RFC 8292 允许 subject 使用https:,规范化时按原样保留,不另加mailto:前缀。reasoning 私有思考过滤、avatarUrl校验、VAPID subject 规范化统一改用@rei-standard/amsg-shared的实现。@rei-standard/amsg-sw@2.3.2
Patch Changes