@adobe/helix-admin-support 5.0.1 → 5.0.3

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,17 @@
1
+ ## [5.0.3](https://github.com/adobe/helix-admin-support/compare/v5.0.2...v5.0.3) (2025-11-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **s3:** use HELIX_STORAGE_MAX_ATTEMPTS ([#456](https://github.com/adobe/helix-admin-support/issues/456)) ([a8dba66](https://github.com/adobe/helix-admin-support/commit/a8dba660f19e1fa2094de5cfe4c65cb30393d97b))
7
+
8
+ ## [5.0.2](https://github.com/adobe/helix-admin-support/compare/v5.0.1...v5.0.2) (2025-10-20)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * update semantic-release to v25 and node to 24.x for OIDC ([#448](https://github.com/adobe/helix-admin-support/issues/448)) ([1c9b49e](https://github.com/adobe/helix-admin-support/commit/1c9b49ee2f6d97b3d6d7d3a5e47d4256edbc93c8))
14
+
1
15
  ## [5.0.1](https://github.com/adobe/helix-admin-support/compare/v5.0.0...v5.0.1) (2025-10-13)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-admin-support",
3
- "version": "5.0.1",
3
+ "version": "5.0.3",
4
4
  "description": "Helix Admin Support Library",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "repository": {
20
20
  "type": "git",
21
- "url": "https://github.com/adobe/helix-admin-support"
21
+ "url": "https://github.com/adobe/helix-admin-support.git"
22
22
  },
23
23
  "author": "",
24
24
  "license": "Apache-2.0",
@@ -45,24 +45,24 @@
45
45
  "@smithy/node-http-handler": "^4.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@adobe/eslint-config-helix": "3.0.11",
49
- "@adobe/jsonschema2md": "8.0.6",
48
+ "@adobe/eslint-config-helix": "3.0.12",
49
+ "@adobe/jsonschema2md": "8.0.7",
50
50
  "@eslint/config-helpers": "0.4.0",
51
51
  "@semantic-release/changelog": "6.0.3",
52
52
  "@semantic-release/git": "10.0.1",
53
- "@semantic-release/npm": "12.0.2",
53
+ "@semantic-release/npm": "13.0.0",
54
54
  "c8": "10.1.3",
55
55
  "eslint": "9.4.0",
56
56
  "husky": "9.1.7",
57
- "jsdoc-to-markdown": "9.1.2",
57
+ "jsdoc-to-markdown": "9.1.3",
58
58
  "json-schema-to-typescript": "15.0.4",
59
59
  "junit-report-builder": "5.1.1",
60
- "lint-staged": "16.2.0",
61
- "mocha": "11.7.2",
60
+ "lint-staged": "16.2.4",
61
+ "mocha": "11.7.4",
62
62
  "mocha-multi-reporters": "1.5.1",
63
63
  "mocha-suppress-logs": "0.6.0",
64
64
  "nock": "13.5.6",
65
- "semantic-release": "24.2.9",
65
+ "semantic-release": "25.0.0",
66
66
  "xml2js": "0.6.2",
67
67
  "yaml": "2.8.1"
68
68
  },
package/src/fetch-s3.js CHANGED
@@ -52,22 +52,30 @@ export async function fetchS3(context, bucketId, key, head = false) {
52
52
  }
53
53
 
54
54
  try {
55
+ const opts = {
56
+ region: 'us-east-1',
57
+ };
58
+ if (env.HELIX_STORAGE_MAX_ATTEMPTS) {
59
+ const maxAttempts = Number.parseInt(env.HELIX_STORAGE_MAX_ATTEMPTS, 10);
60
+ if (!Number.isNaN(maxAttempts)) {
61
+ opts.maxAttempts = maxAttempts;
62
+ }
63
+ }
55
64
  // the client initialization is a bit picky with undefined properties.
56
65
  // so we omit the credentials when we provide them via context.env
57
66
  /* c8 ignore next 3 */
58
- const opts = !env.AWS_S3_ACCESS_KEY_ID ? {
59
- region: 'us-east-1',
60
- } : {
61
- region: 'us-east-1',
62
- credentials: {
63
- accessKeyId: env.AWS_S3_ACCESS_KEY_ID,
64
- secretAccessKey: env.AWS_S3_SECRET_ACCESS_KEY,
65
- },
66
- requestHandler: new NodeHttpHandler({
67
- connectionTimeout: HELIX_HTTP_CONNECTION_TIMEOUT,
68
- socketTimeout: HELIX_HTTP_SOCKET_TIMEOUT,
69
- }),
70
- };
67
+ if (env.AWS_S3_ACCESS_KEY_ID) {
68
+ Object.assign(opts, {
69
+ credentials: {
70
+ accessKeyId: env.AWS_S3_ACCESS_KEY_ID,
71
+ secretAccessKey: env.AWS_S3_SECRET_ACCESS_KEY,
72
+ },
73
+ requestHandler: new NodeHttpHandler({
74
+ connectionTimeout: HELIX_HTTP_CONNECTION_TIMEOUT,
75
+ socketTimeout: HELIX_HTTP_SOCKET_TIMEOUT,
76
+ }),
77
+ });
78
+ }
71
79
  const s3 = new S3Client(opts);
72
80
  const Command = head ? HeadObjectCommand : GetObjectCommand;
73
81
  let res;