All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
5.0.0 - 2018-01-25
- Fix peerDependency version format [Pagan Gazzard]
- Add balena-request 14.x as a valid peer dependency [Pagan Gazzard]
- Update @balena/lint to v7 [Thodoris Greasidis]
- Update balena-request to 13.3.0 [Thodoris Greasidis]
- Fix balena-request peer dependency [Otávio Jacobi]
- Drop supoport for node 14 & 16 [Otávio Jacobi]
- Update balena-auth to 5.0.0 & balena-request to 12.0.1 [Thodoris Greasidis]
- Use typescript via a devDependency rather than npx [Thodoris Greasidis]
- Update mockttp to 3.8.0 [Thodoris Greasidis]
- Update minimum node version to v14 [Kyle Harding]
- Update flowzone.yml [Kyle Harding]
- Delete redundant .resinci.yml [Thodoris Greasidis]
- Fix overriding the whole webpack resolve section of karma tests [Thodoris Greasidis]
- Fix key uniqueness check [Thodoris Greasidis]
- Convert the tests to TypeScript [Thodoris Greasidis]
- Fix karma browser tests in node 18 [Thodoris Greasidis]
- Specify the supported node engines in the package.json [Thodoris Greasidis]
- Replace balenaCI with flowzone [Thodoris Greasidis]
- Remove the travis & appveyor configurations [Thodoris Greasidis]
- tsconfig: Enable strict type checking [Thodoris Greasidis]
- Update devDependencies [Thodoris Greasidis]
- Update the uuid package to v9 [Thodoris Greasidis]
- Prevent creating a package-lock.json [Thodoris Greasidis]
- Drop support for node 10 in favor of 14 & 16 [Thodoris Greasidis]
- Support
supervisorVersion
/osVersion
/osVariant
/macAddress
fields [Pagan Gazzard]
- Update dependencies [Pagan Gazzard]
- Switch from randomstring to uuid for generating device uuids [Pagan Gazzard]
- Add .versionbot/CHANGELOG.yml for nested changelogs [Pagan Gazzard]
- Update to balena-request 11.x [Pagan Gazzard]
- Switch to returning native promises [Pagan Gazzard]
- Update to typed-error 3.x [Pagan Gazzard]
- Convert to typescript [Pagan Gazzard]
- Switch to a named export [Pagan Gazzard]
- Drop callback interface in favor of promise interface [Pagan Gazzard]
- Export ApiError [Cameron Diver]
- Convert tests to js [Thodoris Greasidis]
- Install typed-error v2 [Cameron Diver]
- Extend API exception to include full response object [Miguel Casqueira]
- Update mocha to fix node v12 deprecation warning [Thodoris Greasidis]
- Prevent balena-request from overwriting the authorization header [Thodoris Greasidis]
- Send the api key within the Authorisation header [Cameron Diver]
- Make user id optional [Pagan Gazzard]
- GenerateUniqueKey: Reduce generated UUID size to 16 bytes. [James Harton]
- Use a prepare step that doesn't run tests, to be balenaCI compliant [Thodoris Greasidis]
- Tests: Disable node 10 on appveyor since a warning is inferred as error [Thodoris Greasidis]
- Drop node 4 in favor of 8 & 10 on appveyor & travis [Thodoris Greasidis]
- Tests: Use balena-config-karma to get balenaCI compliance [Thodoris Greasidis]
- Tests: Use headless Chrome instead of phantomjs [Thodoris Greasidis]
- Tests: Use mockttp to test real requests, instead of fetch-mock [Thodoris Greasidis]
- Exclude the build output from the repo [Thodoris Greasidis]
- Rename everything 'resin' to 'balena' [Thodoris Greasidis]
- Updated resin-request peer dependency to ^9.0.2
4.1.1 - 2018-01-25
- Fixed tests
4.1.0 - 2017-04-10
- Updated resin-request, removing the need to use a token in the provided resin-request instance
4.0.1 - 2017-01-06
- Passing
refreshToken: false
toresin-request
to save unnecessary request to/whoami
- Internal refactoring to tests
- Run Karma tests again
4.0.0 - 2017-01-04
- Breaking: Moved to factory, in line with Resin-SDK, accepting a Resin-Request instance at runtime
- Breaking: Request errors are now thrown by Resin-Request directly, so their format has changed slightly:
- Request timeouts now throw Promise.TimeoutError instead of raw Error, with the message "operation timed out" instead of "timeout"
- Error responses from the server now throw ResinRequestError (see resin-errors) instead of raw Error, with the body prefixed with "Request error: "
3.0.0 - 2016-10-04
- Changed
register()
to work with the new device registration flow. - Changed
generateUUID()
togenerateUniqueKey()
to reflect that it should now be used for both generating a uuid and an api key.
2.1.1 - 2016-10-03
- Updated dependencies and optimize for SDK browser build.
- Switched to using the standardized resin-lint module for linting.
2.1.0 - 2016-02-18
- Add optional
apiPrefix
option.
2.0.1 - 2015-12-04
- Omit tests in NPM package.
2.0.0 - 2015-09-02
- Make
generateUUID()
asynchronous. - Change
generateUUID()
to usecrypto.randomBytes()
.
1.1.0 - 2015-08-31
- Expose
generateUUID()
. - Set
registered_at
to the current time when registering a device.
- Fix documentation issues and inconsistencies on
register()
. - Return the complete
device
object onregister()
.
1.0.1 - 2015-05-20
- Do not throw sync exceptions on argument expectations.