Skip to content

Commit 68b9d71

Browse files
committed
🔖 Release v0.17.0-beta.2
1 parent 573373b commit 68b9d71

2 files changed

Lines changed: 50 additions & 10 deletions

File tree

docs/change/README.md

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,39 @@ sidebar_position: 1
1818

1919
另外除了预发布以外,脚本猫每次代码提交合并到主分支后都会在[Github Action](https://github.com/scriptscat/scriptcat/actions/workflows/build.yaml)上打包构建一次扩展,如果你想体验最新或者修复的内容可以前往[Github Action](https://github.com/scriptscat/scriptcat/actions/workflows/build.yaml)页进行下载.
2020

21+
<a name="0.17.0-beta.2"></a>
22+
23+
## 0.17.0-beta.2 (2025-06-04)
24+
25+
### Added
26+
27+
- ✨ 增加按钮可以重试数据迁移 [#409](https://github.com/scriptscat/scriptcat/issues/409) [[85a7404](https://github.com/scriptscat/scriptcat/commit/85a740497050d6347bd07ff4177b656963bba363)]
28+
- ✨ feat: 新增对file://协议的文件的动态加载更新 by @WhiteSevs [[6eb5bd8](https://github.com/scriptscat/scriptcat/commit/6eb5bd83a2ebf2e083603c3e7fa6b336fc08490c)]
29+
- ✨ feat: 新增对file协议的资源或引用自动更新 by @WhiteSevs [[7a5cc21](https://github.com/scriptscat/scriptcat/commit/7a5cc21fc2d7e4270906f346d5aa61295cac52b4)]
30+
- ✨ feat: 适配部分GM_info的属性 by @WhiteSevs [[51f0ea0](https://github.com/scriptscat/scriptcat/commit/51f0ea0dc7254242c7059acf69e4479b09bd605f)]
31+
- ✨ feat: GM_setClipboard支持cb回调函数 by @WhiteSevs [[a8373f5](https://github.com/scriptscat/scriptcat/commit/a8373f5d9798506dc5d883374b059843fd0c7a15)]
32+
- ✨ feat: 新增Api支持GM_setValues、GM_getValues、GM_deleteValues by @WhiteSevs [[d363e42](https://github.com/scriptscat/scriptcat/commit/d363e4289306f547236c90652e514c0b9c86a2fb)]
33+
- ✨ feat: GM_cookie新增配置partitionKey.topLevelSite by @WhiteSevs [[131b31f](https://github.com/scriptscat/scriptcat/commit/131b31f325531d4f0cdc30d4bc97242f1502abed)]
34+
- ✨ 兼容GM_registerMenuCommand [#358](https://github.com/scriptscat/scriptcat/issues/358) [[70c59e6](https://github.com/scriptscat/scriptcat/commit/70c59e6104749f028b1bfa5cba9f65f2ad7c5be2)]
35+
36+
### Fixed
37+
38+
- 🐛 修复userConfig默认值问题 [#409](https://github.com/scriptscat/scriptcat/issues/409) [[f1ee723](https://github.com/scriptscat/scriptcat/commit/f1ee7236ba1b568fd724e48341b687badd43e44e)]
39+
- 🐛 修复eslint配置无法重置的问题 [[d0c2f3b](https://github.com/scriptscat/scriptcat/commit/d0c2f3b51a25d35c4dafc733eb121d38c77a4c66)]
40+
- 🐛 修复vscode连接问题 [#412](https://github.com/scriptscat/scriptcat/issues/412) [#400](https://github.com/scriptscat/scriptcat/issues/400) [[6ff24e3](https://github.com/scriptscat/scriptcat/commit/6ff24e30dacfaf489f0992604008acd129ebddcf)]
41+
- 🐛 修复重复监听问题 [#388](https://github.com/scriptscat/scriptcat/issues/388) [[b8735d8](https://github.com/scriptscat/scriptcat/commit/b8735d8c463341204423611465eb54312d43f067)]
42+
- 🐛 修复GM_notification无法触发 onclick [#406](https://github.com/scriptscat/scriptcat/issues/406) [[c5e766f](https://github.com/scriptscat/scriptcat/commit/c5e766fde35ae4346d249df744ccc1973f054667)]
43+
- 🐛 修复后台脚本读取userConfig的问题 [[2240a62](https://github.com/scriptscat/scriptcat/commit/2240a6294cf495fed771dfdfe9497bed86b967b3)]
44+
- 🐛 修复GM_getValue与GM_info问题 [#393](https://github.com/scriptscat/scriptcat/issues/393) by @WhiteSevs [[e765476](https://github.com/scriptscat/scriptcat/commit/e76547617f358cbac8be1b99eff68a44968050b9)]
45+
- 🐛 修复message不输出错误信息 by @WhiteSevs [[04bf703](https://github.com/scriptscat/scriptcat/commit/04bf7038cff1161c8242b1b93edd7f3ba5964520)]
46+
- 🐛 修复GM_getTab回调函数入参为空时的值 by @WhiteSevs [[3f3cac5](https://github.com/scriptscat/scriptcat/commit/3f3cac5feb90fcc2893824a4bc920fbeacd367de)]
47+
- 🐛 修复GM_openInTab的返回值 by @WhiteSevs [[2fa5b33](https://github.com/scriptscat/scriptcat/commit/2fa5b337df12d777479c7d896da6a98baa9b1ad2)]
48+
- 🐛 修复GM.cookie不存在 by @WhiteSevs [8889f64]
49+
50+
### Miscellaneous
51+
52+
- 👷 improve github actions ([#407](https://github.com/scriptscat/scriptcat/issues/407)) by @Mikachu2333 [[3970658](https://github.com/scriptscat/scriptcat/commit/3970658c67e58349c86e5e5a36a973168fbd2cce)]
53+
2154
<a name="0.17.0-beta.1"></a>
2255

2356
## 0.17.0-beta.1 (2025-05-28)
@@ -26,8 +59,8 @@ sidebar_position: 1
2659

2760
### Added
2861

29-
- ✨ 实现批量脚本拖拽导入 / 批量脚本本地导入 ([#396](https://github.com/scriptscat/scriptcat/issues/396)) [[178e77d](https://github.com/scriptscat/scriptcat/commit/178e77d6a779fdacb5e8d0d24b6b852f50e09f2c)]
30-
- ✨ 批量脚本链接导入 ([#395](https://github.com/scriptscat/scriptcat/issues/395)) [[7a0f77e](https://github.com/scriptscat/scriptcat/commit/7a0f77ee9b627d007db861bebad6f656d1452453)]
62+
- ✨ 实现批量脚本拖拽导入 / 批量脚本本地导入 ([#396](https://github.com/scriptscat/scriptcat/issues/396)) by @DreamNya [[178e77d](https://github.com/scriptscat/scriptcat/commit/178e77d6a779fdacb5e8d0d24b6b852f50e09f2c)]
63+
- ✨ 批量脚本链接导入 ([#395](https://github.com/scriptscat/scriptcat/issues/395)) by @DreamNya [[7a0f77e](https://github.com/scriptscat/scriptcat/commit/7a0f77ee9b627d007db861bebad6f656d1452453)]
3164

3265
### Fixed
3366

docs/dev/api.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ API 的详细定义,请看`tempermonkey.d.ts`或者内置编辑器提示,文档
2323
获取脚本相关信息(参考`tempermonkey.d.ts`且并不完全)
2424

2525
### GM_cookie
26-
>
27-
> v0.17.0-alpha 后删除store与tabid相关的参数,现在会根据当前所在的窗口来决定获取隐身窗口还是普通窗口的 cookie
26+
27+
> v0.17.0-alpha 后删除 store 与 tabid 相关的参数,现在会根据当前所在的窗口来决定获取隐身窗口还是普通窗口的 cookie
2828
2929
必须使用`@connect`声明操作的 host,且经过用户授权才可使用.虽然兼容 TM 的`GM_cookie.list`操作,但是为了统一,不建议这样.
3030

@@ -187,7 +187,7 @@ declare namespace GM_Types {
187187
user?: string;
188188
password?: string;
189189
nocache?: boolean;
190-
redirect?: "follow" | "error" | "manual";// 为了与tm保持一致, 在v0.17.0后废弃maxRedirects, 使用redirect替代, 会强制使用fetch模式
190+
redirect?: "follow" | "error" | "manual"; // 为了与tm保持一致, 在v0.17.0后废弃maxRedirects, 使用redirect替代, 会强制使用fetch模式
191191

192192
onload?: Listener<XHRResponse>;
193193
onloadstart?: Listener<XHRResponse>;
@@ -234,8 +234,8 @@ declare function GM_listValues(): string[];
234234
```
235235

236236
### GM_add/removeValueChangeListener
237-
>
238-
> tabid于0.17.0-alpha后删除, 详情见[GM_cookie](#gm_cookie)
237+
238+
> tabid 于 0.17.0-alpha 后删除, 详情见[GM_cookie](#gm_cookie)
239239
240240
对值的监听操作,add 会返回一个监听 id,使用 remove 可以取消监听.可以使用这个方法实现一个简单的通信,使用[**storageName**](meta.md#storagename-%F0%9F%A7%AA)可以实现跨脚本通信.
241241

@@ -320,8 +320,15 @@ declare function GM_addStyle(css: string): HTMLElement;
320320
```ts
321321
declare function GM_registerMenuCommand(
322322
name: string,
323-
listener: Function,
324-
accessKey?: string
323+
listener: () => void,
324+
optionsOrAccessKey?:
325+
| string
326+
| {
327+
id?: number | string;
328+
accessKey?: string;
329+
autoClose?: boolean;
330+
title?: string;
331+
}
325332
): number;
326333
```
327334

@@ -393,7 +400,7 @@ declare namespace GM_Types {
393400

394401
### GM_addElement
395402

396-
在页面中插入元素,可以绕过CSP限制
403+
在页面中插入元素,可以绕过 CSP 限制
397404

398405
```ts
399406
declare function GM_addElement(tag: string, attribubutes: any);

0 commit comments

Comments
 (0)