Compare commits

..

13 Commits

Author SHA1 Message Date
600457de61 v13.5.1 2022-05-27 02:21:54 +03:00
17db857e10 Merge pull request #2483 from balena-io/bump-preload-to-v3
Bump balena-preload to 12.1.0
2022-05-26 23:20:10 +00:00
eb45ae2a30 preload: Fix issue where balenaOS v2.98.3+ required an Internet connection to start apps
Devices with a v13+ supervisor will fail to start preloaded apps with a
v2 target state format if connectivity is not available since migration
of apps.json is not possible without API access.

This enables support for preloading v3 target state format in
images with supervisor v13 or above.

Change-type: patch
2022-05-26 20:48:07 +00:00
2eaf70bff3 v13.5.0 2022-05-25 15:01:45 +03:00
226f45f732 Merge pull request #2482 from balena-io/key-expiry
Add provisioning key expiry date option to config generate options
2022-05-25 11:59:06 +00:00
c4990f3a26 Update balena-sdk to 16.20.4
Update balena-sdk from 16.9.0 to 16.20.4

Change-type: patch
2022-05-24 21:53:12 +05:30
0195a3b18c Add provisioning key expiry date option to config generate options
Change-Type: minor
Signed-off-by: Nitish Agarwal <1592163+nitishagar@users.noreply.github.com>
2022-05-22 21:50:48 +05:30
3d90aeb122 v13.4.3 2022-05-19 21:10:42 +03:00
0571039bfe Merge pull request #2481 from balena-io/update-docker-progress
Update docker-progress to 5.1.3
2022-05-19 17:56:34 +00:00
ee668a4c5c Update docker-progress to 5.1.3
Update docker-progress from 5.0.1 to 5.1.3

Change-type: patch
2022-05-18 15:01:27 +01:00
ead4dbfab1 v13.4.2 2022-05-10 21:02:45 +03:00
0b498d09df Merge pull request #2479 from balena-io/kyle/balena-preload
preload: Fix detection of supervisor version for balenaOS v2.93.0
2022-05-10 17:08:59 +00:00
2b2c40c22d preload: Fix detection of supervisor version for balenaOS v2.93.0
Update balena-preload from 12.0.0 to 12.0.1

Change-type: patch
Signed-off-by: Kyle Harding <kyle@balena.io>
2022-05-10 11:29:14 -04:00
15 changed files with 1314 additions and 68 deletions

View File

@ -1,3 +1,961 @@
- commits:
- subject: "preload: Fix issue where balenaOS v2.98.3+ required an Internet
connection to start apps"
hash: eb45ae2a30a0a892813347372f69fb280a46cfb3
body: |
Devices with a v13+ supervisor will fail to start preloaded apps with a
v2 target state format if connectivity is not available since migration
of apps.json is not possible without API access.
This enables support for preloading v3 target state format in
images with supervisor v13 or above.
footer:
Change-type: patch
change-type: patch
author: pipex
nested: []
version: 13.5.1
title: "'Bump balena-preload to 12.1.0'"
date: 2022-05-26T22:42:55.482Z
- commits:
- subject: Update balena-sdk to 16.20.4
hash: c4990f3a26d23d0e9fbffa4058e3f7f09cf0c69c
body: |
Update balena-sdk from 16.9.0 to 16.20.4
footer:
Change-type: patch
change-type: patch
author: Nitish Agarwal
nested:
- commits:
- subject: bump @types/node from 10.17.60 to 12.20.500
hash: 141d825a0f2cea35fe1c592b37fea360975e719e
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.20.4
title: "'bump @types/node from 10.17.60 to 12.20.500'"
date: 2022-05-09T13:11:39.565Z
- commits:
- subject: "patch: bump browserify from 14.5.0 to 17.0.0"
hash: 2ee532e8dcc3eda0c54296f468f7f9a9e637071a
body: >
Bumps [browserify](https://github.com/browserify/browserify)
from 14.5.0 to 17.0.0.
- [Release notes](https://github.com/browserify/browserify/releases)
- [Changelog](https://github.com/browserify/browserify/blob/master/changelog.markdown)
- [Commits](https://github.com/browserify/browserify/compare/14.5.0...v17.0.0)
---
updated-dependencies:
- dependency-name: browserify
dependency-type: direct:development
update-type: version-update:semver-major
...
footer:
Signed-off-by: dependabot[bot] <support@github.com>
signed-off-by: dependabot[bot] <support@github.com>
author: dependabot[bot]
nested: []
version: balena-sdk-16.20.3
title: "'patch: bump browserify from 14.5.0 to 17.0.0'"
date: 2022-05-06T12:31:14.908Z
- commits:
- subject: "patch: bump tmp from 0.0.31 to 0.2.1"
hash: e905a6a8054297c89e75447e5ff48ca92e13bd49
body: >
Bumps [tmp](https://github.com/raszi/node-tmp) from 0.0.31 to
0.2.1.
- [Release notes](https://github.com/raszi/node-tmp/releases)
- [Changelog](https://github.com/raszi/node-tmp/blob/master/CHANGELOG.md)
- [Commits](https://github.com/raszi/node-tmp/compare/v0.0.31...v0.2.1)
---
updated-dependencies:
- dependency-name: tmp
dependency-type: direct:development
update-type: version-update:semver-minor
...
footer:
Signed-off-by: dependabot[bot] <support@github.com>
signed-off-by: dependabot[bot] <support@github.com>
author: dependabot[bot]
nested: []
version: balena-sdk-16.20.2
title: "'patch: bump tmp from 0.0.31 to 0.2.1'"
date: 2022-05-05T10:28:10.551Z
- commits:
- subject: Drop the non-populated apiUrl & actionsUrl properties from Config type
hash: 77d10a4546c8e0265fa176fc3be4d63db5e55ff5
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.20.1
title: "'Drop the non-populated apiUrl & actionsUrl properties from Config
type'"
date: 2022-05-05T06:40:56.261Z
- commits:
- subject: "models.apiKey: Update apiKeyInfo with expiryDate option"
hash: 58765109d8a165f93f94fe069cc4e879949f23fe
body: ""
footer:
Change-Type: minor
change-type: minor
Signed-off-by: Nitish Agarwal <1592163+nitishagar@users.noreply.github.com>
signed-off-by: Nitish Agarwal <1592163+nitishagar@users.noreply.github.com>
author: Nitish Agarwal
nested: []
- subject: "os.getConfig: Add typings for the provisioningKeyExpiryDate option"
hash: fd6299eb1d5cdf54727af23bea7fb6d746bc92b2
body: ""
footer:
Change-Type: minor
change-type: minor
Signed-off-by: Nitish Agarwal <1592163+nitishagar@users.noreply.github.com>
signed-off-by: Nitish Agarwal <1592163+nitishagar@users.noreply.github.com>
author: Balena CI
nested: []
version: balena-sdk-16.20.0
title: "'Add typings for provisioningKeyExpiryDate to os.getConfig and
expiryDate to model.apiKey'"
date: 2022-05-04T17:26:27.299Z
- commits:
- subject: "config.getAll: Mark the deviceTypes property as optional"
hash: 5ad014924e9497a49754384c4d1fd0924e4c0583
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.19.14
title: "'config.getAll: Mark the deviceTypes property as optional'"
date: 2022-05-04T11:03:37.354Z
- commits:
- subject: "patch: bump mocha from 3.5.3 to 10.0.0"
hash: 548996665b7e6159e5e209aa4a10987e071da024
body: >
Bumps [mocha](https://github.com/mochajs/mocha) from 3.5.3 to
10.0.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v3.5.3...v10.0.0)
---
updated-dependencies:
- dependency-name: mocha
dependency-type: direct:development
update-type: version-update:semver-major
...
footer:
Signed-off-by: dependabot[bot] <support@github.com>
signed-off-by: dependabot[bot] <support@github.com>
author: dependabot[bot]
nested: []
version: balena-sdk-16.19.13
title: "'patch: bump mocha from 3.5.3 to 10.0.0'"
date: 2022-05-03T21:51:32.488Z
- commits:
- subject: "config.getAll: Deprecate the pubnub property and mark as optional"
hash: c36325efa798653685c6b7595d653eacee634830
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.19.12
title: "'config.getAll: Deprecate the pubnub property and mark as optional'"
date: 2022-05-03T13:38:03.596Z
- commits:
- subject: "patch: bump mockttp from 0.9.1 to 2.7.0"
hash: fa44187e4e510171666f046d6a3a658f59956fd4
body: >-
Bumps [mockttp](https://github.com/httptoolkit/mockttp) from
0.9.1 to 2.7.0.
- [Release notes](https://github.com/httptoolkit/mockttp/releases)
- [Commits](https://github.com/httptoolkit/mockttp/compare/v0.9.1...v2.7.0)
---
updated-dependencies:
- dependency-name: mockttp
dependency-type: direct:development
update-type: version-update:semver-major
...
footer: {}
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.19.11
title: "'patch: bump mockttp from 0.9.1 to 2.0.0'"
date: 2022-05-03T11:57:12.390Z
- commits:
- subject: Reduce the prod typing dependencies
hash: 47bd9a204d82d465874ef3a6765eb93f16880b16
body: ""
footer:
Connects-to: "#1220"
connects-to: "#1220"
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.19.10
title: "'Reduce the prod typing dependencies'"
date: 2022-04-27T10:18:12.766Z
- commits:
- subject: "patch: Remove documentation.md from the NPM package"
hash: 1e4e33bfbb0e07fa89e5213d81e41dfbd36447ce
body: ""
footer: {}
author: Vipul Gupta
nested: []
version: balena-sdk-16.19.9
title: "'patch: Remove documentation.md from the NPM package'"
date: 2022-04-26T20:21:31.993Z
- commits:
- subject: "patch: Remove additional quotes"
hash: a6d3d4ea6f4e194efad51330008c0d67c2745837
body: ""
footer:
Signed-off-by: Vipul Gupta (@vipulgupta2048) <vipul@balena.io>
signed-off-by: Vipul Gupta (@vipulgupta2048) <vipul@balena.io>
author: Vipul Gupta (@vipulgupta2048)
nested: []
version: balena-sdk-16.19.8
title: "'patch: Remove additional quotes'"
date: 2022-04-20T18:19:59.893Z
- commits:
- subject: "tests: Update to work with latest major of superagent"
hash: f141912cfc09c930aa31f88afed006c8210c70d5
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
- subject: "patch: bump superagent from 3.8.3 to 7.1.2"
hash: ae3974af1965386bf236b7ae295e4a9ecc285f0c
body: >
Bumps [superagent](https://github.com/visionmedia/superagent)
from 3.8.3 to 7.1.2.
- [Release notes](https://github.com/visionmedia/superagent/releases)
- [Changelog](https://github.com/visionmedia/superagent/blob/master/HISTORY.md)
- [Commits](https://github.com/visionmedia/superagent/commits)
---
updated-dependencies:
- dependency-name: superagent
dependency-type: direct:development
update-type: version-update:semver-major
...
footer:
Signed-off-by: dependabot[bot] <support@github.com>
signed-off-by: dependabot[bot] <support@github.com>
author: dependabot[bot]
nested: []
version: balena-sdk-16.19.7
title: "'patch: bump superagent from 3.8.3 to 7.1.2'"
date: 2022-04-12T18:01:18.368Z
- commits:
- subject: "patch: bump dotenv from 4.0.0 to 16.0.0"
hash: b2ddda64df84d5a109b2adc1ee847ff5aef17000
body: >
Bumps [dotenv](https://github.com/motdotla/dotenv) from 4.0.0 to
16.0.0.
- [Release notes](https://github.com/motdotla/dotenv/releases)
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v4.0.0...v16.0.0)
---
updated-dependencies:
- dependency-name: dotenv
dependency-type: direct:development
update-type: version-update:semver-major
...
footer:
Signed-off-by: dependabot[bot] <support@github.com>
signed-off-by: dependabot[bot] <support@github.com>
author: dependabot[bot]
nested: []
version: balena-sdk-16.19.6
title: "'patch: bump dotenv from 4.0.0 to 16.0.0'"
date: 2022-04-11T17:42:33.529Z
- commits:
- subject: Bump karma to v6
hash: cae5254525ab7b1381d43f79fbd1ff4d63ae546d
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.19.5
title: "'Bump karma to v6'"
date: 2022-04-09T20:15:54.812Z
- commits:
- subject: Add dependabot configuration
hash: 8877acf9b8504b65feb689a57099599b4c95b228
body: ""
footer:
Change-type: patch
change-type: patch
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.19.4
title: "'Add dependabot configuration'"
date: 2022-04-09T06:45:20.416Z
- commits:
- subject: "tests: Update v5 model endpoint prefix references"
hash: 8cab46ad7b8c3c5bf825824749547e59092a9590
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.19.3
title: "'tests: Update v5 model endpoint prefix references'"
date: 2022-04-06T17:42:22.564Z
- commits:
- subject: Fix extracting a meaningful error message instead of "[object Object]"
hash: e768dc51607d156a99312578e46bc2d95770ce56
body: |
Update balena-request from 11.5.3 to 11.5.5
footer:
Change-type: patch
change-type: patch
See: https://github.com/balena-io-modules/balena-request/pull/164
see: https://github.com/balena-io-modules/balena-request/pull/164
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested:
- commits:
- subject: Fix extracting the response error from object response bodies
hash: 78dff444e207df7d6838f0e8bdf25b8673c065d6
body: ""
footer:
Change-type: patch
change-type: patch
author: Thodoris Greasidis
version: balena-request-11.5.5
title: "'Fix extracting the response error from object response bodies'"
date: 2022-04-06T15:35:57.195Z
- commits:
- subject: Drop explicit karma-chrome-launcher devDependency
hash: db032a369a48b9707665189e2a42497105f1c596
body: ""
footer:
Change-type: patch
change-type: patch
author: Thodoris Greasidis
version: balena-request-11.5.4
title: "'Drop explicit karma-chrome-launcher devDependency'"
date: 2022-04-06T12:08:34.148Z
version: balena-sdk-16.19.2
title: "'Fix extracting a meaningful error message instead of \"[object
Object]\"'"
date: 2022-04-06T16:27:21.352Z
- commits:
- subject: Update balena-request dependency to v11.5.3
hash: 914cf832c4ece2e010784d0d7e33b1a7f2c22437
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Matthew Yarmolinsky <matthew-timothy@balena.io>
signed-off-by: Matthew Yarmolinsky <matthew-timothy@balena.io>
author: Matthew Yarmolinsky
nested: []
version: balena-sdk-16.19.1
title: "'Update balena-request dependency to v11.5.3'"
date: 2022-04-05T17:08:39.357Z
- commits:
- subject: Add release.setKnownIssueList function for setting a release's known
issue list
hash: 474d84e71b6614a5e4610eee92addc607efca5b3
body: ""
footer:
Change-type: minor
change-type: minor
Signed-off-by: Matthew Yarmolinsky <matthew-timothy@balena.io>
signed-off-by: Matthew Yarmolinsky <matthew-timothy@balena.io>
author: Matthew Yarmolinsky
nested: []
version: balena-sdk-16.19.0
title: "'Add release.setKnownIssueList function for setting a release's known
issue list'"
date: 2022-03-16T17:09:05.209Z
- commits:
- subject: "minor: Add trying SDK in the browser"
hash: 50a6ca1844869eaccaf3275361a4016f7a284c05
body: >
Add information about using SDK in the browser as a partial.
Solving: https://github.com/balena-io/docs/issues/2205
footer:
Signed-off-by: Vipul Gupta (@vipulgupta2048) <vipul@balena.io>
signed-off-by: Vipul Gupta (@vipulgupta2048) <vipul@balena.io>
author: Vipul Gupta (@vipulgupta2048)
nested: []
version: balena-sdk-16.18.0
title: "'patch: Add trying SDK in the browser'"
date: 2022-03-14T19:40:22.550Z
- commits:
- subject: "device.getWithServiceDetails: Add the release id in the service info"
hash: fd01e59371d7691401eef605598bc50b5e62a0fb
body: ""
footer:
Change-type: minor
change-type: minor
Signed-off-by: Matthew Yarmolinsky <matthew-timothy@balena.io>
signed-off-by: Matthew Yarmolinsky <matthew-timothy@balena.io>
author: Matthew Yarmolinsky
nested: []
version: balena-sdk-16.17.0
title: "'device.getWithServiceDetails: Add the release id in the service info'"
date: 2022-03-11T12:50:59.901Z
- commits:
- subject: Replace internal use of deprecated OsVersion.rawVersion with
raw_version
hash: f29ac61bb82fe7008b92180864fd1e3f3d752445
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.16.1
title: "'Replace internal use of deprecated OsVersion.rawVersion with
raw_version'"
date: 2022-03-08T14:58:30.031Z
- commits:
- subject: Add support for named imports from .mjs files
hash: 9c41612f46495f8629785657bc20588e8e68e487
body: ""
footer:
Change-type: minor
change-type: minor
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
- subject: Update npx command to fix ts-compatibility tests
hash: 9251199e0ff6db1aaefa1f3fab826cd5d1a09112
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
- subject: Regenerate Documentation
hash: c317c03b3907896d54c8ac85348c24e9bb6f44cb
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
- subject: Update typescript to 4.6.2
hash: 66509d9263259db1d336fabf03e0294ff139ea3c
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.16.0
title: "'Add support for named imports from .mjs files'"
date: 2022-03-03T07:03:25.588Z
- commits:
- subject: Remove unnecessary vpn address filtering when fetching local addresses
hash: 12266a3c9349e5d944ba203e56f2fe80b5e97970
body: >
This has been handled by the supervisor since v2.2.0 / balenaOS
v1.14
from 2016-09-23 and is not relevant for any supported devices
footer:
Change-type: patch
change-type: patch
author: Pagan Gazzard
nested: []
version: balena-sdk-16.15.1
title: "'Remove unnecessary vpn address filtering when fetching local
addresses'"
date: 2022-02-24T20:47:13.290Z
- commits:
- subject: Add applicationClass parameter to application create function for
setting is_of__class property
hash: 03572ea47e5a8533baf2e583982850b38555ff84
body: ""
footer:
Change-type: minor
change-type: minor
Signed-off-by: Matthew Yarmolinsky <matthew-timothy@balena.io>
signed-off-by: Matthew Yarmolinsky <matthew-timothy@balena.io>
author: Matthew Yarmolinsky
nested: []
version: balena-sdk-16.15.0
title: "'Add applicationClass parameter to application create function for
setting is_of__class property'"
date: 2022-02-16T13:35:17.994Z
- commits:
- subject: Add name and description field to generateDeviceKey for device.
hash: acdbdd5164af283240270c7fe36075f4f5dc0b87
body: ""
footer:
Change-Type: minor
change-type: minor
Signed-off-by: Nitish Agarwal <1592163+nitishagar@users.noreply.github.com>
signed-off-by: Nitish Agarwal <1592163+nitishagar@users.noreply.github.com>
author: Nitish Agarwal
nested: []
version: balena-sdk-16.14.0
title: "'Add name and description field to generateDeviceKey for device.'"
date: 2022-02-15T09:27:49.508Z
- commits:
- subject: "typings: Fix conditional $or/$and/$not $filters"
hash: 66154499284b87164cc566f883d6f7e76ccde6a3
body: ""
footer:
Change-type: patch
change-type: patch
See: https://www.flowdock.com/app/rulemotion/balenalabs/threads/A9tGPitlQxoqMTpiPg6u-CsLltk
see: https://www.flowdock.com/app/rulemotion/balenalabs/threads/A9tGPitlQxoqMTpiPg6u-CsLltk
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.13.4
title: "typings: Fix conditional $or/$and/$not $filters"
date: 2022-01-27T22:28:10.937Z
- commits:
- subject: Deprecate the supportsBlink field of the DeviceTypeJson.DeviceType type
hash: 4345664e0a7cae107be549fc786bc5cd57bdec78
body: ""
footer:
Change-type: patch
change-type: patch
See: https://www.flowdock.com/app/rulemotion/resin-devices/threads/mIiQILpWO_W_GtNgKf0CKoQkL-z
see: https://www.flowdock.com/app/rulemotion/resin-devices/threads/mIiQILpWO_W_GtNgKf0CKoQkL-z
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.13.3
title: Deprecate the supportsBlink field of the DeviceTypeJson.DeviceType type
date: 2022-01-27T19:14:13.168Z
- commits:
- subject: Deprecate the logoUrl field of the DeviceTypeJson.DeviceType type
hash: 8f7b4dff641da965837fcd704853f2c5e09610e3
body: ""
footer:
Resolves: "#1188"
resolves: "#1188"
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.13.2
date: 2022-01-25T23:36:08.348Z
- commits:
- subject: Replace internal use of release.contains__image with release_image
hash: dfa5e737be01efbf54476d05536524ca8d7b1cf8
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.13.1
date: 2022-01-21T13:19:50.991Z
- commits:
- subject: "models: Deprecate the release.contains__image in favor of the term
form"
hash: f3eae5575eb5fe46b41d1cebfd852be98b310ab2
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
- subject: "models: Add the release_image term form property in the Release
typings"
hash: c8fe417933df0402bd00be1918de990ae10646f6
body: ""
footer:
Change-type: minor
change-type: minor
See: https://www.flowdock.com/app/rulemotion/r-beginners/threads/TDQW8r5EnnQSygJhsPNO9k8moDi
see: https://www.flowdock.com/app/rulemotion/r-beginners/threads/TDQW8r5EnnQSygJhsPNO9k8moDi
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.13.0
date: 2022-01-21T12:36:08.037Z
- commits:
- subject: "config.getConfigVarSchema: Send the token only when using a device
type"
hash: 3a844dcf2f877e428dbc907db79809fed3c8a8bc
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.12.1
date: 2022-01-17T14:37:28.414Z
- commits:
- subject: Replace DeviceTypeJson usage for alias resolution with model queries
hash: 2d049ed50c4e845c8ecf2c27caacd7534a5de704
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
- subject: "models/device-type: Support aliases as argument of the get() method"
hash: 436011248b2877ef032b0d79baff6d96fcdde0c7
body: ""
footer:
Change-type: minor
change-type: minor
Depends-on: https://github.com/balena-io/balena-api/pull/3493
depends-on: https://github.com/balena-io/balena-api/pull/3493
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.12.0
date: 2022-01-10T13:18:58.746Z
- commits:
- subject: Fix jsdoc example for balena.errors
hash: d08f5dbf27ea012ba08195250a476d6562acea2d
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Ken Bannister <kb2ma@runbox.com>
signed-off-by: Ken Bannister <kb2ma@runbox.com>
author: Ken Bannister
nested: []
version: balena-sdk-16.11.3
date: 2022-01-09T15:48:59.741Z
- commits:
- subject: "tests: Convert auth spec to async await"
hash: d78a82337a8c2948084f4fc77382d38475885411
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.11.2
date: 2021-12-30T19:00:54.994Z
- commits:
- subject: Fix buggy tests causing flakiness on node 16
hash: 2486c98537ad06c1a63b39157712a5ca81d5d6ea
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.11.1
date: 2021-12-30T18:30:27.077Z
- commits:
- subject: Alias device.getManifestBySlug as config.getDeviceTypeManifestBySlug
hash: 45fee8a702af732ae1a1e5c3be889d0d41d05481
body: ""
footer:
Change-type: minor
change-type: minor
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
- subject: Deprecate device.getManifestByApplication
hash: ff429ffc3c17444c8f0160a6608ba220489be10e
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.11.0
date: 2021-12-30T14:45:59.694Z
- commits:
- subject: "application.get: Add support for retrieving applications by uuid"
hash: 3374abeed77a93fd05a2363eac125bdf55b246b8
body: ""
footer:
Resolves: "#1016"
resolves: "#1016"
Change-type: minor
change-type: minor
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
- subject: "package.json: Rename the lint-fix npm script to lint:fix"
hash: 4acbde69c5c1d35727aaff1b825a8f9e011b4372
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.10.0
date: 2021-12-30T13:29:33.515Z
- commits:
- subject: "os: Avoid mutating the args in getAvailableOsVersions &
getAllOsVersion"
hash: 398f0b75da0a6d12fbee5ca0cfa92559cf2364aa
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.9.4
date: 2021-12-29T13:02:23.738Z
- commits:
- subject: "os: Replace semver normalization with balena-semver"
hash: 718a6c13b7a2a405aeb356be70e48c07ddf6b636
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.9.3
date: 2021-12-28T20:59:18.723Z
- commits:
- subject: Stop relying on the balena-pine module
hash: d1c9a6568e0c5bf4770fd8046bc6f32439583f02
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.9.2
date: 2021-12-28T15:37:02.735Z
- commits:
- subject: Enable nested changelogs for balena-hup-action-utils
hash: e9d988c8eaab222a1123279f88e1b89bd4200a25
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
signed-off-by: Thodoris Greasidis <thodoris@balena.io>
author: Thodoris Greasidis
nested: []
version: balena-sdk-16.9.1
date: 2021-12-28T13:51:06.330Z
- subject: Add provisioning key expiry date option to config generate options
hash: 0195a3b18c0dfb749d933aabc83ee63aa280faf6
body: ""
footer:
Change-Type: minor
change-type: minor
Signed-off-by: Nitish Agarwal <1592163+nitishagar@users.noreply.github.com>
signed-off-by: Nitish Agarwal <1592163+nitishagar@users.noreply.github.com>
author: Balena CI
nested: []
version: 13.5.0
title: "'Add provisioning key expiry date option to config generate options'"
date: 2022-05-24T17:06:08.810Z
- commits:
- subject: Update docker-progress to 5.1.3
hash: ee668a4c5c952a1e8b4bb10502ea212ce1721f82
body: |
Update docker-progress from 5.0.1 to 5.1.3
footer:
Change-type: patch
change-type: patch
author: Pagan Gazzard
nested:
- commits:
- subject: Reject on the stream closing if it has not already ended successfully
hash: e46ad706cdb32c20a9ef9358eed4567aef3d1b62
body: ""
footer:
Change-type: patch
change-type: patch
author: Pagan Gazzard
version: docker-progress-5.1.3
title: "'Reject on the stream closing if it has not already ended successfully'"
date: 2022-05-11T16:47:41.323Z
- commits:
- subject: Update dependencies
hash: 0ef9c38ccdb048d849a216a3ad52a047a5194073
body: ""
footer:
Change-type: patch
change-type: patch
author: Pagan Gazzard
version: docker-progress-5.1.2
title: "'Update dependencies'"
date: 2022-05-10T16:11:14.032Z
- commits:
- subject: Avoid breaking changes to PushPullOptions required properties
hash: dba7348ba87ca9d6299ebeab393fb8f6b5aa6ce5
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Kyle Harding <kyle@balena.io>
signed-off-by: Kyle Harding <kyle@balena.io>
author: Kyle Harding
version: docker-progress-5.1.1
title: "'Avoid breaking changes to PushPullOptions required properties'"
date: 2022-05-10T14:44:11.701Z
- commits:
- subject: Add support for building images with progress
hash: e072408ee951d3caf46af5050d0b71991d114614
body: >
Using build instead of pull allows to add metadata (e.g. labels)
to pulled images in an
atomic way. This commit adds the `DockerProgres.build()` method to
build an image from a remote (or local) source and track the progress of
the build.
footer:
Change-type: minor
change-type: minor
author: Felipe Lalanne
version: docker-progress-5.1.0
title: "'Add support for building images with progress'"
date: 2022-03-10T13:49:23.048Z
version: 13.4.3
title: "'Update docker-progress to 5.1.3'"
date: 2022-05-19T17:32:59.232Z
- commits:
- subject: "preload: Fix detection of supervisor version for balenaOS v2.93.0"
hash: 2b2c40c22d15d765f19b421976113939ec4fc455
body: |
Update balena-preload from 12.0.0 to 12.0.1
footer:
Change-type: patch
change-type: patch
Signed-off-by: Kyle Harding <kyle@balena.io>
signed-off-by: Kyle Harding <kyle@balena.io>
author: Kyle Harding
nested:
- commits:
- subject: Update supervisor image regex to include tagged images
hash: b1e291198125783410581442bc8adf4cee41a73d
body: >
Starting in balenaOS v2.93.0 the supervisor images are tagged
as balena_supervisor after being pulled from the balena registry.
footer:
Change-type: patch
change-type: patch
Signed-off-by: Kyle Harding <kyle@balena.io>
signed-off-by: Kyle Harding <kyle@balena.io>
author: Kyle Harding
nested: []
version: balena-preload-12.0.1
title: "'Update supervisor image regex to include tagged images'"
date: 2022-05-10T15:07:37.661Z
version: 13.4.2
title: "'preload: Fix detection of supervisor version for balenaOS v2.93.0'"
date: 2022-05-10T16:16:30.490Z
- commits:
- subject: "leave: Update log message to advise that device still needs deleting"
hash: c667ffa8eb60e321308bcf0cf474781cdb70e29c

View File

@ -4,6 +4,250 @@ All notable changes to this project will be documented in this file
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
This project adheres to [Semantic Versioning](http://semver.org/).
## 13.5.1 - 2022-05-26
* preload: Fix issue where balenaOS v2.98.3+ required an Internet connection to start apps [pipex]
## 13.5.0 - 2022-05-24
<details>
<summary> Update balena-sdk to 16.20.4 [Nitish Agarwal] </summary>
> ### balena-sdk-16.20.4 - 2022-05-09
>
> * bump @types/node from 10.17.60 to 12.20.500 [Thodoris Greasidis]
>
> ### balena-sdk-16.20.3 - 2022-05-06
>
> * patch: bump browserify from 14.5.0 to 17.0.0 [dependabot[bot]]
>
> ### balena-sdk-16.20.2 - 2022-05-05
>
> * patch: bump tmp from 0.0.31 to 0.2.1 [dependabot[bot]]
>
> ### balena-sdk-16.20.1 - 2022-05-05
>
> * Drop the non-populated apiUrl & actionsUrl properties from Config type [Thodoris Greasidis]
>
> ### balena-sdk-16.20.0 - 2022-05-04
>
> * models.apiKey: Update apiKeyInfo with expiryDate option [Nitish Agarwal]
> * os.getConfig: Add typings for the provisioningKeyExpiryDate option [Balena CI]
>
> ### balena-sdk-16.19.14 - 2022-05-04
>
> * config.getAll: Mark the deviceTypes property as optional [Thodoris Greasidis]
>
> ### balena-sdk-16.19.13 - 2022-05-03
>
> * patch: bump mocha from 3.5.3 to 10.0.0 [dependabot[bot]]
>
> ### balena-sdk-16.19.12 - 2022-05-03
>
> * config.getAll: Deprecate the pubnub property and mark as optional [Thodoris Greasidis]
>
> ### balena-sdk-16.19.11 - 2022-05-03
>
> * patch: bump mockttp from 0.9.1 to 2.7.0 [Thodoris Greasidis]
>
> ### balena-sdk-16.19.10 - 2022-04-27
>
> * Reduce the prod typing dependencies [Thodoris Greasidis]
>
> ### balena-sdk-16.19.9 - 2022-04-26
>
> * patch: Remove documentation.md from the NPM package [Vipul Gupta]
>
> ### balena-sdk-16.19.8 - 2022-04-20
>
> * patch: Remove additional quotes [Vipul Gupta (@vipulgupta2048)]
>
> ### balena-sdk-16.19.7 - 2022-04-12
>
> * tests: Update to work with latest major of superagent [Thodoris Greasidis]
> * patch: bump superagent from 3.8.3 to 7.1.2 [dependabot[bot]]
>
> ### balena-sdk-16.19.6 - 2022-04-11
>
> * patch: bump dotenv from 4.0.0 to 16.0.0 [dependabot[bot]]
>
> ### balena-sdk-16.19.5 - 2022-04-09
>
> * Bump karma to v6 [Thodoris Greasidis]
>
> ### balena-sdk-16.19.4 - 2022-04-09
>
> * Add dependabot configuration [Thodoris Greasidis]
>
> ### balena-sdk-16.19.3 - 2022-04-06
>
> * tests: Update v5 model endpoint prefix references [Thodoris Greasidis]
>
> ### balena-sdk-16.19.2 - 2022-04-06
>
>
> <details>
> <summary> Fix extracting a meaningful error message instead of "[object Object]" [Thodoris Greasidis] </summary>
>
>> #### balena-request-11.5.5 - 2022-04-06
>>
>> * Fix extracting the response error from object response bodies [Thodoris Greasidis]
>>
>> #### balena-request-11.5.4 - 2022-04-06
>>
>> * Drop explicit karma-chrome-launcher devDependency [Thodoris Greasidis]
>>
> </details>
>
>
> ### balena-sdk-16.19.1 - 2022-04-05
>
> * Update balena-request dependency to v11.5.3 [Matthew Yarmolinsky]
>
> ### balena-sdk-16.19.0 - 2022-03-16
>
> * Add release.setKnownIssueList function for setting a release's known issue list [Matthew Yarmolinsky]
>
> ### balena-sdk-16.18.0 - 2022-03-14
>
> * minor: Add trying SDK in the browser [Vipul Gupta (@vipulgupta2048)]
>
> ### balena-sdk-16.17.0 - 2022-03-11
>
> * device.getWithServiceDetails: Add the release id in the service info [Matthew Yarmolinsky]
>
> ### balena-sdk-16.16.1 - 2022-03-08
>
> * Replace internal use of deprecated OsVersion.rawVersion with raw_version [Thodoris Greasidis]
>
> ### balena-sdk-16.16.0 - 2022-03-03
>
> * Add support for named imports from .mjs files [Thodoris Greasidis]
> * Update npx command to fix ts-compatibility tests [Thodoris Greasidis]
> * Regenerate Documentation [Thodoris Greasidis]
> * Update typescript to 4.6.2 [Thodoris Greasidis]
>
> ### balena-sdk-16.15.1 - 2022-02-24
>
> * Remove unnecessary vpn address filtering when fetching local addresses [Pagan Gazzard]
>
> ### balena-sdk-16.15.0 - 2022-02-16
>
> * Add applicationClass parameter to application create function for setting is_of__class property [Matthew Yarmolinsky]
>
> ### balena-sdk-16.14.0 - 2022-02-15
>
> * Add name and description field to generateDeviceKey for device. [Nitish Agarwal]
>
> ### balena-sdk-16.13.4 - 2022-01-27
>
> * typings: Fix conditional $or/$and/$not $filters [Thodoris Greasidis]
>
> ### balena-sdk-16.13.3 - 2022-01-27
>
> * Deprecate the supportsBlink field of the DeviceTypeJson.DeviceType type [Thodoris Greasidis]
>
> ### balena-sdk-16.13.2 - 2022-01-25
>
> * Deprecate the logoUrl field of the DeviceTypeJson.DeviceType type [Thodoris Greasidis]
>
> ### balena-sdk-16.13.1 - 2022-01-21
>
> * Replace internal use of release.contains__image with release_image [Thodoris Greasidis]
>
> ### balena-sdk-16.13.0 - 2022-01-21
>
> * models: Deprecate the release.contains__image in favor of the term form [Thodoris Greasidis]
> * models: Add the release_image term form property in the Release typings [Thodoris Greasidis]
>
> ### balena-sdk-16.12.1 - 2022-01-17
>
> * config.getConfigVarSchema: Send the token only when using a device type [Thodoris Greasidis]
>
> ### balena-sdk-16.12.0 - 2022-01-10
>
> * Replace DeviceTypeJson usage for alias resolution with model queries [Thodoris Greasidis]
> * models/device-type: Support aliases as argument of the get() method [Thodoris Greasidis]
>
> ### balena-sdk-16.11.3 - 2022-01-09
>
> * Fix jsdoc example for balena.errors [Ken Bannister]
>
> ### balena-sdk-16.11.2 - Invalid date
>
> * tests: Convert auth spec to async await [Thodoris Greasidis]
>
> ### balena-sdk-16.11.1 - Invalid date
>
> * Fix buggy tests causing flakiness on node 16 [Thodoris Greasidis]
>
> ### balena-sdk-16.11.0 - Invalid date
>
> * Alias device.getManifestBySlug as config.getDeviceTypeManifestBySlug [Thodoris Greasidis]
> * Deprecate device.getManifestByApplication [Thodoris Greasidis]
>
> ### balena-sdk-16.10.0 - Invalid date
>
> * application.get: Add support for retrieving applications by uuid [Thodoris Greasidis]
> * package.json: Rename the lint-fix npm script to lint:fix [Thodoris Greasidis]
>
> ### balena-sdk-16.9.4 - 2021-12-29
>
> * os: Avoid mutating the args in getAvailableOsVersions & getAllOsVersion [Thodoris Greasidis]
>
> ### balena-sdk-16.9.3 - 2021-12-28
>
> * os: Replace semver normalization with balena-semver [Thodoris Greasidis]
>
> ### balena-sdk-16.9.2 - 2021-12-28
>
> * Stop relying on the balena-pine module [Thodoris Greasidis]
>
> ### balena-sdk-16.9.1 - 2021-12-28
>
> * Enable nested changelogs for balena-hup-action-utils [Thodoris Greasidis]
>
</details>
* Add provisioning key expiry date option to config generate options [Balena CI]
## 13.4.3 - 2022-05-19
<details>
<summary> Update docker-progress to 5.1.3 [Pagan Gazzard] </summary>
> ### docker-progress-5.1.3 - 2022-05-11
>
> * Reject on the stream closing if it has not already ended successfully [Pagan Gazzard]
>
> ### docker-progress-5.1.2 - 2022-05-10
>
> * Update dependencies [Pagan Gazzard]
>
> ### docker-progress-5.1.1 - 2022-05-10
>
> * Avoid breaking changes to PushPullOptions required properties [Kyle Harding]
>
> ### docker-progress-5.1.0 - 2022-03-10
>
> * Add support for building images with progress [Felipe Lalanne]
>
</details>
## 13.4.2 - 2022-05-10
<details>
<summary> preload: Fix detection of supervisor version for balenaOS v2.93.0 [Kyle Harding] </summary>
> ### balena-preload-12.0.1 - 2022-05-10
>
> * Update supervisor image regex to include tagged images [Kyle Harding]
>
</details>
## 13.4.1 - 2022-04-11
* leave: Update log message to advise that device still needs deleting [Taro Murao]

View File

@ -811,6 +811,10 @@ path to the config JSON file, see `balena os build-config`
custom key name assigned to generated provisioning api key
#### --provisioning-key-expiry-date PROVISIONING-KEY-EXPIRY-DATE
expiry date assigned to generated provisioning api key (format: YYYY-MM-DD)
## device local-mode &#60;uuid&#62;
Output current local mode status, or enable/disable local mode
@ -2236,6 +2240,10 @@ paths to local files to place into the 'system-connections' directory
custom key name assigned to generated provisioning api key
#### --provisioning-key-expiry-date PROVISIONING-KEY-EXPIRY-DATE
expiry date assigned to generated provisioning api key (format: YYYY-MM-DD)
## os initialize &#60;image&#62;
Initialize an os image for a device with a previously
@ -2373,6 +2381,10 @@ supervisor cloud polling interval in minutes (e.g. for device variables)
custom key name assigned to generated provisioning api key
#### --provisioning-key-expiry-date PROVISIONING-KEY-EXPIRY-DATE
expiry date assigned to generated provisioning api key (format: YYYY-MM-DD)
## config inject &#60;file&#62;
Inject a 'config.json' file to a balenaOS image file or attached SD card or
@ -3020,10 +3032,6 @@ Use QEMU for ARM architecture emulation during the image build
Alternative Dockerfile name/path, relative to the source folder
#### --dockercompose DOCKERCOMPOSE
Alternative docker-compose.yml name in the source root folder
#### --logs
No-op and deprecated since balena CLI v12.0.0. Build logs are now shown by default.
@ -3248,10 +3256,6 @@ Use QEMU for ARM architecture emulation during the image build
Alternative Dockerfile name/path, relative to the source folder
#### --dockercompose DOCKERCOMPOSE
Alternative docker-compose.yml name in the source root folder
#### --logs
No-op and deprecated since balena CLI v12.0.0. Build logs are now shown by default.

View File

@ -37,6 +37,7 @@ interface FlagsDef {
wifiKey?: string;
appUpdatePollInterval?: string;
'provisioning-key-name'?: string;
'provisioning-key-expiry-date'?: string;
help: void;
}
@ -81,7 +82,11 @@ export default class ConfigGenerateCmd extends Command {
dev: cf.dev,
device: {
...cf.device,
exclusive: ['fleet', 'provisioning-key-name'],
exclusive: [
'fleet',
'provisioning-key-name',
'provisioning-key-expiry-date',
],
},
deviceApiKey: flags.string({
description:
@ -120,6 +125,11 @@ export default class ConfigGenerateCmd extends Command {
description: 'custom key name assigned to generated provisioning api key',
exclusive: ['device'],
}),
'provisioning-key-expiry-date': flags.string({
description:
'expiry date assigned to generated provisioning api key (format: YYYY-MM-DD)',
exclusive: ['device'],
}),
help: cf.help,
};
@ -196,6 +206,7 @@ export default class ConfigGenerateCmd extends Command {
answers.version = options.version;
answers.developmentMode = options.dev;
answers.provisioningKeyName = options['provisioning-key-name'];
answers.provisioningKeyExpiryDate = options['provisioning-key-expiry-date'];
// Generate config
const { generateDeviceConfig, generateApplicationConfig } = await import(

View File

@ -114,7 +114,7 @@ ${dockerignoreHelp}
];
public static usage = 'deploy <fleet> [image]';
// TODO: docker-compose naming
public static flags: flags.Input<FlagsDef> = {
source: flags.string({
description:

View File

@ -31,6 +31,7 @@ interface FlagsDef {
config?: string;
help: void;
'provisioning-key-name'?: string;
'provisioning-key-expiry-date'?: string;
}
export default class DeviceInitCmd extends Command {
@ -97,6 +98,10 @@ export default class DeviceInitCmd extends Command {
'provisioning-key-name': flags.string({
description: 'custom key name assigned to generated provisioning api key',
}),
'provisioning-key-expiry-date': flags.string({
description:
'expiry date assigned to generated provisioning api key (format: YYYY-MM-DD)',
}),
help: cf.help,
};
@ -185,6 +190,14 @@ export default class DeviceInitCmd extends Command {
options['provisioning-key-name'],
);
}
if (options['provisioning-key-expiry-date']) {
configureCommand.push(
'--provisioning-key-expiry-date',
options['provisioning-key-expiry-date'],
);
}
await runCommand(configureCommand);
}

View File

@ -43,6 +43,7 @@ interface FlagsDef {
'system-connection': string[];
'initial-device-name'?: string;
'provisioning-key-name'?: string;
'provisioning-key-expiry-date'?: string;
}
interface ArgsDef {
@ -58,6 +59,7 @@ interface Answers {
wifiSsid?: string;
wifiKey?: string;
provisioningKeyName?: string;
provisioningKeyExpiryDate?: string;
}
export default class OsConfigureCmd extends Command {
@ -121,7 +123,7 @@ export default class OsConfigureCmd extends Command {
config: flags.string({
description:
'path to a pre-generated config.json file to be injected in the OS image',
exclusive: ['provisioning-key-name'],
exclusive: ['provisioning-key-name', 'provisioning-key-expiry-date'],
}),
'config-app-update-poll-interval': flags.integer({
description:
@ -138,7 +140,14 @@ export default class OsConfigureCmd extends Command {
description: 'WiFi SSID (network name) (non-interactive configuration)',
}),
dev: cf.dev,
device: { ...cf.device, exclusive: ['fleet', 'provisioning-key-name'] },
device: {
...cf.device,
exclusive: [
'fleet',
'provisioning-key-name',
'provisioning-key-expiry-date',
],
},
'device-type': flags.string({
description:
'device type slug (e.g. "raspberrypi3") to override the fleet device type',
@ -161,6 +170,11 @@ export default class OsConfigureCmd extends Command {
description: 'custom key name assigned to generated provisioning api key',
exclusive: ['config', 'device'],
}),
'provisioning-key-expiry-date': flags.string({
description:
'expiry date assigned to generated provisioning api key (format: YYYY-MM-DD)',
exclusive: ['config', 'device'],
}),
help: cf.help,
};
@ -235,6 +249,7 @@ export default class OsConfigureCmd extends Command {
answers.version = osVersion;
answers.developmentMode = options.dev;
answers.provisioningKeyName = options['provisioning-key-name'];
answers.provisioningKeyExpiryDate = options['provisioning-key-expiry-date'];
if (_.isEmpty(configJson)) {
if (device) {

View File

@ -138,7 +138,6 @@ export default class PushCmd extends Command {
char: 'e',
default: false,
}),
// TODO: docker-compose naming
dockerfile: flags.string({
description:
'Alternative Dockerfile name/path, relative to the source folder',

View File

@ -61,7 +61,6 @@ export interface ComposeOpts {
export interface ComposeCliFlags {
emulated: boolean;
dockerfile?: string;
dockercompose?: string;
logs: boolean;
nologs: boolean;
'multi-dockerignore': boolean;

View File

@ -1639,7 +1639,6 @@ function truncateString(str: string, len: number): string {
return str.slice(0, str.lastIndexOf('\n'));
}
// TODO: docker-compose naming
export const composeCliFlags: flags.Input<ComposeCliFlags> = {
emulated: flags.boolean({
description:
@ -1650,10 +1649,6 @@ export const composeCliFlags: flags.Input<ComposeCliFlags> = {
description:
'Alternative Dockerfile name/path, relative to the source folder',
}),
dockercompose: flags.string({
description:
'Alternative docker-compose.yml name in the source root folder',
}),
logs: flags.boolean({
description:
'No-op and deprecated since balena CLI v12.0.0. Build logs are now shown by default.',

View File

@ -92,7 +92,6 @@ async function readDockerIgnoreFile(projectDir: string): Promise<string> {
return dockerIgnoreStr;
}
// TODO: docker-compose naming
/**
* Create an instance of '@balena/dockerignore', initialized with the contents
* of a .dockerignore file (if any) found at the given directory argument, plus

View File

@ -86,7 +86,6 @@ If the --registry-secrets option is not specified, and a secrets.yml or
secrets.json file exists in the balena directory (usually $HOME/.balena),
this file will be used instead.`;
// TODO: docker-compose naming
export const dockerignoreHelp =
'DOCKERIGNORE AND GITIGNORE FILES \n' +
`By default, the balena CLI will use a single ".dockerignore" file (if any) at

89
npm-shrinkwrap.json generated
View File

@ -1,6 +1,6 @@
{
"name": "balena-cli",
"version": "13.4.1",
"version": "13.5.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -2550,17 +2550,15 @@
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/@types/docker-modem/-/docker-modem-3.0.2.tgz",
"integrity": "sha512-qC7prjoEYR2QEe6SmCVfB1x3rfcQtUr1n4x89+3e0wSTMQ/KYCyf+/RAA9n2tllkkNc6//JMUZePdFRiGIWfaQ==",
"dev": true,
"requires": {
"@types/node": "*",
"@types/ssh2": "*"
}
},
"@types/dockerode": {
"version": "3.3.8",
"resolved": "https://registry.npmjs.org/@types/dockerode/-/dockerode-3.3.8.tgz",
"integrity": "sha512-/Hip29GzPBWfbSS87lyQDVoB7Ja+kr8oOFWXsySxNFa7jlyj3Yws8LaZRmn1xZl7uJH3Xxsg0oI09GHpT1pIBw==",
"dev": true,
"version": "3.3.9",
"resolved": "https://registry.npmjs.org/@types/dockerode/-/dockerode-3.3.9.tgz",
"integrity": "sha512-SYRN5FF/qmwpxUT6snJP5D8k0wgoUKOGVs625XvpRJOOUi6s//UYI4F0tbyE3OmzpI70Fo1+aqpzX27zCrInww==",
"requires": {
"@types/docker-modem": "*",
"@types/node": "*"
@ -2696,9 +2694,9 @@
"integrity": "sha512-9VN+6yxLOPLOav+7PwjZbxiID2bVaeq0ED4qSQmdQTdjnXJSaCVKTR58t15oqH1H5t8Ng2ZX1SabJVoN9Q34bw=="
},
"@types/json-schema": {
"version": "7.0.9",
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.9.tgz",
"integrity": "sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ=="
"version": "7.0.11",
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz",
"integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ=="
},
"@types/jsonstream": {
"version": "0.8.30",
@ -2989,7 +2987,6 @@
"version": "0.5.52",
"resolved": "https://registry.npmjs.org/@types/ssh2/-/ssh2-0.5.52.tgz",
"integrity": "sha512-lbLLlXxdCZOSJMCInKH2+9V/77ET2J6NPQHpFI0kda61Dd1KglJs+fPQBchizmzYSOJBgdTajhPqBO1xxLywvg==",
"dev": true,
"requires": {
"@types/node": "*",
"@types/ssh2-streams": "*"
@ -2999,7 +2996,6 @@
"version": "0.1.9",
"resolved": "https://registry.npmjs.org/@types/ssh2-streams/-/ssh2-streams-0.1.9.tgz",
"integrity": "sha512-I2J9jKqfmvXLR5GomDiCoHrEJ58hAOmFrekfFqmCFd+A6gaEStvWnPykoWUwld1PNg4G5ag1LwdA+Lz1doRJqg==",
"dev": true,
"requires": {
"@types/node": "*"
}
@ -3812,9 +3808,9 @@
}
},
"balena-preload": {
"version": "12.0.0",
"resolved": "https://registry.npmjs.org/balena-preload/-/balena-preload-12.0.0.tgz",
"integrity": "sha512-BD4ayIqqopJB0KFFjjlz0rIpcbbHojG8El8qOBLJHvidatgtgVs5xFWBoF5B7fgdJdjRsclA/AbUMZwovN7t3w==",
"version": "12.1.0",
"resolved": "https://registry.npmjs.org/balena-preload/-/balena-preload-12.1.0.tgz",
"integrity": "sha512-nsvsbYYbfkJ4kQ7Hmvq4RDw6yZp36rScNJEoZwY2xIB7Jn+OxIC5EP+XRj6tMkzvKMJYZsdCS/nbSlABxKK6ZQ==",
"requires": {
"archiver": "^3.1.1",
"balena-sdk": "^16.0.0",
@ -3985,49 +3981,61 @@
}
},
"balena-sdk": {
"version": "16.9.0",
"resolved": "https://registry.npmjs.org/balena-sdk/-/balena-sdk-16.9.0.tgz",
"integrity": "sha512-iuIiXAEkDXoEtUJzFG5RO+rvudqMsoBppdgQLOrnIdWc14T+mvwWUFKAHHAkvxnA0GLmbxqGp7qo3uVMgS2Ojw==",
"version": "16.20.4",
"resolved": "https://registry.npmjs.org/balena-sdk/-/balena-sdk-16.20.4.tgz",
"integrity": "sha512-e6uho8v9S7TO0V1RMCBWNLViY0+PH39snQuHKGy5jZ1YfwTMk/e/Po/99SUBylcAyqqXGN9QjV5Id2X4fiPQow==",
"requires": {
"@balena/es-version": "^1.0.0",
"@types/json-schema": "^7.0.9",
"@types/lodash": "^4.14.168",
"@types/memoizee": "^0.4.5",
"@types/node": "^10.17.55",
"@types/node": "^12.20.50",
"abortcontroller-polyfill": "^1.7.1",
"balena-auth": "^4.1.0",
"balena-errors": "^4.7.1",
"balena-hup-action-utils": "~4.1.0",
"balena-pine": "^12.4.0",
"balena-register-device": "^7.1.0",
"balena-request": "^11.5.0",
"balena-request": "^11.5.5",
"balena-semver": "^2.3.0",
"balena-settings-client": "^4.0.6",
"lodash": "^4.17.21",
"memoizee": "^0.4.15",
"moment": "^2.29.1",
"ndjson": "^2.0.0",
"pinejs-client-core": "^6.9.6",
"tslib": "^2.1.0"
},
"dependencies": {
"@types/node": {
"version": "10.17.60",
"resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.60.tgz",
"integrity": "sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw=="
"version": "12.20.52",
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.52.tgz",
"integrity": "sha512-cfkwWw72849SNYp3Zx0IcIs25vABmFh73xicxhCkTcvtZQeIez15PpwQN8fY3RD7gv1Wrxlc9MEtfMORZDEsGw=="
},
"balena-hup-action-utils": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/balena-hup-action-utils/-/balena-hup-action-utils-4.1.0.tgz",
"integrity": "sha512-aLVlbdXhJi1rHpTmF9/YbheWtgAmwDUBPk3eKXhJuOZWg4XDnhbP4DUOdPBIM+U+rvXcPeBKOYqsswO0ymd96w==",
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/balena-hup-action-utils/-/balena-hup-action-utils-4.1.1.tgz",
"integrity": "sha512-VpyH3py5NPMBJe1fwj5NFUeq58i2V5VaXU1EMa0ja/kUCUwTM1HL5nfNNOU3bd66V+VGqCw49iO7Wppccg3pPg==",
"requires": {
"balena-semver": "^2.0.0",
"tslib": "^2.0.0"
}
},
"balena-request": {
"version": "11.5.5",
"resolved": "https://registry.npmjs.org/balena-request/-/balena-request-11.5.5.tgz",
"integrity": "sha512-sQG+OBAUKOW4KENPRGqit/34l3kWZqoT+aUdpitIG8QdKUrRjKQkjkCmDzprDEDJuXfWoCToKdleN9tYwRCXEw==",
"requires": {
"@balena/node-web-streams": "^0.2.3",
"balena-errors": "^4.7.1",
"fetch-ponyfill": "^7.1.0",
"fetch-readablestream": "^0.2.0",
"progress-stream": "^2.0.0",
"qs": "^6.9.4",
"tslib": "^2.0.0"
}
},
"tslib": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz",
"integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ=="
}
}
},
@ -4568,7 +4576,7 @@
"buffer-shims": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/buffer-shims/-/buffer-shims-1.0.0.tgz",
"integrity": "sha1-mXjOMXOIxkmth5MCjDR37wRKi1E="
"integrity": "sha512-Zy8ZXMyxIT6RMTeY7OP/bDndfj6bwCan7SS98CEndS6deHwWPpseeHlwarNcBim+etXnF9HBc1non5JgDaJU1g=="
},
"buffers": {
"version": "0.1.1",
@ -6170,12 +6178,13 @@
}
},
"docker-progress": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/docker-progress/-/docker-progress-5.0.1.tgz",
"integrity": "sha512-xVkMZNe48A6jxINzz8X/0jAy5YzAZy8u9QRK8nNSlVp1XHEhYfN0QlFZKOFzq1TO99if+c+yBpn4YZuGcZHG3Q==",
"version": "5.1.3",
"resolved": "https://registry.npmjs.org/docker-progress/-/docker-progress-5.1.3.tgz",
"integrity": "sha512-Ou+o4ISCxMvuoeG09S/irjgleLdG4ZhNiqo31p8vOzDfZm5+JaS2ouHo4lc4kXKqTN6c5eCm+62oRGoaPLDY1A==",
"requires": {
"@types/dockerode": "^3.3.9",
"JSONStream": "^1.3.5",
"lodash": "^4.17.15"
"lodash": "^4.17.21"
}
},
"docker-qemu-transpose": {
@ -17224,9 +17233,9 @@
}
},
"typescript": {
"version": "4.5.4",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.4.tgz",
"integrity": "sha512-VgYs2A2QIRuGphtzFV7aQJduJ2gyfTljngLzjpfW9FoYZF6xuw1W0vW9ghCKLfcWrCFxK81CSGRAvS1pn4fIUg==",
"version": "4.6.4",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz",
"integrity": "sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==",
"dev": true
},
"unbox-primitive": {
@ -17387,7 +17396,7 @@
"bluebird": {
"version": "3.4.7",
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.4.7.tgz",
"integrity": "sha1-9y12C+Cbf3bQjtj66Ysomo0F+rM="
"integrity": "sha512-iD3898SR7sWVRHbiQv+sHUtHnMvC1o3nW5rAcqnq3uOn07DSAppZYUkIGslDz6gXC7HfunPe7YVBgoEJASPcHA=="
},
"process-nextick-args": {
"version": "1.0.7",

View File

@ -1,6 +1,6 @@
{
"name": "balena-cli",
"version": "13.4.1",
"version": "13.5.1",
"description": "The official balena Command Line Interface",
"main": "./build/app.js",
"homepage": "https://github.com/balena-io/balena-cli",
@ -127,7 +127,7 @@
"@types/chai-as-promised": "^7.1.4",
"@types/cli-truncate": "^2.0.0",
"@types/common-tags": "^1.8.1",
"@types/dockerode": "^3.3.8",
"@types/dockerode": "^3.3.9",
"@types/ejs": "^3.1.0",
"@types/express": "^4.17.13",
"@types/fs-extra": "^9.0.13",
@ -191,7 +191,7 @@
"simple-git": "^2.48.0",
"sinon": "^11.1.2",
"ts-node": "^10.4.0",
"typescript": "^4.5.4"
"typescript": "^4.6.4"
},
"dependencies": {
"@balena/dockerignore": "^1.0.2",
@ -207,9 +207,9 @@
"balena-errors": "^4.7.1",
"balena-image-fs": "^7.0.6",
"balena-image-manager": "^7.1.1",
"balena-preload": "^12.0.0",
"balena-preload": "^12.1.0",
"balena-release": "^3.2.0",
"balena-sdk": "^16.9.0",
"balena-sdk": "^16.20.4",
"balena-semver": "^2.3.0",
"balena-settings-client": "^4.0.7",
"balena-settings-storage": "^7.0.0",
@ -225,7 +225,7 @@
"common-tags": "^1.7.2",
"denymount": "^2.3.0",
"docker-modem": "3.0.0",
"docker-progress": "^5.0.1",
"docker-progress": "^5.1.3",
"docker-qemu-transpose": "^1.1.1",
"dockerode": "^3.3.1",
"ejs": "^3.1.6",
@ -288,6 +288,6 @@
"windosu": "^0.3.0"
},
"versionist": {
"publishedAt": "2022-04-11T16:10:47.566Z"
"publishedAt": "2022-05-26T22:42:56.418Z"
}
}

View File

@ -59,6 +59,7 @@ if (process.platform !== 'win32') {
'--config-network ethernet',
'--initial-device-name testDeviceName',
'--provisioning-key-name testKey',
'--provisioning-key-expiry-date 2050-12-12',
];
const { err } = await runCommand(command.join(' '));