@twin.org/api-rest-client 0.9.1-next.1 → 0.9.1-next.3

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/docs/changelog.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.9.1-next.3](https://github.com/iotaledger/twin-api/compare/api-rest-client-v0.9.1-next.2...api-rest-client-v0.9.1-next.3) (2026-06-29)
4
+
5
+
6
+ ### Features
7
+
8
+ * enhanced rest handling ([#208](https://github.com/iotaledger/twin-api/issues/208)) ([99d5f3f](https://github.com/iotaledger/twin-api/commit/99d5f3f96d262e57828d98d3f3b1e3da8a863378))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/api-core bumped from 0.9.1-next.2 to 0.9.1-next.3
16
+ * @twin.org/api-models bumped from 0.9.1-next.2 to 0.9.1-next.3
17
+
18
+ ## [0.9.1-next.2](https://github.com/iotaledger/twin-api/compare/api-rest-client-v0.9.1-next.1...api-rest-client-v0.9.1-next.2) (2026-06-26)
19
+
20
+
21
+ ### Miscellaneous Chores
22
+
23
+ * **api-rest-client:** Synchronize repo versions
24
+
25
+
26
+ ### Dependencies
27
+
28
+ * The following workspace dependencies were updated
29
+ * dependencies
30
+ * @twin.org/api-core bumped from 0.9.1-next.1 to 0.9.1-next.2
31
+ * @twin.org/api-models bumped from 0.9.1-next.1 to 0.9.1-next.2
32
+
3
33
  ## [0.9.1-next.1](https://github.com/iotaledger/twin-api/compare/api-rest-client-v0.9.1-next.0...api-rest-client-v0.9.1-next.1) (2026-06-26)
4
34
 
5
35
 
@@ -64,7 +64,7 @@ The endpoint with namespace prefix attached.
64
64
 
65
65
  ### fetch() {#fetch}
66
66
 
67
- > **fetch**\<`T`, `U`\>(`route`, `method`, `request?`): `Promise`\<`U`\>
67
+ > **fetch**\<`T`, `U`\>(`route`, `method`, `request?`, `options?`): `Promise`\<`U`\>
68
68
 
69
69
  Perform a request in json format.
70
70
 
@@ -98,6 +98,16 @@ The http method.
98
98
 
99
99
  Request to send to the endpoint.
100
100
 
101
+ ##### options?
102
+
103
+ Optional override options for the request.
104
+
105
+ ###### overridePrefix?
106
+
107
+ `string`
108
+
109
+ Optional override prefix to use for this request instead of the default prefix.
110
+
101
111
  #### Returns
102
112
 
103
113
  `Promise`\<`U`\>
@@ -64,7 +64,7 @@ The endpoint with namespace prefix attached.
64
64
 
65
65
  ### fetch() {#fetch}
66
66
 
67
- > **fetch**\<`T`, `U`\>(`route`, `method`, `request?`): `Promise`\<`U`\>
67
+ > **fetch**\<`T`, `U`\>(`route`, `method`, `request?`, `options?`): `Promise`\<`U`\>
68
68
 
69
69
  Perform a request in json format.
70
70
 
@@ -98,6 +98,16 @@ The http method.
98
98
 
99
99
  Request to send to the endpoint.
100
100
 
101
+ ##### options?
102
+
103
+ Optional override options for the request.
104
+
105
+ ###### overridePrefix?
106
+
107
+ `string`
108
+
109
+ Optional override prefix to use for this request instead of the default prefix.
110
+
101
111
  #### Returns
102
112
 
103
113
  `Promise`\<`U`\>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/api-rest-client",
3
- "version": "0.9.1-next.1",
3
+ "version": "0.9.1-next.3",
4
4
  "description": "REST client implementation for consuming information and hosting endpoints.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,8 +14,8 @@
14
14
  "node": ">=20.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/api-core": "0.9.1-next.1",
18
- "@twin.org/api-models": "0.9.1-next.1",
17
+ "@twin.org/api-core": "0.9.1-next.3",
18
+ "@twin.org/api-models": "0.9.1-next.3",
19
19
  "@twin.org/core": "next",
20
20
  "@twin.org/nameof": "next",
21
21
  "@twin.org/web": "next"