Commit Graph

1660 Commits

Author SHA1 Message Date
Renovate Bot
c74f3bb920 housekeeping(dev-deps): deepmerge@2.2.1 2019-08-23 08:34:56 +00:00
Renovate Bot
b28a27530d housekeeping(dev-deps): css-loader@3.2.0 2019-08-23 07:42:17 +00:00
Renovate Bot
891223a209 housekeeping(dev-deps): chromedriver@2.46.0 2019-08-23 06:29:19 +00:00
renovate[bot]
4dc69566de housekeeping(dev-deps): autoprefixer@8.6.5 (via #5486) 2019-08-22 22:39:39 -07:00
renovate[bot]
1793df64e8 housekeeping(deps): redux-immutable@3.1.0 (via #5484) 2019-08-20 15:52:53 -07:00
swaggerhub-bot
ac5a1c0718 release: v3.23.5 2019-08-10 08:29:11 +00:00
swaggerhub-bot
551007fe47 release: v3.23.4 2019-08-03 06:49:45 +00:00
kyle
877ee38ba1 housekeeping: non-breaking dependency updates (via #5515)
* non-breaking dependency updates

* eslint updates
2019-08-01 19:06:03 -07:00
kyle
2af696dcc1 housekeeping: @kyleshockey/js-yaml -> js-yaml (via #5511)
* `@kyleshockey/js-yaml` -> `js-yaml`

* externalize `esprima`
2019-07-31 14:45:18 -07:00
kyle
97260cf0e2 housekeeping: more npm audit resolutions (via #5509)
* move `@babel/runtime-corejs2` to production dependencies

* `npm audit fix`
2019-07-30 15:37:02 -07:00
renovate[bot]
5346512602 housekeeping(dev-deps): babel monorepo@7.5.5 (via #5487)
* housekeeping(dev-deps): babel monorepo@7.5.5

* Update renovate.json
2019-07-30 14:40:29 -07:00
swaggerhub-bot
fb47aa27d7 release: v3.23.3 2019-07-30 18:26:20 +00:00
kyle
4cab9e40fd fix: move @babel/runtime-corejs2 to production dependencies (via #5508) 2019-07-30 13:12:34 -05:00
swaggerhub-bot
7c1f9cee34 release: v3.23.2 2019-07-30 03:33:17 +00:00
renovate[bot]
09e24e4303 housekeeping(deps): deep-extend@0.6.0 (via #5483) 2019-07-19 17:59:58 -05:00
kyle
be5e057bfa housekeeping: npm audit resolutions (via #5457)
* add `security-audit` script

* npm audit fix

* remove nyc

* nightwatch@1

this breaks the test suite, but it appears to have already regressed. leaving it for another day, TODO: open a backlog ticket

* add `security-audit` script

* disable mocha exclusivity

* update package-lock.json

* cypress@3.4.0

* `npm audit fix`

* @release-it/conventional-changelog@1.1.0

* release-it@12
2019-07-18 22:02:24 -05:00
swaggerhub-bot
60397d6f43 release: v3.23.1 2019-07-13 06:20:17 +00:00
Lars Kappert
747925330c housekeeping: migrate to release-it v11 (via #5335)
* housekeeping: migrate to release-it v11

* install `source-map-support`
2019-07-11 21:40:51 -05:00
kyle
88204daad8 housekeeping: upgrade to webpack@4 (via #5454)
* build new core webpack config

* fix exports in Webpack; use ESM syntax throughout

* add bundle config

* add standalone config

* add style config

* prettier...

* add dev config

* delete legacy webpack scripts

* rewire npm scripts to use new webpack configs

* cache babel-loader results

* fix e2e dev servers

* update core Webpack modules

* update loaders to latest

* remove unused loaders

* update Webpack plugins

* add mode flags to Webpack configs

* remove plugin invocations that are now production-standard in v4

* update webpack-cli

* add webpack perf size limit flags

* replace ExtractText with MiniCssExtract + IgnoreAssets

* UglifyJsPlugin -> TerserPlugin

* fix PostCSS processing

* enable Terser sourcemaps

* webpack/style -> webpack/stylesheets
2019-07-11 18:57:44 -05:00
kyle
9935ea3328 housekeeping: upgrade to babel@7 (via #5450)
* Babel 7

* preserve module output; straighten out ES/CJS syntax

* add webpack TODOs

* remove unused Babel modules

* Update index.js

* install @babel/register
2019-07-09 23:25:34 -05:00
dependabot[bot]
835d135049 housekeeping(deps-dev): bump open from 0.0.5 to 6.0.0 (via #5449) 2019-07-09 15:58:32 -05:00
kyle
23d7260f92 feat: Multiple Examples for OpenAPI 3 Parameters, Request Bodies, and Responses (via #5427)
* add opt-in Prettier config

* remove legacy `examples` implementation

* create ExamplesSelect

* support `Response.examples` in OpenAPI 3

* create response controls group

* prettier reformat

* prepare to break up Parameters

* reunify Parameters and OAS3 Parameters

* Parameter Examples

* Example component

* handle parameter value stringification correctly

* FOR REVIEW: add prop for controlling Select

* use regular header for param examples in Try-It-Out

* manage active examples member via Redux

* Request Body Try-It-Out examples

* remove special Response description styling

* omit Example value display in Try-It-Out

* support disabled text inputs in JsonSchemaForm

* Example.omitValue => Example.showValue

* ExamplesSelectValueRetainer

* styling for disabled inputs

* remove console.log

* support "Modified Values" in ExamplesSelect

* remove Examples component
(wasn't used anywhere)

* use ParameterRow.getParamKey for active examples member keying

* split-rendering of examples in ParameterRow

* send disabled prop to JsonSchemaForm

* use content type to key request body active examples members

* remove debugger

* rewire RequestBodyEditor to be a controlled component

REVIEW: does this have perf implications?

* trigger synthetic onSelect events in ExamplesSelect

* prettier updates

* remove outdated Examples usage in RequestBody

* don't handle examples changes in ESVR

* make RequestBodyEditor semi-controlled

* don't default to an empty Map for request bodies

* add namespaceKey to ESVR for state mgmt

* don't key RequestBody activeExampleKeys on media type

* tweak ESVR isModifiedValueSelected calculation

* add trace class to ExamplesSelect

* remove usage of ESVR.currentNamespace

* reset to first example if currentExampleKey is invalid

* add default values to RequestBody rendering

* stringify things in ESVR

* avoid null select value (silences React warning)

* detect user inputs that match any examples member's value

* add trace class for json-schema-array

* shallowly convert namespace state, to preserve Immutable stucts in state

* stringify RBE values; don't trim JSON in editor

* match user input to an example when non-primitives are expressed in state as strings

* update Cypress

* don't apply sample values in JsonSchema_Object

* support disabling all JsonSchemaForm subcomponents

* Core tests

* style changes to accomodate Examples

* fix version-checking error in Response

* disable SCU for Responses

* don't stringify Select values

* ModelExample: default to Model tab if no example is available; provide a default no example message

* don't trim JSON ParamBody inputs

* read directly from 2.0 Response.schema instead of inferring a value

* show current Example information in RequestBody

* show label for Examples dropdown by default

* rework Response content ordering

* style disabled textareas like other read-only blocks

* meta: fix sourcemaps

* refactor ESVR setNameForNamespace

* protect second half of ternary expession

* cypress: `select.examples-select` => `.examples-select > select`

* clarify ModelExample.componentWillReceiveProps

* add gates/defaults to prevent issues in very bare-boned documents

* fix test block organization problem

* simplify RequestBodyEditor interface

* linter fixes

* prettier updates

* use plugin system for new components

* move ME Cypress helpers to other file
2019-06-29 19:52:51 +01:00
swaggerhub-bot
57402ecdd8 release: v3.22.3 2019-06-08 18:14:11 +00:00
kyle
5628ff02f4 security: CVE-2018-20834 (via #5368)
* bump minimum `bundlesize` version

* bump `node-sass`

* bump webpack + webpack-dev-server; update lockfile
2019-05-21 17:17:14 -07:00
Peter Goldthorp
1497271155 housekeeping: remove react-addons-perf dependency (via #5229)
* Remove react-addons-perf dependency

* update lockfile

* include ReactPerf in non-production builds
2019-03-14 17:36:49 -07:00
Helen Kosova
80625d0b8a housekeeping: bump minimum Cypress version (via #5233)
* Update Cypress version

* regenerate package-lock.json
2019-03-12 11:19:28 -07:00
kyle
7025773fbf feature: swagger-ui-react module (via #5207)
* swagger-ui-react alpha.0

* alpha.1

* alpha.2

* alpha.3

* begin updating README

* alpha.4

* WIP: `displayOperationId` support

* move loading error readouts to BaseLayout

* add `url` prop

* export React component as default

* add interceptor support

* modify docs markup

* add `onComplete` prop

* add `spec` prop

* Update README.md

* alpha.6

* remove independent manifest; build releasable exclusively from template

* ensure dist is present; drop config field in manifest

* drop alpha field

this script is now able to release to npm!

* remove unused selector references

* Update README.md
2019-03-01 20:41:30 -08:00
swaggerhub-bot
080c70ae76 release: v3.20.9 2019-02-24 01:37:48 +00:00
kyle
d9f460f4a8 fix: gracefully handle non-string operation summaries (via #5189) 2019-02-19 15:41:16 -08:00
swaggerhub-bot
85d82fc0a8 release: v3.20.8 2019-02-16 02:50:26 +00:00
Helder Sepulveda
3f0c0666ba housekeeping: bump minimum lodash version (via #5156)
* Update lodash

fix for Regular Expression Denial of Service:
https://snyk.io/vuln/SNYK-JS-LODASH-73639

* update lockfile
2019-02-12 17:29:56 -06:00
swaggerhub-bot
ed8267af89 release: v3.20.6 2019-02-02 06:59:27 +00:00
Helder Sepulveda
be3500c299 housekeeping: address url-parse vulnerability (via #5130)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/npm:url-parse:20180731
2019-01-18 18:43:55 -08:00
kyle
a5568f9e16 improve: OAuth2 UI and test suite (via #5066)
* create `features` folder

* add base oauth2 server

* continue implementing OAuth tests

* WIP

* add password flow tests

* modify Password flow credential types

* remove query string credential type

* add test case for Authorization flow

* add specific Authorization value for Password flow test

* WIP

* fix linter issues
2018-12-07 20:54:29 +01:00
kyle
91b1becc65 fix: label models section as Schemas in OpenAPI 3 (via #5065)
* fix: label models section `Schemas` in OpenAPI 3

* Update swos-63.js
2018-12-07 20:29:35 +01:00
Jennifer Kaplan
aec4e378ce housekeeping: remove Topbar CWM & unneeded empty lines (via #5018)
* removed componentWillMount and removed unneeded empty lines

* saved file again
2018-11-12 14:28:28 +01:00
swaggerhub-bot
30f3f10bf5 release: v3.19.5 2018-11-05 05:26:25 +00:00
kyle
b9300211bb housekeeping: xml -> @kyleshockey/xml (via #4985) 2018-11-01 14:33:05 -04:00
kyle
1bdcde7b0e fix(packaging): move webpack-dev-server to devDependencies (via #4984) 2018-10-30 23:16:00 -04:00
kyle
ecfc23972a fix: inconsistent behavior with multiple invocations of SwaggerUI (via #4923)
* add narrow e2e tests
* add failing system unit test
* break plugin object inheritance in combinePlugins
* style: add braces to if block
* drop unused `lodash.repeat` import
* remove deep-freeze from lockfile
2018-10-04 18:00:38 -05:00
swaggerhub-bot
6f43bf11e9 release: v3.19.0 2018-09-15 05:49:16 +00:00
kyle
6bf651f5d7 housekeeping: automated releases via release-it (via #4875)
* add `release-it`

* `swagger-ui-testing`

* add automated-release npm script

* tweak GIT_TAG behavior and test command

* disable Cypress video recording

* Revert "`swagger-ui-testing`"

This reverts commit c3de2ec70d10d1dc5d08513f940df0d036508b2c.
2018-09-13 15:09:26 -07:00
kyle
1c52a9c77b release: 3.18.3 (via #4860)
* release: 3.18.3
* Update package-lock.json
2018-09-07 21:06:27 -07:00
kyle
1b2fbda646 meta: introduce Cypress end-to-end testing (via #4827)
* `test/e2e` -> `test/e2e-selenium`

* add Cypress

* ESLint fixes

* MOAR cypress

* `integration` -> `tests`

* wire Cypress up to a hot e2e server

* linter fixes

* don't run in CI
2018-08-23 15:10:00 -07:00
kyle
6ba514583d release: 3.18.1 (via #4810)
* v3.18.1
* rebuild dist
2018-08-10 22:59:08 -07:00
Kyle Shockey
689f658b52 v3.18.0 2018-08-04 02:06:58 -07:00
kyle
dd3afdc456 fix: anchor tag safety (via #4789)
* v3.17.6

* release(3.17.6): rebuild dist

* add failing tests

* fix Link component

* fix OnlineValidatorBadge component

* switch from <a> to <Link> in operation components

* make Markdown inputs safe

* use Link component in Info block, for target safety

* add eslint rule for unsafe `target` usage
2018-08-04 00:54:03 -07:00
kyle
5431eed1cd release: v3.17.6
* v3.17.6

* release(3.17.6): rebuild dist
2018-07-27 20:43:43 -07:00
Kyle Shockey
0af67642ec v3.17.5 2018-07-19 15:34:17 -07:00
kyle
0359f9c364 housekeeping: bundle size reductions (#4713)
* set new bundlesize goal
* preserve `GeneratorFunction` instead of all function names
* use js-yaml fork that doesn't require esprima
* set HTML content directly, instead of using React-Markdown
* use remarkable for all Markdown rendering
* add babel-plugin-transform-react-remove-prop-types
* remove SplitPaneMode plugin
* remove react-collapse
* remove AST plugin, and yaml-js
* trim Markdown HTML string output before rendering
* disable obsolete function name preservation
* add `getComponent` to propTypes
2018-07-19 13:48:39 -07:00