Upgrade dependencies to fix security issues#70
Upgrade dependencies to fix security issues#70prantlf wants to merge 2 commits intomattbasta:masterfrom
Conversation
|
Thanks for putting this together. It's been on my list for a while, but fairly low priority because of the low risk of exploit (I certainly hope nobody is using crass in a server-side runtime environment!). I would like to eventually move to an async API. But doing that safely is tricky (lots of remembering to await). I think that change would need to be preceded by a port to TS, which is what almost all of my code is these days anyway. |
|
I'll try to comb through this PR soon! |
|
Yes, it's not going to be trivial. I'm afraid, that I posted this PR too early with too little work... Having the The only method, which really needs to be asynchronous is And you're right, the risk is low. It's just that I tried a "hotfix" by forking the last synchronous |
|
I took a bit of time to do some work this morning. Namely, I've done the following:
To get svgo, the plan is to make |
I upgraded all dependencies in
package.jsonto their current versions.The new version of SVGO returns Promises. I'll try to modify crass to do it too. It will be a bigger change and a breaking one.