@twin.org/api-rest-client 0.9.0 → 0.9.1-next.2

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,53 @@
1
1
  # Changelog
2
2
 
3
+ ## [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)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **api-rest-client:** Synchronize repo versions
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.1 to 0.9.1-next.2
16
+ * @twin.org/api-models bumped from 0.9.1-next.1 to 0.9.1-next.2
17
+
18
+ ## [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)
19
+
20
+
21
+ ### Features
22
+
23
+ * add context id features ([#42](https://github.com/iotaledger/twin-api/issues/42)) ([0186055](https://github.com/iotaledger/twin-api/commit/0186055c48afde842a4254b4df9ac9249c40fe40))
24
+ * add livez endpoint ([#57](https://github.com/iotaledger/twin-api/issues/57)) ([ef007db](https://github.com/iotaledger/twin-api/commit/ef007db8201736dd3053211f849ffd03baaa485e))
25
+ * add root, favicon routes ([71da1c3](https://github.com/iotaledger/twin-api/commit/71da1c3a93c349588aff7084d1d8d6a29a277da8))
26
+ * add validate-locales ([cdba610](https://github.com/iotaledger/twin-api/commit/cdba610a0acb5022d2e3ce729732e6646a297e5e))
27
+ * eslint migration to flat config ([0dd5820](https://github.com/iotaledger/twin-api/commit/0dd5820e3af97350fd08b8d226f4a6c1a9246805))
28
+ * remove authentication generators ([#66](https://github.com/iotaledger/twin-api/issues/66)) ([adaa169](https://github.com/iotaledger/twin-api/commit/adaa1698df1c5ccb0ad645a7a7c0d3ef82ef6ac1))
29
+ * separate service responsibilities ([#116](https://github.com/iotaledger/twin-api/issues/116)) ([2234648](https://github.com/iotaledger/twin-api/commit/2234648de4a2de5b7356aadde328f40470bc12e3))
30
+ * typescript 6 update ([78d2aa0](https://github.com/iotaledger/twin-api/commit/78d2aa00902f79b61973079b798b87ec05f18a8b))
31
+ * update dependencies ([32b8cd2](https://github.com/iotaledger/twin-api/commit/32b8cd20353119dd1998e293d54063cf4d9ecc29))
32
+ * update dependencies ([1171dc4](https://github.com/iotaledger/twin-api/commit/1171dc416a9481737f6a640e3cf30145768f37e9))
33
+ * update framework core ([d8eebf2](https://github.com/iotaledger/twin-api/commit/d8eebf267fa2a0abaa84e58590496e9d20490cfa))
34
+ * update IComponent signatures ([915ce37](https://github.com/iotaledger/twin-api/commit/915ce37712326ab4aa6869c350eabaa4622e8430))
35
+ * use shared store mechanism ([#19](https://github.com/iotaledger/twin-api/issues/19)) ([32116df](https://github.com/iotaledger/twin-api/commit/32116df3b4380a30137f5056f242a5c99afa2df9))
36
+
37
+
38
+ ### Bug Fixes
39
+
40
+ * not supported error handling ([5cc1a50](https://github.com/iotaledger/twin-api/commit/5cc1a507243f37fda5855acb622b2a3f4d91080f))
41
+ * use correct format for log messaging ([1d28474](https://github.com/iotaledger/twin-api/commit/1d284744589aa7875327ccc053446f655f2a7f62))
42
+
43
+
44
+ ### Dependencies
45
+
46
+ * The following workspace dependencies were updated
47
+ * dependencies
48
+ * @twin.org/api-core bumped from 0.9.1-next.0 to 0.9.1-next.1
49
+ * @twin.org/api-models bumped from 0.9.1-next.0 to 0.9.1-next.1
50
+
3
51
  ## [0.9.0](https://github.com/iotaledger/twin-api/compare/api-rest-client-v0.9.0...api-rest-client-v0.9.0) (2026-06-24)
4
52
 
5
53
 
@@ -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.0",
3
+ "version": "0.9.1-next.2",
4
4
  "description": "REST client implementation for consuming information and hosting endpoints.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,11 +14,11 @@
14
14
  "node": ">=20.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/api-core": "^0.9.0",
18
- "@twin.org/api-models": "^0.9.0",
19
- "@twin.org/core": "^0.9.0",
20
- "@twin.org/nameof": "^0.9.0",
21
- "@twin.org/web": "^0.9.0"
17
+ "@twin.org/api-core": "0.9.1-next.2",
18
+ "@twin.org/api-models": "0.9.1-next.2",
19
+ "@twin.org/core": "next",
20
+ "@twin.org/nameof": "next",
21
+ "@twin.org/web": "next"
22
22
  },
23
23
  "main": "./dist/es/index.js",
24
24
  "types": "./dist/types/index.d.ts",