-
Notifications
You must be signed in to change notification settings - Fork 187
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
Document our API #229
Comments
In general this sounds like a pretty good start to me. I think it probably needs to include a couple of other things, like maybe:
That's what comes to mind off the top of my head. |
Sounds good to me 👍 |
Would it be possible, and this would certainly be a breaking change, to reverse the To clarify, I mean, instead have an This would still make it easy to integrate with an existing codebase. And if made into a separate package/plugin, then the aphrodite codebase could be made lighter. |
Someone commented on 21ef03b, noting that it changes the class names that
css()
generates, and was wondering if that counted as a breaking change. I don't think it is, but I'd like to get some feedback about what we think our API really is, and what we think counts as a breaking change.This is the way I've been thinking about it, and would propose that we formalize this and document it somewhere (e.g. I've seen babylon document how they follow semver).
The API which we maintain via semver is:
css()
andStyleSheet.create
(and our other APIs) accept and produce should stay the same. Changing these to something incompatible would be a breaking change. Accepting new inputs would be a minor change."aphrodite/no-important"
import.The API that we do not maintain (i.e. that users should not depend on because it might break in the future) is:
css()
How do people feel about this? I think that the most contentious things would be that "fixing bugs in which styles get applied" isn't a breaking change, and that the text that we generate isn't covered.
@drKnoxy @lencioni @kentcdodds
The text was updated successfully, but these errors were encountered: