From 2e435ae867204290c526a1bd6a46df20c106045f Mon Sep 17 00:00:00 2001 From: William Killerud Date: Wed, 13 Nov 2024 14:20:17 +0100 Subject: [PATCH] fix: update dependencies BREAKING CHANGE: Requires Node >=20.5.0 --- .github/workflows/publish.yml | 2 +- .github/workflows/test.yml | 2 +- lib/main.js | 10 +++++----- package.json | 14 +++++++------- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fda9c11..a48ed90 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 - run: npm install diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e890bc0..e130291 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macOS-latest, windows-latest] - node-version: [18, 20] + node-version: [20, 22] runs-on: ${{ matrix.os }} steps: diff --git a/lib/main.js b/lib/main.js index 4ac8c5b..45043da 100644 --- a/lib/main.js +++ b/lib/main.js @@ -63,8 +63,8 @@ const SinkGCS = class SinkGCS extends Sink { const operation = "write"; try { - super.constructor.validateFilePath(filePath); - super.constructor.validateContentType(contentType); + Sink.validateFilePath(filePath); + Sink.validateContentType(contentType); } catch (error) { this._counter.inc({ labels: { operation } }); reject(error); @@ -109,7 +109,7 @@ const SinkGCS = class SinkGCS extends Sink { const operation = "read"; try { - super.constructor.validateFilePath(filePath); + Sink.validateFilePath(filePath); } catch (error) { this._counter.inc({ labels: { operation } }); reject(error); @@ -169,7 +169,7 @@ const SinkGCS = class SinkGCS extends Sink { const operation = "delete"; try { - super.constructor.validateFilePath(filePath); + Sink.validateFilePath(filePath); } catch (error) { this._counter.inc({ labels: { operation } }); reject(error); @@ -206,7 +206,7 @@ const SinkGCS = class SinkGCS extends Sink { const operation = "exist"; try { - super.constructor.validateFilePath(filePath); + Sink.validateFilePath(filePath); } catch (error) { this._counter.inc({ labels: { operation } }); reject(error); diff --git a/package.json b/package.json index 134f1d2..06a0b9e 100644 --- a/package.json +++ b/package.json @@ -33,10 +33,10 @@ }, "homepage": "https://github.com/eik-lib/sink-gcs#readme", "dependencies": { - "@eik/common": "3.0.1", - "@eik/sink": "1.2.1", + "@eik/common": "5.0.0", + "@eik/sink": "1.2.5", "@google-cloud/storage": "6.12.0", - "@metrics/client": "^2.5.0" + "@metrics/client": "2.5.4" }, "devDependencies": { "@eik/eslint-config": "1.0.2", @@ -45,12 +45,12 @@ "@eik/typescript-config": "1.0.0", "@types/readable-stream": "4.0.15", "eslint": "9.14.0", - "npm-run-all2": "5.0.0", + "npm-run-all2": "7.0.1", "prettier": "3.3.3", "rimraf": "6.0.1", - "semantic-release": "24.0.0", - "tap": "18.8.0", + "semantic-release": "24.2.0", + "tap": "21.0.1", "typescript": "5.6.3", - "unique-slug": "4.0.0" + "unique-slug": "5.0.0" } }