JS client library for the Data API. The client library supports these API versions:
- API v0 (link to documentation)
- API v4 (link to documentation)
The change log is located here.
The npm package for databuffer-query-js is hosted on GitHub packages. You need to setup the npm project in which you want to use databuffer-query-js to use the GitHub packages npm package registry (instead of the default registry). To do that GitHub packages documentation recommends to create a file .npmrc
in your npm project's root directory (next to package.json
). This file should look something like this:
@paulscherrerinstitute:registry=npm.pkg.github.com
Now you can add databuffer-query-js to your project as a dependency:
npm install --save '@paulscherrerinstitute/databuffer-query-js'
If you want to generate the API documentation, get the source and run
npm run docs
- Install node.js (at least version 12, includes
npm
) -- if possible, we recommend to install node.js through nvm - Clone this repo
- Install dependencies:
npm install
- Write tests
- Write code
- Run tests
- Commit, push
- Release new version
- Run
npm run release
to get a preview of what will happen - Run
npm run release:prod
to automate the following- Update version in
package.json
- Update version in
package-lock.json
- Update
CHANGELOG.md
- Commit changes and tag them
- Update version in
- Push the commits and tag:
git push --follow-tags origin master
- GitHub actions will publish the package
- Run