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

refactor: postcss8 native support #795

Merged
merged 60 commits into from Nov 18, 2021
Merged

refactor: postcss8 native support #795

merged 60 commits into from Nov 18, 2021

Conversation

tivac
Copy link
Owner

@tivac tivac commented Jun 29, 2021

Description

Use the new APIs in postcss@8 to dramatically speed things up. This is a BREAKING CHANGE as older versions of PostCSS will no longer be supported, and composes and @values will need to be in order in the source file. Previously they could be in any order and it would figure things out, but the new walking APIs preclude that.

Motivation and Context

Who knows how long old APIs will keep working, need to keep up. Speed boost doesn't hurt.

How Has This Been Tested?

Tests

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@tivac tivac self-assigned this Jun 29, 2021
@codecov
Copy link

codecov bot commented Jun 30, 2021

Codecov Report

Merging #795 (952dc93) into main (c6ffbb5) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #795      +/-   ##
==========================================
+ Coverage   99.40%   99.41%   +0.01%     
==========================================
  Files          34       34              
  Lines        1343     1370      +27     
  Branches      216      218       +2     
==========================================
+ Hits         1335     1362      +27     
  Misses          8        8              
Impacted Files Coverage Δ
packages/processor/lib/identifiers.js 100.00% <100.00%> (ø)
packages/processor/lib/stamp.js 100.00% <100.00%> (ø)
packages/processor/plugins/at-composes.js 100.00% <100.00%> (ø)
packages/processor/plugins/before/graph-nodes.js 100.00% <100.00%> (ø)
packages/processor/plugins/before/values-local.js 100.00% <100.00%> (ø)
packages/processor/plugins/composition.js 100.00% <100.00%> (ø)
packages/processor/plugins/externals.js 100.00% <100.00%> (ø)
packages/processor/plugins/scoping.js 100.00% <100.00%> (ø)
packages/processor/plugins/values-import.js 100.00% <100.00%> (ø)
packages/processor/plugins/values-replace.js 100.00% <100.00%> (ø)
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c6ffbb5...952dc93. Read the comment docs.

@tivac tivac marked this pull request as ready for review July 6, 2021 06:24
@netlify
Copy link

netlify bot commented Jul 6, 2021

❌ Deploy Preview for m-css failed.

🔨 Explore the source changes: c7c62db

🔍 Inspect the deploy log: https://app.netlify.com/sites/m-css/deploys/60e3f7b81977a800082411fb

@tivac
Copy link
Owner Author

tivac commented Jul 6, 2021

This is published as v27.0.0 under the next tag, for testing and stabilizing purposes.

@tivac tivac merged commit 331b833 into main Nov 18, 2021
@tivac tivac deleted the postcss8-native branch November 18, 2021 00:31
@tivac tivac mentioned this pull request Sep 7, 2022
9 tasks
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.

None yet

1 participant