0.0.3 • Published 20 days ago

package-version-bisect v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
20 days ago

Package Version Bisect

Package Version Bisect is a tool inspired by git bisect that helps you identify which version of a package introduced a bug or regression in your project.

Usage

Package Version Bisect works by following a process similar to git bisect. Here's how you can use it:

npx package-version-bisect --package <package-name> --good <good-version> --bad <bad-version>

From there you will be prompted to test different versions of the package and mark them as good or bad based on whether they exhibit the issue.

Reference

ParameterDescriptionRequiredExample
--packageThe name of the packageYes--package my-package
--goodA known good version of the packageYes--good 1.0.0
--badA known bad version of the packageYes--bad 1.2.0
--installCommand to run instead of npm install (useful when using another package manager or devDependencies)No--install yarn add -D

Future improvements

  • Improve algorithm by prioritizing testing major versions
  • Support for custom test commands for automated testing
  • Support for custom package managers (currently will always install with npm)
  • Support for private packages
  • Add option to include pre-release versions like 3.0.2-rc.1 (currently only includes stable versions)

Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvements, feel free to open an issue or submit a pull request on GitHub.

License

This project is licensed under the MIT License.

0.0.3

20 days ago

0.0.2

20 days ago

0.0.1

20 days ago