@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @forge/manifest
2
2
 
3
+ ## 9.5.0-next.5
4
+
5
+ ### Minor Changes
6
+
7
+ - 9f050ff: Removed support for Sandbox Runtime and Sanpshots
8
+
3
9
  ## 9.5.0-next.4
4
10
 
5
11
  ### Minor Changes
@@ -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 = 'sandbox' | 'nodejs18.x' | 'nodejs20.x' | 'nodejs22.x';
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"
@@ -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 = 'sandbox' | 'nodejs18.x' | 'nodejs20.x' | 'nodejs22.x';
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;AAErF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAUpD,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;CAyBrD"}
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/manifest",
3
- "version": "9.5.0-next.4",
3
+ "version": "9.5.0-next.5",
4
4
  "description": "Definitions and validations of the Forge manifest",
5
5
  "main": "out/index.js",
6
6
  "scripts": {