swagger-combine icon indicating copy to clipboard operation
swagger-combine copied to clipboard

Migrate from `traverse` to `neotraverse`

Open trivikr opened this issue 6 months ago • 0 comments

Description

The Ecosystem Performance was formed in July 2024 to cleanup, speedup, levelup the JavaScript Ecosystem. Socket Security team wrote a blog post about it https://socket.dev/blog/javascript-community-launches-e18e-initiative-to-improve-ecosystem-performance

On the e18e cleanup channel on Discord, multiple solutions are being discussed. One of them is to replace traverse with neotraverse, which reduces install size by around 3.5 MB and number of dependencies by 65. For details, check blog post https://puruvj.dev/blog/forking-and-fixing-traverse

The maxdome/swagger-combine depends on traverse https://github.com/maxdome/swagger-combine/blob/d240f610e60ed09070db3f58b4a9fc09bfc0b9b3/package.json#L51

Additional Data

There's a codemod available in https://github.com/es-tooling/module-replacements-codemods to migrate from traverse to neotraverse

trivikr avatar Aug 08 '24 04:08 trivikr