You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename ApplicationModule to ExtensionInstance, old class to SpecificationBackedExtension
Phase 2 of the refactor: make ExtensionInstance the base class name.
- Rename ApplicationModule class to ExtensionInstance (the base class)
- Rename old ExtensionInstance class to SpecificationBackedExtension
- Re-export ExtensionInstance from extension-instance.ts so all 76+
importing files continue working with zero changes
- Update loader to use new SpecificationBackedExtension(...)
- Update test files to use new SpecificationBackedExtension(...)
- Replace direct .specification.X accesses with instance getters:
.specification.identifier -> .type
.specification.experience -> .experience
.specification.buildConfig -> .buildConfig
- Add optional specification? property on base class for backward compat
2088 tests pass across 209 files.
@@ -563,11 +563,11 @@ export function validateExtensionsHandlesInCollection(
563
563
errors.push(
564
564
`[${collection.handle}] editor extension collection: Add extension with handle '${extension.handle}' to local app. Local app must include extension with handle '${extension.handle}'.`,
`[${collection.handle}] editor extension collection: Remove extension of type '${matchingExtension.specification.identifier}' from this collection. This extension type is not supported in collections.`,
568
+
`[${collection.handle}] editor extension collection: Remove extension of type '${matchingExtension.type}' from this collection. This extension type is not supported in collections.`,
0 commit comments