Balena-sdk

Latest version: v14.4.2

Safety actively analyzes 629855 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 114 of 125

6.0.0beta7

Changed

- Fix `resin.models.os.getLastModified` which was returning invalid dates due to improper usage of the response headers.
- Add support for the versioned OS downloads, see
`resin.models.os.{getSupportedVersions, getMaxSatisfyingVersion}`.
- `resin.models.os.{getLastModified, download}` now support the `version` param.
- Add `resin.models.os.getDownloadSize`.
- Fix potential issue with invalid dependencies by requiring resin-pine 5.0.2

6.0.0beta6

Changed

- Fix bug that broke `device.reboot` and `device.shutdown` with `_ is not defined`
- Add `device.getAllByParentDevice` to allow querying for dependent devices by parent
- Add an optional parent id to `application.create`
- Include `update_timestamp` in builds from `resin.models.build.getAllByApplication()`
- Add `resin.models.build.get()` to load individual build data
- Allow arbitrary extra pinejs options in `key.getAll`, and all `build.get*`, `application.get*` and `device.get*` methods.
- Ensure passwords are always submitted as strings when authenticating

6.0.0beta5

Changed

- Update the logs module to provide `historySinceLastClear` and `clear` methods.
- Ensure device/application.get (and related methods) return a clear error if given an undefined argument
- Ensure device/application.has returns false if passed undefined

6.0.0beta4

Changed

- Add `resin.models.environmentVariables.device.getAllByApplication`
- **Breaking!** Ensure all environmentVariables.device methods return names as `.name`, never `.env_var_name`

6.0.0beta3

Changed

- Expose the internal resin-request and resin-token instances
- Corrected `environmentVariables.getAll` in documentation to `.getAllByApplication`
- Add support for hooks to intercept requests, responses, and errors.
- Deprecated `resin.models.application.getApiKey()` (use `.generateApiKey()` instead).
- **Breaking!** Removed the (already deprecated) `resin.models.device.restart()` method, in favor of `resin.models.device.restartApplication()`
- Add factory function defaults so all options are optional. Example: `require('resin-sdk')();`
- Allow device & application ids for all methods, in addition to device uuids & application names, if the argument is a number instead of a string.

6.0.0beta2

Changed

- **Fixed** the issue with `resin-settings-client` not being installed in Node.js
- **Fixed** the issue with where the `settings.get('apiUrl')` was used instead of the provided option.

Page 114 of 125

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.