Skip to content

Commit

Permalink
chore(deps) Update Tauri API Definitions (dev) (major) (#7638)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <[email protected]>
  • Loading branch information
renovate[bot] and lucasfernog committed Oct 18, 2023
1 parent 6f23fa3 commit 5c0eeb4
Show file tree
Hide file tree
Showing 12 changed files with 359 additions and 409 deletions.
5 changes: 5 additions & 0 deletions .changes/api-min-node-18.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tauri-apps/api": patch:changes
---

Updated minimum Node.js version to 18.
2 changes: 1 addition & 1 deletion .github/workflows/covector-version-or-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 18
registry-url: 'https://registry.npmjs.org'
cache: yarn
cache-dependency-path: tooling/*/yarn.lock
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Download cross
uses: actions/download-artifact@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '18'
cache: yarn
cache-dependency-path: tooling/cli/node/yarn.lock
- name: install deps via yarn
Expand All @@ -42,7 +42,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '18'
cache: yarn
cache-dependency-path: tooling/api/yarn.lock

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-cli-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: setup node
uses: actions/setup-node@v2
with:
node-version: 14
node-version: 18
cache: yarn
cache-dependency-path: tooling/cli/node/yarn.lock

Expand Down
2 changes: 1 addition & 1 deletion core/tauri/scripts/bundle.global.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tooling/api/docs/js-api.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions tooling/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,23 @@
"access": "public"
},
"engines": {
"node": ">= 14.6.0",
"node": ">= 18",
"npm": ">= 6.6.0",
"yarn": ">= 1.19.1"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "5.62.0",
"eslint": "8.46.0",
"eslint-config-prettier": "8.10.0",
"eslint-config-standard-with-typescript": "34.0.1",
"eslint-plugin-import": "2.28.0",
"eslint-plugin-n": "15.7.0",
"@typescript-eslint/eslint-plugin": "6.8.0",
"@typescript-eslint/parser": "6.8.0",
"eslint": "8.51.0",
"eslint-config-prettier": "9.0.0",
"eslint-config-standard-with-typescript": "39.1.1",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-n": "16.2.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-security": "1.7.1",
"prettier": "2.8.8",
"tsup": "6.7.0",
"prettier": "3.0.3",
"tsup": "7.2.0",
"typedoc": "0.24.8",
"typedoc-plugin-markdown": "3.15.4",
"typedoc-plugin-mdn-links": "3.0.3",
Expand Down
8 changes: 7 additions & 1 deletion tooling/api/src/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ declare global {
invoke: typeof invoke
transformCallback: typeof transformCallback
convertFileSrc: typeof convertFileSrc
ipc: (message: any) => void
ipc: (message: {
cmd: string
callback: number
error: number
payload: unknown
options?: InvokeOptions
}) => void
metadata: {
windows: WindowDef[]
currentWindow: WindowDef
Expand Down
2 changes: 1 addition & 1 deletion tooling/api/src/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ interface IPCMessage {
* @since 1.0.0
*/
export function mockIPC(
cb: (cmd: string, payload: Record<string, unknown>) => any | Promise<any>
cb: (cmd: string, payload: Record<string, unknown>) => unknown
): void {
// eslint-disable-next-line @typescript-eslint/no-misused-promises
window.__TAURI_INTERNALS__.ipc = async ({
Expand Down
4 changes: 2 additions & 2 deletions tooling/api/src/primitives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
*
* @since 1.0.0
*/
function transformCallback(
callback?: (response: any) => void,
function transformCallback<T = unknown>(
callback?: (response: T) => void,
once = false
): number {
return window.__TAURI_INTERNALS__.transformCallback(callback, once)
Expand Down
715 changes: 327 additions & 388 deletions tooling/api/yarn.lock

Large diffs are not rendered by default.

0 comments on commit 5c0eeb4

Please sign in to comment.