balena-sdk 16.11.3 → 16.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,7 +4,16 @@ All notable changes to this project will be documented in this file
4
4
  automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
5
5
  This project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
- ## 16.11.3 - 2022-01-10
7
+ ## 16.12.1 - 2022-01-17
8
+
9
+ * config.getConfigVarSchema: Send the token only when using a device type [Thodoris Greasidis]
10
+
11
+ ## 16.12.0 - 2022-01-10
12
+
13
+ * Replace DeviceTypeJson usage for alias resolution with model queries [Thodoris Greasidis]
14
+ * models/device-type: Support aliases as argument of the get() method [Thodoris Greasidis]
15
+
16
+ ## 16.11.3 - 2022-01-09
8
17
 
9
18
  * Fix jsdoc example for balena.errors [Ken Bannister]
10
19
 
package/DOCUMENTATION.md CHANGED
@@ -5126,7 +5126,7 @@ This method returns a single device type.
5126
5126
 
5127
5127
  | Param | Type | Default | Description |
5128
5128
  | --- | --- | --- | --- |
5129
- | idOrSlug | <code>String</code> \| <code>Number</code> | | device type slug (string) or id |
5129
+ | idOrSlug | <code>String</code> \| <code>Number</code> | | device type slug (string) or alias (string) or id |
5130
5130
  | [options] | <code>Object</code> | <code>{}</code> | extra pine options to use |
5131
5131
 
5132
5132
  **Example**
@@ -5137,6 +5137,12 @@ balena.models.deviceType.get('raspberry-pi').then(function(deviceType) {
5137
5137
  ```
5138
5138
  **Example**
5139
5139
  ```js
5140
+ balena.models.deviceType.get('raspberrypi').then(function(deviceType) {
5141
+ console.log('resolved alias:', deviceType);
5142
+ });
5143
+ ```
5144
+ **Example**
5145
+ ```js
5140
5146
  balena.models.deviceType.get('raspberry-pi', function(error, deviceType) {
5141
5147
  if (error) throw error;
5142
5148
  console.log(deviceType);