Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REFACTOR] Upstream custom managers, TO managers #1213

Merged
merged 1 commit into from
Nov 24, 2020

Conversation

pzuraq
Copy link
Member

@pzuraq pzuraq commented Nov 24, 2020

Upstreams custom component managers and TO component managers, and
breaks managers in general out into their own package. This is necessary
because managers need to be accessible from the opcode-compiler, which
is itself upstream from @glimmer/runtime. setComponentTemplate is
also moved into this package, as conceptually it is related -
essentially everything about defining a component via composing its
various parts should be in this package.

Breaking Changes

  • All manager functions (e.g. setComponentManager) have been moved to @glimmer/manager
  • getComponentTemplate and setComponentTemplate have been moved to @glimmer/manager
  • get*Manager functions have been replaced with getInternal*Manager. In general, the VM now uses internal managers for everything. set*Manager functions intercept the public manager, wrap it, and then call setInternal*Manager with the wrapped manager.
  • BaseInternalComponentManager and BaseInternalModifierManager have been removed, along with the isInternalManager functions. There's no longer any need to detect if a value is an internal manager, since we do this when we set the manager rather than when we get it.

Other Changes

  • TemplateOnlyComponentManager has been upstreamed and is available from @glimmer/runtime

Upstreams custom component managers and TO component managers, and
breaks managers in general out into their own package. This is necessary
because managers need to be accessible from the opcode-compiler, which
is itself upstream from `@glimmer/runtime`. `setComponentTemplate` is
also moved into this package, as conceptually it is related -
essentially everything about defining a component via composing its
various parts should be in this package.
@pzuraq pzuraq force-pushed the upstream-custom-and-to-managers branch from 6bc6c9a to 6ce5feb Compare November 24, 2020 20:43
@pzuraq pzuraq merged commit ced3c72 into master Nov 24, 2020
@pzuraq pzuraq deleted the upstream-custom-and-to-managers branch November 24, 2020 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant