Make sure that you edit the source files in TypeScript (*.ts) files.
To install the TypeScript compiler, run npm install -g typescript.
You can build TypeScript to JavaScript using the TypeScript compiler
(and run it with npm script: npm run tsc).
- Load
test/in your web browser
Each of the test suite files contains Jasmine unit test suite and Benchmark.js performance test suite.
To run Benchmark.js performance tests, press "Run Tests" button.
- Go to directory where you have cloned the repo
- Install dev dependencies (Jasmine Node.js module) by running command
npm install - Run test
npm run test
- Testing
coreonly:npm run test-core - Testing
duplexonly:npm run test-duplex
- Run test
npm run bench(Please, consider performance when making any change)
- Testing *
core*only:npm run bench-core - Testing
duplexonly:npm run bench-duplex
The release is done from master branch.
- Don't break too much. See how many projects depend on this.
- Make sure that the browser tests pass in Chrome, Firefox, Safari, Edge and IE11
- Make sure that the NodeJS tests pass
npm install && npm run test - Execute
npm run buildto transpile, bundle and minify. - Execute
npm versionlike (npm version [ major | minor | patch | premajor | preminor | prepatch | prerelease]) - Call
git pushto push the changes toorigin master - Call
git push --tagsto push the tag toorigin master - Call
npm publishto push the new version to NPM. Read more - Call
npm view fast-json-patch dist-tagsto verify that the new version was published in NPM. - Explain the changes (at least a summary of the commit log) in GitHub Releases.