Skip to content

Commit

Permalink
chore: release v1.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Jul 18, 2024
1 parent 138edbf commit f8d3050
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 13 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# CHANGELOG

## 1.10.1 (2024-07-18)

### Feat

- 添加 `image-manager.file.trashAfterProcessing` 配置,控制图片处理后是否移动到回收站。默认为 `false`

### Fix

- 批量处理图片后可能导致图片列表暂时为空
- 根目录改变后,监听器没有重新初始化

## 1.9.2 (2024-07-17)

### Fix
Expand Down
2 changes: 1 addition & 1 deletion scripts/download-sharp-releases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function isVersionDiff() {

try {
lastVersion = fs.readJSONSync(versionJsonFile).version
} catch (error) {
} catch {
isDiff = true
}

Expand Down
2 changes: 1 addition & 1 deletion src/core/hook-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class HookPlugin<RuntimeHooks extends AnyObject = AnyObject> {
if (plugins?.length) {
this._applyPlugins(plugins as ObjectPlugin[])
}
} catch (e) {}
} catch {}
}

use(plugins: ObjectPlugin[]) {
Expand Down
2 changes: 1 addition & 1 deletion src/core/sharp/sharp-operator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class SharpOperator<T extends AnyObject, RuntimeCtx extends AnyObject = T
try {
const sharp = Global.sharp
this.ctx.sharpFactory = sharp
} catch (e) {}
} catch {}
}

async run(
Expand Down
7 changes: 6 additions & 1 deletion src/webview/ui-framework/@types/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
declare global {
interface Window {}
interface Window {
/**
* react root
*/
__react_root__: ReactDOM.Root
}
}

export {}
9 changes: 0 additions & 9 deletions src/webview/ui-framework/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,6 @@ import './hmr'
import './styles/index.css'
import 'antd/dist/reset.css'

declare global {
interface Window {
/**
* react root
*/
__react_root__: ReactDOM.Root
}
}

type WebviewComponents = {
[key: string]: () => JSX.Element
}
Expand Down

0 comments on commit f8d3050

Please sign in to comment.