https://developer.dansksupermarked.dk/v1/api/libraries/javascript/ds-api/
getAll
now correctly used the query object for all requests
- Removed node hacks
- No body in request for GET and HEAD requests
- Added browserify transforms to be able to use babel
- Bugfixes
- Post should use
body
instead of deprecateddata
in fetch
- Post should use
- Bugfixes:
- Firefox can not use forEach on Headers in fetch
- Bugfixes:
- Use count 0 if no items are found
- Use HEAD request for counting
- Map headers to javascript object.
- not dependent of jQuery, but using latest EcmaScript methods, which should be polyfilled with polyfill.io
- jQuery polyfill added
- refactored source code using ES6
count
has been added
getAll
have implementedprogress
for the promise
get
,getAll
andsetKey
added- pagination functions
- meta data (headers)
Feel free to contribute to the SDK. Just make sure to comply with the rulesets for JSHint and jscs.
To contribute make a fork of this project and when you are happy with the code make a pull request.
Before submitting a Pull Request make sure that all tests are run successfully:
$ npm test
If you need any help with the SDK write a request to [email protected].