@forge/manifest 12.0.0 → 12.1.0-next.1

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,17 @@
1
1
  # @forge/manifest
2
2
 
3
+ ## 12.1.0-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - fa9b5aa: Update manifest definitions
8
+
9
+ ## 12.1.0-next.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 19807bf: Changed schema for container resources
14
+
3
15
  ## 12.0.0
4
16
 
5
17
  ### Major Changes
package/out/index.d.ts CHANGED
@@ -8,6 +8,6 @@ export * from './text';
8
8
  export * from './types';
9
9
  export * from './utils';
10
10
  export * from './validators';
11
- export { Modules, ManifestSchema, App, Resources, Permissions, Remotes, Fetch, Providers, Backend, Client, Frames, Navigation, Images, Media, Services, Scripts1, Styles1, Scopes, Content1, Fonts, Translations, ForgeSupportedLocaleCode, External } from './schema/manifest';
11
+ export { Modules, ManifestSchema, App, Resources, Permissions, Remotes, Fetch, Providers, Backend, Client, Frames, Navigation, Images, Media, Services, Containers, Scripts1, Styles1, Scopes, Content1, Fonts, Translations, ForgeSupportedLocaleCode, External } from './schema/manifest';
12
12
  export declare const validate: (basic?: boolean, manifest?: string | undefined) => Promise<ManifestValidationResult<ManifestSchema | BasicManifestSchema>>;
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAmB,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CA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AAyB,cAAc,GAAG,mBAAmB,CAAC,CAInD,CAAC"}
@@ -29944,17 +29944,29 @@
29944
29944
  }
29945
29945
  }
29946
29946
  },
29947
+ "ContainerCpuResourceSchema": {
29948
+ "type": "string",
29949
+ "pattern": "^([0-9]+m|[0-9]+(\\.[0-9]+)?)$"
29950
+ },
29951
+ "ContainerMemoryResourceSchema": {
29952
+ "type": "string",
29953
+ "pattern": "^[0-9]+[GM]i$"
29954
+ },
29947
29955
  "ContainerResourcesSchema": {
29948
29956
  "type": "object",
29949
29957
  "additionalProperties": false,
29958
+ "required": [
29959
+ "cpu",
29960
+ "memory"
29961
+ ],
29950
29962
  "properties": {
29951
29963
  "cpu": {
29952
- "type": "number",
29953
- "description": "The amount of CPU to be allocated to the container"
29964
+ "$ref": "#/definitions/ContainerCpuResourceSchema",
29965
+ "description": "The reserved amount of CPU for the container"
29954
29966
  },
29955
29967
  "memory": {
29956
- "type": "number",
29957
- "description": "The amount of memory to be allocated to the container"
29968
+ "$ref": "#/definitions/ContainerMemoryResourceSchema",
29969
+ "description": "The reserved amount of memory for the container"
29958
29970
  }
29959
29971
  }
29960
29972
  },
@@ -30035,7 +30047,8 @@
30035
30047
  "required": [
30036
30048
  "key",
30037
30049
  "tag",
30038
- "health"
30050
+ "health",
30051
+ "resources"
30039
30052
  ],
30040
30053
  "additionalProperties": false,
30041
30054
  "properties": {
@@ -802,7 +802,7 @@ export type Containers = {
802
802
  key: string;
803
803
  tag: string;
804
804
  health: Health;
805
- resources?: Resources1;
805
+ resources: Resources1;
806
806
  tunnel?: ContainerTunnelConfig;
807
807
  }[];
808
808
  export type Services = {
@@ -74030,13 +74030,13 @@ export interface Health {
74030
74030
  }
74031
74031
  export interface Resources1 {
74032
74032
  /**
74033
- * The amount of CPU to be allocated to the container
74033
+ * The reserved amount of CPU for the container
74034
74034
  */
74035
- cpu?: number;
74035
+ cpu: string;
74036
74036
  /**
74037
- * The amount of memory to be allocated to the container
74037
+ * The reserved amount of memory for the container
74038
74038
  */
74039
- memory?: number;
74039
+ memory: string;
74040
74040
  }
74041
74041
  export interface ContainerTunnelConfig {
74042
74042
  docker: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/manifest",
3
- "version": "12.0.0",
3
+ "version": "12.1.0-next.1",
4
4
  "description": "Definitions and validations of the Forge manifest",
5
5
  "main": "out/index.js",
6
6
  "scripts": {