Releases: swagger-api/swagger-editor
Swagger Editor v4.13.1 Released!
Swagger Editor v4.13.0 Released!
v5.0.0-alpha.96
5.0.0-alpha.96 (2024-05-28)
Bug Fixes
Swagger Editor v4.12.2 Released!
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
5.0.0-alpha.95 (2024-05-06)
Features
v5.0.0-alpha.94
v5.0.0-alpha.93
5.0.0-alpha.93 (2024-04-24)
Bug Fixes
v5.0.0-alpha.92
5.0.0-alpha.92 (2024-03-29)
Features
v5.0.0-alpha.91
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
v5.0.0-alpha.90
5.0.0-alpha.90 (2024-03-26)
Features
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.