Skip to content

Conversation

@realityking
Copy link
Contributor

@realityking realityking commented Mar 29, 2021

Fixes #101

Version 5 is now using PostCSS 8 so there's no more necessary duplication holding back the upgrade.

This got more complex than expected, mostly because I was trying to use the upstream types. Unfortunately there are several errors in those types. I ended up copying (& fixing) the relevant parts into the definition file. When I get around to it, I'll submit a PR to the upstream to fix the types and the extra definition file can be eliminated.
As an alternative, I could simplify the definition file similar to the previous one and remove the type narrowing code. That would preclude using the upstream types in the future.

"module": "commonjs",
"target": "es2018"
"target": "es2018",
"paths": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

OOI, why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is necessary to make the override of types that exist in postcss-values-parser work. Once upstream is fixed, this can go away.

@joscha
Copy link
Collaborator

joscha commented Mar 30, 2021

I'll submit a PR to the upstream to fix the types and the extra definition file can be eliminated.

Ah sorry, missed this when reading first. Link the PR here when you opened it!

@realityking
Copy link
Contributor Author

@joscha
Copy link
Collaborator

joscha commented Apr 26, 2021

There's 3 relevant PRs to this:

sorry for beings so slow - all of these have been merged, can this PR now simplified @realityking ?

@realityking
Copy link
Contributor Author

While they’ve all been merged, shellscape/postcss-values-parser hasn’t yet made a release with the changes.

@joscha
Copy link
Collaborator

joscha commented Apr 27, 2021

I've nudged on these pull requests :)

@joscha joscha merged commit a5d3bf9 into dependents:master Apr 29, 2021
@joscha
Copy link
Collaborator

joscha commented Apr 29, 2021

released in [email protected]

@realityking
Copy link
Contributor Author

❤️

I’ll send a clean-up PR once the upstream is updated

@realityking realityking deleted the values-parser branch April 29, 2021 14:22
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.

2 participants