@adobe/helix-admin-support 5.1.0 → 5.2.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 +14 -0
- package/package.json +12 -12
- package/src/fetch-fstab.js +4 -23
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [5.2.0](https://github.com/adobe/helix-admin-support/compare/v5.1.1...v5.2.0) (2026-06-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **fstab:** remove github fallback from fetchFstab ([#532](https://github.com/adobe/helix-admin-support/issues/532)) ([1fbb92c](https://github.com/adobe/helix-admin-support/commit/1fbb92c18206e08388237d16320ea658c4e9a862))
|
|
7
|
+
|
|
8
|
+
## [5.1.1](https://github.com/adobe/helix-admin-support/compare/v5.1.0...v5.1.1) (2026-05-11)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update dependency @adobe/helix-shared-storage to v2 ([#522](https://github.com/adobe/helix-admin-support/issues/522)) ([bb7ffbc](https://github.com/adobe/helix-admin-support/commit/bb7ffbc1722d72dbf6fe967aafcf1503bb673ff7))
|
|
14
|
+
|
|
1
15
|
# [5.1.0](https://github.com/adobe/helix-admin-support/compare/v5.0.3...v5.1.0) (2026-01-21)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-admin-support",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "Helix Admin Support Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -38,32 +38,32 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@adobe/fetch": "^4.1.10",
|
|
40
40
|
"@adobe/helix-shared-config": "^11.0.11",
|
|
41
|
-
"@adobe/helix-shared-storage": "^
|
|
41
|
+
"@adobe/helix-shared-storage": "^2.0.0",
|
|
42
42
|
"@adobe/helix-shared-utils": "^3.0.2",
|
|
43
43
|
"@aws-sdk/client-s3": "^3.705.0",
|
|
44
44
|
"@aws-sdk/client-sqs": "^3.699.0",
|
|
45
45
|
"@smithy/node-http-handler": "^4.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@adobe/eslint-config-helix": "3.0.
|
|
49
|
-
"@adobe/jsonschema2md": "8.0.
|
|
50
|
-
"@eslint/config-helpers": "0.
|
|
48
|
+
"@adobe/eslint-config-helix": "3.0.28",
|
|
49
|
+
"@adobe/jsonschema2md": "8.0.11",
|
|
50
|
+
"@eslint/config-helpers": "0.6.0",
|
|
51
51
|
"@semantic-release/changelog": "6.0.3",
|
|
52
52
|
"@semantic-release/git": "10.0.1",
|
|
53
|
-
"c8": "
|
|
53
|
+
"c8": "11.0.0",
|
|
54
54
|
"eslint": "9.4.0",
|
|
55
55
|
"husky": "9.1.7",
|
|
56
56
|
"jsdoc-to-markdown": "9.1.3",
|
|
57
57
|
"json-schema-to-typescript": "15.0.4",
|
|
58
|
-
"junit-report-builder": "5.1.
|
|
59
|
-
"lint-staged": "
|
|
60
|
-
"mocha": "11.7.
|
|
58
|
+
"junit-report-builder": "5.1.2",
|
|
59
|
+
"lint-staged": "17.0.5",
|
|
60
|
+
"mocha": "11.7.6",
|
|
61
61
|
"mocha-multi-reporters": "1.5.1",
|
|
62
62
|
"mocha-suppress-logs": "0.6.0",
|
|
63
|
-
"nock": "
|
|
64
|
-
"semantic-release": "25.0.
|
|
63
|
+
"nock": "14.0.15",
|
|
64
|
+
"semantic-release": "25.0.3",
|
|
65
65
|
"xml2js": "0.6.2",
|
|
66
|
-
"yaml": "2.
|
|
66
|
+
"yaml": "2.9.0"
|
|
67
67
|
},
|
|
68
68
|
"lint-staged": {
|
|
69
69
|
"*.js": "eslint",
|
package/src/fetch-fstab.js
CHANGED
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
import { logLevelForStatusCode, propagateStatusCode } from '@adobe/helix-shared-utils';
|
|
13
13
|
import { MountConfig } from '@adobe/helix-shared-config';
|
|
14
14
|
import { fetchS3 } from './fetch-s3.js';
|
|
15
|
-
import { fetch } from './utils.js';
|
|
16
15
|
|
|
17
16
|
/**
|
|
18
17
|
* Checks if the response is valid and returns a mount config.
|
|
@@ -51,34 +50,16 @@ async function handleResponse(log, response, key, type, source = type) {
|
|
|
51
50
|
* @returns {Promise<MountConfig>} the fstab
|
|
52
51
|
*/
|
|
53
52
|
export async function fetchFstab(ctx, opts, optional) {
|
|
54
|
-
const { log, attributes
|
|
53
|
+
const { log, attributes } = ctx;
|
|
55
54
|
const loadFstab = async () => {
|
|
56
55
|
const { owner, repo } = opts;
|
|
57
56
|
if (!owner || !repo) {
|
|
58
57
|
return null;
|
|
59
58
|
}
|
|
60
59
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
if (cfg) {
|
|
65
|
-
return cfg;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// try loading from github for non helix-3 repos
|
|
69
|
-
const headers = {};
|
|
70
|
-
key = `${owner}/${repo}/main/fstab.yaml`;
|
|
71
|
-
if (ctx.githubToken) {
|
|
72
|
-
headers.authorization = `token ${ctx.githubToken}`;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const { GH_RAW_URL = 'https://raw.githubusercontent.com' } = env;
|
|
76
|
-
|
|
77
|
-
response = await fetch(`${GH_RAW_URL}/${key}`, {
|
|
78
|
-
cache: 'no-store',
|
|
79
|
-
headers,
|
|
80
|
-
});
|
|
81
|
-
return handleResponse(log, response, key, 'github', ctx.githubToken ? 'github (authed)' : 'github');
|
|
60
|
+
const key = `${owner}/${repo}/main/fstab.yaml`;
|
|
61
|
+
const response = await fetchS3(ctx, 'code', key);
|
|
62
|
+
return handleResponse(log, response, key, 'code-bus');
|
|
82
63
|
};
|
|
83
64
|
|
|
84
65
|
if (!('mountConfig' in attributes)) {
|