snaps icon indicating copy to clipboard operation
snaps copied to clipboard

devDeps: bump vite and webdriverio

Open legobeat opened this issue 2 years ago • 7 comments

  • Bump vite from 4.4 to 4.5.
    • Closes:
      • https://github.com/advisories/GHSA-c24v-8rfc-w8vw / https://github.com/advisories/GHSA-c24v-8rfc-w8vw
      • https://github.com/advisories/GHSA-92r3-m2mg-pj97 / https://github.com/advisories/GHSA-92r3-m2mg-pj97
  • Bump vite-tsconfig-paths@^4.0.5->^4.3.1
  • Bump @wdio/* from ^8.19.0 to ^8.28.0
    • Removes transitive dependency on vite@~4.4.6 - deduping it

legobeat avatar Jan 22 '24 14:01 legobeat

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@ljharb/[email protected] Transitive: eval +4 140 kB ljharb
npm/@vitest/[email protected] None +1 31.6 kB oreanno
npm/@wdio/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +461 886 MB wdio-user
npm/@wdio/[email protected] environment Transitive: eval, filesystem, network, shell, unsafe +324 68.7 MB wdio-user
npm/@wdio/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +252 65.3 MB wdio-user
npm/@wdio/[email protected] Transitive: environment, eval, filesystem, network, shell +152 53 MB wdio-user
npm/@wdio/[email protected] None +7 941 kB wdio-user
npm/@wdio/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +248 61.2 MB wdio-user
npm/@wdio/[email protected] None +14 1.05 MB wdio-user
npm/@wdio/[email protected] Transitive: environment, eval, filesystem, network, unsafe +61 2.38 MB wdio-user
npm/[email protected] Transitive: environment, eval, filesystem, shell +46 5.67 MB sboudrias
npm/[email protected] None 0 4.49 kB sindresorhus
npm/[email protected] None 0 13.6 kB oreanno
npm/[email protected] None +1 68.8 MB dominik_g
npm/[email protected] filesystem Transitive: environment, eval, network, shell, unsafe +43 287 MB aleclarson
npm/[email protected] environment, eval, filesystem, network, shell, unsafe +38 218 MB vitebot

🚮 Removed packages: npm/@ljharb/[email protected], npm/@wdio/[email protected], npm/@wdio/[email protected], npm/@wdio/[email protected], npm/@wdio/[email protected], npm/@wdio/[email protected], npm/@wdio/[email protected], npm/@wdio/[email protected], npm/@wdio/[email protected], npm/@wdio/[email protected], npm/@wdio/[email protected], npm/@wdio/[email protected], npm/@wdio/[email protected], npm/@wdio/[email protected], npm/@wdio/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

socket-security[bot] avatar Jan 22 '24 14:01 socket-security[bot]

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package Note
No contributors or author data npm/@vitest/[email protected]
New author npm/[email protected]

View full report↗︎

Next steps

Why is contributor and author data important?

Package does not specify a list of contributors or an author in package.json.

Add a author field or contributors array to package.json.

What is new author?

A new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.

Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/[email protected] or ignore all packages with @SocketSecurity ignore-all

socket-security[bot] avatar Jan 22 '24 14:01 socket-security[bot]

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (cf1fa9a) 96.66% compared to head (246822f) 96.66%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2121   +/-   ##
=======================================
  Coverage   96.66%   96.66%           
=======================================
  Files         312      312           
  Lines        7042     7042           
  Branches     1104     1104           
=======================================
  Hits         6807     6807           
  Misses        235      235           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Jan 22 '24 15:01 codecov[bot]

Looks good to me, but there's a lot of lint errors currently: https://github.com/MetaMask/snaps/actions/runs/7613049917/job/20732121835?pr=2121

Looks like the linter thinks we should await expectations in WDIO now 🤔 Did the API change without a major version bump? 🤔

FrederikBolding avatar Jan 22 '24 15:01 FrederikBolding

Looks good to me, but there's a lot of lint errors currently: https://github.com/MetaMask/snaps/actions/runs/7613049917/job/20732121835?pr=2121

Looks like the linter thinks we should await expectations in WDIO now 🤔 Did the API change without a major version bump? 🤔

Somehow I am getting the same 319 errors when running yarn && yarn lint locally on current main (f1903db62c2f2dccbc5c39c7211dac0bcc9275b1)...

Did rm -rf node_modules packages/*/dist before.

We're not seeing the same linting errors in CI on main, though.

EDIT: nvm, it was a case of .eslintcache interfering - removing it gives consistent results again.

legobeat avatar Jan 22 '24 17:01 legobeat

Looks good to me, but there's a lot of lint errors currently: https://github.com/MetaMask/snaps/actions/runs/7613049917/job/20732121835?pr=2121

Looks like the linter thinks we should await expectations in WDIO now 🤔 Did the API change without a major version bump? 🤔

@FrederikBolding : I see the errors crop up down to wdio 8.20. It turns out that on current snaps main and for older wdio versions, expect is typed as jest.Expect, whereas it now has a type that involves a Promise (<Record<string, unknown>, void | Promise<void>>(actual: Record<string, unknown>) => ExpectWebdriverIO.Matchers<void | Promise<void>, Record<string, unknown>>).

Haven't actually tracked down where that change is introduced, yet.

(see action results for each commit for reference: https://github.com/legobeat/snaps-monorepo/pull/10)

@wdio/browser-runner uses updated vite starting with v8.21.0.

legobeat avatar Jan 23 '24 15:01 legobeat

This seems related: https://github.com/webdriverio/webdriverio/issues/11999

FrederikBolding avatar Jan 31 '24 12:01 FrederikBolding