Skip to content

Conversation

@sergey-panov
Copy link

@sergey-panov sergey-panov commented Dec 24, 2025

With this change, ember-cli-head becomes a v2 addon. This is a breaking change for 4 reasons:

  • Users will now have to use ember-auto-import
  • The trick with runtime template resolution will no longer work, instead <HeadLayout> component now has a default block for user-provided component, and is responsible only for rendering in <head>, along with the after-SSR cleanup logic
  • Since the component for the head content now exists in user space, there is no sense in keeping the HeadData service. Instead, it can be defined in an app (and be whatever users want: a service, a POJO, a resource, etc.)
  • The ability to provide @headElement argument to the <HeadLayout> component was removed. It was meant to be used only internally in 1 component test, and shouldn't be exposed to users. The test was removed, as the behavior of the component is better tested with acceptance tests

Closes #111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typescript support and V2 addon format

1 participant