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

Fix ASI after a colon #228

Merged
merged 3 commits into from
Jun 7, 2017
Merged

Conversation

fatfisz
Copy link
Contributor

@fatfisz fatfisz commented Jun 6, 2017

There is a regression compared to 0.5.7, where this worked correctly:

html {
  background-image:
    linear-gradient(0deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
    url(/static/background.svg);
}

One of the newer versions of styled-jsx broke this - a semicolon is added after background-image:.

This is fixed in stylis 3.0.17. This branch updates stylis and adds a test to prevent regressions.

@fatfisz
Copy link
Contributor Author

fatfisz commented Jun 6, 2017

Related PR in stylis: thysultan/stylis#33

@fatfisz fatfisz changed the title Fix ASI after colon Fix ASI after a colon Jun 6, 2017
package.json Outdated
@@ -62,7 +62,7 @@
"escape-string-regexp": "1.0.5",
"source-map": "0.5.6",
"string-hash": "1.1.1",
"stylis": "3.0.15"
"stylis": "^3.0.17"
Copy link
Collaborator

Choose a reason for hiding this comment

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

please pin this version, i.e. remove the ^

Copy link
Collaborator

@giuseppeg giuseppeg left a comment

Choose a reason for hiding this comment

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

Thank you for the PR! Just fix the small dependency thing and I'll merge

yarn.lock Outdated
stylis@3.0.15:
version "3.0.15"
resolved "https://registry.yarnpkg.com/stylis/-/stylis-3.0.15.tgz#e0f9bf403048511043b479d39422c835141e0fbb"
stylis@^3.0.17:
Copy link
Collaborator

Choose a reason for hiding this comment

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

you should update this too

Copy link
Contributor Author

@fatfisz fatfisz Jun 7, 2017

Choose a reason for hiding this comment

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

Sorry, that's the limit of what I can do on my phone 😉 I'll take care of this later when I'm in front​ of the PC.

Copy link
Collaborator

Choose a reason for hiding this comment

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

hah, ok no worries. Thank you!

@fatfisz
Copy link
Contributor Author

fatfisz commented Jun 7, 2017

I installed manually and updated the yarn.lock file based on that.

@giuseppeg giuseppeg merged commit 6651134 into vercel:master Jun 7, 2017
@giuseppeg
Copy link
Collaborator

@fatfisz thank you for helping out!! I'll release today or tomorrow - I need to squeeze in another fix.

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