* v3.14.1

* transform `const` & `let` to `var` in node_modules, for IE11

* rebuild dist
This commit is contained in:
kyle
2018-05-04 19:25:20 -07:00
committed by GitHub
parent a37d637061
commit 11c586309f
10 changed files with 102 additions and 55 deletions

View File

@@ -6,6 +6,7 @@
], ],
"plugins": [ "plugins": [
"transform-runtime", "transform-runtime",
"babel-plugin-transform-es2015-constants",
[ [
"module-alias", "module-alias",
[ [

View File

@@ -22,7 +22,7 @@ The OpenAPI Specification has undergone 5 revisions since initial creation in 20
Swagger UI Version | Release Date | OpenAPI Spec compatibility | Notes Swagger UI Version | Release Date | OpenAPI Spec compatibility | Notes
------------------ | ------------ | -------------------------- | ----- ------------------ | ------------ | -------------------------- | -----
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) 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)
3.0.21 | 2017-07-26 | 2.0 | [tag v3.0.21](https://github.com/swagger-api/swagger-ui/tree/v3.0.21) 3.0.21 | 2017-07-26 | 2.0 | [tag v3.0.21](https://github.com/swagger-api/swagger-ui/tree/v3.0.21)
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) 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)
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) 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)

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

5
dist/swagger-ui.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,10 +1,11 @@
var path = require("path") var path = require("path")
var webpack = require('webpack') var webpack = require("webpack")
var ExtractTextPlugin = require('extract-text-webpack-plugin') var ExtractTextPlugin = require("extract-text-webpack-plugin")
const CopyWebpackPlugin = require('copy-webpack-plugin') const CopyWebpackPlugin = require("copy-webpack-plugin")
var deepExtend = require('deep-extend') const UglifyJsPlugin = require("uglifyjs-webpack-plugin")
const {gitDescribeSync} = require('git-describe') var deepExtend = require("deep-extend")
const {gitDescribeSync} = require("git-describe")
const os = require("os") const os = require("os")
var pkg = require("./package.json") var pkg = require("./package.json")
@@ -28,7 +29,10 @@ var commonRules = [
retainLines: true retainLines: true
} }
}], }],
include: [ path.join(__dirname, "src") ] include: [
path.join(__dirname, "src"),
path.join(__dirname, "node_modules", "object-assign-deep"),
]
}, },
{ test: /\.(txt|yaml)(\?.*)?$/, { test: /\.(txt|yaml)(\?.*)?$/,
loader: "raw-loader" }, loader: "raw-loader" },
@@ -61,10 +65,10 @@ module.exports = function(rules, options) {
})) }))
} }
if( specialOptions.minimize ) { // production mode if( specialOptions.minimize ) { // production mode
plugins.push( plugins.push(
new webpack.optimize.UglifyJsPlugin({ new UglifyJsPlugin({
sourceMap: true, sourceMap: true,
}), }),
new webpack.LoaderOptionsPlugin({ new webpack.LoaderOptionsPlugin({
@@ -76,8 +80,8 @@ module.exports = function(rules, options) {
plugins.push( new webpack.NoEmitOnErrorsPlugin()) plugins.push( new webpack.NoEmitOnErrorsPlugin())
} else { // development mode } else { // development mode
plugins.push(new CopyWebpackPlugin([ { from: 'test/e2e/specs', to: 'test-specs' } ])) plugins.push(new CopyWebpackPlugin([ { from: "test/e2e/specs", to: "test-specs" } ]))
} }
plugins.push( plugins.push(

View File

@@ -1,6 +1,6 @@
{ {
"name": "swagger-ui", "name": "swagger-ui",
"version": "3.14.0", "version": "3.14.1",
"main": "dist/swagger-ui.js", "main": "dist/swagger-ui.js",
"repository": "git@github.com:swagger-api/swagger-ui.git", "repository": "git@github.com:swagger-api/swagger-ui.git",
"contributors": [ "contributors": [
@@ -84,7 +84,7 @@
"scroll-to-element": "^2.0.0", "scroll-to-element": "^2.0.0",
"serialize-error": "2.0.0", "serialize-error": "2.0.0",
"shallowequal": "0.2.2", "shallowequal": "0.2.2",
"swagger-client": "^3.7.2", "swagger-client": "^3.8.1",
"url-parse": "^1.1.8", "url-parse": "^1.1.8",
"whatwg-fetch": "0.11.1", "whatwg-fetch": "0.11.1",
"worker-loader": "^0.7.1", "worker-loader": "^0.7.1",
@@ -99,6 +99,7 @@
"babel-eslint": "^7.1.1", "babel-eslint": "^7.1.1",
"babel-loader": "^7.1.0", "babel-loader": "^7.1.0",
"babel-plugin-module-alias": "^1.6.0", "babel-plugin-module-alias": "^1.6.0",
"babel-plugin-transform-es2015-constants": "^6.1.4",
"babel-plugin-transform-runtime": "^6.23.0", "babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015": "^6.22.0", "babel-preset-es2015": "^6.22.0",
"babel-preset-es2015-ie": "^6.6.2", "babel-preset-es2015-ie": "^6.6.2",
@@ -147,6 +148,7 @@
"standard-loader": "^6.0.1", "standard-loader": "^6.0.1",
"style-loader": "0.18.2", "style-loader": "0.18.2",
"tachyons-sass": "^4.9.2", "tachyons-sass": "^4.9.2",
"uglifyjs-webpack-plugin": "^1.2.5",
"url-loader": "0.5.9", "url-loader": "0.5.9",
"webpack": "^2.6.1", "webpack": "^2.6.1",
"webpack-bundle-size-analyzer": "^2.5.0" "webpack-bundle-size-analyzer": "^2.5.0"