@tslock/gcs 1.0.2 → 2.0.1
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/README.md +2 -0
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -41,6 +41,8 @@ await executor.executeWithLock(
|
|
|
41
41
|
|
|
42
42
|
The object key for a lock is `${objectPrefix}${lockName}`.
|
|
43
43
|
|
|
44
|
+
> **Lock-name safety:** Lock names must be non-empty, contain no control characters, and be at most 1024 UTF-8 bytes. The S3 and GCS error classifiers intentionally remain separate because their SDK error shapes differ: S3 uses exception names/HTTP metadata, while GCS uses numeric status codes.
|
|
45
|
+
|
|
44
46
|
## Requirements
|
|
45
47
|
|
|
46
48
|
- Node.js >= 22
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tslock/gcs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Google Cloud Storage-backed distributed lock provider for TSLock",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"import": "./dist/index.js",
|
|
13
13
|
"require": "./dist/index.cjs",
|
|
14
14
|
"types": "./dist/index.d.ts"
|
|
15
|
-
}
|
|
15
|
+
},
|
|
16
|
+
"./package.json": "./package.json"
|
|
16
17
|
},
|
|
17
18
|
"files": [
|
|
18
19
|
"dist"
|
|
@@ -22,7 +23,7 @@
|
|
|
22
23
|
},
|
|
23
24
|
"peerDependencies": {
|
|
24
25
|
"@google-cloud/storage": "^7.7.0",
|
|
25
|
-
"@tslock/core": "
|
|
26
|
+
"@tslock/core": "2.0.1"
|
|
26
27
|
},
|
|
27
28
|
"peerDependenciesMeta": {
|
|
28
29
|
"@tslock/core": {
|
|
@@ -38,8 +39,8 @@
|
|
|
38
39
|
"typescript": "^5.5.0",
|
|
39
40
|
"tsup": "^8.0.0",
|
|
40
41
|
"@types/node": "^22.0.0",
|
|
41
|
-
"@tslock/core": "
|
|
42
|
-
"@tslock/test-support": "
|
|
42
|
+
"@tslock/core": "2.0.1",
|
|
43
|
+
"@tslock/test-support": "2.0.1"
|
|
43
44
|
},
|
|
44
45
|
"publishConfig": {
|
|
45
46
|
"access": "public"
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
"url": "git+https://github.com/drmaas/tslock.git",
|
|
50
51
|
"directory": "packages/gcs"
|
|
51
52
|
},
|
|
53
|
+
"sideEffects": false,
|
|
52
54
|
"scripts": {
|
|
53
55
|
"build": "tsup",
|
|
54
56
|
"test": "vitest run",
|