postman-runtime 7.45.0 → 7.46.1

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/CHANGELOG.yaml CHANGED
@@ -1,3 +1,27 @@
1
+ 7.46.1:
2
+ date: 2025-09-15
3
+ fixed bugs:
4
+ - >-
5
+ GH-1526 Fixed a bug where nested requests were aborting the run on
6
+ assertion failures
7
+ - >-
8
+ GH-1527 Add support for invoking parent request trigger from nested
9
+ requests
10
+
11
+ 7.46.0:
12
+ date: 2025-09-08
13
+ new features:
14
+ - >-
15
+ GH-1522 Add support for referencing pre-defined collection requests using
16
+ `pm.execution.runRequest`
17
+ fixed bugs:
18
+ - GH-1523 Fixed downloadedBytes tracking for redirected requests
19
+ - >-
20
+ GH-1524 Fixed a bug where incorrect digest auth header was getting used to
21
+ compute hash.
22
+ chores:
23
+ - Updated dependencies
24
+
1
25
  7.45.0:
2
26
  date: 2025-07-30
3
27
  new features:
package/README.md CHANGED
@@ -161,7 +161,11 @@ runner.run(collection, {
161
161
  // calls the callback with the refreshed token or an error
162
162
  // callback(err, token)
163
163
  },
164
- }
164
+ },
165
+
166
+ // The max depth or number of requests a request can invoke via `pm.execution.runRequest`
167
+ // in its pre-request and post-response scripts
168
+ maxInvokableNestedRequests: 5
165
169
  },
166
170
 
167
171
  // Options specific to the script execution
@@ -171,6 +175,38 @@ runner.run(collection, {
171
175
  // using the `teleport-javascript` serialization library.
172
176
  serializeLogs: false,
173
177
 
178
+ // Function to resolve requests that have been referenced via `pm.execution.runRequest`
179
+ // Expects a full collection JSON with a single request item and pre-request + test scripts
180
+ // along with variables for the collection
181
+ requestResolver: function (requestId, callback) {
182
+ return callback(null, {
183
+ item: [{
184
+ name: "Sample Request From Resolver",
185
+ event: [
186
+ {
187
+ listen: "prerequest",
188
+ script: {
189
+ exec: [`pm.environment.set("api_url", 'postman-echo.com');`],
190
+ type: "text/javascript",
191
+ packages: {},
192
+ },
193
+ },
194
+ ],
195
+ request: {
196
+ method: "POST",
197
+ header: [],
198
+ url: {
199
+ raw: "https://{{api_url}}/{{api_method}}",
200
+ protocol: "https",
201
+ host: ["{{api_url}}"],
202
+ path: ["{{api_method}}"],
203
+ },
204
+ }
205
+ }],
206
+ variable: [{ key: 'api_method', value: 'post' }],
207
+ })
208
+ },
209
+
174
210
  // Function to resolve packages that are used in the script.
175
211
  packageResolver: function ({ packages /* sdk.Script.packages */ }, callback) {
176
212
  return callback(null, {