Skip to content

Commit 11957fb

Browse files
authoredFeb 23, 2023
chore: regenerate package-lock.json (#8411)
package-lock.json was regenerated using Node@16.13.2 and npm@8.1.2. Along with that, these Node.js and npm versions were set to .nvmrc file. Given that the dependency tree now changed, webpack config resolve aliases needed to be amended to reflect the current dependency tree.
1 parent 21cfda3 commit 11957fb

File tree

5 files changed

+8236
-8443
lines changed

5 files changed

+8236
-8443
lines changed
 

‎.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.8
1+
16.13.2

‎docs/development/setting-up.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ Swagger UI includes a development server that provides hot module reloading and
55
### Prerequisites
66

77
- git, any version
8-
9-
SwaggerUI Node.js support closely follows [Node.js Release Statuses](https://nodejs.org/en/about/releases/)
10-
and is only expected to work on `Current`, `Active LTS` and `Maintanenace LTS` versions of Node.js.
11-
SwaggerUI may also work on `Pending` or `EOL` versions of Node.js, but it's not guaranteed.
8+
- **Node.js >=16.13.2** and **npm >=8.1.2** are the minimum required versions that this repo runs on, but we recommend using the latest version of Node.js@16
129

1310
### Steps
1411

‎docs/usage/installation.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44

55
### NPM Registry
66

7-
We publish two modules to npm: **`swagger-ui`** and **`swagger-ui-dist`**.
7+
We publish three modules to npm: **`swagger-ui`**, **`swagger-ui-dist`** and **`swagger-ui-react`**.
88

9-
**`swagger-ui`** is meant for consumption by JavaScript web projects that include module bundlers, such as Webpack, Browserify, and Rollup. Its main file exports Swagger UI's main function, and the module also includes a namespaced stylesheet at `swagger-ui/dist/swagger-ui.css`. Here's an example:
9+
**`swagger-ui`** is meant for consumption by JavaScript web projects that include module bundlers,
10+
such as Webpack, Browserify, and Rollup. Its main file exports Swagger UI's main function,
11+
and the module also includes a namespaced stylesheet at `swagger-ui/dist/swagger-ui.css`. Here's an example:
1012

1113
```javascript
1214
import SwaggerUI from 'swagger-ui'

‎package-lock.json

+8,228-8,433
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎webpack/_config-builder.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,8 @@ export default function buildConfig(
105105
"@babel/runtime-corejs3": path.resolve(__dirname, "..", "node_modules/@babel/runtime-corejs3"),
106106
"js-yaml": path.resolve(__dirname, "..", "node_modules/js-yaml"),
107107
"lodash": path.resolve(__dirname, "..", "node_modules/lodash"),
108-
"isarray": path.resolve(__dirname, "..", "node_modules/stream-browserify/node_modules/isarray"),
109-
"react-is": path.resolve(__dirname, "..", "node_modules/react-redux/node_modules/react-is"),
110-
"safe-buffer": path.resolve(__dirname, "..", "node_modules/string_decoder/node_modules/safe-buffer"),
108+
"react-is": path.resolve(__dirname, "..", "node_modules/react-is"),
109+
"safe-buffer": path.resolve(__dirname, "..", "node_modules/safe-buffer"),
111110
},
112111
fallback: {
113112
fs: false,

0 commit comments

Comments
 (0)
Please sign in to comment.