Skip to content

Upgrade postcss-values-parser to version 5 - #107

Merged
joscha merged 1 commit into
dependents:masterfrom
realityking:values-parser
Apr 29, 2021
Merged

Upgrade postcss-values-parser to version 5#107
joscha merged 1 commit into
dependents:masterfrom
realityking:values-parser

Conversation

@realityking

@realityking realityking commented Mar 29, 2021

Copy link
Copy Markdown
Contributor

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.

Comment thread package.json Outdated
Comment thread src/postcss-values-parser.d.ts
Comment thread tsconfig.json
"module": "commonjs",
"target": "es2018"
"target": "es2018",
"paths": {

Copy link
Copy Markdown
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
Copy Markdown
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

joscha commented Mar 30, 2021

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Contributor Author

@joscha

joscha commented Apr 26, 2021

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Contributor Author

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

@joscha

joscha commented Apr 27, 2021

Copy link
Copy Markdown
Collaborator

I've nudged on these pull requests :)

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

joscha commented Apr 29, 2021

Copy link
Copy Markdown
Collaborator

released in detective-postcss@5.0.0

@realityking

Copy link
Copy Markdown
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