Skip to content

Commit 2d98259

Browse files
authored
Merge branch 'master' into master
2 parents c1b791a + b882f59 commit 2d98259

File tree

38 files changed

+1666
-1778
lines changed

38 files changed

+1666
-1778
lines changed

.github/dependabot.yml

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ updates:
1010
include: "scope"
1111
open-pull-requests-limit: 10
1212
ignore:
13-
- dependency-name: "traverse"
1413
- dependency-name: "undici" # we need to stay on undici@5 for testing on Node.js@16
1514
update-types:
1615
- "version-update:semver-major"

.github/workflows/dependabot-merge.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
# will not occur.
1414
- name: Dependabot metadata
1515
id: dependabot-metadata
16-
uses: dependabot/fetch-metadata@v2.1.0
16+
uses: dependabot/fetch-metadata@v2.2.0
1717
with:
1818
github-token: "${{ secrets.GITHUB_TOKEN }}"
1919
# Here the PR gets approved.

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
- name: Semantic Release
3232
id: semantic
33-
uses: cycjimmy/semantic-release-action@v4.1.0
33+
uses: cycjimmy/semantic-release-action@v4.1.1
3434
with:
3535
dry_run: false
3636
extra_plugins: |

README.md

+17
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,23 @@ Swagger Client Version | Release Date | OpenAPI Spec compatibility |
2828
3.10.x | 2020-01-17 | 2.0, 3.0.0, 3.0.1, 3.0.2, 3.0.3 | [tag v3.10.0](https://github.com/swagger-api/swagger-js/tree/v3.10.0)
2929
2.1.32 | 2017-01-12 | 1.0, 1.1, 1.2 | [tag v2.1.32](https://github.com/swagger-api/swagger-js/tree/v2.1.32). This [release](https://github.com/swagger-api/swagger-js/releases/tag/v2.1.32) is only available on GitHub.
3030

31+
## Anonymized analytics
32+
33+
Swagger Client uses [Scarf](https://scarf.sh/) to collect [anonymized installation analytics](https://github.com/scarf-sh/scarf-js?tab=readme-ov-file#as-a-user-of-a-package-using-scarf-js-what-information-does-scarf-js-send-about-me). These analytics help support the maintainers of this library and ONLY run during installation. To [opt out](https://github.com/scarf-sh/scarf-js?tab=readme-ov-file#as-a-user-of-a-package-using-scarf-js-how-can-i-opt-out-of-analytics), you can set the `scarfSettings.enabled` field to `false` in your project's `package.json`:
34+
35+
```
36+
// package.json
37+
{
38+
// ...
39+
"scarfSettings": {
40+
"enabled": false
41+
}
42+
// ...
43+
}
44+
```
45+
46+
Alternatively, you can set the environment variable `SCARF_ANALYTICS` to `false` as part of the environment that installs your npm packages, e.g., `SCARF_ANALYTICS=false npm install`.
47+
3148
## Documentation
3249

3350
#### Usage

config/webpack/browser.config.babel.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const browserMin = {
6363
devtool: 'source-map',
6464
performance: {
6565
hints: 'error',
66-
maxEntrypointSize: 460000,
66+
maxEntrypointSize: 470000,
6767
maxAssetSize: 50000000,
6868
},
6969
output: {

docs/usage/http-client-for-oas-operations.md

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Property | Description
2828
`userFetch` | `Function=cross-fetch`. Custom **asynchronous** fetch function that accepts two arguments: the `url` and the `Request` object and must return a [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) object. More info in [HTTP Client](http-client.md) documentation.
2929
`signal` | `AbortSignal=null`. AbortSignal object instance, which can be used to abort a request as desired.
3030
`server` | `String`. URL (`https://example.com`) or relative URI Reference (`/path/subpath`). Must match with of the defined `Server Objects`. If matched, it will be prepended to every requested path.
31+
`serverVariableEncoder` | `Function=identity`. An encoder function that is run on a server variable before substituted to the URL template.
3132
`contextUrl` | `String`. URL, e.g. `https://example.com`. Used in following situations: <br /><br />If `server` option is not matched and there is no `Server Object` defined in the definition, this URL will be prepended to every requested path.<br /><br />If matched `Server Object` is defined as relative URI Reference its `url` fixed field is resolved against `contenxtUrl`. Resolved URL will be prepended to every requested path.
3233
`baseURL` | `String`. URL (`https://example.com`) . Takes precedence over server and any defined servers in the Spec. It will be prepended to every requested path.
3334

0 commit comments

Comments
 (0)