@astrale-os/adapter-astrale 0.5.0-beta.171 → 0.5.0-beta.172

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/dist/admit.d.ts CHANGED
@@ -3,9 +3,5 @@ import type { AstraleParams } from './params.js';
3
3
  /**
4
4
  * Refuse, when the Project loads, an Environment this adapter cannot deploy: an unknown or removed
5
5
  * parameter or a malformed Admin bookmark.
6
- *
7
- * An Environment of the removed instance mode (`instance`, `signingIdentity`) is left to the deploy
8
- * mode selection, which refuses it when it deploys with the configuration to write instead; loading
9
- * it to build or test it has no effect.
10
6
  */
11
7
  export declare function admitAstraleParameters(parameters: AstraleParams, context: AdapterEnvironmentContext): void;
package/dist/admit.js CHANGED
@@ -7,36 +7,17 @@ const PARAMETERS = Object.freeze([
7
7
  'tokenExchange',
8
8
  'durable',
9
9
  ]);
10
- /**
11
- * The parameters of the removed instance mode. `astrale-domain deploy` refuses them before any
12
- * effect, with the configuration to write instead (CT33, AM-72).
13
- */
14
- const INSTANCE_MODE = Object.freeze(['instance', 'signingIdentity']);
15
- /** The parameters that named the stable Service of the removed instance mode. */
16
- const INSTANCE_SERVICE = Object.freeze(['serviceKey', 'name']);
17
10
  /** The longest Admin bookmark name an Environment may name. */
18
11
  const MAXIMUM_NAME_LENGTH = 256;
19
12
  /**
20
13
  * Refuse, when the Project loads, an Environment this adapter cannot deploy: an unknown or removed
21
14
  * parameter or a malformed Admin bookmark.
22
- *
23
- * An Environment of the removed instance mode (`instance`, `signingIdentity`) is left to the deploy
24
- * mode selection, which refuses it when it deploys with the configuration to write instead; loading
25
- * it to build or test it has no effect.
26
15
  */
27
16
  export function admitAstraleParameters(parameters, context) {
28
17
  const values = parameters;
29
18
  // A parameter is declared when its value is not `undefined`, as optional parameters read.
30
19
  const declared = Reflect.ownKeys(values).filter((key) => values[key] !== undefined);
31
20
  const environment = `Astrale Environment ${context.environment}`;
32
- if (declared.some((key) => isOneOf(key, INSTANCE_MODE)))
33
- return;
34
- const service = declared.filter((key) => isOneOf(key, INSTANCE_SERVICE));
35
- if (service.length > 0) {
36
- throw new TypeError(`${environment} declares ${names(service)}, which named the stable Service of the removed ` +
37
- `instance mode. Remove ${service.length === 1 ? 'it' : 'them'}: each immutable ` +
38
- 'deployment is named by its own label.');
39
- }
40
21
  const unknown = declared.filter((key) => !isOneOf(key, PARAMETERS));
41
22
  if (unknown.length > 0) {
42
23
  throw new TypeError(`${environment} declares unknown parameters ${names(unknown)}.`);
package/dist/index.d.ts CHANGED
@@ -17,7 +17,7 @@
17
17
  * URL, `https://<line>-<content>.<routingDomain>`, while the Service's stable URL,
18
18
  * `https://<line>.<routingDomain>`, serves the deployment last promoted, by default the latest. It
19
19
  * calls Admin's Services with `astrale call --admin` as the authenticated identity, never an
20
- * instance, and never installs the Domain: `astrale domain install <url> --direct -i <instance>`
20
+ * instance, and never installs the Domain: `astrale domain install <url> -i <instance>`
21
21
  * installs the URL it prints. A redeploy of the same release reuses its deployment and rewrites
22
22
  * its secrets in place when the secrets file changed; no other deployment is ever touched.
23
23
  *
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@
17
17
  * URL, `https://<line>-<content>.<routingDomain>`, while the Service's stable URL,
18
18
  * `https://<line>.<routingDomain>`, serves the deployment last promoted, by default the latest. It
19
19
  * calls Admin's Services with `astrale call --admin` as the authenticated identity, never an
20
- * instance, and never installs the Domain: `astrale domain install <url> --direct -i <instance>`
20
+ * instance, and never installs the Domain: `astrale domain install <url> -i <instance>`
21
21
  * installs the URL it prints. A redeploy of the same release reuses its deployment and rewrites
22
22
  * its secrets in place when the secrets file changed; no other deployment is ever touched.
23
23
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-os/adapter-astrale",
3
- "version": "0.5.0-beta.171",
3
+ "version": "0.5.0-beta.172",
4
4
  "description": "Deploy an Astrale domain, or any Cloudflare Worker, as managed deployments through the Astrale platform",
5
5
  "keywords": [
6
6
  "adapter",
@@ -41,8 +41,8 @@
41
41
  "registry": "https://registry.npmjs.org/"
42
42
  },
43
43
  "dependencies": {
44
- "@astrale-os/adapter-cloudflare": "0.5.0-beta.178",
45
- "@astrale-os/sdk": "0.6.0-beta.23"
44
+ "@astrale-os/adapter-cloudflare": "0.5.0-beta.179",
45
+ "@astrale-os/sdk": "0.6.0-beta.24"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@astrale-os/ox": "0.1.4",
@@ -4,7 +4,7 @@
4
4
  * `astrale-domain deploy <environment>` makes one immutable deployment of this
5
5
  * release on Admin's Services, at its own URL, with a signing key generated for
6
6
  * it, and prints that URL. A deploy never installs the Domain: install the URL
7
- * it prints with `astrale domain install <url> --direct -i <instance>`.
7
+ * it prints with `astrale domain install <url> -i <instance>`.
8
8
  * Redeploying the same release reuses its deployment; a changed secrets file is
9
9
  * then rewritten in place on that deployment only.
10
10
  *