Skip to content

Commit e373a14

Browse files
committed
feat: Update API endpoints and GitHub Actions for v0.1.0 release
- Fix telemetry endpoint: /v1/telemetry/batch → /v1/telemetry - Fix history endpoint: /v1/history/keeping → /v1/history - Update actions/checkout from v4 to v6 - Update softprops/action-gh-release from v1 to v2
1 parent 48da28c commit e373a14

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
test:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v6
2020

2121
- name: Setup Bun
2222
uses: oven-sh/setup-bun@v1
@@ -41,7 +41,7 @@ jobs:
4141
matrix:
4242
os: [macos-latest, ubuntu-latest, windows-latest]
4343
steps:
44-
- uses: actions/checkout@v4
44+
- uses: actions/checkout@v6
4545

4646
- name: Setup Bun
4747
uses: oven-sh/setup-bun@v1

‎.github/workflows/release.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
version: ${{ steps.version.outputs.version }}
3535
should_release: ${{ steps.check.outputs.should_release }}
3636
steps:
37-
- uses: actions/checkout@v4
37+
- uses: actions/checkout@v6
3838
with:
3939
fetch-depth: 0
4040

@@ -137,7 +137,7 @@ jobs:
137137
artifact: autohand-windows-x64.exe
138138

139139
steps:
140-
- uses: actions/checkout@v4
140+
- uses: actions/checkout@v6
141141

142142
- name: Setup Bun
143143
uses: oven-sh/setup-bun@v1
@@ -173,7 +173,7 @@ jobs:
173173
if: needs.prepare.outputs.should_release == 'true'
174174
runs-on: ubuntu-latest
175175
steps:
176-
- uses: actions/checkout@v4
176+
- uses: actions/checkout@v6
177177
with:
178178
fetch-depth: 0
179179
token: ${{ secrets.GITHUB_TOKEN }}
@@ -303,7 +303,7 @@ Download the appropriate binary for your system from the assets below.
303303
return changelog;
304304
305305
- name: Create Release
306-
uses: softprops/action-gh-release@v1
306+
uses: softprops/action-gh-release@v2
307307
with:
308308
tag_name: v${{ needs.prepare.outputs.version }}
309309
name: ${{ needs.prepare.outputs.channel == 'release' && format('Release v{0}', needs.prepare.outputs.version) || format('{0} v{1}', needs.prepare.outputs.channel, needs.prepare.outputs.version) }}

‎src/telemetry/TelemetryClient.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export class TelemetryClient {
184184
// Build auth token: {device_id}.{company_secret}
185185
const authToken = `${this.deviceId}.${this.config.companySecret}`;
186186

187-
const response = await fetch(`${this.config.apiBaseUrl}/v1/telemetry/batch`, {
187+
const response = await fetch(`${this.config.apiBaseUrl}/v1/telemetry`, {
188188
method: 'POST',
189189
headers: {
190190
'Content-Type': 'application/json',
@@ -290,7 +290,7 @@ export class TelemetryClient {
290290
// Build auth token: {device_id}.{company_secret}
291291
const authToken = `${this.deviceId}.${this.config.companySecret}`;
292292

293-
const response = await fetch(`${this.config.apiBaseUrl}/v1/history/keeping`, {
293+
const response = await fetch(`${this.config.apiBaseUrl}/v1/history`, {
294294
method: 'POST',
295295
headers: {
296296
'Content-Type': 'application/json',

0 commit comments

Comments
 (0)