Skip to content

Releases: swagger-api/swagger-editor

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)

Swagger Editor v4.12.1 Released!

16 Jan 15:10
Compare
Choose a tag to compare

4.12.1 (2024-01-16)

Bug Fixes

Swagger Editor v4.12.0 Released!

16 Jan 09:07
Compare
Choose a tag to compare

4.12.0 (2024-01-16)

Bug Fixes

  • fix typo in Petstore OpenAPI 2.0 (#4684) (d417e31)
  • fixtures: update fixtures to conform with OpenAPI 3.0.3 spec (#4637) (8d82288)
  • json-schema-validator: propertly handle unknown definition (#4745) (afd8610), closes #4697

Features


Important

For those looking to integrate SwaggerEditor@4 with older versions of React, we have provided a recipe to assist you in this process. Please refer to the Using older version of React section of the main README for detailed instructions and tips to ensure a smooth integration.

This recipe is tailored to help you navigate any compatibility issues and make the most out of SwaggerEditor@4 with earlier React versions. We encourage you to explore this recipe and reach out to us if you need further assistance.

v5.0.0-alpha.86

09 Jan 17:54
Compare
Choose a tag to compare
v5.0.0-alpha.86 Pre-release
Pre-release

5.0.0-alpha.86 (2024-01-09)

Features


Important

For those looking to integrate SwaggerEditor@5 with older versions of React, we have provided a recipe to assist you in this process. Please refer to the Using older version of React section of the main README for detailed instructions and tips to ensure a smooth integration.

This recipe is tailored to help you navigate any compatibility issues and make the most out of SwaggerEditor@5 with earlier React versions. We encourage you to explore this recipe and reach out to us if you need further assistance.

v5.0.0-alpha.85

19 Dec 11:37
Compare
Choose a tag to compare
v5.0.0-alpha.85 Pre-release
Pre-release

5.0.0-alpha.85 (2023-12-19)

Features