Are the class names in Elements stylesheet a public API? #132
Answered
by
willmcvay
kurtdoherty
asked this question in
Q&A
-
Q: Are the class names in Elements' stylesheet considered a public API, or are they considered an implementation detail that we simply allow consumers to depend on?Why am I asking this question?
If the class names are a public API:
If the class names are not a public API:
|
Beta Was this translation helpful? Give feedback.
Answered by
willmcvay
Jul 11, 2024
Replies: 1 comment 2 replies
-
|
@willmcvay I'm keen to understand how you would answer this question and, if it is a public interface, how the team has handled changes to the Linaria |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@kurtdoherty The former, they are a public API - we handle using semver essentially. From v1 to v2 there were minimal breaking changes. From v2 to v3, there was a complete re-write and from v3 to v4 there were almost no breaking changes meaning users could transition seamelssly, albeit there was a design system overhaul.
The reason we didn't we didn't fully align with the design system at v4 was we wanted to avoid breaking changes so were limited to CSS only changes. We notified any upcoming breaking changes in v5 using deprecation notices in the console.
For v4 to v5, we have already agreed we can make whatever breaking changes are required to achieve design system parity. Best efforts t…