@adobe/helix-deploy 12.4.29 → 12.4.31

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
+ ## [12.4.31](https://github.com/adobe/helix-deploy/compare/v12.4.30...v12.4.31) (2025-04-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **esbuild:** avoid using `createRequire` as import name ([#799](https://github.com/adobe/helix-deploy/issues/799)) ([082551d](https://github.com/adobe/helix-deploy/commit/082551d529c5bacfbe092ae52da5c7c9ffbc932a))
7
+
8
+ ## [12.4.30](https://github.com/adobe/helix-deploy/compare/v12.4.29...v12.4.30) (2025-04-08)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update dependency webpack to v5.99.2 ([#797](https://github.com/adobe/helix-deploy/issues/797)) ([a85b786](https://github.com/adobe/helix-deploy/commit/a85b7860aecbe23b310cecd419465202fe00de7c))
14
+
1
15
  ## [12.4.29](https://github.com/adobe/helix-deploy/compare/v12.4.28...v12.4.29) (2025-04-08)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-deploy",
3
- "version": "12.4.29",
3
+ "version": "12.4.31",
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",
@@ -57,7 +57,7 @@
57
57
  "isomorphic-git": "1.30.1",
58
58
  "openwhisk": "3.21.8",
59
59
  "semver": "7.7.1",
60
- "webpack": "5.99.1",
60
+ "webpack": "5.99.2",
61
61
  "yargs": "17.7.2"
62
62
  },
63
63
  "devDependencies": {
@@ -61,8 +61,8 @@ export default class ESBuildBundler extends BaseBundler {
61
61
  ],
62
62
  banner: {
63
63
  js: [
64
- 'import { createRequire } from "module";',
65
- 'const require = createRequire(import.meta.url);',
64
+ 'import { createRequire as hedyCreateRequire } from "module";',
65
+ 'const require = hedyCreateRequire(import.meta.url);',
66
66
  '',
67
67
  ].join('\n'),
68
68
  },
@@ -74,10 +74,17 @@ export default class ESBuildBundler extends BaseBundler {
74
74
  name: 'alias-main',
75
75
  setup: (build) => {
76
76
  build.onResolve({ filter: /^\.\/main\.js$/ }, () => ({ path: cfg.file }));
77
- // use @adobe/helix-universal in the calling service, not ours
78
77
  build.onResolve(
79
78
  { filter: /^@adobe\/helix-universal$/ },
80
- (args) => ({ path: path.resolve(cfg.cwd, 'node_modules', args.path, 'src', 'index.js') }),
79
+ (args) => {
80
+ const cwd = (process.env.HELIX_DEPLOY_USE_LOCAL === 'true')
81
+ // for testing use "our" @adobe/helix-universal dependency
82
+ ? path.resolve(__dirname, '..', '..')
83
+ // for production use @adobe/helix-universal (and its dependencies)
84
+ // in the calling service
85
+ : cfg.cwd;
86
+ return { path: path.resolve(cwd, 'node_modules', args.path, 'src', 'index.js') };
87
+ },
81
88
  );
82
89
  cfg.externals.forEach((filter) => {
83
90
  build.onResolve({ filter }, (args) => ({ path: args.path, external: true }));
@@ -22,4 +22,4 @@ export default {
22
22
  openwhisk,
23
23
  lambda,
24
24
  google,
25
- }
25
+ };