From d8c91659ccd5d9d314f9cb86e16294396aeead3e Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Fri, 14 Oct 2016 13:20:17 +0300 Subject: [PATCH 1/8] Update CHANGELOG --- CHANGELOG.md | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 229af56c..60a80b9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,43 @@ -# 1.3.0 (2014-08-31) +# 1.4.0 (2016-10-14) +### Bug fixes +* Fix destroy/reinit +* Fix minimum/maximum zero not rendered (#123) + +### Features/Improvements +* Do spec load after bootstrap +* Build and publish angular2 module (#126) + +# 1.3.3 (2016-09-28) +### Features/Improvements +* implemented x-extendedDiscriminator to workaround name clashes in big specs +* Add engines to package.json (#83) +* Fix npm start on windows (#119, #118) +* Update webpack to latest beta +* Update angular to 2.0.1 +* Update local dev steps +* Update openapi-sampler lib (#111) + +# 1.3.2 (2016-09-13) +### Bug fixes +* Fix broken tabs styling for response samples +* fix v1.x.x deployment + +# 1.3.1 (2016-09-13) +### Bug fixes +* makes basePath optional (by @LeFnord) +* fixed little typo (by @adamd) +* Typo s/IGNORRED/IGNORED (by @MikeRalphson) +* Fixed indentation (by @bennyn) +* Fix default hostname (#108) +* Fix default value for falsy values is not displayed (#109) +* Fix schema collapse after change discriminator + +### Features/Improvements +* Update to latest Angular RC.6 +* Smaller bundle size by removing esprima dep from bundle +* Updated dependencies + +# 1.3.0 (2016-08-31) ### Bug fixes * Fix code samples are not shown for operations without body param (#93) * Fixed side menu overlapped site footer (#75) From 7045591ad6af917f31586270dd581dd4dde4534c Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Tue, 18 Oct 2016 16:37:14 +0300 Subject: [PATCH 2/8] update openapi-sampler --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 953c42a5..44492c97 100644 --- a/package.json +++ b/package.json @@ -105,7 +105,7 @@ "hint.css": "^2.3.2", "json-pointer": "^0.5.0", "json-schema-ref-parser": "^3.1.2", - "openapi-sampler": "^0.3.1", + "openapi-sampler": "^0.3.2", "prismjs": "^1.5.1", "remarkable": "^1.6.2", "scrollparent": "^1.0.0", From ae6f4567a11fe6ab9cfd03e8ef16b5fcf239c3be Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Tue, 18 Oct 2016 17:06:00 +0300 Subject: [PATCH 3/8] Emit helpers for module build --- build/webpack.dev.js | 2 +- build/webpack.prod.js | 7 +++++-- build/webpack.test.js | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/build/webpack.dev.js b/build/webpack.dev.js index ff2ddacc..cc6afc4a 100644 --- a/build/webpack.dev.js +++ b/build/webpack.dev.js @@ -18,7 +18,7 @@ module.exports = { } }, externals: { - "jquery": "jQuery", + 'jquery': 'jquery', 'esprima': 'esprima' // optional dep of ys-yaml not needed for redoc }, node: { diff --git a/build/webpack.prod.js b/build/webpack.prod.js index 718da7e4..a0bca691 100644 --- a/build/webpack.prod.js +++ b/build/webpack.prod.js @@ -24,7 +24,7 @@ const config = { } }, externals: { - 'jquery': 'jQuery', + 'jquery': 'jquery', 'esprima': 'esprima' // optional dep of ys-yaml not needed for redoc }, node: { @@ -61,7 +61,10 @@ const config = { },{ test: /\.ts$/, loader: 'awesome-typescript-loader', - exclude: /(node_modules)/ + exclude: /(node_modules)/, + query: IS_MODULE ? { + noEmitHelpers: false, + } : {} }, { test: /lib[\\\/].*\.css$/, loaders: ['raw-loader'], diff --git a/build/webpack.test.js b/build/webpack.test.js index 869faf91..519cc56a 100644 --- a/build/webpack.test.js +++ b/build/webpack.test.js @@ -15,7 +15,7 @@ module.exports = { } }, externals: { - "jquery": "jQuery", + 'jquery': 'jquery', 'esprima': 'esprima' // optional dep of ys-yaml not needed for redoc }, node: { From 027408fc816be89b08c2ffa700a05f4cf70e162e Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Tue, 18 Oct 2016 17:06:28 +0300 Subject: [PATCH 4/8] v1.4.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 44492c97..851e7532 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "redoc", "description": "Swagger-generated API Reference Documentation", - "version": "1.4.0", + "version": "1.4.1", "repository": { "type": "git", "url": "git://github.com/Rebilly/ReDoc" From 3d64a536e75389a0ba161c8a519068fbe190d1c0 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Tue, 18 Oct 2016 17:21:25 +0300 Subject: [PATCH 5/8] fix build --- build/webpack.prod.js | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/build/webpack.prod.js b/build/webpack.prod.js index a0bca691..240276c0 100644 --- a/build/webpack.prod.js +++ b/build/webpack.prod.js @@ -12,6 +12,18 @@ const BANNER = const IS_MODULE = process.env.IS_MODULE != null; +const TS_RULE = { + test: /\.ts$/, + loader: 'awesome-typescript-loader', + exclude: /(node_modules)/, +}; + +if (IS_MODULE) { + TS_RULE.query = { + noEmitHelpers: false + } +} + const config = { context: root(), devtool: 'source-map', @@ -58,14 +70,7 @@ const config = { exclude: [ /node_modules/ ] - },{ - test: /\.ts$/, - loader: 'awesome-typescript-loader', - exclude: /(node_modules)/, - query: IS_MODULE ? { - noEmitHelpers: false, - } : {} - }, { + }, TS_RULE, { test: /lib[\\\/].*\.css$/, loaders: ['raw-loader'], exclude: [/redoc-initial-styles\.css$/] From 4cff1fa67b5215b4a2c73b8f2ec21989c322a913 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Tue, 18 Oct 2016 17:34:18 +0300 Subject: [PATCH 6/8] try fix build again --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 950a07a1..c65244fd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,7 +15,7 @@ "should", "requirejs" ], - "noEmitHelpers": true + "noEmitHelpers": false }, "compileOnSave": false, "exclude": [ From 22c9a5ba8e09c669a93e70854b08245d22014b32 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Tue, 18 Oct 2016 17:44:54 +0300 Subject: [PATCH 7/8] remove TS_RULE customization --- build/webpack.prod.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build/webpack.prod.js b/build/webpack.prod.js index 240276c0..6c147d70 100644 --- a/build/webpack.prod.js +++ b/build/webpack.prod.js @@ -17,12 +17,12 @@ const TS_RULE = { loader: 'awesome-typescript-loader', exclude: /(node_modules)/, }; - -if (IS_MODULE) { - TS_RULE.query = { - noEmitHelpers: false - } -} +// +// if (IS_MODULE) { +// TS_RULE.query = { +// noEmitHelpers: false +// } +// } const config = { context: root(), From 5978c8dc5be7c918c8ded8b3169a1cb8edca8afc Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Tue, 18 Oct 2016 17:46:41 +0300 Subject: [PATCH 8/8] rename external jquery for module build --- build/webpack.prod.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/webpack.prod.js b/build/webpack.prod.js index 6c147d70..ffecdfe0 100644 --- a/build/webpack.prod.js +++ b/build/webpack.prod.js @@ -17,7 +17,7 @@ const TS_RULE = { loader: 'awesome-typescript-loader', exclude: /(node_modules)/, }; -// +// // if (IS_MODULE) { // TS_RULE.query = { // noEmitHelpers: false @@ -108,7 +108,7 @@ const config = { if (IS_MODULE) { config.externals = { - 'jquery': 'jQuery', + 'jquery': 'jquery', 'esprima': 'esprima', // optional dep of ys-yaml not needed for redoc '@angular/platform-browser-dynamic': '@angular/platform-browser-dynamic', '@angular/platform-browser': '@angular/platform-browser',