@forge/cli 10.6.0-next.15 → 10.6.0

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,92 @@
1
1
  # @forge/cli
2
2
 
3
+ ## 10.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6f27f26: Block forge deploy in production if app.connect.key is mutated.
8
+ - ac1a61b: Bundle files on disk instead of memory
9
+ - 1d04953: Update native UI bundler to support Forge i18n
10
+
11
+ ### Patch Changes
12
+
13
+ - 9223d08: Rename agent to Agent
14
+ - 8cddace: Fix integration tests
15
+ - c789d05: remove EAP as forge agents will be in preview now
16
+ - Updated dependencies [6f27f26]
17
+ - Updated dependencies [10f4545]
18
+ - Updated dependencies [bf34881]
19
+ - Updated dependencies [ac1a61b]
20
+ - Updated dependencies [c341349]
21
+ - Updated dependencies [c113f86]
22
+ - Updated dependencies [c74ca63]
23
+ - Updated dependencies [60a4b5b]
24
+ - Updated dependencies [33d77a4]
25
+ - Updated dependencies [be67acb]
26
+ - Updated dependencies [1d04953]
27
+ - Updated dependencies [c74ca63]
28
+ - Updated dependencies [9a546fd]
29
+ - Updated dependencies [c6377ba]
30
+ - Updated dependencies [d51b7be]
31
+ - Updated dependencies [13fb92c]
32
+ - Updated dependencies [23f6675]
33
+ - Updated dependencies [c81fa57]
34
+ - Updated dependencies [27249cd]
35
+ - Updated dependencies [99b6dd4]
36
+ - Updated dependencies [b0ad6d7]
37
+ - Updated dependencies [ce41b8c]
38
+ - Updated dependencies [7160171]
39
+ - Updated dependencies [b90e809]
40
+ - Updated dependencies [5f82d22]
41
+ - Updated dependencies [f40d3b5]
42
+ - Updated dependencies [26f8528]
43
+ - Updated dependencies [313b8e1]
44
+ - Updated dependencies [bf0fab6]
45
+ - Updated dependencies [fdaaeab]
46
+ - @forge/cli-shared@5.5.0
47
+ - @forge/manifest@7.7.0
48
+ - @forge/bundler@4.19.0
49
+ - @forge/tunnel@5.5.0
50
+ - @forge/i18n@0.0.1
51
+ - @forge/lint@5.3.3
52
+
53
+ ## 10.6.0-next.18
54
+
55
+ ### Patch Changes
56
+
57
+ - Updated dependencies [99b6dd4]
58
+ - @forge/manifest@7.7.0-next.15
59
+ - @forge/bundler@4.19.0-next.17
60
+ - @forge/cli-shared@5.5.0-next.16
61
+ - @forge/lint@5.3.3-next.16
62
+ - @forge/tunnel@5.5.0-next.17
63
+
64
+ ## 10.6.0-next.17
65
+
66
+ ### Minor Changes
67
+
68
+ - 6f27f26: Block forge deploy in production if app.connect.key is mutated.
69
+
70
+ ### Patch Changes
71
+
72
+ - Updated dependencies [6f27f26]
73
+ - @forge/cli-shared@5.5.0-next.15
74
+ - @forge/bundler@4.19.0-next.16
75
+ - @forge/lint@5.3.3-next.15
76
+ - @forge/tunnel@5.5.0-next.16
77
+
78
+ ## 10.6.0-next.16
79
+
80
+ ### Patch Changes
81
+
82
+ - Updated dependencies [d51b7be]
83
+ - @forge/i18n@0.0.1-next.13
84
+ - @forge/bundler@4.19.0-next.15
85
+ - @forge/cli-shared@5.5.0-next.14
86
+ - @forge/manifest@7.7.0-next.14
87
+ - @forge/tunnel@5.5.0-next.15
88
+ - @forge/lint@5.3.3-next.14
89
+
3
90
  ## 10.6.0-next.15
4
91
 
5
92
  ### Minor Changes
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@forge/cli",
3
- "version": "10.6.0-next.15",
3
+ "version": "10.6.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@forge/cli",
9
- "version": "10.6.0-next.15",
9
+ "version": "10.6.0",
10
10
  "hasInstallScript": true,
11
11
  "license": "UNLICENSED",
12
12
  "dependencies": {
13
- "@forge/bundler": "4.19.0-next.14",
14
- "@forge/cli-shared": "5.5.0-next.13",
13
+ "@forge/bundler": "4.19.0",
14
+ "@forge/cli-shared": "5.5.0",
15
15
  "@forge/egress": "1.2.13",
16
- "@forge/i18n": "0.0.1-next.12",
17
- "@forge/lint": "5.3.3-next.13",
18
- "@forge/manifest": "7.7.0-next.13",
16
+ "@forge/i18n": "0.0.1",
17
+ "@forge/lint": "5.3.3",
18
+ "@forge/manifest": "7.7.0",
19
19
  "@forge/runtime": "5.10.1",
20
- "@forge/tunnel": "5.5.0-next.14",
20
+ "@forge/tunnel": "5.5.0",
21
21
  "@forge/util": "1.4.4",
22
22
  "@sentry/node": "7.100.1",
23
23
  "ajv": "^8.12.0",
@@ -832,9 +832,9 @@
832
832
  "integrity": "sha512-zG50ZRzbKyWHVb/XjI6iCIyyDNmSHdlclvehMjFZ/A3qpHExjSCjaszeY6gBDJKD2GORKKjQ3LS1UyRpiVVvkA=="
833
833
  },
834
834
  "node_modules/@forge/bundler": {
835
- "version": "4.19.0-next.14",
836
- "resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-4.19.0-next.14.tgz",
837
- "integrity": "sha512-MArbA3uVkQFYGf0+wSmUsatRUdSnLRgjbuGSfXmVNx9VtIZjH8YKmyCPrJ6FFP5GM99v6o0xY0NzXMhMoJkNbA==",
835
+ "version": "4.19.0",
836
+ "resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-4.19.0.tgz",
837
+ "integrity": "sha512-60hre7rzkpwDMjn04TDe8Kgk6U9PdTMz15qrmvNIBrEXHtfm16TtZ8ly7yuanqsFNrQ5tQhsrAoQ1QIo1SIaFQ==",
838
838
  "dependencies": {
839
839
  "@babel/core": "^7.24.0",
840
840
  "@babel/plugin-transform-class-properties": "^7.23.3",
@@ -843,12 +843,12 @@
843
843
  "@babel/plugin-transform-optional-chaining": "^7.23.4",
844
844
  "@babel/plugin-transform-react-jsx": "^7.23.4",
845
845
  "@babel/preset-typescript": "^7.23.3",
846
- "@forge/api": "3.9.2-next.2",
846
+ "@forge/api": "3.9.2",
847
847
  "@forge/babel-plugin-transform-ui": "1.1.18",
848
- "@forge/cli-shared": "5.5.0-next.13",
849
- "@forge/i18n": "0.0.1-next.12",
850
- "@forge/lint": "5.3.3-next.13",
851
- "@forge/manifest": "7.7.0-next.13",
848
+ "@forge/cli-shared": "5.5.0",
849
+ "@forge/i18n": "0.0.1",
850
+ "@forge/lint": "5.3.3",
851
+ "@forge/manifest": "7.7.0",
852
852
  "@forge/util": "1.4.4",
853
853
  "assert": "^2.1.0",
854
854
  "babel-loader": "^8.3.0",
@@ -887,9 +887,9 @@
887
887
  }
888
888
  },
889
889
  "node_modules/@forge/bundler/node_modules/@forge/api": {
890
- "version": "3.9.2-next.2",
891
- "resolved": "https://registry.npmjs.org/@forge/api/-/api-3.9.2-next.2.tgz",
892
- "integrity": "sha512-DIEBdmRTw+RcWm8b/mt7BsRtzFh8QEIyofyNOhqVGAYeJbG0LSJbWH7XGtM1k8La1yrWiOw9IPv/q9/+o8jKXA==",
890
+ "version": "3.9.2",
891
+ "resolved": "https://registry.npmjs.org/@forge/api/-/api-3.9.2.tgz",
892
+ "integrity": "sha512-KyjmHkyZLumb2qcSble4A/gHrH0blx+Mn3Zrs+4JlBYgs+iUFp5HW3o2Ui8ITBN+xtnVwQg8KAz1D88foGtW8A==",
893
893
  "dependencies": {
894
894
  "@forge/auth": "0.0.5",
895
895
  "@forge/egress": "1.2.13",
@@ -905,12 +905,12 @@
905
905
  "integrity": "sha512-n4AWXkzMA4Pv4nam+dTu7PHgDQtMwaAF2MalOWF323zGvYKS/gZJY+7efJq0DLP783iTfjvYT879EHhCrfvEXA=="
906
906
  },
907
907
  "node_modules/@forge/cli-shared": {
908
- "version": "5.5.0-next.13",
909
- "resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-5.5.0-next.13.tgz",
910
- "integrity": "sha512-Fh4+1txHQYc0yfdQVBFYY/KglU63DnmAi0jiyPYhXherXOz+TDz89Te+HOk7rF6yBsNH9HIc2IW5b0aRUcaViQ==",
908
+ "version": "5.5.0",
909
+ "resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-5.5.0.tgz",
910
+ "integrity": "sha512-KJRMmPFNUTDeOJzvY6mX4Ck+mO5l16d+iHXRVYGVozJii/yzpvL6ZYX7rYvNPTbRx0UGdOpDJ0XtY1SRtVjqLw==",
911
911
  "dependencies": {
912
- "@forge/i18n": "0.0.1-next.12",
913
- "@forge/manifest": "7.7.0-next.13",
912
+ "@forge/i18n": "0.0.1",
913
+ "@forge/manifest": "7.7.0",
914
914
  "@forge/util": "1.4.4",
915
915
  "@sentry/node": "7.100.1",
916
916
  "adm-zip": "^0.5.10",
@@ -961,21 +961,21 @@
961
961
  }
962
962
  },
963
963
  "node_modules/@forge/i18n": {
964
- "version": "0.0.1-next.12",
965
- "resolved": "https://registry.npmjs.org/@forge/i18n/-/i18n-0.0.1-next.12.tgz",
966
- "integrity": "sha512-qRvN6RbWTAInvDa5XLCGALrilUu8ATvviS81Jm0ScYMICatZXME5csFcFrz8CbWBBW3JZ1F6nX9PQPnTfdN43Q==",
964
+ "version": "0.0.1",
965
+ "resolved": "https://registry.npmjs.org/@forge/i18n/-/i18n-0.0.1.tgz",
966
+ "integrity": "sha512-F/vDUxgWF49jSZPC6KBADQzVt4AY81hkc5ns3zwIw5qyAsyoTXoKyxqG7dNdGH7jendxuoa/INkdHKdOYQsRLQ==",
967
967
  "dependencies": {
968
968
  "lodash": "^4.17.21"
969
969
  }
970
970
  },
971
971
  "node_modules/@forge/lint": {
972
- "version": "5.3.3-next.13",
973
- "resolved": "https://registry.npmjs.org/@forge/lint/-/lint-5.3.3-next.13.tgz",
974
- "integrity": "sha512-WqYaK5LohGoHZZEVcvgUX+BJ0RdzFWeR+h4BwOCjPzhawAzov0YoW3YCfRZv6DwiTD7BroJ89TeqxRC74JY0Sw==",
972
+ "version": "5.3.3",
973
+ "resolved": "https://registry.npmjs.org/@forge/lint/-/lint-5.3.3.tgz",
974
+ "integrity": "sha512-ckUkkRQLHFmNvKGd2MmTnSa2nvEnhimgzTda0AUEUWoJ2aihrEpMngpEjRdb1B7xNUtEqmdqws4lryob6nfNKg==",
975
975
  "dependencies": {
976
- "@forge/cli-shared": "5.5.0-next.13",
976
+ "@forge/cli-shared": "5.5.0",
977
977
  "@forge/egress": "1.2.13",
978
- "@forge/manifest": "7.7.0-next.13",
978
+ "@forge/manifest": "7.7.0",
979
979
  "@typescript-eslint/typescript-estree": "^5.62.0",
980
980
  "array.prototype.flatmap": "^1.3.2",
981
981
  "atlassian-openapi": "^1.0.18",
@@ -984,11 +984,11 @@
984
984
  }
985
985
  },
986
986
  "node_modules/@forge/manifest": {
987
- "version": "7.7.0-next.13",
988
- "resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-7.7.0-next.13.tgz",
989
- "integrity": "sha512-scJ1aTwGxysuaEX19b6bDWKCtU+4duWtJlFToud8eUGLdys/GT1auH/pqsjVbxoIH+RweHDUbH0If/epoRu7/A==",
987
+ "version": "7.7.0",
988
+ "resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-7.7.0.tgz",
989
+ "integrity": "sha512-tmPgN1+yYrEAZq4Ntc32vOGiX/q4pWZ1kdoV6cjBH320WvMzCevSNSIrZYt2LkJQ4tB7dpfksJoduxvgXwqW6Q==",
990
990
  "dependencies": {
991
- "@forge/i18n": "0.0.1-next.12",
991
+ "@forge/i18n": "0.0.1",
992
992
  "@sentry/node": "7.100.1",
993
993
  "ajv": "^8.12.0",
994
994
  "ajv-formats": "2.1.1",
@@ -1015,12 +1015,12 @@
1015
1015
  }
1016
1016
  },
1017
1017
  "node_modules/@forge/tunnel": {
1018
- "version": "5.5.0-next.14",
1019
- "resolved": "https://registry.npmjs.org/@forge/tunnel/-/tunnel-5.5.0-next.14.tgz",
1020
- "integrity": "sha512-SokrPVVmDl7pUnXFeq9AEehtskkGoqfusMFTE/EicktvrM9QAjm2gc26YiDZj1LmPdack+D838qS5LzsTscozA==",
1018
+ "version": "5.5.0",
1019
+ "resolved": "https://registry.npmjs.org/@forge/tunnel/-/tunnel-5.5.0.tgz",
1020
+ "integrity": "sha512-fNLEFHdRJvO3/mEDJ4YmrJPD8CTi7GTjjoQ3VTkwuk+u3H+0hB7+6+bYzxVXNYj4tROS39kgGvnW0Ob5p7TJjg==",
1021
1021
  "dependencies": {
1022
- "@forge/bundler": "4.19.0-next.14",
1023
- "@forge/cli-shared": "5.5.0-next.13",
1022
+ "@forge/bundler": "4.19.0",
1023
+ "@forge/cli-shared": "5.5.0",
1024
1024
  "@forge/csp": "3.3.0",
1025
1025
  "@forge/runtime": "5.10.1",
1026
1026
  "chokidar": "^3.6.0",
@@ -41,6 +41,7 @@ export declare class DeployController {
41
41
  private isMpacProductionApp;
42
42
  private connectKeyDeleted;
43
43
  private connectKeyChanged;
44
+ private connectKeyMutatedInProduction;
44
45
  private validateConnectKeyChange;
45
46
  private verifyPreDeployment;
46
47
  private verifyPostDeployment;
@@ -1 +1 @@
1
- {"version":3,"file":"deploy-controller.d.ts","sourceRoot":"","sources":["../../../src/command-line/controller/deploy-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EAEpB,UAAU,EACV,cAAc,EACd,WAAW,EAIZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAA+B,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AACzG,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAEhF,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,UAAU,aAAa;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAA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YAgBpB,2BAA2B;YAe3B,wBAAwB;IAkBzB,GAAG,CAAC,EACf,WAAW,EACX,MAAM,EACN,cAAc,EACd,YAAY,EACb,EAAE,aAAa,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;CAkFpD"}
1
+ {"version":3,"file":"deploy-controller.d.ts","sourceRoot":"","sources":["../../../src/command-line/controller/deploy-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EAEpB,UAAU,EACV,cAAc,EACd,WAAW,EAIZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAA+B,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AACzG,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAEhF,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,UAAU,aAAa;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,qBAAa,sBAAuB,SAAQ,WAAW;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,MAAM,EAAE;IAItC,aAAa,IAAI,cAAc;IAM/B,WAAW,IAAI,OAAO;CAG9B;AAED,qBAAa,sBAAuB,SAAQ,WAAW;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,MAAM;IAGpC,aAAa,IAAI,cAAc;IAM/B,WAAW,IAAI,OAAO;CAG9B;AAED,qBAAa,gBAAgB;IAEzB,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IACtC,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,iCAAiC;IAClD,OAAO,CAAC,QAAQ,CAAC,8BAA8B;IAC/C,OAAO,CAAC,QAAQ,CAAC,wBAAwB;gBAVxB,iBAAiB,EAAE,iBAAiB,EACpC,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,oBAAoB,EAAE,mBAAmB,EACzC,oBAAoB,EAAE,oBAAoB,EAC1C,qBAAqB,EAAE,qBAAqB,EAC5C,oBAAoB,EAAE,oBAAoB,EAC1C,UAAU,EAAE,UAAU,EACtB,iCAAiC,EAAE,0BAA0B,EAC7D,8BAA8B,EAAE,0BAA0B,EAC1D,wBAAwB,EAAE,wBAAwB;IAGrE,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,6BAA6B;YAWvB,wBAAwB;YA2BxB,mBAAmB;YA2BnB,oBAAoB;YAgBpB,2BAA2B;YAe3B,wBAAwB;IAkBzB,GAAG,CAAC,EACf,WAAW,EACX,MAAM,EACN,cAAc,EACd,YAAY,EACb,EAAE,aAAa,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;CAkFpD"}
@@ -71,12 +71,22 @@ class DeployController {
71
71
  connectKeyChanged(connectKey, comparisonKey) {
72
72
  return !!(comparisonKey && connectKey && connectKey !== comparisonKey);
73
73
  }
74
+ connectKeyMutatedInProduction(connectKey, comparisonKey, environment, isSkeletonVersion) {
75
+ if (isSkeletonVersion || environment !== 'production') {
76
+ return false;
77
+ }
78
+ return !!(connectKey !== comparisonKey);
79
+ }
74
80
  async validateConnectKeyChange(environment, keys) {
75
- const { migrationKeys, mpacAppKey } = keys;
81
+ const { migrationKeys, mpacAppKey, isSkeletonVersion } = keys;
76
82
  const connectKey = await this.configFile.getConnectKey();
77
83
  const migrationKey = migrationKeys?.confluence || migrationKeys?.jira;
78
84
  const isMpacApp = this.isMpacProductionApp(mpacAppKey, environment);
79
- if (this.connectKeyDeleted(connectKey, migrationKey)) {
85
+ if (!isMpacApp && this.connectKeyMutatedInProduction(connectKey, migrationKey, environment, !!isSkeletonVersion)) {
86
+ this.deployView.displayConnectKeyMutationInProductionError(migrationKey, connectKey);
87
+ throw new InvalidConnectKeyError(cli_shared_1.Text.deploy.connectKeyChange.mpacAppConnectKeyChangeAnalyticsError);
88
+ }
89
+ else if (this.connectKeyDeleted(connectKey, migrationKey)) {
80
90
  this.deployView.displayConnectKeyDeleteWarning(environment);
81
91
  const proceed = await this.deployView.promptToContinueDeletingConnectKey();
82
92
  return { proceed, connectKeyDeleted: proceed, connectKeyChanged: false };
@@ -16,6 +16,7 @@ export declare class DeployView {
16
16
  displayConnectKeyChangeWarning(environment: string, migrationKey: string, connectKey: string): void;
17
17
  displayConnectKeyDeleteWarning(environment: string): void;
18
18
  displayMPACAppConnectKeyChangeError(mpacAppKey: string, connectKey: string): void;
19
+ displayConnectKeyMutationInProductionError(migrationKey?: string, connectKey?: string): void;
19
20
  displayEnvironmentCreationWarning(environment: string): void;
20
21
  displayEnvironmentCreationSuccessMessage(environment: string): void;
21
22
  promptToContinueDeletingConnectKey(): Promise<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"deploy-view.d.ts","sourceRoot":"","sources":["../../../src/command-line/view/deploy-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAkB,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IrF,iCAAiC,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAM5D,wCAAwC,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAK7D,kCAAkC,IAAI,OAAO,CAAC,OAAO,CAAC;IAI5D,wCAAwC,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;IAI9D,kCAAkC,IAAI,OAAO,CAAC,OAAO,CAAC;IAItD,kCAAkC,IAAI,OAAO,CAAC,OAAO,CAAC;IAItD,yBAAyB,IAAI,OAAO,CAAC,OAAO,CAAC;IAM7C,yCAAyC,IAAI,OAAO,CAAC,OAAO,CAAC;IAKnE,0CAA0C,IAAI,IAAI;IAK5C,wBAAwB,CACnC,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,eAAe,EAAE,EAAE,qBAAqB,EACxE,wBAAwB,EAAE,OAAO,EACjC,cAAc,EAAE,MAAM,OAAO,CAAC,gBAAgB,CAAC,GAC9C,OAAO,CAAC,gBAAgB,CAAC;CAY7B"}
@@ -48,6 +48,9 @@ class DeployView {
48
48
  displayMPACAppConnectKeyChangeError(mpacAppKey, connectKey) {
49
49
  this.ui.info(cli_shared_1.Text.deploy.connectKeyChange.mpacAppConnectKeyChangeError(mpacAppKey, connectKey));
50
50
  }
51
+ displayConnectKeyMutationInProductionError(migrationKey, connectKey) {
52
+ this.ui.info(cli_shared_1.Text.deploy.connectKeyChange.connectKeyMutationInProductionError(migrationKey, connectKey));
53
+ }
51
54
  displayEnvironmentCreationWarning(environment) {
52
55
  this.ui.emptyLine();
53
56
  this.ui.warn(cli_shared_1.Text.env.warn.envWillBeCreated(environment));
@@ -1 +1 @@
1
- {"version":3,"file":"graphql-client.d.ts","sourceRoot":"","sources":["../../src/migration-keys/graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA6D,MAAM,mBAAmB,CAAC;AAC7G,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAEhF,qBAAa,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAE5C,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAiDjH"}
1
+ {"version":3,"file":"graphql-client.d.ts","sourceRoot":"","sources":["../../src/migration-keys/graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA6D,MAAM,mBAAmB,CAAC;AAC7G,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAEhF,qBAAa,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAE5C,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAqDjH"}
@@ -22,6 +22,7 @@ class GraphqlClient {
22
22
  jira
23
23
  confluence
24
24
  }
25
+ version
25
26
  }
26
27
  }
27
28
  }
@@ -42,13 +43,15 @@ class GraphqlClient {
42
43
  }
43
44
  const mpacAppKey = result.app.marketplaceApp?.appKey;
44
45
  const versions = result.app.environmentByKey.versions;
46
+ let isSkeletonVersion = true;
45
47
  let migrationKeys;
46
48
  for (const edge of versions?.edges || []) {
47
49
  if (edge) {
48
50
  migrationKeys = edge.node?.migrationKeys;
51
+ isSkeletonVersion = edge.node?.version === '1.1.0';
49
52
  }
50
53
  }
51
- return { migrationKeys, mpacAppKey };
54
+ return { migrationKeys, mpacAppKey, isSkeletonVersion };
52
55
  }
53
56
  }
54
57
  exports.GraphqlClient = GraphqlClient;
@@ -6,6 +6,7 @@ export declare type MigrationKeys = {
6
6
  export interface AppEnvironmentMigrationKeys {
7
7
  migrationKeys?: MigrationKeys | null;
8
8
  mpacAppKey?: string | null;
9
+ isSkeletonVersion?: boolean;
9
10
  }
10
11
  export interface GetMigrationKeysClient {
11
12
  getLatestMigrationKeys(appId: string, environmentKey: string): Promise<AppEnvironmentMigrationKeys>;
@@ -1 +1 @@
1
- {"version":3,"file":"migration-keys-service.d.ts","sourceRoot":"","sources":["../../src/service/migration-keys-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,oBAAY,aAAa,GAAG;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AACF,MAAM,WAAW,2BAA2B;IAC1C,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AACD,MAAM,WAAW,sBAAsB;IACrC,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;CACrG;AAED,qBAAa,oBAAoB;IAE7B,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,YAAY;gBADZ,mBAAmB,EAAE,sBAAsB,EAC3C,YAAY,EAAE,iBAAiB;IAGrC,iCAAiC,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAI7G"}
1
+ {"version":3,"file":"migration-keys-service.d.ts","sourceRoot":"","sources":["../../src/service/migration-keys-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,oBAAY,aAAa,GAAG;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AACF,MAAM,WAAW,2BAA2B;IAC1C,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AACD,MAAM,WAAW,sBAAsB;IACrC,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;CACrG;AAED,qBAAa,oBAAoB;IAE7B,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,YAAY;gBADZ,mBAAmB,EAAE,sBAAsB,EAC3C,YAAY,EAAE,iBAAiB;IAGrC,iCAAiC,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAI7G"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/cli",
3
- "version": "10.6.0-next.15",
3
+ "version": "10.6.0",
4
4
  "description": "A command line interface for managing Atlassian-hosted apps",
5
5
  "author": "Atlassian",
6
6
  "license": "UNLICENSED",
@@ -18,16 +18,16 @@
18
18
  "postinstall": "node -e \"fs.existsSync('./out/bin/postinstall.js') && require('./out/bin/postinstall.js')\""
19
19
  },
20
20
  "dependencies": {
21
- "@forge/bundler": "4.19.0-next.14",
22
- "@forge/cli-shared": "5.5.0-next.13",
21
+ "@forge/bundler": "4.19.0",
22
+ "@forge/cli-shared": "5.5.0",
23
23
  "@forge/egress": "1.2.13",
24
- "@forge/lint": "5.3.3-next.13",
25
- "@forge/manifest": "7.7.0-next.13",
24
+ "@forge/lint": "5.3.3",
25
+ "@forge/manifest": "7.7.0",
26
26
  "@forge/runtime": "5.10.1",
27
- "@forge/tunnel": "5.5.0-next.14",
27
+ "@forge/tunnel": "5.5.0",
28
28
  "@forge/util": "1.4.4",
29
29
  "@sentry/node": "7.100.1",
30
- "@forge/i18n": "0.0.1-next.12",
30
+ "@forge/i18n": "0.0.1",
31
31
  "ajv": "^8.12.0",
32
32
  "archiver": "^6.0.2",
33
33
  "case": "^1.6.3",