Skip to content

Conversation

@nolanlawson
Copy link
Contributor

@nolanlawson nolanlawson commented Jun 19, 2024

Details

It occurred to me that it's kind of strange for the release notes to say "this.style is only available in API version 62 due to possible breaking changes, but this.hostElement is available regardless." It's more consistent to just put both of them behind API versioning.

Plus, this way we don't have to worry about potential breaking changes on the off-change that someone has already squatted this.hostElement.

Related: #4259

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.

No, we haven't released this.hostElement yet.

Does this pull request introduce an observable change?

  • 🤞 No, it does not introduce an observable change.

@nolanlawson nolanlawson requested a review from a team as a code owner June 19, 2024 16:22
@nolanlawson nolanlawson added this to the 7.0.0 milestone Jun 19, 2024
},

get hostElement(): Element {
get hostElement(): Element | undefined {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this makes the TypeScript types a bit more annoying (you have to do this.hostElement!) but I think the benefits to not shipping breaking changes makes it worth it.

@nolanlawson nolanlawson merged commit 57c3873 into master Jun 19, 2024
@nolanlawson nolanlawson deleted the api-host-element branch June 19, 2024 18:13
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.

3 participants