@adobe/helix-deploy 8.1.2 → 9.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/CHANGELOG.md +21 -0
- package/package.json +14 -22
- package/src/DevelopmentServer.js +2 -10
- package/src/bundler/RollupBundler.js +1 -1
- package/src/bundler/WebpackBundler.js +1 -0
- package/src/gateway/FastlyGateway.js +3 -2
- package/src/template/node-index.js +2 -2
- package/src/template/node-index.mjs +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## [9.0.1](https://github.com/adobe/helix-deploy/compare/v9.0.0...v9.0.1) (2023-01-31)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update dependency @adobe/fastly-native-promises to v3 ([#497](https://github.com/adobe/helix-deploy/issues/497)) ([ab5cbe6](https://github.com/adobe/helix-deploy/commit/ab5cbe6cc34fab8d92fd38085fb73c41065812be))
|
|
7
|
+
* **deps:** update external fixes ([#496](https://github.com/adobe/helix-deploy/issues/496)) ([841586c](https://github.com/adobe/helix-deploy/commit/841586c84a4e31588c0586da3fc51cc86c884171))
|
|
8
|
+
* use correct import ([50f999c](https://github.com/adobe/helix-deploy/commit/50f999cf48f08269fa55afbe60e73c633f865345))
|
|
9
|
+
|
|
10
|
+
# [9.0.0](https://github.com/adobe/helix-deploy/compare/v8.1.2...v9.0.0) (2023-01-31)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* update to esm helix-universal ([40ab053](https://github.com/adobe/helix-deploy/commit/40ab05305ff97bae16a510a97dc849e3f2ad0790))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### BREAKING CHANGES
|
|
19
|
+
|
|
20
|
+
* needs helix-universal 4.x
|
|
21
|
+
|
|
1
22
|
## [8.1.2](https://github.com/adobe/helix-deploy/compare/v8.1.1...v8.1.2) (2023-01-28)
|
|
2
23
|
|
|
3
24
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-deploy",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.1",
|
|
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",
|
|
@@ -33,18 +33,18 @@
|
|
|
33
33
|
"require": "test/setup-env.js"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@adobe/helix-universal": ">=1.
|
|
36
|
+
"@adobe/helix-universal": ">=4.1.1"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@adobe/fastly-native-promises": "
|
|
40
|
-
"@adobe/fetch": "
|
|
41
|
-
"@aws-sdk/client-apigatewayv2": "3.
|
|
42
|
-
"@aws-sdk/client-lambda": "3.
|
|
43
|
-
"@aws-sdk/client-s3": "3.
|
|
44
|
-
"@aws-sdk/client-secrets-manager": "3.
|
|
45
|
-
"@aws-sdk/client-ssm": "3.
|
|
46
|
-
"@aws-sdk/client-sts": "3.
|
|
47
|
-
"@fastly/js-compute": "1.3.
|
|
39
|
+
"@adobe/fastly-native-promises": "3.0.0",
|
|
40
|
+
"@adobe/fetch": "4.0.1",
|
|
41
|
+
"@aws-sdk/client-apigatewayv2": "3.261.0",
|
|
42
|
+
"@aws-sdk/client-lambda": "3.261.0",
|
|
43
|
+
"@aws-sdk/client-s3": "3.261.0",
|
|
44
|
+
"@aws-sdk/client-secrets-manager": "3.261.0",
|
|
45
|
+
"@aws-sdk/client-ssm": "3.261.0",
|
|
46
|
+
"@aws-sdk/client-sts": "3.261.0",
|
|
47
|
+
"@fastly/js-compute": "1.3.2",
|
|
48
48
|
"@google-cloud/functions": "2.2.3",
|
|
49
49
|
"@google-cloud/secret-manager": "4.2.0",
|
|
50
50
|
"@google-cloud/storage": "6.9.1",
|
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
"get-stream": "6.0.1",
|
|
64
64
|
"isomorphic-git": "1.21.0",
|
|
65
65
|
"openwhisk": "3.21.7",
|
|
66
|
-
"proxyquire": "2.1.3",
|
|
67
66
|
"rollup": "3.12.0",
|
|
68
67
|
"semver": "7.3.8",
|
|
69
68
|
"tar": "6.1.13",
|
|
@@ -72,18 +71,12 @@
|
|
|
72
71
|
},
|
|
73
72
|
"devDependencies": {
|
|
74
73
|
"@adobe/eslint-config-helix": "2.0.1",
|
|
75
|
-
"@adobe/helix-shared-wrap": "
|
|
76
|
-
"@adobe/helix-status": "
|
|
77
|
-
"@adobe/helix-universal-logger": "2.0.18",
|
|
74
|
+
"@adobe/helix-shared-wrap": "2.0.0",
|
|
75
|
+
"@adobe/helix-status": "10.0.1",
|
|
78
76
|
"@semantic-release/changelog": "6.0.2",
|
|
79
77
|
"@semantic-release/git": "10.0.1",
|
|
80
78
|
"c8": "7.12.0",
|
|
81
|
-
"
|
|
82
|
-
"chai-http": "4.3.0",
|
|
83
|
-
"codecov": "3.8.3",
|
|
84
|
-
"eslint": "8.32.0",
|
|
85
|
-
"eslint-plugin-header": "3.1.1",
|
|
86
|
-
"eslint-plugin-import": "2.27.5",
|
|
79
|
+
"eslint": "8.33.0",
|
|
87
80
|
"husky": "8.0.3",
|
|
88
81
|
"lint-staged": "13.1.0",
|
|
89
82
|
"mocha": "10.2.0",
|
|
@@ -91,7 +84,6 @@
|
|
|
91
84
|
"mocha-multi-reporters": "1.5.1",
|
|
92
85
|
"nock": "13.3.0",
|
|
93
86
|
"semantic-release": "19.0.5",
|
|
94
|
-
"sinon": "15.0.1",
|
|
95
87
|
"yauzl": "2.10.0"
|
|
96
88
|
},
|
|
97
89
|
"engines": {
|
package/src/DevelopmentServer.js
CHANGED
|
@@ -9,17 +9,13 @@
|
|
|
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 { createRequire } from 'module';
|
|
13
12
|
import fse from 'fs-extra';
|
|
14
13
|
import path from 'path';
|
|
15
14
|
import express from 'express';
|
|
15
|
+
import { createAdapter } from '@adobe/helix-universal/google';
|
|
16
16
|
import ActionBuilder from './ActionBuilder.js';
|
|
17
17
|
import BaseConfig from './BaseConfig.js';
|
|
18
18
|
|
|
19
|
-
// load proxyquire specially since it doesn't support ESM yet.
|
|
20
|
-
const require = createRequire(import.meta.url);
|
|
21
|
-
const proxyquire = require('proxyquire').noCallThru();
|
|
22
|
-
|
|
23
19
|
function rawBody() {
|
|
24
20
|
return (req, res, next) => {
|
|
25
21
|
if (req.method === 'GET' || req.method === 'HEAD') {
|
|
@@ -140,11 +136,7 @@ export default class DevelopmentServer {
|
|
|
140
136
|
// use google adapter since it already supports express req/res types
|
|
141
137
|
process.env.K_SERVICE = `${config.packageName}--${config.name}`;
|
|
142
138
|
process.env.K_REVISION = config.version;
|
|
143
|
-
this._handler =
|
|
144
|
-
'./main.js': {
|
|
145
|
-
main: this._main,
|
|
146
|
-
},
|
|
147
|
-
}).raw;
|
|
139
|
+
this._handler = createAdapter({ factory: () => this._main });
|
|
148
140
|
this.params = config.params;
|
|
149
141
|
return this;
|
|
150
142
|
}
|
|
@@ -43,7 +43,7 @@ export default class Bundler extends BaseBundler {
|
|
|
43
43
|
format: cfg.esm ? 'es' : 'cjs',
|
|
44
44
|
preferConst: true,
|
|
45
45
|
externalLiveBindings: false,
|
|
46
|
-
|
|
46
|
+
inlineDynamicImports: true,
|
|
47
47
|
exports: 'default',
|
|
48
48
|
},
|
|
49
49
|
// shimMissingExports: false,
|
|
@@ -9,14 +9,15 @@
|
|
|
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
|
-
|
|
12
|
+
// eslint-disable-next-line import/no-named-default
|
|
13
|
+
import { default as Fastly, loghelpers } from '@adobe/fastly-native-promises';
|
|
13
14
|
import chalk from 'chalk-template';
|
|
14
15
|
import FastlyConfig from './FastlyConfig.js';
|
|
15
16
|
import BaseDeployer from '../deploy/BaseDeployer.js';
|
|
16
17
|
|
|
17
18
|
const {
|
|
18
19
|
toString, vcl, time, req, res, str, concat,
|
|
19
|
-
} =
|
|
20
|
+
} = loghelpers;
|
|
20
21
|
|
|
21
22
|
export default class FastlyGateway {
|
|
22
23
|
constructor(baseConfig, config) {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
const { dirname } = require('path');
|
|
13
13
|
const {
|
|
14
14
|
openwhisk,
|
|
15
|
-
|
|
15
|
+
lambda,
|
|
16
16
|
google,
|
|
17
17
|
} = require('@adobe/helix-universal').adapter;
|
|
18
18
|
|
|
@@ -21,6 +21,6 @@ global.__rootdir = dirname(__filename); // __dirname is transformed by webpack,
|
|
|
21
21
|
|
|
22
22
|
module.exports = {
|
|
23
23
|
main: openwhisk,
|
|
24
|
-
lambda
|
|
24
|
+
lambda,
|
|
25
25
|
google,
|
|
26
26
|
};
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
import { dirname } from 'path';
|
|
14
14
|
import { fileURLToPath } from 'url';
|
|
15
15
|
import { adapter } from '@adobe/helix-universal';
|
|
16
|
-
const { openwhisk, aws, google } = adapter;
|
|
17
16
|
|
|
18
17
|
// eslint-disable-next-line no-underscore-dangle
|
|
19
18
|
global.__rootdir = dirname(fileURLToPath(import.meta.url));
|
|
20
19
|
|
|
20
|
+
const { openwhisk, lambda, google } = adapter;
|
|
21
21
|
export default {
|
|
22
|
-
|
|
23
|
-
lambda
|
|
22
|
+
openwhisk,
|
|
23
|
+
lambda,
|
|
24
24
|
google,
|
|
25
|
-
}
|
|
25
|
+
}
|