@eik/sink-gcs 1.2.32 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # [2.0.0](https://github.com/eik-lib/sink-gcs/compare/v1.2.32...v2.0.0) (2024-11-15)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update dependencies ([#280](https://github.com/eik-lib/sink-gcs/issues/280)) ([8f2568a](https://github.com/eik-lib/sink-gcs/commit/8f2568aede7dd77e827cec575feb5b6f38070725))
7
+
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ * Requires Node >=20.5.0
12
+
1
13
  ## [1.2.32](https://github.com/eik-lib/sink-gcs/compare/v1.2.31...v1.2.32) (2024-08-09)
2
14
 
3
15
 
package/README.md CHANGED
@@ -2,10 +2,6 @@
2
2
 
3
3
  A sink for writing to and reading from [Google Cloud Storage][gcs].
4
4
 
5
- [![Dependencies](https://img.shields.io/david/eik-lib/sink-gcs.svg)](https://david-dm.org/eik-lib/sink-gcs)
6
- [![GitHub Actions status](https://github.com/eik-lib/sink-gcs/workflows/Run%20Lint%20and%20Tests/badge.svg)](https://github.com/eik-lib/sink-gcs/actions?query=workflow%3A%22Run+Lint+and+Tests%22)
7
- [![Known Vulnerabilities](https://snyk.io/test/github/eik-lib/sink-gcs/badge.svg?targetFile=package.json)](https://snyk.io/test/github/eik-lib/sink-gcs?targetFile=package.json)
8
-
9
5
  The intention of the [Eik][eik] sink modules is to be able to write to and read from
10
6
  files in different storage backends by swapping sink modules. Because each sink
11
7
  implements the same public API it is possible to use this sink in one environment and
package/lib/main.js CHANGED
@@ -63,8 +63,8 @@ const SinkGCS = class SinkGCS extends Sink {
63
63
  const operation = "write";
64
64
 
65
65
  try {
66
- super.constructor.validateFilePath(filePath);
67
- super.constructor.validateContentType(contentType);
66
+ Sink.validateFilePath(filePath);
67
+ Sink.validateContentType(contentType);
68
68
  } catch (error) {
69
69
  this._counter.inc({ labels: { operation } });
70
70
  reject(error);
@@ -109,7 +109,7 @@ const SinkGCS = class SinkGCS extends Sink {
109
109
  const operation = "read";
110
110
 
111
111
  try {
112
- super.constructor.validateFilePath(filePath);
112
+ Sink.validateFilePath(filePath);
113
113
  } catch (error) {
114
114
  this._counter.inc({ labels: { operation } });
115
115
  reject(error);
@@ -169,7 +169,7 @@ const SinkGCS = class SinkGCS extends Sink {
169
169
  const operation = "delete";
170
170
 
171
171
  try {
172
- super.constructor.validateFilePath(filePath);
172
+ Sink.validateFilePath(filePath);
173
173
  } catch (error) {
174
174
  this._counter.inc({ labels: { operation } });
175
175
  reject(error);
@@ -206,7 +206,7 @@ const SinkGCS = class SinkGCS extends Sink {
206
206
  const operation = "exist";
207
207
 
208
208
  try {
209
- super.constructor.validateFilePath(filePath);
209
+ Sink.validateFilePath(filePath);
210
210
  } catch (error) {
211
211
  this._counter.inc({ labels: { operation } });
212
212
  reject(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eik/sink-gcs",
3
- "version": "1.2.32",
3
+ "version": "2.0.0",
4
4
  "description": "Sink for Google Cloud Storage",
5
5
  "main": "lib/main.js",
6
6
  "types": "./types/main.d.ts",
@@ -13,6 +13,7 @@
13
13
  "types"
14
14
  ],
15
15
  "scripts": {
16
+ "clean": "rimraf .tap node_modules types",
16
17
  "test": "tap --disable-coverage --allow-empty-coverage",
17
18
  "test:snapshots": "tap test/**/*.js --snapshot",
18
19
  "lint:fix": "eslint --fix .",
@@ -32,23 +33,24 @@
32
33
  },
33
34
  "homepage": "https://github.com/eik-lib/sink-gcs#readme",
34
35
  "dependencies": {
35
- "@eik/common": "3.0.1",
36
- "@eik/sink": "1.2.1",
36
+ "@eik/common": "5.0.0",
37
+ "@eik/sink": "1.2.5",
37
38
  "@google-cloud/storage": "6.12.0",
38
- "@metrics/client": "^2.5.0"
39
+ "@metrics/client": "2.5.4"
39
40
  },
40
41
  "devDependencies": {
41
42
  "@eik/eslint-config": "1.0.2",
42
43
  "@eik/prettier-config": "1.0.1",
43
44
  "@eik/semantic-release-config": "1.0.0",
44
45
  "@eik/typescript-config": "1.0.0",
45
- "@types/readable-stream": "4.0.15",
46
- "eslint": "9.8.0",
47
- "npm-run-all": "4.1.5",
46
+ "@types/readable-stream": "4.0.18",
47
+ "eslint": "9.14.0",
48
+ "npm-run-all2": "7.0.1",
48
49
  "prettier": "3.3.3",
49
- "semantic-release": "24.0.0",
50
- "tap": "18.8.0",
51
- "typescript": "5.5.4",
52
- "unique-slug": "4.0.0"
50
+ "rimraf": "6.0.1",
51
+ "semantic-release": "24.2.0",
52
+ "tap": "21.0.1",
53
+ "typescript": "5.6.3",
54
+ "unique-slug": "5.0.0"
53
55
  }
54
56
  }
package/types/main.d.ts CHANGED
@@ -32,6 +32,8 @@ declare const SinkGCS: {
32
32
  exist(filePath: any): Promise<any>;
33
33
  readonly [Symbol.toStringTag]: string;
34
34
  };
35
+ validateFilePath(filePath: string): string;
36
+ validateContentType(contentType: string): string;
35
37
  };
36
38
  import { Storage } from "@google-cloud/storage";
37
39
  import Metrics from "@metrics/client";