Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
* origin/main:
  chore: release v2.0.0-alpha.1
  gha
  Changelog and license year
  Alpha1 Preparations (Apollon77#140)
  Bump braces from 3.0.2 to 3.0.3 (Apollon77#135)
  Bump actions/checkout from 3 to 4 (Apollon77#119)
  Bump actions/setup-node from 3 to 4 (Apollon77#121)
  • Loading branch information
JeroenVdb committed Jul 3, 2024
2 parents 7490bd6 + 8b5da92 commit 05aee14
Show file tree
Hide file tree
Showing 16 changed files with 267 additions and 247 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Check if PR should be auto-merged
uses: ahmadnassri/action-dependabot-auto-merge@v2
Expand Down
33 changes: 20 additions & 13 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,19 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}


- name: Install Dependencies
run: npm ci
- name: Build project
run: npm run build

# Runs adapter tests on all supported node versions and OSes
lib-tests:
Expand All @@ -47,18 +48,20 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x, 22.x]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm ci
- name: Build project
run: npm run build

# - name: Run local tests
# run: npm test
Expand All @@ -79,10 +82,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -99,17 +102,21 @@ jobs:
BODY="${BODY//$'\n'/'%0A'}"
BODY="${BODY//$'\r'/'%0D'}"
echo "::set-output name=BODY::$BODY"
if [[ $VERSION == *"-"* ]] ; then
echo "::set-output name=TAG::--tag next"
fi
- name: Install Dependencies
run: npm ci
#Automatically generate binaries for Win/MacOS/Linux
- name: Create Tokensaver binaries
run: npm run build-tokensaver

- name: Build project
run: npm run build

- name: Publish package to npm
run: |
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
npm whoami
npm publish
npm publish ${{ steps.extract_release.outputs.TAG }}
- name: Create Github Release
id: create_release
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2021-2022 Apollon77 <ingo@fischer-ka.de>
Copyright (c) 2021-2024 Apollon77 <ingo@fischer-ka.de>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,12 @@ See [`src/example.ts`](./src/example.ts).
* Implement interval data update in library or only from outside?

## Changelog:

### __WORK IN PROGRESS__
### 2.0.0-alpha.1 (2024-07-02)
* BREAKING: Username/Passwort and Proxy Authentications are removed and replaced by the new Daikin Portal Authentication! You need to re-authenticate!
* BREAKING: DaikinCloudController class constructor changed and has new options structure!
* (jacoscaz) Port to Typescript
* (jacoscaz) Switch to Daikin's OIDC-based Onecta API
* (Apollon77) Enhancements to restore some make sure former functionality is still possible to use

### 1.2.4 (2023-09-09)
* (Apollon77) Make sure to store only existing refresh tokens
Expand Down
52 changes: 26 additions & 26 deletions cert/cert.key
Original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aYu+ihG4QHLsc6MAHkcaswNvzbyEHtHpyKHTMiIYcIGxdvi
bqFXDSQRowxXsgyRDWmnP6u2fEF68dSXlJ5BOtgqqF2OCaCjHnl+E7x28WeksZRJ
fYPhkGQ3UceMHd9oEWo//Uo=
-----END PRIVATE KEY-----
42 changes: 21 additions & 21 deletions cert/cert.pem
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
-----BEGIN CERTIFICATE-----
MIIEFTCCAv2gAwIBAgIUcjAWwfDOv7FkmvXGaNs3oxLmsyIwDQYJKoZIhvcNAQEL
BQAwgY0xCzAJBgNVBAYTAlVTMQ4wDAYDVQQIDAVTdGF0ZTERMA8GA1UEBwwITG9j
MIID8TCCAtmgAwIBAgIUTl+duPkIUXI1h7w2hiMbymkFUx8wDQYJKoZIhvcNAQEL
BQAwgYExCzAJBgNVBAYTAlVTMQ4wDAYDVQQIDAVTdGF0ZTERMA8GA1UEBwwITG9j
YXRpb24xGjAYBgNVBAoMEU9yZ2FuaXphdGlvbiBOYW1lMRwwGgYDVQQLDBNPcmdh
bml6YXRpb25hbCBVbml0MSEwHwYDVQQDDBhkYWlraW4tb25lY3RhMm1xdHQubG9j
YWwwHhcNMjQwNjI4MDc1MjEwWhcNMzQwNjI2MDc1MjEwWjCBjTELMAkGA1UEBhMC
VVMxDjAMBgNVBAgMBVN0YXRlMREwDwYDVQQHDAhMb2NhdGlvbjEaMBgGA1UECgwR
T3JnYW5pemF0aW9uIE5hbWUxHDAaBgNVBAsME09yZ2FuaXphdGlvbmFsIFVuaXQx
ITAfBgNVBAMMGGRhaWtpbi1vbmVjdGEybXF0dC5sb2NhbDCCASIwDQYJKoZIhvcN
AQEBBQADggEPADCCAQoCggEBAKXah9koCqk5S0Qc5p52Rizem/zo/oJXe1EpcJXo
EygXSiPYeFgPqPEv3YvRjIyNWL5iy/ixYaMUHctRu6te4PEqxTwSiSxEVUXFEpFA
WO0g7a1+eeRVaR1zJdRydKAQFZ+PwbC3Q666fGWVL04tSn/XM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JfLzpPLXNshQKDje9qgz7q9Ip8rApIxbuADTWexNFW47NYJaw
+FR3KbJQJkFYbYTXIjTgs/fRKk+oFoT0V9Q3p3Mj3YLVtF7q3+InEktrVKAdx2OB
KJFSjpjzFLPB39Mo2JFzerEYaD95K9hFqy+DZBALZqudyYXgsjXK/P52Cu1F2gXW
Ovw09djpt1K4CwZ8yea3vhQftntwNV9mxi4tUcxVb5+rFrFav/a8tvKAVy20RfET
HsOylq9HfqhfQywjvJkKzGJXFfE717LwDHid6zz8LY4hJSfEfwQT23oa8j1PKoRM
KsDiDOs+/UPXzGMCAwEAAaNfMF0wDgYDVR0PAQH/BAQDAgOIMBMGA1UdJQQMMAoG
CCsGAQUFBwMBMBcGA1UdEQQQMA6CDGRhaWtpbi5sb2NhbDAdBgNVHQ4EFgQUtMiA
5rZoHyT32uu5Uw5WF9mUKXEwDQYJKoZIhvcNAQELBQADggEBAIH7BId2vX8XWs2A
qcBHAlGpt2GEdC0xSdGx/L70t/pFvYcwYLnTFYgPaDU/XzaBtwPSH71wTGTujjPF
GgDevYQxCU6/92vXO2GLgX2OAooD0+r53OO1H+dKMoRqpkX4IAqSMgZ7D5UxF76l
pG0N+bNu5TvkIXxLRojhpAmO1H82/hSRV6mObPUqL3rKHzMb5yGuCBXMbfqiF68e
QaKeHEuwBt9EiC+QJbu1GLVuh38Yih2v2TtfZQEkasisZqr7wjJSSCosZ04U56t0
qbx3M8TrjsNWJB51WOGCzmWIqh+26DK2T8KXFmfJg2W+thygEItFAhXMCILhAOwQ
UpMJ67w=
-----END CERTIFICATE-----
Empty file modified cert/generate.sh
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions cert/req.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ C = US
ST = State
L = Location
O = Organization Name
OU = Organizational Unit
CN = daikin-onecta2mqtt.local
OU = Organizational Unit
CN = daikin.local
[v3_req]
keyUsage = critical, digitalSignature, keyAgreement
extendedKeyUsage = serverAuth
subjectAltName = @alt_names
[alt_names]
DNS.1 = daikin-onecta2mqtt.local
DNS.1 = daikin.local
32 changes: 16 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "daikin-controller-cloud",
"version": "2.0.0-alpha.0",
"version": "2.0.0-alpha.1",
"description": "Interact with Daikin Cloud devices and retrieve Tokens",
"author": "Apollon77 <iobroker@fischer-ka.de>",
"contributors": [],
Expand All @@ -26,7 +26,7 @@
"url": "https://github.com/Apollon77/daikin-controller-cloud/issues"
},
"scripts": {
"prepare": "npm run build",
"prepublish": "npm run build",
"build": "tsc -p .",
"release": "release-script",
"build-tokensaver": "pkg example/tokensaver.js"
Expand Down
Loading

0 comments on commit 05aee14

Please sign in to comment.