Commit Graph

2229 Commits

Author SHA1 Message Date
Cameron Diver
32acde0a99
refactor: Convert volumes module to typescript
Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-22 20:25:04 +00:00
Cameron Diver
91b553dd32
refactor: Convert compose/images module to typescript
Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-22 20:20:05 +00:00
Cameron Diver
f10ad00e01
deps: Update docker-toolbelt for typing fixes
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-22 13:26:46 +00:00
Cameron Diver
1af13d3373
typings: Improve database typings by allowing unknown dictionary keys
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-22 13:25:39 +00:00
Cameron Diver
fed01c355c
typings: Improve docker-utils typings
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-22 13:25:01 +00:00
Cameron Diver
d1e1297f6d
misc: Add Nullable<T> helper type
Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-21 11:18:41 +00:00
Cameron Diver
0505c0f976
config: Properly type the change events from config module
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-21 11:13:14 +00:00
Resin CI
acf2a6d6b5 v9.3.1 2019-01-16 14:29:54 +01:00
CameronDiver
37725a8e60
Merge pull request #869 from balena-io/seed-initial-logs
Send connection message when streaming local mode logs
2019-01-16 13:28:04 +00:00
Cameron Diver
06cdaddd71
Send connection message when streaming local mode logs
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-16 13:14:49 +00:00
Resin CI
11fc93af0f v9.3.0 2019-01-12 13:48:47 +01:00
CameronDiver
7524b3a109
Merge pull request #865 from balena-io/fully-typed-config
Add types to the config module, and remove unnecessary casts and validations
2019-01-12 12:46:53 +00:00
Cameron Diver
ea67e1d819
misc: Update package-lock
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-11 10:38:15 +00:00
Cameron Diver
9a98fc4c84
refactor: Small code changes
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-11 10:38:05 +00:00
Cameron Diver
6a3148ff80
refactor: Remove unnecessary validations and casts
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-11 10:37:25 +00:00
Cameron Diver
db74e748a1
refactor: Fully type and validate config module set and get
We define the type for each config value, and validate the data when
retrieving and setting it.

Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-11 10:37:25 +00:00
Cameron Diver
ac4866170e
refactor: Remove scaffolding for unused mutable config functions
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-11 10:37:24 +00:00
CameronDiver
6b5617be15
Merge pull request #866 from balena-io/861-logind-shutdown
fix: Use logind manager to request reboots and shutdowns
2019-01-09 17:11:11 +00:00
Cameron Diver
81b17faab1
fix: Use logind manager to request reboots and shutdowns
Change-type: patch
Closes: #861
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-09 11:23:43 +00:00
Resin CI
e8d5364bf8 v9.2.10 2019-01-08 17:55:10 +01:00
CameronDiver
5146b53d94
Merge pull request #864 from balena-io/fix-bound-lambda
Fix context bind errors by switching to async/await
2019-01-08 16:53:55 +00:00
Cameron Diver
a970ec5377
Fix context bind errors by switching to async/await
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-08 16:22:47 +00:00
Resin CI
f33a2adf12 v9.2.9 2019-01-08 15:59:41 +01:00
CameronDiver
3ca1163e8d
Merge pull request #860 from balena-io/typescript
More typecript conversions
2019-01-08 14:57:51 +00:00
Cameron Diver
07bc25400f
misc: Update package-lock
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-08 12:03:07 +00:00
Cameron Diver
de21c2ab2b
Specify TODO in DeviceApplicationState comment
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-08 11:59:56 +00:00
Cameron Diver
01ed7bb103
refactor: Convert ApiBinder module to typescript
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-08 11:59:56 +00:00
Cameron Diver
d5f4ac690f
refactor: Only promisify read and write locks once
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-08 11:59:54 +00:00
Cameron Diver
9decea1d3b
refactor: Convert supervisor api module to typescript
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-08 11:59:53 +00:00
Cameron Diver
3a130f4f9c
refactor: Change config modules export type to new-style
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-02 18:12:22 +00:00
Resin CI
6c1f36dd75 v9.2.8 2019-01-02 13:55:32 +01:00
CameronDiver
30b33a0cc9
Merge pull request #862 from balena-io/824-ascending-ports
compose: Normalise target ports for comparison with docker's output
2019-01-02 12:53:55 +00:00
Cameron Diver
dc34025545
refactor: Generate and normalise PortMaps from compose ports in-class
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-02 12:19:30 +00:00
Cameron Diver
e82749e63a
tests: Add test case for ascending ports issue
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-02 11:31:25 +00:00
Cameron Diver
557c32b80e
compose: Normalise target ports for comparison with docker's output
Docker always returns ports in ascending order, so if they aren't
specified like that in the compose, a restart loop would occur. This
patch changes the port maps to be stored in ascending order, based on
an alphabetical sort of the internalStart port (not taking into account
the protocol). This is the same as how Docker returns them, so they will
match, regardless of input form.

Change-type: patch
Closes: #824
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-02 11:24:56 +00:00
Resin CI
68aa34927b v9.2.7 2018-12-21 18:39:33 +01:00
CameronDiver
3f743b7477
Merge pull request #857 from balena-io/typescript
Further typescript conversions
2018-12-21 17:38:14 +00:00
Cameron Diver
95031e6e8a
misc: Update package-lock
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-21 17:18:49 +00:00
Cameron Diver
b32fba43e1
refactor: Convert DeviceConfig module to typescript
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-21 17:18:35 +00:00
Cameron Diver
7ba1ab981c
types: Make DeviceApplicationState reflect state endpoint
Also change the return format of ApplicationManager.getStatus(), which
does not conform to the above.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-21 17:18:33 +00:00
Cameron Diver
de5157c04c
refactor: Change export style of db to named
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-21 17:18:33 +00:00
Cameron Diver
64db38204f
refactor: Add default export to logger module
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-21 17:18:33 +00:00
Cameron Diver
f4f67a5afc
refactor: Convert host-config module to typescript
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-21 17:18:32 +00:00
Resin CI
59887bad57 v9.2.6 2018-12-21 14:22:15 +01:00
CameronDiver
ab7765f040
Merge pull request #859 from balena-io/exclude-ts-files
misc: Exclude typescript files from resulting image
2018-12-21 13:20:18 +00:00
Cameron Diver
34e5a7b048
misc: Exclude typescript files from resulting image
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-21 09:26:11 +00:00
Resin CI
7284863e6c v9.2.5 2018-12-20 19:00:28 +01:00
Page-
d57db859d4
Merge pull request #858 from balena-io/sync-watch
Use webpack watching for sync.js for a faster dev cycle
2018-12-20 17:58:09 +00:00
Pagan Gazzard
c0c805d072 Use webpack watching for sync.js for a faster dev cycle
Change-type: patch
2018-12-20 17:40:45 +00:00
Resin CI
851db08af0 v9.2.4 2018-12-20 18:04:21 +01:00