Skip to content

esthefanielanza/safe-release

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

safe-release

A tool to identify breaking and non-breaking changes between two versions of a JavaScript library.

Catalog of changes

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

Getting started

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.js

Usage scenarios

The tool provides four HTTP POST APIs: compareRemote, compare, compareFiles, and compareAllVersions.

Detecting changes between two tags/branches:

URL:

localhost:3000/compareRemote

Body:

{
    "repoURL": "https://github.com/owner/project"
    "version":
        {
            "older" : "v1.0",
            "newer" : "v2.0"
        }
}

Detecting changes between two directories:

URL:

localhost:3000/compare

Body:

{
    "older" : "./repos/older/project",
    "newer" : "./repos/newer/project"
}

Detecting changes between two files:

URL:

localhost:3000/compareFiles

Body:

{
    "older" : "./repos/older/project/file.js",
    "newer" : "./repos/newer/project/file.js"
}

Detecting changes in version histories:

URL:

localhost:3000/compareAllVersions

Body:

{
   "repoURL": "https://github.com/owner/project"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors