Skip to content

Commit

Permalink
Merge pull request #1328 from nlfurniss/patch-1
Browse files Browse the repository at this point in the history
Remove deprecated Component Manager version 3.4
  • Loading branch information
chadhietala committed Aug 25, 2021
2 parents a385105 + f2b68af commit 56f5c1e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/@glimmer/manager/lib/public/component.ts
Expand Up @@ -43,15 +43,11 @@ export function componentCapabilities<Version extends keyof ComponentCapabilitie
managerAPI: Version,
options: ComponentCapabilitiesVersions[Version] = {}
): ComponentCapabilities {
if (DEBUG && managerAPI !== '3.4' && managerAPI !== '3.13') {
if (DEBUG && managerAPI !== '3.13') {
throw new Error('Invalid component manager compatibility specified');
}

let updateHook = true;

if (managerAPI === '3.13') {
updateHook = Boolean((options as ComponentCapabilitiesVersions['3.13']).updateHook);
}
let updateHook = Boolean((options as ComponentCapabilitiesVersions['3.13']).updateHook);

return buildCapabilities({
asyncLifeCycleCallbacks: Boolean(options.asyncLifecycleCallbacks),
Expand Down

0 comments on commit 56f5c1e

Please sign in to comment.