Skip to content

Dependency packages are outdated, and not all are used #3

@mlippert

Description

@mlippert

rhythm-rtc has a lot of dependencies. I don't think all of them are used, and so they could be removed.

In addition there are many warnings from various packages when installing, and many packages are out of date, and the code should be updated to use the latest version.

Expected Behavior

Only include dependencies that are used, All dependent packages are at their latest version.

Current Behavior

(rhythm-rtc) node /app $ yarn install
yarn install v1.5.1
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning browserify > glob > minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
warning browserify-shim > exposify > through2 > xtend > object-keys@0.4.0: 
warning express-ims-lti > ims-lti > node-uuid@1.4.8: Use uuid module instead
warning express-ims-lti > ims-lti > xmlbuilder > lodash-node@2.4.1: This package is discontinued. Use lodash@^4.0.0.
warning ims-lti > node-uuid@1.4.8: Use uuid module instead
[3/5] Fetching packages...
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > extract-text-webpack-plugin@2.1.2" has incorrect peer dependency "webpack@^2.2.0".
warning " > react-redux@4.4.9" has unmet peer dependency "redux@^2.0.0 || ^3.0.0".
warning " > sw-precache-webpack-plugin@0.9.2" has incorrect peer dependency "webpack@^1 || ^2 || ^2.1.0-beta || ^2.2.0-beta".
warning " > eslint-config-react-app@2.1.0" has incorrect peer dependency "eslint-plugin-jsx-a11y@^5.1.1".
[5/5] Building fresh packages...
success Saved lockfile.
warning Your current version of Yarn is out of date. The latest version is "1.6.0", while you're on "1.5.1".
info To upgrade, run the following command:
$ curl -o- -L https://yarnpkg.com/install.sh | bash
$ coffee -c ./src/libs/mm.coffee; npm run build;

> rhythm-rtc@0.3.0-dev.1 build /app
> node scripts/build.js

Creating an optimized production build...
(node:324) DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.
/app/node_modules/babel-minify-webpack-plugin/node_modules/source-map/lib/source-map-generator.js:276
        throw new Error(
        ^

Error: original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.
    at SourceMapGenerator_validateMapping [as _validateMapping] (/app/node_modules/babel-minify-webpack-plugin/node_modules/source-map/lib/source-map-generator.js:276:15)
    at SourceMapGenerator_addMapping [as addMapping] (/app/node_modules/babel-minify-webpack-plugin/node_modules/source-map/lib/source-map-generator.js:110:12)
    at /app/node_modules/babel-minify-webpack-plugin/node_modules/source-map/lib/source-map-generator.js:72:17
    at Array.forEach (<anonymous>)
    at BasicSourceMapConsumer.SourceMapConsumer_eachMapping [as eachMapping] (/app/node_modules/babel-minify-webpack-plugin/node_modules/source-map/lib/source-map-consumer.js:157:14)
    at Function.SourceMapGenerator_fromSourceMap [as fromSourceMap] (/app/node_modules/babel-minify-webpack-plugin/node_modules/source-map/lib/source-map-generator.js:48:24)
    at SourceMapSource.node (/app/node_modules/babel-minify-webpack-plugin/node_modules/webpack-sources/lib/SourceMapSource.js:32:35)
    at SourceMapSource.proto.sourceAndMap (/app/node_modules/babel-minify-webpack-plugin/node_modules/webpack-sources/lib/SourceAndMapMixin.js:30:18)
    at getTaskForFile (/app/node_modules/webpack/lib/SourceMapDevToolPlugin.js:33:30)
    at chunk.files.forEach.file (/app/node_modules/webpack/lib/SourceMapDevToolPlugin.js:91:21)
    at Array.forEach (<anonymous>)
    at /app/node_modules/webpack/lib/SourceMapDevToolPlugin.js:89:18
    at Array.forEach (<anonymous>)
    at Compilation.<anonymous> (/app/node_modules/webpack/lib/SourceMapDevToolPlugin.js:88:12)
    at Compilation.applyPlugins1 (/app/node_modules/tapable/lib/Tapable.js:75:14)
    at applyPluginsAsync.err (/app/node_modules/webpack/lib/Compilation.js:673:11)
(rhythm-rtc) node /app $ yarn outdated
yarn outdated v1.5.1
info Color legend : 
 "<red>"    : Major Update backward-incompatible updates 
 "<yellow>" : Minor Update backward-compatible features 
 "<green>"  : Patch Update backward-compatible bug fixes
Package                             Current Wanted Latest  Package Type URL                                                                 
autoprefixer                        7.2.6   7.2.6  8.5.0   dependencies https://github.com/postcss/autoprefixer#readme                      
babel-eslint                        7.2.3   7.2.3  8.2.3   dependencies https://github.com/babel/babel-eslint                               
babel-jest                          20.0.3  20.0.3 22.4.3  dependencies https://github.com/facebook/jest#readme                             
babel-minify-webpack-plugin         0.2.0   0.2.0  0.3.1   dependencies https://github.com/webpack-contrib/babel-minify-webpack-plugin      
browserify                          11.2.0  11.2.0 16.2.2  dependencies https://github.com/browserify/browserify#readme                     
case-sensitive-paths-webpack-plugin 1.1.4   1.1.4  2.1.2   dependencies https://github.com/Urthen/case-sensitive-paths-webpack-plugin#readme
chalk                               1.1.3   1.1.3  2.4.1   dependencies https://github.com/chalk/chalk#readme                               
coffeescript                        1.12.7  1.12.7 2.3.0   dependencies http://coffeescript.org                                             
cross-spawn                         4.0.2   4.0.2  6.0.5   dependencies https://github.com/moxystudio/node-cross-spawn                      
d3                                  3.5.17  3.5.17 5.4.0   dependencies https://d3js.org/                                                   
dotenv                              4.0.0   4.0.0  5.0.1   dependencies https://github.com/motdotla/dotenv#readme                           
extract-text-webpack-plugin         2.1.2   2.1.2  3.0.2   dependencies http://github.com/webpack-contrib/extract-text-webpack-plugin       
file-loader                         0.11.2  0.11.2 1.1.11  dependencies https://webpack.js.org/loaders/file-loader                          
fs-extra                            3.0.1   3.0.1  6.0.1   dependencies https://github.com/jprichardson/node-fs-extra                       
html-webpack-plugin                 2.30.1  2.30.1 3.2.0   dependencies https://github.com/jantimon/html-webpack-plugin                     
materialize-css                     0.99.0  0.99.0 0.100.2 dependencies http://materializecss.com/                                          
promise                             7.3.1   7.3.1  8.0.1   dependencies https://github.com/then/promise#readme                              
react                               15.6.2  15.6.2 16.3.2  dependencies https://reactjs.org/                                                
react-dev-utils                     1.0.3   1.0.3  5.0.1   dependencies https://github.com/facebookincubator/create-react-app#readme        
react-dom                           15.6.2  15.6.2 16.3.2  dependencies https://reactjs.org/                                                
react-error-overlay                 1.0.10  1.0.10 4.0.0   dependencies https://github.com/facebookincubator/create-react-app#readme        
react-redux                         4.4.9   4.4.9  5.0.7   dependencies https://github.com/gaearon/react-redux                              
simplewebrtc                        2.2.3   2.2.3  3.0.1   dependencies https://github.com/andyet/SimpleWebRTC#readme                       
style-loader                        0.17.0  0.17.0 0.21.0  dependencies https://github.com/webpack-contrib/style-loader#readme              
sw-precache-webpack-plugin          0.9.2   0.9.2  0.11.5  dependencies https://github.com/goldhand/sw-precache-webpack-plugin#readme       
thumos                              1.0.1   exotic exotic  dependencies git+https://github.com/HumanDynamics/thumos.git                     
url-loader                          0.5.9   0.5.9  1.0.1   dependencies https://github.com/webpack-contrib/url-loader                       
webpack                             3.12.0  3.12.0 4.8.3   dependencies https://github.com/webpack/webpack                                  
webpack-dev-server                  2.11.2  2.11.2 3.1.4   dependencies https://github.com/webpack/webpack-dev-server                       
webpack-manifest-plugin             1.3.2   1.3.2  2.0.2   dependencies https://github.com/danethurber/webpack-manifest-plugin              
webpack-sources                     1.0.1   1.0.1  1.1.0   dependencies https://github.com/webpack/webpack-sources#readme                   
Done in 1.18s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions