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

chore: Upgrade packages to fix vulnerabilities #531

Merged
merged 15 commits into from
Apr 16, 2020

Conversation

anicholls
Copy link
Contributor

@anicholls anicholls commented Mar 23, 2020

Upgrade packages to address vulnerabilities in:

  • minimist (must be >= 0.2.1 or 1.2.3)
  • acorn (must be >= 6.4.1)
  • kind-of (must be >= 6.0.03)

Closes #542

There are a few packages that are still yet to be updated:

I needed to use a resolution for minimist and acorn since these two don't look like they're getting much movement. We're now getting some yarn warnings, but I don't think anything is breaking and it's better than a vulnerability.

I removed react-scripts because we've wanted it gone for a while (#542) and it was using acorn.

For the minimist resolution, we're waiting on a new release from commitizen, and I'm not sure what's going to happen for http-server


Note for future reference: For some reason upgrading rollup-plugin-terser was giving us problems with storybook in IE11. It was causing us to emit dynamic imports (not supported in IE) for @storybook/addons-storysource. I'm very confused as to why, since rollup is only used in js-build (used for one css component) and has nothing to do with webpack. It's not affected by these vulnerabilities so I've reverted the upgrade. Hopefully we don't run into this again 🤷‍♂️

@anicholls anicholls force-pushed the fix-vulnerability branch 4 times, most recently from a102cc5 to 76479e3 Compare April 2, 2020 23:06
@anicholls anicholls changed the title chore: Upgrade packages to fix minimist vulnerability chore: Upgrade packages to fix vulnerabilities Apr 6, 2020
@cypress
Copy link

cypress bot commented Apr 6, 2020



Test summary

219 0 1 0


Run details

Project canvas-kit
Status Passed
Commit 9abb4c2 ℹ️
Started Apr 15, 2020 11:52 PM
Ended Apr 15, 2020 11:55 PM
Duration 02:17 💡
OS Linux Ubuntu Linux - 18.04
Browser Electron 80

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@anicholls anicholls force-pushed the fix-vulnerability branch 2 times, most recently from b478c9a to cb4d967 Compare April 8, 2020 18:49
@anicholls anicholls added this to the v4.0.0 milestone Apr 8, 2020
@anicholls anicholls marked this pull request as ready for review April 9, 2020 18:29
@anicholls anicholls added the ready for review Code is ready for review label Apr 9, 2020
.postcssrc.js Outdated Show resolved Hide resolved
anicholls and others added 11 commits April 15, 2020 16:31
* Add unit tests
* Add Cypress specifications
* Add visual tests
* Upgrade Popper to v2 and use canvas-kit Popper component instead of materia-ui's

This change makes it easier to create accessible tooltips. It is now possible to do this:

```tsx
<Tooltip title="Close">
  <IconButton variant={IconButton.Variant.Circle} icon={xIcon} aria-label="Close" />
</Tooltip>
```

BREAKING CHANGE: Tooltip API was updated to make it easier to consume.
The original `Tooltip` did little more than add a `role="tooltip"` to a styled component. The original tooltip is now exported as `TooltipContainer` to make it easier to migrate without rewriting all tooltips. Imports will have to be updated to use the old API:
**Before:**
```ts
import { Tooltip } from '@workday/canvas-kit-react-tooltip'
```
**After:**
```ts
import { TooltipContainer as Tooltip } from '@workday/canvas-kit-react-tooltip'
```
Also with this change, the tooltip no longer gets the role `tooltip` and must be added manually.

BREAKING CHANGE: `Popper` was changed to a Functional Component with a forwarded ref. If you passed a `ref` object to `Popper` before, it will now point to the element rather than the `Popper` instance.
@anicholls anicholls merged commit b049a9a into Workday:prerelease/v4 Apr 16, 2020
@anicholls anicholls deleted the fix-vulnerability branch April 16, 2020 00:39
@anicholls anicholls mentioned this pull request Jun 15, 2020
@jaclynjessup jaclynjessup removed the ready for review Code is ready for review label Oct 31, 2022
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