Skip to content

Commit 11c5863

Browse files
authored
v3.14.1 (#4521)
* v3.14.1 * transform `const` & `let` to `var` in node_modules, for IE11 * rebuild dist
1 parent a37d637 commit 11c5863

10 files changed

+102
-55
lines changed

.babelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
],
77
"plugins": [
88
"transform-runtime",
9+
"babel-plugin-transform-es2015-constants",
910
[
1011
"module-alias",
1112
[

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The OpenAPI Specification has undergone 5 revisions since initial creation in 20
2222

2323
Swagger UI Version | Release Date | OpenAPI Spec compatibility | Notes
2424
------------------ | ------------ | -------------------------- | -----
25-
3.14.0 | 2018-04-27 | 2.0, 3.0 | [tag v3.14.0](https://github.com/swagger-api/swagger-ui/tree/v3.14.0)
25+
3.14.1 | 2018-05-04 | 2.0, 3.0 | [tag v3.14.1](https://github.com/swagger-api/swagger-ui/tree/v3.14.1)
2626
3.0.21 | 2017-07-26 | 2.0 | [tag v3.0.21](https://github.com/swagger-api/swagger-ui/tree/v3.0.21)
2727
2.2.10 | 2017-01-04 | 1.1, 1.2, 2.0 | [tag v2.2.10](https://github.com/swagger-api/swagger-ui/tree/v2.2.10)
2828
2.1.5 | 2016-07-20 | 1.1, 1.2, 2.0 | [tag v2.1.5](https://github.com/swagger-api/swagger-ui/tree/v2.1.5)

dist/swagger-ui-bundle.js

Lines changed: 71 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/swagger-ui-bundle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/swagger-ui-standalone-preset.js

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/swagger-ui-standalone-preset.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/swagger-ui.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/swagger-ui.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

make-webpack-config.js

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
var path = require("path")
22

3-
var webpack = require('webpack')
4-
var ExtractTextPlugin = require('extract-text-webpack-plugin')
5-
const CopyWebpackPlugin = require('copy-webpack-plugin')
6-
var deepExtend = require('deep-extend')
7-
const {gitDescribeSync} = require('git-describe')
3+
var webpack = require("webpack")
4+
var ExtractTextPlugin = require("extract-text-webpack-plugin")
5+
const CopyWebpackPlugin = require("copy-webpack-plugin")
6+
const UglifyJsPlugin = require("uglifyjs-webpack-plugin")
7+
var deepExtend = require("deep-extend")
8+
const {gitDescribeSync} = require("git-describe")
89
const os = require("os")
910

1011
var pkg = require("./package.json")
@@ -28,7 +29,10 @@ var commonRules = [
2829
retainLines: true
2930
}
3031
}],
31-
include: [ path.join(__dirname, "src") ]
32+
include: [
33+
path.join(__dirname, "src"),
34+
path.join(__dirname, "node_modules", "object-assign-deep"),
35+
]
3236
},
3337
{ test: /\.(txt|yaml)(\?.*)?$/,
3438
loader: "raw-loader" },
@@ -61,10 +65,10 @@ module.exports = function(rules, options) {
6165
}))
6266
}
6367

64-
if( specialOptions.minimize ) { // production mode
68+
if( specialOptions.minimize ) { // production mode
6569

6670
plugins.push(
67-
new webpack.optimize.UglifyJsPlugin({
71+
new UglifyJsPlugin({
6872
sourceMap: true,
6973
}),
7074
new webpack.LoaderOptionsPlugin({
@@ -76,8 +80,8 @@ module.exports = function(rules, options) {
7680

7781
plugins.push( new webpack.NoEmitOnErrorsPlugin())
7882

79-
} else { // development mode
80-
plugins.push(new CopyWebpackPlugin([ { from: 'test/e2e/specs', to: 'test-specs' } ]))
83+
} else { // development mode
84+
plugins.push(new CopyWebpackPlugin([ { from: "test/e2e/specs", to: "test-specs" } ]))
8185
}
8286

8387
plugins.push(

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "swagger-ui",
3-
"version": "3.14.0",
3+
"version": "3.14.1",
44
"main": "dist/swagger-ui.js",
55
"repository": "[email protected]:swagger-api/swagger-ui.git",
66
"contributors": [
@@ -84,7 +84,7 @@
8484
"scroll-to-element": "^2.0.0",
8585
"serialize-error": "2.0.0",
8686
"shallowequal": "0.2.2",
87-
"swagger-client": "^3.7.2",
87+
"swagger-client": "^3.8.1",
8888
"url-parse": "^1.1.8",
8989
"whatwg-fetch": "0.11.1",
9090
"worker-loader": "^0.7.1",
@@ -99,6 +99,7 @@
9999
"babel-eslint": "^7.1.1",
100100
"babel-loader": "^7.1.0",
101101
"babel-plugin-module-alias": "^1.6.0",
102+
"babel-plugin-transform-es2015-constants": "^6.1.4",
102103
"babel-plugin-transform-runtime": "^6.23.0",
103104
"babel-preset-es2015": "^6.22.0",
104105
"babel-preset-es2015-ie": "^6.6.2",
@@ -147,6 +148,7 @@
147148
"standard-loader": "^6.0.1",
148149
"style-loader": "0.18.2",
149150
"tachyons-sass": "^4.9.2",
151+
"uglifyjs-webpack-plugin": "^1.2.5",
150152
"url-loader": "0.5.9",
151153
"webpack": "^2.6.1",
152154
"webpack-bundle-size-analyzer": "^2.5.0"

0 commit comments

Comments
 (0)