@forge/manifest 13.5.0-next.2 → 13.5.0-next.2-experimental-6664e2b

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,18 @@
1
1
  # @forge/manifest
2
2
 
3
+ ## 13.5.0-next.2-experimental-6664e2b
4
+
5
+ ### Minor Changes
6
+
7
+ - 4ceb09f: Allow all optional contexts for global apps EAP
8
+
9
+ ### Patch Changes
10
+
11
+ - 28b74f6: Remove manifest test until app host artifacts deployment
12
+ - 07cdf11: Fix manifest validation
13
+ - 0a75004: Update manifest definitions
14
+ - 150a3c5: Update manifest definitions
15
+
3
16
  ## 13.5.0-next.2
4
17
 
5
18
  ### Patch Changes
@@ -56,7 +56,6 @@
56
56
  "title": "compatibility",
57
57
  "description": "The app compatibility configuration. If not set, app is not a cross-context or global app.",
58
58
  "additionalProperties": false,
59
- "minProperties": 1,
60
59
  "properties": {
61
60
  "confluence": {
62
61
  "type": "object",
@@ -56,7 +56,6 @@
56
56
  "title": "compatibility",
57
57
  "description": "The app compatibility configuration. If not set, app is not a cross-context or global app.",
58
58
  "additionalProperties": false,
59
- "minProperties": 1,
60
59
  "properties": {
61
60
  "confluence": {
62
61
  "type": "object",
@@ -288,7 +288,7 @@ exports.errors = {
288
288
  invalidConfluenceModuleInJira: () => 'Using the module `confluence:fullPage` is invalid when the required product is Jira. Full page modules must match the required product. Use `jira:fullPage` as the module type, or change the required product to Confluence in your manifest.yml compatibility settings.',
289
289
  invalidJiraModuleInConfluence: () => 'Using the module `jira:fullPage` is invalid when the required product is Confluence. Full page modules must match the required product. Use `confluence:fullPage` as the module type, or change the required product to Jira in your manifest.yml compatibility settings.',
290
290
  invalidProduct: (product) => `Invalid product '${product}' in app.compatibility. Only 'jira' and 'confluence' are supported as compatibility products for this module.`,
291
- oneRequiredContext: () => 'One context (Jira, Confluence, or Compass) must have `required:true` in app.compatibility.'
291
+ oneRequiredContext: () => 'Only one context (Jira, Confluence, or Compass) must have `required:true` in app.compatibility.'
292
292
  }
293
293
  },
294
294
  translations: {
@@ -18,7 +18,7 @@ class CompatibilityValidator {
18
18
  const compatibility = app?.compatibility || {};
19
19
  const hasCompatibilityKeys = Object.keys(compatibility).length > 0;
20
20
  const requiredContexts = Object.keys(compatibility).filter((key) => compatibility[key]?.required === true);
21
- if (hasCompatibilityKeys && requiredContexts.length !== 1) {
21
+ if (hasCompatibilityKeys && requiredContexts.length > 1) {
22
22
  validationErrors.push({
23
23
  message: text_1.errors.app.compatibility.oneRequiredContext(),
24
24
  reference: text_2.References.SchemaError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/manifest",
3
- "version": "13.5.0-next.2",
3
+ "version": "13.5.0-next.2-experimental-6664e2b",
4
4
  "description": "Definitions and validations of the Forge manifest",
5
5
  "main": "out/index.js",
6
6
  "scripts": {