Skip to content

Commit

Permalink
fix: update dependencies (#280)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Requires Node >=20.5.0
  • Loading branch information
wkillerud authored Nov 15, 2024
1 parent 2dab8c9 commit 8f2568a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22

- run: npm install

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 5 additions & 5 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -45,12 +45,12 @@
"@eik/typescript-config": "1.0.0",
"@types/readable-stream": "4.0.18",
"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.2.0",
"tap": "18.8.0",
"tap": "21.0.1",
"typescript": "5.6.3",
"unique-slug": "4.0.0"
"unique-slug": "5.0.0"
}
}

0 comments on commit 8f2568a

Please sign in to comment.