feat: add support for a plugin interface common with Realm (#1661)

This commit is contained in:
volodymyr-rutskyi
2024-08-21 14:23:02 +03:00
committed by GitHub
parent 9ce88a33a5
commit 7a0e52f57e
46 changed files with 637 additions and 272 deletions

View File

@@ -0,0 +1,6 @@
---
"@redocly/openapi-core": minor
"@redocly/cli": minor
---
Added support for ESM plugins and importing of plugins directly from npm package: `@vendor/package/plugin.js` instead of `./node_modules/@vendor/package/plugin.js`.

View File

@@ -0,0 +1,6 @@
---
"@redocly/openapi-core": minor
"@redocly/cli": minor
---
Changed plugins format to export a function instead of an object for compatibility with other Redocly products. The backwards compatibility with an old format of plugins is maintained but will be removed in the future.