@forge/cli-shared 9.8.0-next.1 → 9.8.0-next.10
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 +68 -0
- package/out/apps/get-app-owner.d.ts.map +1 -1
- package/out/config/config-file.d.ts.map +1 -1
- package/out/file-system/archiver.js +1 -1
- package/out/file-system/file-system-reader.js +1 -1
- package/out/graphql/gateway.d.ts +3 -0
- package/out/graphql/gateway.d.ts.map +1 -1
- package/out/graphql/gateway.js +10 -1
- package/out/graphql/gql/graphql.d.ts +327 -13
- package/out/graphql/gql/graphql.d.ts.map +1 -1
- package/out/graphql/index.d.ts +1 -0
- package/out/graphql/index.d.ts.map +1 -1
- package/out/graphql/index.js +1 -0
- package/out/graphql/path-based-graphql-client-resolver.d.ts +10 -0
- package/out/graphql/path-based-graphql-client-resolver.d.ts.map +1 -0
- package/out/graphql/path-based-graphql-client-resolver.js +29 -0
- package/out/tunnel/docker-compose-lifecycle.d.ts +1 -1
- package/out/tunnel/docker-compose-lifecycle.d.ts.map +1 -1
- package/out/tunnel/docker-compose-lifecycle.js +9 -8
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,73 @@
|
|
|
1
1
|
# @forge/cli-shared
|
|
2
2
|
|
|
3
|
+
## 9.8.0-next.10
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 879bdfe: `forge webtrigger create`, `list` and `delete` can now route installation-scoped GraphQL requests through the installation's site gateway (`https://<site>/gateway/api/graphql`) instead of the global gateway. This is enabled only when `FORGE_GRAPHQL_GATEWAY=https://api-private.stg.atlassian.com/graphql` and `FORGE_BLUEBIRD_ENABLED=true` are set.
|
|
8
|
+
|
|
9
|
+
## 9.8.0-next.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 0b5d453: Compile workspace packages with module/moduleResolution nodenext. Packages still emit CommonJS, aligned with the CLI’s Node 22+ runtime.
|
|
14
|
+
|
|
15
|
+
Drop package-root TypeScript paths aliases in favour of package.json exports and barrel files. @forge/kvs now exports QueryBuilderOptions from the package root. @forge/manifest publishes a types-only @forge/manifest/schema subpath.
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [0b5d453]
|
|
18
|
+
- @forge/manifest@13.7.0-next.6
|
|
19
|
+
|
|
20
|
+
## 9.8.0-next.8
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [f3dfbe6]
|
|
25
|
+
- @forge/manifest@13.7.0-next.5
|
|
26
|
+
|
|
27
|
+
## 9.8.0-next.7
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [a29bf94]
|
|
32
|
+
- @forge/manifest@13.7.0-next.4
|
|
33
|
+
|
|
34
|
+
## 9.8.0-next.6
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- f08d968: Consolidate `forge tunnel`'s local Container Services artifacts (`.services/` and `.container-service-assets/`) under the existing `.forge/` directory, so tunnelling only ever adds a single hidden directory to the project root instead of two/three separate ones.
|
|
39
|
+
|
|
40
|
+
## 9.8.0-next.5
|
|
41
|
+
|
|
42
|
+
### Patch Changes
|
|
43
|
+
|
|
44
|
+
- Updated dependencies [272d0f3]
|
|
45
|
+
- Updated dependencies [2aaf0c4]
|
|
46
|
+
- @forge/manifest@13.7.0-next.3
|
|
47
|
+
|
|
48
|
+
## 9.8.0-next.4
|
|
49
|
+
|
|
50
|
+
### Patch Changes
|
|
51
|
+
|
|
52
|
+
- Updated dependencies [0746937]
|
|
53
|
+
- @forge/manifest@13.7.0-next.2
|
|
54
|
+
|
|
55
|
+
## 9.8.0-next.3
|
|
56
|
+
|
|
57
|
+
### Patch Changes
|
|
58
|
+
|
|
59
|
+
- Updated dependencies [e17be5e]
|
|
60
|
+
- @forge/manifest@13.7.0-next.1
|
|
61
|
+
|
|
62
|
+
## 9.8.0-next.2
|
|
63
|
+
|
|
64
|
+
### Patch Changes
|
|
65
|
+
|
|
66
|
+
- 1456635: Bumping dependencies via Renovate:
|
|
67
|
+
|
|
68
|
+
- adm-zip
|
|
69
|
+
- @types/adm-zip
|
|
70
|
+
|
|
3
71
|
## 9.8.0-next.1
|
|
4
72
|
|
|
5
73
|
### Minor Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-app-owner.d.ts","sourceRoot":"","sources":["../../src/apps/get-app-owner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA4B,MAAM,YAAY,CAAC;AAErE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,qBAAa,oBAAqB,SAAQ,KAAK;;CAI9C;AAED,eAAO,MAAM,aAAa;
|
|
1
|
+
{"version":3,"file":"get-app-owner.d.ts","sourceRoot":"","sources":["../../src/apps/get-app-owner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA4B,MAAM,YAAY,CAAC;AAErE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,qBAAa,oBAAqB,SAAQ,KAAK;;CAI9C;AAED,eAAO,MAAM,aAAa;QAuCin+vG,8CAAc;GA9Bvp+vG,CAAC;AAEH,qBAAa,gBAAgB;IAEzB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,YAAY;gBADZ,aAAa,EAAE,aAAa,EAC5B,YAAY,EAAE,iBAAiB;IAGrC,OAAO;;;;;;;;;;;;;YAMN,WAAW;CAe1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-file.d.ts","sourceRoot":"","sources":["../../src/config/config-file.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGpE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAoB,MAAM,I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U,EAAE,gBAAgB;IAKlC,cAAc,IAAI,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAiBzC,UAAU,IAAI,OAAO,CAAC,cAAc,CAAC;IAYrC,WAAW,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAKvD,OAAO,CAAC,kBAAkB;IAoBb,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAajE,OAAO,CAAC,aAAa;IAIR,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAe1G,OAAO,CAAC,wBAAwB;IAKhC,OAAO,CAAC,wBAAwB;IAkBhC,OAAO,CAAC,6BAA6B;IAkBrC,OAAO,CAAC,gBAAgB;IAIX,oBAAoB,IAAI,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;KAAE,EAAE,CAAC;IAqClF,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAe1E,YAAY,CAAC,aAAa,CAAC,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAsB1E,aAAa,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAKzD,OAAO,CAAC,eAAe;CAkCxB"}
|
|
@@ -51,7 +51,7 @@ class ZipArchiver extends Archiver {
|
|
|
51
51
|
this.archive.on('error', this.onArchiveError);
|
|
52
52
|
}
|
|
53
53
|
static async create(logger) {
|
|
54
|
-
const { ZipArchive } = await
|
|
54
|
+
const { ZipArchive } = await import('archiver');
|
|
55
55
|
return new ZipArchiver(new ZipArchive(), logger);
|
|
56
56
|
}
|
|
57
57
|
addContent(fileName, contents) {
|
|
@@ -96,7 +96,7 @@ class FileSystemReader {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
async getFolderSizeAsync(directory) {
|
|
99
|
-
const getFolderSize = (await
|
|
99
|
+
const getFolderSize = (await import('get-folder-size')).default;
|
|
100
100
|
const result = await getFolderSize(directory);
|
|
101
101
|
if (result.errors) {
|
|
102
102
|
return undefined;
|
package/out/graphql/gateway.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export declare const DEFAULT_GRAPHQL_GATEWAY = "https://api.atlassian.com/graphql";
|
|
2
2
|
export declare const getGraphqlGateway: () => string;
|
|
3
|
+
export declare const STAGING_PRIVATE_GRAPHQL_GATEWAY = "https://api-private.stg.atlassian.com/graphql";
|
|
4
|
+
export declare const isBluebirdEnabled: () => boolean;
|
|
5
|
+
export declare const isPathBasedRoutingEnabled: () => boolean;
|
|
3
6
|
export declare enum Environments {
|
|
4
7
|
DEV = "dev",
|
|
5
8
|
STG = "staging",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gateway.d.ts","sourceRoot":"","sources":["../../src/graphql/gateway.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,uBAAuB,sCAAsC,CAAC;AAE3E,eAAO,MAAM,iBAAiB,QAAO,MAEpC,CAAC;AAEF,oBAAY,YAAY;IACtB,GAAG,QAAQ;IACX,GAAG,YAAY;IACf,IAAI,SAAS;IACb,wBAAwB,iBAAiB;IACzC,qBAAqB,cAAc;CACpC;AAED,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,OAAO,YAAY,EAAE,MAAM,CAAC,CAAC;AAE3E,oBAAY,eAAe;IACzB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,wBAAwB,iBAAiB;IACzC,qBAAqB,cAAc;CACpC;AAED,eAAO,MAAM,oBAAoB,GAAI,aAAY,kBAAiC,KAAG,MAgBpF,CAAC;AAEF,eAAO,MAAM,YAAY,QAAO,OAM/B,CAAC"}
|
|
1
|
+
{"version":3,"file":"gateway.d.ts","sourceRoot":"","sources":["../../src/graphql/gateway.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,uBAAuB,sCAAsC,CAAC;AAE3E,eAAO,MAAM,iBAAiB,QAAO,MAEpC,CAAC;AAEF,eAAO,MAAM,+BAA+B,kDAAkD,CAAC;AAE/F,eAAO,MAAM,iBAAiB,QAAO,OAEpC,CAAC;AAQF,eAAO,MAAM,yBAAyB,QAAO,OAE5C,CAAC;AAEF,oBAAY,YAAY;IACtB,GAAG,QAAQ;IACX,GAAG,YAAY;IACf,IAAI,SAAS;IACb,wBAAwB,iBAAiB;IACzC,qBAAqB,cAAc;CACpC;AAED,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,OAAO,YAAY,EAAE,MAAM,CAAC,CAAC;AAE3E,oBAAY,eAAe;IACzB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,wBAAwB,iBAAiB;IACzC,qBAAqB,cAAc;CACpC;AAED,eAAO,MAAM,oBAAoB,GAAI,aAAY,kBAAiC,KAAG,MAgBpF,CAAC;AAEF,eAAO,MAAM,YAAY,QAAO,OAM/B,CAAC"}
|
package/out/graphql/gateway.js
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isFedrampEnv = exports.getEnvironmentConfig = exports.CDNEnvironments = exports.Environments = exports.getGraphqlGateway = exports.DEFAULT_GRAPHQL_GATEWAY = void 0;
|
|
3
|
+
exports.isFedrampEnv = exports.getEnvironmentConfig = exports.CDNEnvironments = exports.Environments = exports.isPathBasedRoutingEnabled = exports.isBluebirdEnabled = exports.STAGING_PRIVATE_GRAPHQL_GATEWAY = exports.getGraphqlGateway = exports.DEFAULT_GRAPHQL_GATEWAY = void 0;
|
|
4
4
|
exports.DEFAULT_GRAPHQL_GATEWAY = 'https://api.atlassian.com/graphql';
|
|
5
5
|
const getGraphqlGateway = () => {
|
|
6
6
|
return process.env.FORGE_GRAPHQL_GATEWAY || exports.DEFAULT_GRAPHQL_GATEWAY;
|
|
7
7
|
};
|
|
8
8
|
exports.getGraphqlGateway = getGraphqlGateway;
|
|
9
|
+
exports.STAGING_PRIVATE_GRAPHQL_GATEWAY = 'https://api-private.stg.atlassian.com/graphql';
|
|
10
|
+
const isBluebirdEnabled = () => {
|
|
11
|
+
return (process.env.FORGE_BLUEBIRD_ENABLED ?? '').trim().toLowerCase() === 'true';
|
|
12
|
+
};
|
|
13
|
+
exports.isBluebirdEnabled = isBluebirdEnabled;
|
|
14
|
+
const isPathBasedRoutingEnabled = () => {
|
|
15
|
+
return (0, exports.getGraphqlGateway)().trim() === exports.STAGING_PRIVATE_GRAPHQL_GATEWAY && (0, exports.isBluebirdEnabled)();
|
|
16
|
+
};
|
|
17
|
+
exports.isPathBasedRoutingEnabled = isPathBasedRoutingEnabled;
|
|
9
18
|
var Environments;
|
|
10
19
|
(function (Environments) {
|
|
11
20
|
Environments["DEV"] = "dev";
|