Skip to content

Commit 5c0eeb4

Browse files
chore(deps) Update Tauri API Definitions (dev) (major) (#7638)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
1 parent 6f23fa3 commit 5c0eeb4

File tree

12 files changed

+359
-409
lines changed

12 files changed

+359
-409
lines changed

.changes/api-min-node-18.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@tauri-apps/api": patch:changes
3+
---
4+
5+
Updated minimum Node.js version to 18.

.github/workflows/covector-version-or-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
fetch-depth: 0
7272
- uses: actions/setup-node@v2
7373
with:
74-
node-version: 14
74+
node-version: 18
7575
registry-url: 'https://registry.npmjs.org'
7676
cache: yarn
7777
cache-dependency-path: tooling/*/yarn.lock

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
- name: Setup node
7878
uses: actions/setup-node@v3
7979
with:
80-
node-version: 16
80+
node-version: 18
8181

8282
- name: Download cross
8383
uses: actions/download-artifact@v3

.github/workflows/lint-js.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/checkout@v4
2323
- uses: actions/setup-node@v2
2424
with:
25-
node-version: '14'
25+
node-version: '18'
2626
cache: yarn
2727
cache-dependency-path: tooling/cli/node/yarn.lock
2828
- name: install deps via yarn
@@ -42,7 +42,7 @@ jobs:
4242
- uses: actions/checkout@v4
4343
- uses: actions/setup-node@v2
4444
with:
45-
node-version: '14'
45+
node-version: '18'
4646
cache: yarn
4747
cache-dependency-path: tooling/api/yarn.lock
4848

.github/workflows/test-cli-js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: setup node
4444
uses: actions/setup-node@v2
4545
with:
46-
node-version: 14
46+
node-version: 18
4747
cache: yarn
4848
cache-dependency-path: tooling/cli/node/yarn.lock
4949

core/tauri/scripts/bundle.global.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tooling/api/docs/js-api.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

tooling/api/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,23 @@
3636
"access": "public"
3737
},
3838
"engines": {
39-
"node": ">= 14.6.0",
39+
"node": ">= 18",
4040
"npm": ">= 6.6.0",
4141
"yarn": ">= 1.19.1"
4242
},
4343
"devDependencies": {
44-
"@typescript-eslint/eslint-plugin": "5.62.0",
45-
"@typescript-eslint/parser": "5.62.0",
46-
"eslint": "8.46.0",
47-
"eslint-config-prettier": "8.10.0",
48-
"eslint-config-standard-with-typescript": "34.0.1",
49-
"eslint-plugin-import": "2.28.0",
50-
"eslint-plugin-n": "15.7.0",
44+
"@typescript-eslint/eslint-plugin": "6.8.0",
45+
"@typescript-eslint/parser": "6.8.0",
46+
"eslint": "8.51.0",
47+
"eslint-config-prettier": "9.0.0",
48+
"eslint-config-standard-with-typescript": "39.1.1",
49+
"eslint-plugin-import": "2.28.1",
50+
"eslint-plugin-n": "16.2.0",
5151
"eslint-plugin-node": "11.1.0",
5252
"eslint-plugin-promise": "6.1.1",
5353
"eslint-plugin-security": "1.7.1",
54-
"prettier": "2.8.8",
55-
"tsup": "6.7.0",
54+
"prettier": "3.0.3",
55+
"tsup": "7.2.0",
5656
"typedoc": "0.24.8",
5757
"typedoc-plugin-markdown": "3.15.4",
5858
"typedoc-plugin-mdn-links": "3.0.3",

tooling/api/src/global.d.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ declare global {
1313
invoke: typeof invoke
1414
transformCallback: typeof transformCallback
1515
convertFileSrc: typeof convertFileSrc
16-
ipc: (message: any) => void
16+
ipc: (message: {
17+
cmd: string
18+
callback: number
19+
error: number
20+
payload: unknown
21+
options?: InvokeOptions
22+
}) => void
1723
metadata: {
1824
windows: WindowDef[]
1925
currentWindow: WindowDef

tooling/api/src/mocks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ interface IPCMessage {
6363
* @since 1.0.0
6464
*/
6565
export function mockIPC(
66-
cb: (cmd: string, payload: Record<string, unknown>) => any | Promise<any>
66+
cb: (cmd: string, payload: Record<string, unknown>) => unknown
6767
): void {
6868
// eslint-disable-next-line @typescript-eslint/no-misused-promises
6969
window.__TAURI_INTERNALS__.ipc = async ({

0 commit comments

Comments
 (0)