Closed samreid closed 3 years ago
Here is what master looks like to me right now:
"devDependencies": {
"@babel/core": "~7.8.6",
"@babel/preset-env": "~7.8.6",
"@types/lodash": "^4.14.172",
"archiver": "~3.1.1",
"babel-eslint": "^10.0.3",
"eslint": "~7.22.0",
"eslint-plugin-react": "^7.18.0",
"grunt": "~1.4.0",
"html-webpack-plugin": "^5.3.1",
"jimp": "^0.2.0",
"jpeg-js": "~0.4.3",
"jsdoc": "~3.6.3",
"jsondiffpatch": "^0.4.1",
"lodash": "^4.17.10",
"marked": "^0.3.13",
"md5": "~2",
"memfs": "^3.0.3",
"node-html-encoder": "~0.0.2",
"pngjs": "~0.4.0",
"puppeteer": "^10.1.0",
"qunit": "~2.10.0",
"request": "^2.87.0",
"request-promise-native": "^1.0.7",
"taffydb": "^2.7.3",
"terser": "~4.6.4",
"typescript": "4.4.2",
"webpack": "^5.47.1",
"webpack-cli": "^4.7.0",
"webpack-dev-server": "^3.11.2"
},
The only dependencies with major version differences are:
archiver
pngjs
terser
webpack-dev-server
I created https://github.com/phetsims/chipper/issues/1086 because it seemed good to try to remove all packages that aren't really needed.
taffydb
can be deleted, but @samreid added it as part of https://github.com/phetsims/chipper/commit/cca0001650b913a2b83340cca14fb28620b8b01d so I thought that I would make sure with him.~memfs
can be deleted, as I see no usages. It was added when webpack was being developed in https://github.com/phetsims/chipper/commit/47b826725b8a495178784dfeba941fdce10b415a. @jonathanolson please tell me if you don't want it gone.Please unassign after comment.
Next I'll test updating all of them to latest and see what breaks!
terser v5 had breaking changes, one of which I was unable to remedy, and so I gave up on it.
png looks safe, but it also if going from major version 0 to 6. I tested by modulifying bending-light, which uses mipmaps.
For webpack-dev-server, there were breaking changes, but I was able to parse through them and test it. Honestly I didn't spend too much time on this because I don't think that anyone ever uses it.
I tested many grunt commands, but probably not all of them. I am feeling good about things enough to commit.
Over to other assignees for comment about the above comment.
@jonathanolson gave me the go-ahead, and I removed taffydb also while I was at it. @samreid please review this issue. Anything else you would like done?
This has been a bold and brave issue! I think the best gauge of the status is that we have had sims branched with these shas, and I'm not aware of any problems caused by this. I'm not worried about the dependencies that stayed behind. Thanks for doing this! Closing.
From https://github.com/phetsims/perennial/issues/236, we discussed upgrading all our dependencies in package.json. @zepumph volunteered to take a look.