@forge/manifest 9.5.0-next.4 → 9.5.0-next.5
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 +6 -0
- package/out/schema/basic-manifest-schema.json +0 -7
- package/out/schema/basic-manifest.d.ts +1 -6
- package/out/schema/manifest-schema.json +0 -7
- package/out/schema/manifest.d.ts +1 -6
- package/out/validators/snapshot-validator.d.ts.map +1 -1
- package/out/validators/snapshot-validator.js +0 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -20,18 +20,11 @@
|
|
|
20
20
|
"additionalProperties": false,
|
|
21
21
|
"description": "Options related to the Forge Javascript runtime.",
|
|
22
22
|
"properties": {
|
|
23
|
-
"snapshots": {
|
|
24
|
-
"default": true,
|
|
25
|
-
"description": "Whether a snapshot of the app is taken at deployment time. Default value of true. This option only takes effect with the \"sandbox\" runtime.",
|
|
26
|
-
"title": "snapshots",
|
|
27
|
-
"type": "boolean"
|
|
28
|
-
},
|
|
29
23
|
"name": {
|
|
30
24
|
"description": "Name of the runtime to use for app execution.",
|
|
31
25
|
"title": "name",
|
|
32
26
|
"type": "string",
|
|
33
27
|
"enum": [
|
|
34
|
-
"sandbox",
|
|
35
28
|
"nodejs18.x",
|
|
36
29
|
"nodejs20.x",
|
|
37
30
|
"nodejs22.x"
|
|
@@ -13,14 +13,10 @@ export type Description = string;
|
|
|
13
13
|
* A unique Atlassian Resource Identifier (ari) assigned to your app.
|
|
14
14
|
*/
|
|
15
15
|
export type Id = string;
|
|
16
|
-
/**
|
|
17
|
-
* Whether a snapshot of the app is taken at deployment time. Default value of true. This option only takes effect with the "sandbox" runtime.
|
|
18
|
-
*/
|
|
19
|
-
export type Snapshots = boolean;
|
|
20
16
|
/**
|
|
21
17
|
* Name of the runtime to use for app execution.
|
|
22
18
|
*/
|
|
23
|
-
export type Name = '
|
|
19
|
+
export type Name = 'nodejs18.x' | 'nodejs20.x' | 'nodejs22.x';
|
|
24
20
|
/**
|
|
25
21
|
* Lambda architecture, its value can be either 'x86_64' or 'arm64'. Default value is 'x86_64'.
|
|
26
22
|
*/
|
|
@@ -217,7 +213,6 @@ export interface App {
|
|
|
217
213
|
* Options related to the Forge Javascript runtime.
|
|
218
214
|
*/
|
|
219
215
|
export interface Runtime {
|
|
220
|
-
snapshots?: Snapshots;
|
|
221
216
|
name: Name;
|
|
222
217
|
architecture?: Architecture;
|
|
223
218
|
memoryMB?: MemoryMB;
|
|
@@ -20,18 +20,11 @@
|
|
|
20
20
|
"additionalProperties": false,
|
|
21
21
|
"description": "Options related to the Forge Javascript runtime.",
|
|
22
22
|
"properties": {
|
|
23
|
-
"snapshots": {
|
|
24
|
-
"default": true,
|
|
25
|
-
"description": "Whether a snapshot of the app is taken at deployment time. Default value of true. This option only takes effect with the \"sandbox\" runtime.",
|
|
26
|
-
"title": "snapshots",
|
|
27
|
-
"type": "boolean"
|
|
28
|
-
},
|
|
29
23
|
"name": {
|
|
30
24
|
"description": "Name of the runtime to use for app execution.",
|
|
31
25
|
"title": "name",
|
|
32
26
|
"type": "string",
|
|
33
27
|
"enum": [
|
|
34
|
-
"sandbox",
|
|
35
28
|
"nodejs18.x",
|
|
36
29
|
"nodejs20.x",
|
|
37
30
|
"nodejs22.x"
|
package/out/schema/manifest.d.ts
CHANGED
|
@@ -13,14 +13,10 @@ export type Description = string;
|
|
|
13
13
|
* A unique Atlassian Resource Identifier (ari) assigned to your app.
|
|
14
14
|
*/
|
|
15
15
|
export type Id = string;
|
|
16
|
-
/**
|
|
17
|
-
* Whether a snapshot of the app is taken at deployment time. Default value of true. This option only takes effect with the "sandbox" runtime.
|
|
18
|
-
*/
|
|
19
|
-
export type Snapshots = boolean;
|
|
20
16
|
/**
|
|
21
17
|
* Name of the runtime to use for app execution.
|
|
22
18
|
*/
|
|
23
|
-
export type Name = '
|
|
19
|
+
export type Name = 'nodejs18.x' | 'nodejs20.x' | 'nodejs22.x';
|
|
24
20
|
/**
|
|
25
21
|
* Lambda architecture, its value can be either 'x86_64' or 'arm64'. Default value is 'x86_64'.
|
|
26
22
|
*/
|
|
@@ -918,7 +914,6 @@ export interface App {
|
|
|
918
914
|
* Options related to the Forge Javascript runtime.
|
|
919
915
|
*/
|
|
920
916
|
export interface Runtime {
|
|
921
|
-
snapshots?: Snapshots;
|
|
922
917
|
name: Name;
|
|
923
918
|
architecture?: Architecture;
|
|
924
919
|
memoryMB?: MemoryMB;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot-validator.d.ts","sourceRoot":"","sources":["../../src/validators/snapshot-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"snapshot-validator.d.ts","sourceRoot":"","sources":["../../src/validators/snapshot-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,qBAAa,iBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAEnF,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CAkBrD"}
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SnapshotValidator = void 0;
|
|
4
|
-
const text_1 = require("../text");
|
|
5
|
-
const handleRedundantSnapshot = () => {
|
|
6
|
-
return {
|
|
7
|
-
message: text_1.errors.app.snapshotEnabledOnNewRuntime(),
|
|
8
|
-
reference: text_1.References.SnapshotIgnored,
|
|
9
|
-
level: 'warning'
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
4
|
class SnapshotValidator {
|
|
13
5
|
async validate(manifest) {
|
|
14
6
|
if (!manifest?.typedContent) {
|
|
@@ -18,10 +10,6 @@ class SnapshotValidator {
|
|
|
18
10
|
};
|
|
19
11
|
}
|
|
20
12
|
const validationErrors = [];
|
|
21
|
-
if (manifest.typedContent.app.runtime?.snapshots === true &&
|
|
22
|
-
(manifest.typedContent.app.runtime?.name ?? 'sandbox') !== 'sandbox') {
|
|
23
|
-
validationErrors.push(handleRedundantSnapshot());
|
|
24
|
-
}
|
|
25
13
|
const warningLevel = validationErrors.filter((e) => e.level === 'warning');
|
|
26
14
|
return {
|
|
27
15
|
success: validationErrors.length === warningLevel.length,
|