@zuplo/cli 6.70.71 → 6.71.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 (38) hide show
  1. package/node_modules/@zuplo/core/package.json +1 -1
  2. package/node_modules/@zuplo/graphql/package.json +1 -1
  3. package/node_modules/@zuplo/openapi-tools/package.json +1 -1
  4. package/node_modules/@zuplo/otel/package.json +1 -1
  5. package/node_modules/@zuplo/runtime/package.json +1 -1
  6. package/node_modules/axios/CHANGELOG.md +52 -1
  7. package/node_modules/axios/README.md +30 -2
  8. package/node_modules/axios/dist/axios.js +350 -134
  9. package/node_modules/axios/dist/axios.min.js +3 -3
  10. package/node_modules/axios/dist/axios.min.js.map +1 -1
  11. package/node_modules/axios/dist/browser/axios.cjs +355 -90
  12. package/node_modules/axios/dist/esm/axios.js +355 -90
  13. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  14. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  15. package/node_modules/axios/dist/node/axios.cjs +399 -104
  16. package/node_modules/axios/index.d.cts +2 -0
  17. package/node_modules/axios/index.d.ts +2 -0
  18. package/node_modules/axios/lib/adapters/fetch.js +113 -37
  19. package/node_modules/axios/lib/adapters/http.js +132 -43
  20. package/node_modules/axios/lib/core/Axios.js +3 -2
  21. package/node_modules/axios/lib/core/AxiosHeaders.js +10 -7
  22. package/node_modules/axios/lib/core/buildFullPath.js +29 -1
  23. package/node_modules/axios/lib/core/mergeConfig.js +34 -0
  24. package/node_modules/axios/lib/defaults/transitional.js +1 -0
  25. package/node_modules/axios/lib/env/data.js +1 -1
  26. package/node_modules/axios/lib/helpers/buildURL.js +5 -3
  27. package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +16 -11
  28. package/node_modules/axios/lib/helpers/formDataToJSON.js +25 -3
  29. package/node_modules/axios/lib/helpers/resolveConfig.js +5 -3
  30. package/node_modules/axios/lib/helpers/shouldBypassProxy.js +33 -1
  31. package/node_modules/axios/lib/helpers/toFormData.js +40 -10
  32. package/node_modules/axios/lib/utils.js +75 -11
  33. package/node_modules/axios/package.json +1 -1
  34. package/node_modules/form-data/CHANGELOG.md +29 -2
  35. package/node_modules/form-data/README.md +4 -4
  36. package/node_modules/form-data/lib/form_data.js +14 -2
  37. package/node_modules/form-data/package.json +7 -7
  38. package/package.json +6 -6
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuplo/core",
3
- "version": "6.70.71",
3
+ "version": "6.71.0",
4
4
  "repository": "https://github.com/zuplo/zuplo",
5
5
  "author": "Zuplo, Inc.",
6
6
  "type": "module",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/graphql",
3
3
  "type": "module",
4
- "version": "6.70.71",
4
+ "version": "6.71.0",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {
@@ -2,7 +2,7 @@
2
2
  "name": "@zuplo/openapi-tools",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "6.70.71",
5
+ "version": "6.71.0",
6
6
  "description": "Tooling for OpenAPI files",
7
7
  "repository": {
8
8
  "type": "git",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/otel",
3
3
  "type": "module",
4
- "version": "6.70.71",
4
+ "version": "6.71.0",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/runtime",
3
3
  "type": "module",
4
- "version": "6.70.71",
4
+ "version": "6.71.0",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {
@@ -1,5 +1,56 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.17.0 — June 1, 2026
4
+
5
+ This release adds Node HTTP zstd decompression, hardens config and release workflows, and fixes authentication, header, proxy, and type-handling regressions.
6
+
7
+ ## 🔒 Security Fixes
8
+
9
+ * **Config Hardening:** Guarded `socketPath`, `params`, and `paramsSerializer` reads with own-property checks to prevent inherited prototype values from affecting request behavior, including SSRF-sensitive paths. (__#10901__, __#10922__)
10
+ * **Release Publishing:** Switched the publish workflow to npm staged publishing for safer, auditable package releases with provenance. (__#10926__)
11
+
12
+ ## 🚀 New Features
13
+
14
+ * **HTTP Compression:** Added Node HTTP adapter support for zstd response decompression, with `transitional.advertiseZstdAcceptEncoding` controlling whether `zstd` is advertised in `Accept-Encoding`. (__#6792__, __#10920__)
15
+
16
+ ## 🐛 Bug Fixes
17
+
18
+ * **Authentication Handling:** Restored Basic auth on same-origin Node redirects while continuing to strip credentials cross-origin, and aligned the fetch adapter with HTTP adapter behavior for URL-embedded Basic auth. (__#10929__, __#10896__)
19
+ * **Proxy TLS:** Preserved user `httpsAgent` TLS options when tunneling HTTPS requests through HTTP CONNECT proxies. (__#10957__)
20
+ * **React Native FormData:** Cleared default `Content-Type` for React Native `FormData` so multipart boundaries can be generated correctly. (__#10898__)
21
+ * **Headers:** Silently skipped empty or whitespace-only header names instead of throwing, matching parsed-header behavior and avoiding React Native response crashes. (__#10875__)
22
+ * **Request Data Merging:** Preserved enumerable symbol keys when cloning plain request data through axios merge logic. (__#10812__)
23
+ * **Bundler Compatibility:** Converted `resolveConfig` from an arrow default export to a named function export to avoid webpack and Babel transform interop failures. (__#10891__)
24
+ * **Types:** Corrected `AxiosHeaders.toJSON()` return types and updated CommonJS `isCancel` typings to narrow to `CanceledError<T>`. (__#10956__, __#10952__)
25
+ * **Build Tooling:** Avoided emitting a null `Authorization` header from the GitHub build helper when `GITHUB_TOKEN` is unset. (__#10931__)
26
+
27
+ ## 🔧 Maintenance & Chores
28
+
29
+ * **HTTP/2 Internals:** Extracted `Http2Sessions` into its own helper module and added direct unit coverage for session pooling, timeout, and cleanup behavior. (__#10861__)
30
+ * **Package Publishing:** Reduced published package size by switching to a `files` allowlist and dropping unneeded unminified bundle source maps. (__#10939__)
31
+ * **CI and Release Automation:** Added bundle-size reporting, moved reports to the job summary, fixed bundle-size comparison coverage, added Node 26 to the matrix, pinned npm for staged publishing, and prepared the 1.17.0 release. (__#10907__, __#10911__, __#10916__, __#10927__, __#10935__, __#10983__)
32
+ * **Developer Workflow:** Added a dev container and iterated on OpenSpec workflow files before removing them from the release branch. (__#10925__, __#10914__, __#10958__)
33
+ * **Documentation and Policy:** Updated disclosure, contributor, collaboration, threat-model, advanced docs, README badges, release notes, moderator configuration, and project metadata. (__#10890__, __#10889__, __#10921__, __#10945__, __#10905__, __#10933__, __#10915__, __#10887__, __#10955__)
34
+ * **Dependencies:** Bumped Babel tooling, Commitlint, ESLint, Rollup, Globals, Vitest, Playwright, `fs-extra`, `qs`, docs dependencies, and GitHub Actions dependencies including `actions/dependency-review-action` and `zizmorcore/zizmor-action`. (__#10871__, __#10879__, __#10918__, __#10919__, __#10934__, __#10947__, __#10954__, __#10960__)
35
+
36
+ ## 🌟 New Contributors
37
+
38
+ We are thrilled to welcome our new contributors. Thank you for helping improve axios:
39
+
40
+ * __@BasixKOR__ (__#6792__)
41
+ * __@carladams1299-lab__ (__#10861__)
42
+ * __@LaplaceYoung__ (__#10812__)
43
+ * __@JamieMagee__ (__#10939__)
44
+ * __@RonGamzu__ (__#10905__)
45
+ * __@sapirbaruch__ (__#10891__)
46
+ * __@nezukoagent__ (__#10901__)
47
+ * __@devareddy05__ (__#10929__)
48
+ * __@Mohammad-Faiz-Cloud-Engineer__ (__#10922__)
49
+ * __@azandabot__ (__#10931__)
50
+ * __@niksy__ (__#10896__)
51
+
52
+ [Full Changelog](https://github.com/axios/axios/compare/v1.16.1...v1.17.0)
53
+
3
54
  ## v1.16.1 — May 13, 2026
4
55
 
5
56
  This release ships a defence-in-depth fix for prototype pollution in `formDataToJSON`, hardens proxy and CI workflows, restores Webpack 4 compatibility for the fetch adapter, and includes several small bug fixes and maintenance improvements.
@@ -1432,7 +1483,7 @@ This functionality is considered as a fix.
1432
1483
 
1433
1484
  - fix: improve AxiosHeaders class [#5224](https://github.com/axios/axios/pull/5224)
1434
1485
  - fix: TypeScript type definitions for commonjs [#5196](https://github.com/axios/axios/pull/5196)
1435
- - fix: type definition of use method on AxiosInterceptorManager to match the the README [#5071](https://github.com/axios/axios/pull/5071)
1486
+ - fix: type definition of use method on AxiosInterceptorManager to match the README [#5071](https://github.com/axios/axios/pull/5071)
1436
1487
  - fix: \_\_dirname is not defined in the sandbox [#5269](https://github.com/axios/axios/pull/5269)
1437
1488
  - fix: AxiosError.toJSON method to avoid circular references [#5247](https://github.com/axios/axios/pull/5247)
1438
1489
  - fix: Z_BUF_ERROR when content-encoding is set but the response body is empty [#5250](https://github.com/axios/axios/pull/5250)
@@ -773,6 +773,7 @@ These config options are available for requests. Only `url` is required. Request
773
773
  // When no `transformRequest` is set, it must be of one of the following types:
774
774
  // - string, plain object, ArrayBuffer, ArrayBufferView, URLSearchParams
775
775
  // - Browser only: FormData, File, Blob
776
+ // - React Native: FormData
776
777
  // - Node only: Stream, Buffer, FormData (form-data package)
777
778
  data: {
778
779
  firstName: 'Fred'
@@ -877,10 +878,12 @@ These config options are available for requests. Only `url` is required. Request
877
878
  // Do whatever you want with the Axios progress event
878
879
  },
879
880
 
880
- // `maxContentLength` defines the max size of the http response content in bytes allowed in node.js
881
+ // `maxContentLength` defines the max size of the response content in bytes.
882
+ // It is enforced by the Node.js HTTP adapter and the fetch adapter.
881
883
  maxContentLength: 2000,
882
884
 
883
- // `maxBodyLength` (Node only option) defines the max size of the http request content in bytes allowed
885
+ // `maxBodyLength` defines the max size of the request content in bytes.
886
+ // It is enforced by the Node.js HTTP adapter and the fetch adapter when the body length can be determined.
884
887
  maxBodyLength: 2000,
885
888
 
886
889
  // `redact` masks matching config keys when AxiosError#toJSON() is called.
@@ -898,6 +901,12 @@ These config options are available for requests. Only `url` is required. Request
898
901
  // If set to 0, Axios follows no redirects.
899
902
  maxRedirects: 21, // default
900
903
 
904
+ // `sensitiveHeaders` (Node only option) lists custom secret-bearing headers
905
+ // to remove from cross-origin redirects. Matching is case-insensitive.
906
+ // Same-origin redirects keep these headers. If `maxRedirects` is 0, this
907
+ // option is not used.
908
+ sensitiveHeaders: ['X-API-Key'],
909
+
901
910
  // `beforeRedirect` defines a function that Axios calls before redirect.
902
911
  // Use this to adjust the request options upon redirecting,
903
912
  // to inspect the latest response headers,
@@ -1640,6 +1649,7 @@ server = app.listen(3000);
1640
1649
 
1641
1650
  To send data as `multipart/form-data`, pass a FormData instance as the payload.
1642
1651
  You do not need to set the `Content-Type` header. Axios detects it from the payload type.
1652
+ For browser, web worker, and React Native `FormData`, leave `Content-Type` unset so the runtime can add the multipart boundary.
1643
1653
 
1644
1654
  ```js
1645
1655
  const formData = new FormData();
@@ -2068,6 +2078,8 @@ The `rewrite` argument controls the overwriting behavior:
2068
2078
 
2069
2079
  The option can also accept a user-defined function that determines whether to overwrite the value.
2070
2080
 
2081
+ Empty or whitespace-only header names are ignored.
2082
+
2071
2083
  Returns `this`.
2072
2084
 
2073
2085
  ### AxiosHeaders#get(header)
@@ -2243,6 +2255,8 @@ const { data } = fetchAxios.get(url);
2243
2255
  The adapter supports the same features as the `xhr` adapter, including upload and download progress capturing.
2244
2256
  It also supports response types such as `stream` and `formdata` when the environment supports them.
2245
2257
 
2258
+ When `auth` is omitted, the fetch adapter can read HTTP Basic auth credentials from the request URL, for example `https://user:pass@example.com`. Percent-encoded URL credentials are decoded before the `Authorization` header is generated, and `auth` takes precedence over URL-embedded credentials.
2259
+
2246
2260
  ### Custom fetch
2247
2261
 
2248
2262
  Since `v1.12.0`, you can configure the fetch adapter to use a custom fetch API instead of environment globals.
@@ -2365,6 +2379,20 @@ try {
2365
2379
  }
2366
2380
  ```
2367
2381
 
2382
+ Use `axios.isCancel<T>()` to narrow cancellation errors to `CanceledError<T>`:
2383
+
2384
+ ```typescript
2385
+ const controller = new AbortController();
2386
+
2387
+ try {
2388
+ await axios.get<User>('/user?ID=12345', { signal: controller.signal });
2389
+ } catch (error) {
2390
+ if (axios.isCancel<User>(error)) {
2391
+ handleCancellation(error);
2392
+ }
2393
+ }
2394
+ ```
2395
+
2368
2396
  Because axios publishes an ESM default export and a CJS `module.exports`, TypeScript has a few caveats.
2369
2397
  The recommended setting is `"moduleResolution": "node16"`, which is implied by `"module": "node16"`. This requires TypeScript 4.7 or greater.
2370
2398
  If you use ESM, your settings should be fine.