Skip to content

chore: migrate off of css-selector-tokenizer #9

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

Merged
merged 5 commits into from
Feb 20, 2019

Conversation

jquense
Copy link
Contributor

@jquense jquense commented Feb 18, 2019

This is pretty hard :/ And i don't think there is way to be super confident that there isn't some subtle change in behavior due to api differences, unclear behavior, limited tests.

I think actually the right thing to do here is REMOVE support for the non-nested selector. the open ended selector is weird and inconsistent, even in the logic of this plugin there is unclear transformations. and I even added a test to ensure i wasn't changing something but the old behavior that is definitely wrong.

@codecov-io
Copy link

codecov-io commented Feb 18, 2019

Codecov Report

Merging #9 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #9      +/-   ##
==========================================
+ Coverage   99.58%   99.62%   +0.04%     
==========================================
  Files           2        2              
  Lines         243      270      +27     
  Branches       71       82      +11     
==========================================
+ Hits          242      269      +27     
  Misses          1        1
Impacted Files Coverage Δ
test.js 100% <ø> (ø) ⬆️
index.js 99.58% <100%> (+0.05%) ⬆️

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 2b451e1...dab4426. Read the comment docs.

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

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

Great job! Somebody else or we can merge?

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

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

Just small fix

"semi": true,
"singleQuote": true,
"trailingComma": "es5"
},
"dependencies": {
"css-selector-tokenizer": "^0.7.0",
Copy link
Member

Choose a reason for hiding this comment

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

Remove this from deps and update lock file 👍

@alexander-akait
Copy link
Member

/cc @jquense ready for merge? Please fix small note

@alexander-akait
Copy link
Member

I will continue development, merge this as is

@alexander-akait alexander-akait merged commit 67e507b into css-modules:master Feb 20, 2019
@jquense
Copy link
Contributor Author

jquense commented Feb 20, 2019

thanks! sorry didn't have a moment to finish it up in the last two days!

@jquense jquense deleted the selector-2 branch February 20, 2019 15:30
@alexander-akait
Copy link
Member

/cc @jquense just clarify: all finished in this PR?

@jquense
Copy link
Contributor Author

jquense commented Feb 20, 2019

yup, just the note you said

@alexander-akait
Copy link
Member

@jquense i will start testing new PR with css-loader

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.

3 participants