@forge/lint 6.2.3-next.15-experimental-fd0ebbc → 6.2.3-next.16-experimental-554d417
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,17 +1,17 @@
|
|
|
1
1
|
# @forge/lint
|
|
2
2
|
|
|
3
|
-
## 6.2.3-next.
|
|
3
|
+
## 6.2.3-next.16-experimental-554d417
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- 3012e11: Importing from `@forge/object-store` without declaring `modules.objectStore` in the manifest is now a lint error that blocks verified deployments. The existing lint fixer still adds the missing module automatically.
|
|
8
|
-
- 3e160b1: Generate GraphQL types from CLI `graphql()` documents with `@graphql-codegen/client-preset` and `onlyOperationTypes`. Stop star-exporting the 27MB gateway dump from `@forge/cli-shared`.
|
|
9
8
|
- Updated dependencies [2a491b9]
|
|
10
9
|
- Updated dependencies [82730f2]
|
|
11
10
|
- Updated dependencies [dc2caec]
|
|
12
11
|
- Updated dependencies [b090628]
|
|
13
12
|
- Updated dependencies [385ac1a]
|
|
14
13
|
- Updated dependencies [9f27f8a]
|
|
14
|
+
- Updated dependencies [cf81630]
|
|
15
15
|
- Updated dependencies [a384019]
|
|
16
16
|
- Updated dependencies [56fd47c]
|
|
17
17
|
- Updated dependencies [9d391ab]
|
|
@@ -20,11 +20,19 @@
|
|
|
20
20
|
- Updated dependencies [b77e195]
|
|
21
21
|
- Updated dependencies [ea3b2ba]
|
|
22
22
|
- Updated dependencies [4740d03]
|
|
23
|
-
- Updated dependencies [
|
|
23
|
+
- Updated dependencies [2d36913]
|
|
24
24
|
- Updated dependencies [ce74751]
|
|
25
|
-
- @forge/cli-shared@9.7.0-next.
|
|
26
|
-
- @forge/manifest@13.
|
|
27
|
-
- @forge/csp@6.3.1-experimental-
|
|
25
|
+
- @forge/cli-shared@9.7.0-next.15-experimental-554d417
|
|
26
|
+
- @forge/manifest@13.6.0-next.2-experimental-554d417
|
|
27
|
+
- @forge/csp@6.3.1-experimental-554d417
|
|
28
|
+
|
|
29
|
+
## 6.2.3-next.16
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- Updated dependencies [2d36913]
|
|
34
|
+
- @forge/manifest@13.6.0-next.2
|
|
35
|
+
- @forge/cli-shared@9.7.0-next.15
|
|
28
36
|
|
|
29
37
|
## 6.2.3-next.15
|
|
30
38
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql-client.d.ts","sourceRoot":"","sources":["../../../../src/lint/linters/server-side-linter/graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"graphql-client.d.ts","sourceRoot":"","sources":["../../../../src/lint/linters/server-side-linter/graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,SAAS,EAIV,MAAM,mBAAmB,CAAC;AAE3B,UAAU,mBAAmB;IAC3B,KAAK,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC;CACpC;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,CAAC,mBAAmB,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,qBAAa,kBAAmB,SAAQ,KAAK;;CAI5C;AAED,qBAAa,oBAAqB,SAAQ,SAAS;;CAIlD;AAED,qBAAa,oBAAqB,SAAQ,SAAS;;CAIlD;AAED,qBAAa,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAE5C,0BAA0B,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM;IA+ChE,wBAAwB,CACnC,KAAK,EAAE,MAAM,EACb,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EAAE,EACrB,QAAQ,CAAC,EAAE,MAAM,EACjB,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,iBAAiB,EAAE,CAAC;CA0DhC"}
|
|
@@ -26,7 +26,7 @@ class GraphqlClient {
|
|
|
26
26
|
this.graphqlClient = graphqlClient;
|
|
27
27
|
}
|
|
28
28
|
async createAppManifestUploadUrl(appId, environmentKey) {
|
|
29
|
-
const mutation =
|
|
29
|
+
const mutation = `
|
|
30
30
|
mutation forge_cli_createAppManifestUploadUrl($input: CreateAppManifestUploadUrlInput!) {
|
|
31
31
|
createAppManifestUploadUrl(input: $input) {
|
|
32
32
|
success
|
|
@@ -39,15 +39,13 @@ class GraphqlClient {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
const { response, requestId } = await this.graphqlClient.mutate(mutation, {
|
|
42
|
+
}`;
|
|
43
|
+
const { response: { createAppManifestUploadUrl: { success, preSignedUrl, errors } }, requestId } = await this.graphqlClient.mutate(mutation, {
|
|
45
44
|
input: {
|
|
46
45
|
appId,
|
|
47
46
|
environmentKey
|
|
48
47
|
}
|
|
49
48
|
});
|
|
50
|
-
const { success, preSignedUrl, errors } = (0, cli_shared_1.requireMutationPayload)(response.createAppManifestUploadUrl, requestId);
|
|
51
49
|
if (!success) {
|
|
52
50
|
const error = (0, cli_shared_1.getError)(errors);
|
|
53
51
|
throw new cli_shared_1.GraphQlMutationError(`${error.message} (requestId: ${requestId || 'unknown'})`, {
|
|
@@ -62,7 +60,7 @@ class GraphqlClient {
|
|
|
62
60
|
return preSignedUrl;
|
|
63
61
|
}
|
|
64
62
|
async getAppPreDeploymentCheck(appId, environmentKey, manifestUrl, bypassRules, buildTag, majorVersion) {
|
|
65
|
-
const query =
|
|
63
|
+
const query = `
|
|
66
64
|
query forge_cli_appPreDeploymentCheck($input: AppPreDeploymentCheckInput!) {
|
|
67
65
|
appPreDeploymentCheck(input: $input) {
|
|
68
66
|
outcome {
|
|
@@ -84,13 +82,13 @@ class GraphqlClient {
|
|
|
84
82
|
}
|
|
85
83
|
}
|
|
86
84
|
}
|
|
87
|
-
|
|
85
|
+
`;
|
|
88
86
|
const result = await this.graphqlClient.query(query, {
|
|
89
87
|
input: {
|
|
90
88
|
appId,
|
|
91
89
|
environmentKey,
|
|
92
90
|
manifestUrl,
|
|
93
|
-
bypassRules
|
|
91
|
+
bypassRules,
|
|
94
92
|
buildTag,
|
|
95
93
|
majorVersion
|
|
96
94
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/lint",
|
|
3
|
-
"version": "6.2.3-next.
|
|
3
|
+
"version": "6.2.3-next.16-experimental-554d417",
|
|
4
4
|
"description": "Linting for forge apps",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@atlassian/xen-test-util": "^4.2.0",
|
|
14
|
-
"@forge/api": "^8.1.1-next.
|
|
14
|
+
"@forge/api": "^8.1.1-next.1-experimental-554d417",
|
|
15
15
|
"@types/array.prototype.flatmap": "^1.2.6",
|
|
16
16
|
"@types/cross-spawn": "^6.0.6",
|
|
17
17
|
"@types/eslint": "8.56.12",
|
|
18
18
|
"eslint-plugin-import": "^2.29.1"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@forge/cli-shared": "9.7.0-next.
|
|
22
|
-
"@forge/csp": "6.3.1-experimental-
|
|
21
|
+
"@forge/cli-shared": "9.7.0-next.15-experimental-554d417",
|
|
22
|
+
"@forge/csp": "6.3.1-experimental-554d417",
|
|
23
23
|
"@forge/egress": "3.0.0",
|
|
24
|
-
"@forge/manifest": "13.
|
|
24
|
+
"@forge/manifest": "13.6.0-next.2-experimental-554d417",
|
|
25
25
|
"@typescript-eslint/typescript-estree": "^5.62.0",
|
|
26
26
|
"archiver": "^8.0.0",
|
|
27
27
|
"array.prototype.flatmap": "^1.3.3",
|