-
Story
-
Resolution: Done
-
Major
-
None
-
None
-
None
-
None
There are modules shared between the Console application and its dynamic plugins, as configured in
packages/console-dynamic-plugin-sdk/src/shared-modules.ts
For modules configured as "allowFallback: false" (default setting) we should validate the Console provided version range vs. plugin consumed version at webpack build time.
This allows us to detect potential compatibility problems in shared modules (i.e. plugin is built against a different version than what is provided by Console at runtime) when building dynamic plugins.
AC: Add validation for our shared modules of dynamic plugins
- Changes in Console dynamic plugin SDK
- add optional options argument to ConsoleRemotePlugin constructor
- control JSON schema validation: validatePackageSchema, validateExtensionSchema
- control extension integrity validation (via ExtensionValidator): validateExtensionIntegrity
- control consumed shared module validation: validateSharedModules
- add optional options argument to ConsoleRemotePlugin constructor
- Changes in Console dynamic demo plugin
-
- update react-router and react-router-dom dependencies to Console provided semver range
- update typing dependencies for react-router and react-router-dom
- remove unused dependencies comment-json and read-pkg
-