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(deps): Upgrade Less to v3 #190

Merged
merged 3 commits into from
Oct 18, 2018
Merged

fix(deps): Upgrade Less to v3 #190

merged 3 commits into from
Oct 18, 2018

Conversation

mengtzu
Copy link
Contributor

@mengtzu mengtzu commented Oct 17, 2018

npm audit raises some prototype pollution errors that trace back to dependencies of dependencies of our dusty old version of less. Bumping to 3 appears to be non-traumatic.

@mengtzu
Copy link
Contributor Author

mengtzu commented Oct 17, 2018

I did find fs was failing in a handful of tests, so I switched the reference to fs-extra since sku uses that and I assume it'll be more robust (ie if fs-extra is not working neither will sku in general so 🤷‍♀️ )

@@ -26,8 +26,8 @@ Object {
._3Zn-PeU{border-radius:4px}
._1sseFqJ{border-style:solid;border-width:1px}
._1d6RKtE{-webkit-box-shadow:0 0 0 1px #2765cf;box-shadow:0 0 0 1px #2765cf}
.mT50rPc{color:#1c1c1c}._1Rsg9w6{color:#fff}._3OSCp5v{color:#e60278}.AsBZy5a{color:green}._1DYv5gu{color:#1c1c1ca1 a1}._3rwI692{color:#2765cf}
._16w04Xz{fill:currentColor}._1srDitw{fill:#2765cf}.hK-SldW{fill:#ccc}._3SkkQl1{fill:#e60278}.q2J3ENx{fill:green}._2WNYdGY{fill:#1c1c1ca1 a1}.QR_XQhw{fill:#fff}
.mT50rPc{color:#1c1c1c}._1Rsg9w6{color:#fff}._3OSCp5v{color:#e60278}.AsBZy5a{color:green}._1DYv5gu{color:#1c1c1ca1}._3rwI692{color:#2765cf}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@markdalgleish any idea if this change in the snapshot is meaningful (ie did I just legit ignore a broken test)

Copy link
Member

Choose a reason for hiding this comment

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

First glance, this looks like a broken test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looking at the original snap it appears less was repeating the opacity, maybe as some kind of compatibility issue? I don't think that's a problem if they've dropped that behaviour 🤔

Copy link
Member

Choose a reason for hiding this comment

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

Oh, sorry—didn't realise the summary version wasn't showing me the full diff. It looked like an entire line of CSS had been removed. I see what you mean now 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

This seems to be the result of v3.8.1 adding support for #RRGGBBAA. Highlights an interesting scenario though, snapshots here can change based on internal braid-design-system changes.

@mbfisher
Copy link
Contributor

Awesome, those warnings have been bugging me!

@michaeltaranto michaeltaranto changed the title Task/upgrade less to 3 fix(deps): Upgrade less to v3 Oct 17, 2018
const fs = require('fs').promises;
const { F_OK } = require('fs').constants;
const fs = require('fs-extra');
const { F_OK } = require('fs-extra').constants;
Copy link
Contributor

Choose a reason for hiding this comment

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

F_OK seems to be unused here

const fs = require('fs').promises;
const { F_OK } = require('fs').constants;
const fs = require('fs-extra');
const { F_OK } = require('fs-extra').constants;
Copy link
Contributor

Choose a reason for hiding this comment

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

As above

@mengtzu
Copy link
Contributor Author

mengtzu commented Oct 18, 2018

@mbfisher credit goes to Chia Lun in the Bricks team in Penang who was also bothered and reached out :)

@markdalgleish markdalgleish changed the title fix(deps): Upgrade less to v3 fix(deps): Upgrade Less to v3 Oct 18, 2018
@mengtzu mengtzu merged commit d398237 into master Oct 18, 2018
@mengtzu mengtzu deleted the task/upgrade-less-to-3 branch October 18, 2018 00:15
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.

5 participants