Repo
Freebumpgen bumps your TypeScript / TSX dependencies and makes code changes for you if anything breaks.
About Repo
Bumpgen is an AI agent that automates upgrading npm packages by making necessary code changes when breaking changes occur. It works by building the project to detect what broke after a dependency bump, then uses ts-morph to create an abstract syntax tree (AST) from the code to understand relationships between statements and type definitions. It creates a plan graph DAG to execute changes in the correct order, propagating fixes. Currently supports TypeScript and TSX dependencies. Bumpgen can be used via CLI or as a GitHub Action, ideally triggered on Dependabot or Renovatebot pull requests. Requires an OpenAI API key with the gpt-4-turbo-preview model. It is open source and free to use.
Key Features
Pros & Cons
- Automates the tedious process of fixing code after breaking dependency updates
- Integrates seamlessly with GitHub Actions and Dependabot/Renovatebot
- Uses AST analysis for precise and context-aware code modifications
- Open source with no licensing fees
- Reduces manual effort and potential errors in upgrading dependencies
- Currently only supports TypeScript and TSX; no support for other languages yet
- Requires an OpenAI API key with gpt-4-turbo-preview (paid model)
- Limited to npm packages
- Can be slow or resource-intensive due to AST processing and API calls