@adobe/helix-deploy 9.3.18 → 9.3.20
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 +18 -0
- package/package.json +4 -4
- package/src/deploy/ComputeAtEdgeDeployer.js +16 -29
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## [9.3.20](https://github.com/adobe/helix-deploy/compare/v9.3.19...v9.3.20) (2023-11-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **fastly:** do not access empty config ([6e745d6](https://github.com/adobe/helix-deploy/commit/6e745d621476490f61f6f486792b0b725d1af486))
|
|
7
|
+
* **fastly:** do not fork the process, instead use fastly's own CLI backend ([4287706](https://github.com/adobe/helix-deploy/commit/4287706395dd659285438149d9864c69722963be))
|
|
8
|
+
* **fastly:** import correct module ([223c893](https://github.com/adobe/helix-deploy/commit/223c89353cefe00bd97e708b759431d7aa6933fe))
|
|
9
|
+
* **fastly:** use correct log function ([d231db8](https://github.com/adobe/helix-deploy/commit/d231db85edb7ba21e6bfec0885e4a6e3f605091c))
|
|
10
|
+
* **fastly:** use fastly's arg parser ([ce7b376](https://github.com/adobe/helix-deploy/commit/ce7b376bfa32fe1862de619febf48de2e4efca68))
|
|
11
|
+
|
|
12
|
+
## [9.3.19](https://github.com/adobe/helix-deploy/compare/v9.3.18...v9.3.19) (2023-11-25)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **deps:** update external fixes ([6ace656](https://github.com/adobe/helix-deploy/commit/6ace6568b7ac5d93453b8f05627580d3d39b69f0))
|
|
18
|
+
|
|
1
19
|
## [9.3.18](https://github.com/adobe/helix-deploy/compare/v9.3.17...v9.3.18) (2023-11-23)
|
|
2
20
|
|
|
3
21
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-deploy",
|
|
3
|
-
"version": "9.3.
|
|
3
|
+
"version": "9.3.20",
|
|
4
4
|
"description": "Library and Commandline Tools to build and deploy OpenWhisk Actions",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/adobe/helix-deploy#readme",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@adobe/fetch": "4.1.1",
|
|
41
41
|
"@aws-sdk/client-apigatewayv2": "3.454.0",
|
|
42
42
|
"@aws-sdk/client-lambda": "3.454.0",
|
|
43
|
-
"@aws-sdk/client-s3": "3.
|
|
43
|
+
"@aws-sdk/client-s3": "3.456.0",
|
|
44
44
|
"@aws-sdk/client-secrets-manager": "3.454.0",
|
|
45
45
|
"@aws-sdk/client-ssm": "3.454.0",
|
|
46
46
|
"@aws-sdk/client-sts": "3.454.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@google-cloud/functions": "3.0.1",
|
|
49
49
|
"@google-cloud/secret-manager": "5.0.1",
|
|
50
50
|
"@google-cloud/storage": "7.6.0",
|
|
51
|
-
"@rollup/plugin-alias": "5.0
|
|
51
|
+
"@rollup/plugin-alias": "5.1.0",
|
|
52
52
|
"@rollup/plugin-commonjs": "25.0.7",
|
|
53
53
|
"@rollup/plugin-json": "6.0.1",
|
|
54
54
|
"@rollup/plugin-node-resolve": "15.2.3",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"fs-extra": "11.1.1",
|
|
63
63
|
"isomorphic-git": "1.25.0",
|
|
64
64
|
"openwhisk": "3.21.7",
|
|
65
|
-
"rollup": "4.5.
|
|
65
|
+
"rollup": "4.5.2",
|
|
66
66
|
"semver": "7.5.4",
|
|
67
67
|
"tar": "6.2.0",
|
|
68
68
|
"webpack": "5.89.0",
|
|
@@ -9,19 +9,16 @@
|
|
|
9
9
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import { fork } from 'child_process';
|
|
13
12
|
import chalk from 'chalk-template';
|
|
14
|
-
import { fileURLToPath } from 'url';
|
|
15
13
|
import path from 'path';
|
|
16
14
|
import fs from 'fs/promises';
|
|
17
15
|
import tar from 'tar';
|
|
18
16
|
import Fastly from '@adobe/fastly-native-promises';
|
|
17
|
+
import { compileApplicationToWasm } from '@fastly/js-compute/src/compileApplicationToWasm.js';
|
|
18
|
+
import { parseInputs } from '@fastly/js-compute/src/parseInputs.js';
|
|
19
19
|
import BaseDeployer from './BaseDeployer.js';
|
|
20
20
|
import ComputeAtEdgeConfig from './ComputeAtEdgeConfig.js';
|
|
21
21
|
|
|
22
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
23
|
-
const __dirname = path.resolve(fileURLToPath(import.meta.url), '..');
|
|
24
|
-
|
|
25
22
|
/**
|
|
26
23
|
* The class ComputeAtEdgeDeployer deploys to Fastly's Compute(at)Edge (WASM) runtime.
|
|
27
24
|
* It should be seen as a functional equivalent to the CloudflareDeployer
|
|
@@ -79,29 +76,16 @@ name = "${this.cfg.packageName}"
|
|
|
79
76
|
service_id = ""
|
|
80
77
|
`);
|
|
81
78
|
|
|
79
|
+
const {
|
|
80
|
+
input,
|
|
81
|
+
output,
|
|
82
|
+
wasmEngine,
|
|
83
|
+
} = await parseInputs([this.cfg.edgeBundle, path.resolve(bundleDir, 'bin', 'main.wasm')]);
|
|
84
|
+
|
|
82
85
|
return new Promise((resolve, reject) => {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
'..',
|
|
87
|
-
'..',
|
|
88
|
-
'node_modules',
|
|
89
|
-
'@fastly',
|
|
90
|
-
'js-compute',
|
|
91
|
-
'js-compute-runtime-cli.js',
|
|
92
|
-
),
|
|
93
|
-
[this.cfg.edgeBundle, 'bin/main.wasm'],
|
|
94
|
-
{
|
|
95
|
-
cwd: bundleDir,
|
|
96
|
-
},
|
|
97
|
-
);
|
|
98
|
-
child.on('data', (data) => resolve(data));
|
|
99
|
-
child.on('error', (err) => reject(err));
|
|
100
|
-
child.on('close', async (err) => {
|
|
101
|
-
if (err) {
|
|
102
|
-
// non-zero status code
|
|
103
|
-
reject(err);
|
|
104
|
-
} else {
|
|
86
|
+
this.log.debug('--: creating WASM bundle of script and interpreter');
|
|
87
|
+
compileApplicationToWasm(input, output, wasmEngine, false, false)
|
|
88
|
+
.then(async () => {
|
|
105
89
|
const file = path.resolve(bundleDir, 'fastly-bundle.tar.gz');
|
|
106
90
|
this.log.debug(chalk`{green ok:} created WASM bundle of script and interpreter in ${bundleDir}/bin/main.wasm`);
|
|
107
91
|
await tar.c({
|
|
@@ -113,8 +97,11 @@ service_id = ""
|
|
|
113
97
|
}, ['bin/main.wasm', 'fastly.toml']);
|
|
114
98
|
this.log.debug(chalk`{green ok:} created tar file in ${bundleDir}/fastly-bundle.tar.gz`);
|
|
115
99
|
resolve(fs.readFile(file));
|
|
116
|
-
}
|
|
117
|
-
|
|
100
|
+
})
|
|
101
|
+
// c8 ignore next 3
|
|
102
|
+
.catch((err) => {
|
|
103
|
+
reject(err);
|
|
104
|
+
});
|
|
118
105
|
});
|
|
119
106
|
}
|
|
120
107
|
|