swagger-ui 5.4.2 → 5.6.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swagger-ui",
3
- "version": "5.4.2",
3
+ "version": "5.6.0",
4
4
  "main": "./dist/swagger-ui.js",
5
5
  "module": "./dist/swagger-ui-es-bundle-core.js",
6
6
  "exports": {
@@ -39,28 +39,28 @@
39
39
  "automated-release": "release-it -VV --config ./release/.release-it.json",
40
40
  "build": "npm run build-stylesheets && rimraf ./dist/swagger-ui.js ./dist/swagger-ui.js.map && npm run build-all-bundles",
41
41
  "build-all-bundles": "run-p --aggregate-output build:core build:bundle build:standalone build:es:bundle build:es:bundle:core",
42
- "build-stylesheets": "webpack --color --config webpack/stylesheets.babel.js",
43
- "build:bundle": "webpack --color --config webpack/bundle.babel.js",
44
- "build:core": "webpack --color --config webpack/core.babel.js",
45
- "build:standalone": "webpack --color --config webpack/standalone.babel.js",
46
- "build:es:bundle": "webpack --color --config webpack/es-bundle.babel.js",
47
- "build:es:bundle:core": "webpack --color --config webpack/es-bundle-core.babel.js",
42
+ "build-stylesheets": "cross-env NODE_ENV=production webpack --color --config webpack/stylesheets.js",
43
+ "build:bundle": "cross-env NODE_ENV=production webpack --color --config webpack/bundle.js",
44
+ "build:core": "cross-env NODE_ENV=production webpack --color --config webpack/core.js",
45
+ "build:standalone": "cross-env NODE_ENV=production webpack --color --config webpack/standalone.js",
46
+ "build:es:bundle": "cross-env NODE_ENV=production webpack --color --config webpack/es-bundle.js",
47
+ "build:es:bundle:core": "cross-env NODE_ENV=production BABEL_ENV=esm webpack --color --config webpack/es-bundle-core.js",
48
48
  "clean": "rimraf ./dist",
49
49
  "postinstall": "patch-package",
50
- "dev": "webpack serve --config webpack/dev.babel.js",
50
+ "dev": "cross-env NODE_ENV=development webpack serve --config webpack/dev.js",
51
51
  "deps-license": "license-checker --production --csv --out $npm_package_config_deps_check_dir/licenses.csv && license-checker --development --csv --out $npm_package_config_deps_check_dir/licenses-dev.csv",
52
- "deps-size": "webpack -p --config webpack/bundle.babel.js --json | webpack-bundle-size-analyzer >| $npm_package_config_deps_check_dir/sizes.txt",
52
+ "deps-size": "cross-env NODE_ENV=development webpack -p --config webpack/bundle.js --json | webpack-bundle-size-analyzer >| $npm_package_config_deps_check_dir/sizes.txt",
53
53
  "deps-check": "run-s deps-license deps-size",
54
54
  "lint": "eslint --ext \".js,.jsx\" src test dev-helpers flavors",
55
55
  "lint-errors": "eslint --quiet --ext \".js,.jsx\" src test dev-helpers flavors",
56
56
  "lint-fix": "eslint --ext \".js,.jsx\" src test dev-helpers flavors --fix",
57
57
  "test": "run-s lint-errors just-test-in-node test:unit-jest cy:ci",
58
58
  "test-in-node": "run-s lint-errors just-test-in-node",
59
- "just-test-in-node": "cross-env BABEL_ENV=test mocha \"test/mocha/**/*.{js,jsx}\"",
60
- "test:artifact": "jest --config ./config/jest/jest.artifact.config.js",
61
- "test:unit-jest": "cross-env BABEL_ENV=test jest --config ./config/jest/jest.unit.config.js",
59
+ "just-test-in-node": "cross-env NODE_ENV=test mocha \"test/mocha/**/*.{js,jsx}\"",
60
+ "test:artifact": "cross-env NODE_ENV=production jest --config ./config/jest/jest.artifact.config.js",
61
+ "test:unit-jest": "cross-env NODE_ENV=test jest --config ./config/jest/jest.unit.config.js",
62
62
  "cy:mock-api": "json-server --watch test/e2e-selenium/db.json --port 3204",
63
- "cy:server": "webpack serve --config webpack/dev-e2e.babel.js",
63
+ "cy:server": "cross-env NODE_ENV=production webpack serve --config webpack/dev-e2e.js",
64
64
  "cy:start": "run-p -r cy:server cy:mock-api",
65
65
  "cy:open": "cypress open",
66
66
  "cy:run": "cypress run",
@@ -74,7 +74,7 @@
74
74
  "start": "npm-run-all --parallel serve-static open-static"
75
75
  },
76
76
  "dependencies": {
77
- "@babel/runtime-corejs3": "^7.22.10",
77
+ "@babel/runtime-corejs3": "^7.22.11",
78
78
  "@braintree/sanitize-url": "=6.0.4",
79
79
  "base64-js": "^1.5.1",
80
80
  "classnames": "^2.3.1",
@@ -113,21 +113,20 @@
113
113
  },
114
114
  "devDependencies": {
115
115
  "@babel/cli": "=7.22.10",
116
- "@babel/core": "=7.22.10",
117
- "@babel/eslint-parser": "=7.22.9",
118
- "@babel/plugin-proposal-class-properties": "=7.18.6",
119
- "@babel/plugin-proposal-nullish-coalescing-operator": "=7.18.6",
120
- "@babel/plugin-proposal-object-rest-spread": "=7.20.7",
121
- "@babel/plugin-proposal-optional-chaining": "=7.21.0",
122
- "@babel/plugin-transform-modules-commonjs": "=7.22.5",
116
+ "@babel/core": "=7.22.11",
117
+ "@babel/eslint-parser": "=7.22.11",
118
+ "@babel/plugin-transform-class-properties": "=7.22.5",
119
+ "@babel/plugin-transform-nullish-coalescing-operator": "=7.22.11",
120
+ "@babel/plugin-transform-object-rest-spread": "=7.22.15",
121
+ "@babel/plugin-transform-optional-chaining": "=7.22.15",
123
122
  "@babel/plugin-transform-runtime": "=7.22.10",
124
- "@babel/preset-env": "=7.22.10",
123
+ "@babel/preset-env": "=7.22.14",
125
124
  "@babel/preset-react": "=7.22.5",
126
125
  "@babel/register": "=7.22.5",
127
- "@commitlint/cli": "^17.6.7",
128
- "@commitlint/config-conventional": "^17.6.6",
129
- "@jest/globals": "=29.6.2",
130
- "@pmmmwh/react-refresh-webpack-plugin": "^0.5.4",
126
+ "@commitlint/cli": "^17.7.1",
127
+ "@commitlint/config-conventional": "^17.7.0",
128
+ "@jest/globals": "=29.6.4",
129
+ "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
131
130
  "@release-it/conventional-changelog": "=5.1.0",
132
131
  "@wojtekmaj/enzyme-adapter-react-17": "=0.8.0",
133
132
  "autoprefixer": "^10.4.15",
@@ -141,32 +140,33 @@
141
140
  "cross-env": "=7.0.3",
142
141
  "css-loader": "=6.8.1",
143
142
  "cssnano": "=6.0.1",
144
- "cypress": "=12.17.3",
143
+ "cypress": "=12.17.4",
145
144
  "dedent": "^1.5.1",
146
145
  "deepmerge": "^4.3.1",
147
146
  "enzyme": "=3.11.0",
148
- "eslint": "^8.47.0",
149
- "eslint-plugin-import": "^2.28.0",
147
+ "eslint": "^8.48.0",
148
+ "eslint-plugin-import": "^2.28.1",
150
149
  "eslint-plugin-jest": "^27.2.2",
151
150
  "eslint-plugin-mocha": "^10.1.0",
152
151
  "eslint-plugin-react": "^7.33.2",
153
152
  "esm": "=3.2.25",
154
- "expect": "=29.6.2",
153
+ "expect": "=29.6.4",
155
154
  "express": "^4.18.2",
156
155
  "git-describe": "^4.1.0",
157
156
  "html-webpack-plugin": "^5.5.1",
158
157
  "html-webpack-skip-assets-plugin": "^1.0.3",
159
158
  "husky": "=8.0.3",
160
159
  "inspectpack": "=4.7.1",
161
- "jest": "=29.6.2",
162
- "jest-environment-jsdom": "=29.6.2",
160
+ "jest": "=29.6.3",
161
+ "jest-environment-jsdom": "=29.6.4",
162
+ "jest-transform-stub": "=2.0.0",
163
163
  "jsdom": "=22.1.0",
164
164
  "json-loader": "^0.5.7",
165
165
  "json-merger": "^1.1.10",
166
166
  "json-server": "=0.17.3",
167
- "less": "^4.1.2",
167
+ "less": "^4.2.0",
168
168
  "license-checker": "^25.0.0",
169
- "lint-staged": "^13.2.3",
169
+ "lint-staged": "^14.0.1",
170
170
  "local-web-server": "^5.3.0",
171
171
  "mini-css-extract-plugin": "^2.7.6",
172
172
  "mocha": "=8.4.0",
@@ -176,14 +176,14 @@
176
176
  "open": "^9.1.0",
177
177
  "postcss": "^8.4.28",
178
178
  "postcss-loader": "^7.3.0",
179
- "postcss-preset-env": "^9.1.1",
180
- "prettier": "^3.0.1",
179
+ "postcss-preset-env": "^9.1.2",
180
+ "prettier": "^3.0.2",
181
181
  "process": "^0.11.10",
182
182
  "react-refresh": "^0.14.0",
183
183
  "react-test-renderer": "=17.0.2",
184
184
  "release-it": "=15.4.2",
185
185
  "rimraf": "^5.0.1",
186
- "sass": "^1.64.2",
186
+ "sass": "^1.66.1",
187
187
  "sass-loader": "^13.3.0",
188
188
  "sinon": "=15.2.0",
189
189
  "source-map-support": "^0.5.21",