Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Upgrade mocha to 4.1.0 #942

Merged
merged 1 commit into from
May 9, 2018
Merged

Upgrade mocha to 4.1.0 #942

merged 1 commit into from
May 9, 2018

Conversation

cgewecke
Copy link
Contributor

@cgewecke cgewecke commented May 9, 2018

This should address the security vulnerability reported in #941 (for Truffle).

Incidentally, this issue was found using a new command that comes with NPM 6

npm audit

@cgewecke cgewecke requested a review from gnidan May 9, 2018 22:33
Copy link
Contributor

@gnidan gnidan left a comment

Choose a reason for hiding this comment

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

Oh neat, must check that out!

@cgewecke cgewecke merged commit c76c30d into develop May 9, 2018
@cgewecke cgewecke deleted the upgrade-mocha-v4 branch May 9, 2018 23:12
@frangio
Copy link
Contributor

frangio commented May 21, 2018

@cgewecke This hasn't fixed the vulnerability warnings because they come from truffle-core, not from truffle itself. 😿

https://github.com/trufflesuite/truffle-core/blob/1a6046a1da14d6d19acd335d0c4789dd0ee5607f/package.json#L22

truffle/yarn.lock

Lines 6935 to 6936 in 495f8d0

mocha@^3.0.0, mocha@^3.2.0, mocha@^3.4.2:
version "3.4.2"

In fact, it's only a devDependency of truffle, and it is a proper dependency of truffle-core. So this only updated the Mocha version used to test Truffle itself.

@cgewecke
Copy link
Contributor Author

cgewecke commented May 22, 2018

@frangio How are you getting the warnings? When I install I see this:

cgewecke$ npm install truffle
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

+ [email protected]
updated 1 package in 4.962s
[+] no known vulnerabilities found [132 packages audited]

cgewecke$ npm audit
                                                                                
                       === npm audit security report ===                        
                                                                                
[+] no known vulnerabilities found
    Packages audited: 132 (0 dev, 0 optional)

cgewecke$ 

It's a little confusing but because Mocha doesn't webpack well it's a dep of truffle - set here and then injected into the bundle here. Could be something's going wrong there though.

@cgewecke
Copy link
Contributor Author

@frangio 4.1.10 has mocha 4 in the core. Thanks for pinging this.

@cgewecke
Copy link
Contributor Author

4.1.10 got lost at npm during an outage. Now fixed at 4.1.11

nakajo2011 pushed a commit to nakajo2011/truffle that referenced this pull request Aug 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants