-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Awesome Endeavour - unsafe-eval no more! #991
Comments
Code coverage is dropping dramatically with this change because it is trying to check if we test the newly generated code: |
Just published a release of aegir which allows to ignore files from coverage: |
Needs this to get done - ipld/js-ipld-dag-pb#41 |
Good news, we don't need to migrate, just use this version of protocol-buffers I made which switches to regular functions instead of generating them and evaling: https://github.com/dignifiedquire/protocol-buffers/tree/fixes perf is a bit worse, but not that bad
|
Awesome @dignifiedquire ! Might make it a real module and not a fork (i.e maintained, CI, published to npm, etc)? |
Probably yes |
Renamed to protons: https://github.com/dignifiedquire/protons publish coming soon |
Just published https://www.npmjs.com/package/protons |
Awesome. Make sure to have a reference in the README to the original module and the reason that lead to the fork, other people will find useful. |
there already is? |
@diasdavid PRs are ready for you to review |
* feat: replace protocol-buffers with protons Ref ipfs/js-ipfs#991 * feat: upgrade to aegir@12
* feat: replace protocol-buffers with protons Ref ipfs/js-ipfs#991 * feat: upgrade to aegir@12 * chore: fix coverage command
* feat: upgrade to new aegir * feat: replace protocol-buffers with protons Ref ipfs/js-ipfs#991 * chore: fix travis config
Ok, everything merged, released and all the deps in the middle were also updated to make sure that npm always installs the latest patch version. Test away :) |
Tracking results:
|
Missed two modules
|
* feat: replace protocol-buffers with protons Ref ipfs/js-ipfs#991 * chore: ignore lockfiles
|
Closing? |
To make sure js-ipfs runs in all environments safely we want to get rid of all unsafe eval instances. The first round will be moving from protocol-buffers to
protobufjsprotons.fix: switch protobufjs libp2p/js-libp2p-crypto#107feat: switch protocol-buffers to protons libp2p/js-libp2p-crypto#110fix: switch to protobufjs ipld/js-ipld-dag-pb#39feat: replace protocol-buffers with protons ipld/js-ipld-dag-pb#42fix: switch to protobuf.js js-ipfs-unixfs#18Feat/protons js-ipfs-unixfs#19The text was updated successfully, but these errors were encountered: