Skip to content
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

Upgrade postcss to ^8.4.31 #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stefansundin
Copy link

Hello, 👋

Thanks for the package. Here are some updates to make it work with the latest postcss. This helps get rid of a GitHub vulnerability warning that has been bugging me recently. :)

It should probably be released as a major version bump.

All tests are passing:

$ npm run test

> [email protected] test
> jasmine-node spec

.............................

Finished in 0.01 seconds
29 tests, 29 assertions, 0 failures, 0 skipped

Please let me know if you want me to change anything!

module.exports = postcss.plugin('postcss-rem-to-pixel', function (options) {

var opts = objectAssign({}, defaults, options);
module.exports = function (options) {
Copy link
Author

Choose a reason for hiding this comment

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

This fixes this deprecation warning:

postcss-rem-to-pixel: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration

@@ -26,7 +26,6 @@
"postcss-plugin"
],
"dependencies": {
"object-assign": "^4.1.0",
"postcss": "^5.2.10"
"postcss": "^8.4.31"
Copy link
Author

Choose a reason for hiding this comment

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

Since postcss isn't required in this package anymore, perhaps this should be moved to a peer dependency? 🤷

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.

1 participant