Commit graph

140 commits

Author SHA1 Message Date
Lars Strojny
1d3452cdb0
Separate SonarCloud step to safely run it on PRs 2022-11-23 14:53:13 +01:00
Lars Strojny
7c7673f1c2
Fix code smells (#36)
Fix code smells detected by SonarCloud
2022-11-23 14:30:23 +01:00
Lars Strojny
97de2f0905
Set up SonarCloud static analysis 2022-11-23 11:42:44 +01:00
Lars Strojny
ddc85f5359 Release 0.0.14 2022-11-21 03:08:04 +01:00
Lars Strojny
600a5bae61 Remove jq 2022-11-21 03:06:10 +01:00
Lars Strojny
b7364927df Add a few interesting badges 2022-11-21 03:00:34 +01:00
dependabot[bot]
cd08a3ecf6
Bump eslint from 8.27.0 to 8.28.0 (#33) 2022-11-21 02:49:01 +01:00
Lars Strojny
8f2d80a7fb
Unpin and upgrade jest-mock (#32)
Previously failed because of a type error deep in node_modules, let’s
try again.
2022-11-18 13:23:37 +01:00
dependabot[bot]
f70de293a5
Bump hap-nodejs from 0.10.4 to 0.11.0 (#31) 2022-11-18 13:11:43 +01:00
dependabot[bot]
e791b690aa
Bump typescript from 4.8.4 to 4.9.3 (#30) 2022-11-18 12:41:55 +01:00
dependabot[bot]
cc81f5868e
Bump @typescript-eslint/parser from 5.42.1 to 5.43.0 (#28) 2022-11-18 09:46:07 +01:00
dependabot[bot]
3e5006dd5d
Bump @typescript-eslint/eslint-plugin from 5.42.1 to 5.43.0 (#29) 2022-11-18 09:45:53 +01:00
dependabot[bot]
c24a9731c1
Bump fastify from 4.9.2 to 4.10.0 (#27) 2022-11-18 09:43:00 +01:00
Lars Strojny
fc1bf8b334 Release 0.0.13 2022-11-17 13:20:16 +01:00
Lars Strojny
6f7686ba34
Auto-generate configuration documentation in README (#26)
Auto-generate the documentation of the configuration options in
`README.md` from `config.schema.json`.
2022-11-17 13:19:22 +01:00
Lars Strojny
261fa74ac9
Add configuration option for the metric server interface (#25)
Add a configuration option `interface` to allow configuring where the
HTTP metric server should bind to.
2022-11-17 13:15:07 +01:00
Lars Strojny
04706f69d5 Release 0.0.12 2022-11-16 23:29:53 +01:00
Lars Strojny
2e8f2d0579 Clean build on release 2022-11-16 23:28:48 +01:00
Lars Strojny
9127408d23 Ignore release script 2022-11-16 23:26:32 +01:00
Lars Strojny
b8a4c2c9e6 Release 0.0.11 2022-11-16 22:50:48 +01:00
Lars Strojny
ce8876793d
Fall back to IPv4 if EAFNOSUPPORT (#24)
If listening to `::` fails, try `0.0.0.0` instead. Addresses #22
2022-11-16 22:47:41 +01:00
Lars Strojny
f8007b55ca
Add experimental support for basic auth and TLS (#23)
Allows restricting access to the monitoring endpoint using basic auth
and configure TLS certificates.
2022-11-16 22:19:08 +01:00
Lars Strojny
edf4e605e5
Cache expensive CI steps (#21)
Speed-up pipeline by caching eslint, prettier, TypeScript, node_modules
2022-11-14 02:43:27 +01:00
Lars Strojny
57e8a4d831 Reverse lint/tests exclusion on CI, better job name labels 2022-11-14 02:02:07 +01:00
Lars Strojny
479fbe5727 Refactor internal APIs 2022-11-14 01:20:53 +01:00
Lars Strojny
4fad222b82 Format insecure.conf path in README 2022-11-13 13:40:10 +01:00
Lars Strojny
34be5bbca2 Implement consistent request logging 2022-11-13 13:34:33 +01:00
Lars Strojny
8102144b85 Explicit type imports 2022-11-13 13:34:09 +01:00
Lars Strojny
83f64d3999 Release 0.0.10 2022-11-13 11:14:15 +01:00
Lars Strojny
b74721ee76
Handle null values in characteristics (#20)
Apparently `characteristic.value` can also be null. Let’s handle it
properly. Fixes #19
2022-11-13 11:13:13 +01:00
Lars Strojny
249e4cf10c Ignore local release script 2022-11-10 13:54:12 +01:00
Lars Strojny
1828c4836a Release 0.0.9 2022-11-10 13:46:23 +01:00
Lars Strojny
fd113c1868 Run npm test in CI mode for releases 2022-11-10 13:43:23 +01:00
Lars Strojny
ab90f03264
Set up release-it as the release management tool (#18)
Will manage the release and automatically generate proper releases on
GitHub
2022-11-10 13:40:34 +01:00
Lars Strojny
52efa69bf0
Automate code generation for config schema (#16)
Use a fork of https://github.com/lstrojny/json-schema-to-zod to generate
the boundary check for the config automatically.
2022-11-10 13:06:16 +01:00
Lars Strojny
1088a78079
Strict type imports (#17)
When a symbols is only used as a type, require `import type {…}`
2022-11-10 13:00:45 +01:00
Lars Strojny
58d2683e38 0.0.8 2022-11-10 11:45:37 +01:00
Lars Strojny
822f0da2eb
Set charset in metrics content type (#15)
Send `Content-Type: text/plain; charset=utf-8; version=0.0.4` instead of
`Content-Type: text/plain; version=0.0.4` so that special characters in
names have a chance to work.
2022-11-10 11:10:31 +01:00
Lars Strojny
f6bc8ca90c
Use code generation for UUID service map (#14)
Instead of introspecting *hap-nodejs* at runtime for UUID to service
mapping, generate the map during build time.
2022-11-10 11:07:31 +01:00
Lars Strojny
38bf24df90 0.0.7 2022-11-09 21:44:24 +01:00
Lars Strojny
828ae9eade Improve release management script 2022-11-09 21:40:34 +01:00
Lars Strojny
71e45a3d8c
More user-friendly (and developer-friendly) zod error reporting (#12)
Show each error message from zod and include an excerpt of the data
around the failing path if possible
2022-11-09 21:36:23 +01:00
Lars Strojny
0735327b7c 0.0.6 2022-11-09 19:22:44 +01:00
Lars Strojny
ad2715699f
Add funding info 2022-11-09 19:09:43 +01:00
Lars Strojny
2bd799ca9c
Integration tests for the fastify HTTP adapter (#11) 2022-11-09 19:08:24 +01:00
Lars Strojny
e1b5303384 Release management 2022-11-09 18:23:18 +01:00
Lars Strojny
bab8714b05 0.0.5 2022-11-09 14:58:36 +01:00
Lars Strojny
eead518f95
Gracefully handle unknown service UUIDs (#10) 2022-11-09 14:58:03 +01:00
Lars Strojny
8130292d2b
Include Prometheus logo in README 2022-11-09 14:31:41 +01:00
Lars Strojny
ef14844589 0.0.4 2022-11-09 14:11:22 +01:00