Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello, first of al thanks for the package - it's a really huge work.
Problem 1: access to not exposed
Compatible
When I was testing this package first time I realised that developers able to use some values like this:
I think it's unexpected using of the package and something has to change the situation.
Problem 2: huge value records
Each value of css rule is described as type alias with dynamic record with
Compatible
. It means that result record should contain same structure as type alias:It looks little bit redundantly.
Decision
We can solve both problems by one decision:
Only the
Value
type should be exposed and as result we will get something like this:Advantages
Compatible
by getting value of record field so they can't create custom css values without using API ofCss
Value String
.Disadvantages
numericValue
andunitLabel
)Conclusion
There are a lot of changes but most of them looks like changing of records to
Value String
. Some exposed types has been removed/added and that will increase package version. I don't familiar with your politic of version management and hope that it won't be a big deal. There are big changes of working with colours (it was simplified in general).@rtfeldman I'm looking forward to your feedback.