@qmuse/cloud-client 0.0.1 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +6 -0
  2. package/package.json +5 -7
package/README.md CHANGED
@@ -152,6 +152,12 @@ It is fixed during initialization and is not supplied by business requests.
152
152
  New applications should select one platform entry at build time and should not
153
153
  depend on `@qmuse/appwrite` or `@qmuse/appwrite-runtime-sdk`.
154
154
 
155
+ The package installs its Appwrite Web SDK dependency automatically. Applications
156
+ do not need to declare `appwrite` separately to use `/web`. The `/miniapp` entry
157
+ does not import that SDK; it uses the host's Taro runtime through the optional
158
+ `@tarojs/taro` peer dependency. Keep platform imports in branches that the
159
+ bundler can remove at build time so native bundles do not include the Web SDK.
160
+
155
161
  Only `/api` paths and an allowlist of business headers are accepted. The client
156
162
  uses synchronous Function execution, reads `responseStatusCode`, `responseBody`,
157
163
  and `responseHeaders`, and maps non-2xx responses to `QmuseCloudHttpError`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qmuse/cloud-client",
3
- "version": "0.0.1",
3
+ "version": "1.0.0",
4
4
  "description": "Narrow HTTP-style client for the single QMuse Cloud API Function",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -35,21 +35,19 @@
35
35
  "test": "npm run build && node --test test/*.test.mjs",
36
36
  "prepublishOnly": "npm test"
37
37
  },
38
+ "dependencies": {
39
+ "appwrite": "24.1.1"
40
+ },
38
41
  "devDependencies": {
39
42
  "@tarojs/taro": "4.2.1",
40
- "appwrite": "24.1.1",
41
43
  "typescript": "~5.9.3"
42
44
  },
43
45
  "peerDependencies": {
44
- "@tarojs/taro": ">=3.6.0 <5",
45
- "appwrite": "24.1.1"
46
+ "@tarojs/taro": ">=3.6.0 <5"
46
47
  },
47
48
  "peerDependenciesMeta": {
48
49
  "@tarojs/taro": {
49
50
  "optional": true
50
- },
51
- "appwrite": {
52
- "optional": true
53
51
  }
54
52
  },
55
53
  "engines": {