@adobe/aem-cli 16.10.14 → 16.10.16

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,18 @@
1
+ ## [16.10.16](https://github.com/adobe/helix-cli/compare/v16.10.15...v16.10.16) (2025-04-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update dependency @adobe/helix-shared-config to v11.1.3 ([#2515](https://github.com/adobe/helix-cli/issues/2515)) ([42a8021](https://github.com/adobe/helix-cli/commit/42a802154060bde724e9151f87f48694d0d1ea2a))
7
+
8
+ ## [16.10.15](https://github.com/adobe/helix-cli/compare/v16.10.14...v16.10.15) (2025-04-07)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * always open aem.page ([7c33338](https://github.com/adobe/helix-cli/commit/7c333381af5317bb2c957185aa9357b6bb26007e))
14
+ * Remove accept-encoding in proxy call to use nodejs defaults ([#2513](https://github.com/adobe/helix-cli/issues/2513)) ([f91c8ad](https://github.com/adobe/helix-cli/commit/f91c8adc645a3b70c92efcf0e469c40760ef6f7a))
15
+
1
16
  ## [16.10.14](https://github.com/adobe/helix-cli/compare/v16.10.13...v16.10.14) (2025-04-03)
2
17
 
3
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/aem-cli",
3
- "version": "16.10.14",
3
+ "version": "16.10.16",
4
4
  "description": "AEM CLI",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -13,6 +13,7 @@
13
13
  "test": "c8 mocha",
14
14
  "test-ci-win": "npx mocha --reporter xunit test --reporter-options output=junit/test.xml -t 5000",
15
15
  "lint": "eslint .",
16
+ "lint:fix": "eslint --fix .",
16
17
  "semantic-release": "semantic-release",
17
18
  "semantic-release-dry": "semantic-release --dry-run --branches $CI_BRANCH",
18
19
  "prepare": "husky"
@@ -40,7 +41,7 @@
40
41
  "dependencies": {
41
42
  "@adobe/fetch": "4.2.0",
42
43
  "@adobe/helix-log": "6.0.5",
43
- "@adobe/helix-shared-config": "11.1.2",
44
+ "@adobe/helix-shared-config": "11.1.3",
44
45
  "@adobe/helix-shared-git": "3.0.18",
45
46
  "@adobe/helix-shared-indexer": "2.2.3",
46
47
  "camelcase": "8.0.0",
@@ -105,6 +105,7 @@ export class HelixImportServer extends BaseServer {
105
105
  delete headers.connection;
106
106
  delete headers.host;
107
107
  delete headers.referer;
108
+ delete headers['accept-encoding'];
108
109
  await this._updateHeaders(headers);
109
110
 
110
111
  const ret = await getFetch(ctx.config.allowInsecure)(url, {
package/src/up.cmd.js CHANGED
@@ -16,7 +16,6 @@ import chokidar from 'chokidar';
16
16
  import { HelixProject } from './server/HelixProject.js';
17
17
  import GitUtils from './git-utils.js';
18
18
  import pkgJson from './package.cjs';
19
- import { getFetch } from './fetch-utils.js';
20
19
  import { AbstractServerCommand } from './abstract-server.cmd.js';
21
20
 
22
21
  export default class UpCommand extends AbstractServerCommand {
@@ -140,58 +139,17 @@ export default class UpCommand extends AbstractServerCommand {
140
139
  }
141
140
 
142
141
  async verifyUrl(gitUrl, ref) {
143
- // check if the site is on helix5
144
- // https://admin.hlx.page/sidekick/adobe/www-aem-live/main/config.json
145
- // {
146
- // "host": "aem.live",
147
- // "liveHost": "main--www-aem-live--adobe.aem.live",
148
- // "plugins": [
149
- // {
150
- // "id": "doc",
151
- // "title": "Documentation",
152
- // "url": "https://www.aem.live/docs/"
153
- // }
154
- // ],
155
- // "previewHost": "main--www-aem-live--adobe.aem.page",
156
- // "project": "Helix Website (AEM Live)",
157
- // "testProperty": "header";
158
- // }
159
- let previewHostBase = 'hlx.page';
160
- const configUrl = `https://admin.hlx.page/sidekick/${gitUrl.owner}/${gitUrl.repo}/main/config.json`;
161
- try {
162
- const configResp = await getFetch(this._allowInsecure)(configUrl);
163
- if (configResp.ok) {
164
- // this is best effort for now
165
- const config = await configResp.json();
166
- const { previewHost } = config;
167
- if (previewHost && previewHost.endsWith('.aem.page')) {
168
- previewHostBase = 'aem.page';
169
- }
170
- }
171
- /* c8 ignore start */
172
- // this is notoriously hard to test, so we ignore it for now
173
- // but if you want to give it a try, set up a local server with a self-signed cert
174
- // change, /etc/hosts to point admin.hlx.page to localhost and run the test
175
- } catch (e) {
176
- if (e.code === 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY' || e.code === 'DEPTH_ZERO_SELF_SIGNED_CERT') {
177
- await this.stop();
178
- this.log.error(chalk`{yellow ${configUrl}} is using an invalid certificate, please check https://github.com/adobe/helix-cli#troubleshooting for help.`);
179
- throw Error(e.message);
180
- }
181
- }
182
- /* c8 ignore stop */
183
-
184
142
  const dnsName = `${ref.replace(/\//g, '-')}--${gitUrl.repo}--${gitUrl.owner}`;
185
143
  // check length limit
186
144
  if (dnsName.length > 63) {
187
- this.log.error(chalk`URL {yellow https://${dnsName}.${previewHostBase}} exceeds the 63 character limit for DNS labels.`);
145
+ this.log.error(chalk`URL {yellow https://${dnsName}.aem.page} exceeds the 63 character limit for DNS labels.`);
188
146
  this.log.error(chalk`Please use a shorter branch name or a shorter repository name.`);
189
147
  await this.stop();
190
148
  throw Error('branch name too long');
191
149
  }
192
150
 
193
151
  // always proxy to main
194
- this._url = `https://main--${gitUrl.repo}--${gitUrl.owner}.${previewHostBase}`;
152
+ this._url = `https://main--${gitUrl.repo}--${gitUrl.owner}.aem.page`;
195
153
  }
196
154
 
197
155
  /**