A tool to identify breaking and non-breaking changes between two versions of a JavaScript library.
| Category | Description |
|---|---|
| Breaking | remove function, remove class, add parameter without default value |
| Non-breaking | add function, add class, add parameter with default value, remove parameter |
First, make sure you have git and a Node.js (version 8.12) installed in your system.
git clone https://github.com/esthefanielanza/safe-release.git
cd safe-release
node app.jsThe tool provides four HTTP POST APIs: compareRemote, compare, compareFiles, and compareAllVersions.
URL:
localhost:3000/compareRemoteBody:
{
"repoURL": "https://github.com/owner/project"
"version":
{
"older" : "v1.0",
"newer" : "v2.0"
}
}URL:
localhost:3000/compareBody:
{
"older" : "./repos/older/project",
"newer" : "./repos/newer/project"
}URL:
localhost:3000/compareFilesBody:
{
"older" : "./repos/older/project/file.js",
"newer" : "./repos/newer/project/file.js"
}URL:
localhost:3000/compareAllVersionsBody:
{
"repoURL": "https://github.com/owner/project"
}