Skip to content

Releases: swagger-api/swagger-editor

Swagger Editor v4.12.2 Released!

07 May 08:05
Compare
Choose a tag to compare

4.12.2 (2024-05-07)

Enhancements

  • update SwaggerUI and swagger-client to latest versions with all the upstream bug fixes and features

v5.0.0-alpha.95

06 May 10:24
Compare
Choose a tag to compare
v5.0.0-alpha.95 Pre-release
Pre-release

5.0.0-alpha.95 (2024-05-06)

Features

  • editor-preview-asyncapi: allow passing additional config (#5007) (e2c96df), closes #5006

v5.0.0-alpha.94

24 Apr 19:48
Compare
Choose a tag to compare
v5.0.0-alpha.94 Pre-release
Pre-release

5.0.0-alpha.94 (2024-04-24)

Bug Fixes

  • content-read-only: priorize explicit prop over redux state (#4977) (91cc57c), closes #4976
  • editor-safe-render: fix list of safe components (#4979) (d299d75)

Features

v5.0.0-alpha.93

24 Apr 08:44
Compare
Choose a tag to compare
v5.0.0-alpha.93 Pre-release
Pre-release

5.0.0-alpha.93 (2024-04-24)

Bug Fixes

  • monaco-editor: avoid rendering Monaco Editor multiple times (#4971) (47f9798), closes #4970

v5.0.0-alpha.92

29 Mar 13:36
Compare
Choose a tag to compare
v5.0.0-alpha.92 Pre-release
Pre-release

5.0.0-alpha.92 (2024-03-29)

Features

  • editor-preview-asyncapi: add initial support for AsyncAPI 3.0.0 (#4886) (1626243), closes #4872
  • top-bar: add support for loading AsyncAPI Petstore 3.0.0 example (#4888) (a81bebf), closes #4873
  • top-bar: add support for loading AsyncAPI Streetlights 3.0.0 example (#4887) (902f580), closes #4874

v5.0.0-alpha.91

29 Mar 08:27
Compare
Choose a tag to compare
v5.0.0-alpha.91 Pre-release
Pre-release

5.0.0-alpha.91 (2024-03-29)

Breaking changes

AsyncAPI preview plugin

AsyncAPI preview plugin now uses @asyncapi/parser v3 instead of v1. The way, how we pass options to the AsyncAPI parser changed.

editorPreviewAsyncAPI.actions.parse FSA creator now accepts options objects in a shape of { parserOptions, parseOptions } as a second argument. parserOptions are passed to the parser constructor during the parser creation and parseOptions are passed to parse function during the parsing.

Here is an example how to override how AsyncAPI parser resolves HTTP(S) URLs:

const AsyncAPIParseOptionsPlugin = () => ({
  statePlugins: {
    editorPreviewAsyncAPI: {
      wrapActions: {
        parse:
          (oriAction) =>
          (content, options = {}) => {
            const httpsFetchResolver = {
              schema: 'https',
              canRead: true,
              async read(uri) {
                const response = await fetch(uri.toString());
                return response.text();
              },
            };
            const httpFetchResolver = {
              schema: 'http',
              canRead: true,
              async read(uri) {
                const response = await fetch(uri.toString());
                return response.text();
              },
            };

            const parserOptions = {
              ...options.parserOptions,
              __unstable: {
                resolver: {
                  resolvers: [httpsFetchResolver, httpFetchResolver],
                },
              },
            };
            const parseOptions = options.parseOptions ?? {};

            return oriAction(content, { parserOptions, parseOptions });
          },
      },
    },
  },
});

Webpack configuration changes

Important

Instructions for building SwaggerEditor@5 with webpack@5 have changed.

Handling process with imports-loader it no longer necessary.

To avoid runtime errors, alias for @stoplight/ordered-object-literal needs to introduced. Please consult the amended Usage section of the main README file for more details.

Features

Performance Improvements

  • language-apidom: fix perf regression in reference validation (#4885) (99af87f)

v5.0.0-alpha.90

26 Mar 11:50
Compare
Choose a tag to compare
v5.0.0-alpha.90 Pre-release
Pre-release

5.0.0-alpha.90 (2024-03-26)

Features

  • use VSCode API + Monaco Editor built from vscode@1.87.2 (#4860) (5d21610), closes #4848

Important

Instructions for building SwaggerEditor@5 with webpack@5 changed. Before, process injection was handled by webpack.ProvidePlugin . Now it's handled by imports-loader. Please consult the amended Usage section of the main README file for more details. You can find the reasoning for the change in #4848.

v5.0.0-alpha.89

25 Mar 09:06
Compare
Choose a tag to compare
v5.0.0-alpha.89 Pre-release
Pre-release

5.0.0-alpha.89 (2024-03-25)

Bug Fixes

  • monaco-language-apidom: fix validation issues related to dereferencing (#4847) (b246122), closes #4828
  • use @asyncapi/react-component@1.0.0-next.48 (#4846) (bf95220), closes #4845

Performance Improvements

  • language-apidom: improve performance of reference validation (#4849) (1ef9b96), closes #4828

v5.0.0-alpha.88

05 Feb 10:24
Compare
Choose a tag to compare
v5.0.0-alpha.88 Pre-release
Pre-release

5.0.0-alpha.88 (2024-02-05)

Bug Fixes

  • monaco-language-apidom: provide fixes for AsyncAPI 2.x linting (#4793) (0f44a5b)

v5.0.0-alpha.87

23 Jan 13:58
Compare
Choose a tag to compare
v5.0.0-alpha.87 Pre-release
Pre-release

5.0.0-alpha.87 (2024-01-23)

Bug Fixes

  • content-fixtures: update to conform with OpenAPI 3.0.3 spec (#4728) (24b1c84), closes #4637
  • editor-content-fixtures: fix typo in OpenAPI 2.0 (#4708) (fca1f8b), closes #4684

Features

  • add complete editing experience for OpenAPI 2.0 (#4777) (b0c603b)