@ctrl/qbittorrent 9.6.0 → 9.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -28,7 +28,7 @@ async function main() {
28
28
  ### API
29
29
 
30
30
  Docs: https://qbittorrent.vercel.app
31
- qBittorrent Api Docs: https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)
31
+ qBittorrent Api Docs: https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)
32
32
 
33
33
  ### Normalized API
34
34
 
@@ -103,7 +103,7 @@ console.log(result);
103
103
  If you're shutting down the server often (serverless?) you can export the state
104
104
 
105
105
  ```ts
106
- const state = client.exportState()
106
+ const state = client.exportState();
107
107
  const client = QBittorrent.createFromState(config, state);
108
108
  ```
109
109
 
@@ -204,8 +204,8 @@ export declare class QBittorrent implements TorrentClient {
204
204
  * {@link https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)#reannounce-torrents}
205
205
  */
206
206
  reannounceTorrent(hashes: string | string[] | 'all'): Promise<boolean>;
207
- addTorrent(torrent: string | Uint8Array, options?: Partial<AddTorrentOptions>): Promise<boolean>;
208
- normalizedAddTorrent(torrent: string | Uint8Array, options?: Partial<NormalizedAddTorrentOptions>): Promise<NormalizedTorrent>;
207
+ addTorrent(torrent: string | Uint8Array<ArrayBuffer>, options?: Partial<AddTorrentOptions>): Promise<boolean>;
208
+ normalizedAddTorrent(torrent: string | Uint8Array<ArrayBuffer>, options?: Partial<NormalizedAddTorrentOptions>): Promise<NormalizedTorrent>;
209
209
  /**
210
210
  * @param hash Hash for desired torrent
211
211
  * @param oldPath id of the file to be renamed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctrl/qbittorrent",
3
- "version": "9.6.0",
3
+ "version": "9.7.0",
4
4
  "description": "TypeScript api wrapper for qbittorrent using got",
5
5
  "author": "Scott Cooper <scttcper@gmail.com>",
6
6
  "license": "MIT",
@@ -22,12 +22,8 @@
22
22
  "qbittorrent"
23
23
  ],
24
24
  "scripts": {
25
- "lint": "pnpm run '/^(lint:biome|lint:eslint)$/'",
26
- "lint:biome": "biome check .",
27
- "lint:eslint": "eslint .",
28
- "lint:fix": "pnpm run '/^(lint:biome|lint:eslint):fix$/'",
29
- "lint:eslint:fix": "eslint . --fix",
30
- "lint:biome:fix": "biome check . --write",
25
+ "lint": "oxlint . && prettier --check . --experimental-cli",
26
+ "lint:fix": "oxlint . --fix && prettier --write . --log-level=error --experimental-cli",
31
27
  "prepare": "npm run build",
32
28
  "build": "tsc",
33
29
  "build:docs": "typedoc",
@@ -37,27 +33,27 @@
37
33
  },
38
34
  "dependencies": {
39
35
  "@ctrl/magnet-link": "^4.0.2",
40
- "@ctrl/shared-torrent": "^6.2.1",
36
+ "@ctrl/shared-torrent": "^6.3.0",
41
37
  "@ctrl/torrent-file": "^4.1.0",
42
38
  "cookie": "^1.0.2",
43
- "node-fetch-native": "^1.6.6",
39
+ "node-fetch-native": "^1.6.7",
44
40
  "ofetch": "^1.4.1",
45
- "type-fest": "^4.40.0",
41
+ "type-fest": "^4.41.0",
46
42
  "ufo": "^1.6.1",
47
- "uint8array-extras": "^1.4.0"
43
+ "uint8array-extras": "^1.5.0"
48
44
  },
49
45
  "devDependencies": {
50
- "@biomejs/biome": "1.9.4",
51
- "@ctrl/eslint-config-biome": "4.3.5",
52
- "@eslint/compat": "^1.2.8",
53
- "@sindresorhus/tsconfig": "7.0.0",
54
- "@types/node": "22.14.1",
55
- "@vitest/coverage-v8": "3.1.1",
56
- "eslint": "^9.25.0",
46
+ "@ctrl/oxlint-config": "1.2.3",
47
+ "@sindresorhus/tsconfig": "8.0.1",
48
+ "@trivago/prettier-plugin-sort-imports": "5.2.2",
49
+ "@types/node": "24.3.0",
50
+ "@vitest/coverage-v8": "3.2.4",
51
+ "oxlint": "1.14.0",
57
52
  "p-wait-for": "5.0.2",
58
- "typedoc": "0.28.3",
59
- "typescript": "5.8.3",
60
- "vitest": "3.1.1"
53
+ "prettier": "3.6.2",
54
+ "typedoc": "0.28.11",
55
+ "typescript": "5.9.2",
56
+ "vitest": "3.2.4"
61
57
  },
62
58
  "release": {
63
59
  "branches": [
@@ -67,5 +63,25 @@
67
63
  "engines": {
68
64
  "node": ">=18"
69
65
  },
70
- "packageManager": "pnpm@10.8.1"
66
+ "packageManager": "pnpm@10.15.0",
67
+ "prettier": {
68
+ "singleQuote": true,
69
+ "trailingComma": "all",
70
+ "arrowParens": "avoid",
71
+ "semi": true,
72
+ "printWidth": 100,
73
+ "plugins": [
74
+ "@trivago/prettier-plugin-sort-imports"
75
+ ],
76
+ "importOrder": [
77
+ "^node:.*$",
78
+ "<THIRD_PARTY_MODULES>",
79
+ "^(@ctrl)(/.*|$)",
80
+ "^\\.\\./(?!.*\\.css$)",
81
+ "^\\./(?!.*\\.css$)(?=.*/)",
82
+ "^\\./(?!.*\\.css$)(?!.*/)"
83
+ ],
84
+ "importOrderSeparation": true,
85
+ "importOrderSortSpecifiers": false
86
+ }
71
87
  }