@forge/lint 5.9.0-next.8 → 5.9.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 +96 -0
- package/out/lint/linters/dynamic-properties-linter/verifiers/dynamic-properties-icon-verifier.d.ts.map +1 -1
- package/out/lint/linters/dynamic-properties-linter/verifiers/dynamic-properties-icon-verifier.js +3 -1
- package/out/lint/linters/permission-linter/verifiers/image-url-verifier.d.ts.map +1 -1
- package/out/lint/linters/permission-linter/verifiers/image-url-verifier.js +3 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,101 @@
|
|
|
1
1
|
# @forge/lint
|
|
2
2
|
|
|
3
|
+
## 5.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b44a5b3: Fix the linter to keep the original object for egress permissions and allow to upgrade egress permissions to object
|
|
8
|
+
- 9f050ff: Removed support for Sandbox Runtime and Sanpshots
|
|
9
|
+
- 64befbb: Refactor runtime version manifest check into a linter
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 67bff6d: Fix linter for image egress
|
|
14
|
+
- dd7cad7: Fix deprecated egress manifest linter
|
|
15
|
+
- Updated dependencies [a7bd152]
|
|
16
|
+
- Updated dependencies [73a88f6]
|
|
17
|
+
- Updated dependencies [33c5750]
|
|
18
|
+
- Updated dependencies [e4ab25f]
|
|
19
|
+
- Updated dependencies [0c92352]
|
|
20
|
+
- Updated dependencies [8f2a3c9]
|
|
21
|
+
- Updated dependencies [1992aaf]
|
|
22
|
+
- Updated dependencies [75b7732]
|
|
23
|
+
- Updated dependencies [b44a5b3]
|
|
24
|
+
- Updated dependencies [c3df542]
|
|
25
|
+
- Updated dependencies [9f050ff]
|
|
26
|
+
- Updated dependencies [e6cd96a]
|
|
27
|
+
- Updated dependencies [97255de]
|
|
28
|
+
- Updated dependencies [3d96d1c]
|
|
29
|
+
- Updated dependencies [18eab48]
|
|
30
|
+
- Updated dependencies [be59801]
|
|
31
|
+
- Updated dependencies [8a548ce]
|
|
32
|
+
- Updated dependencies [37eba69]
|
|
33
|
+
- Updated dependencies [c2e09b9]
|
|
34
|
+
- Updated dependencies [ba634d9]
|
|
35
|
+
- Updated dependencies [64befbb]
|
|
36
|
+
- Updated dependencies [d33186c]
|
|
37
|
+
- @forge/manifest@10.0.0
|
|
38
|
+
- @forge/cli-shared@8.0.0
|
|
39
|
+
- @forge/egress@2.0.0
|
|
40
|
+
- @forge/csp@4.0.0
|
|
41
|
+
|
|
42
|
+
## 5.9.0-next.15
|
|
43
|
+
|
|
44
|
+
### Patch Changes
|
|
45
|
+
|
|
46
|
+
- 67bff6d: Fix linter for image egress
|
|
47
|
+
- Updated dependencies [3d96d1c]
|
|
48
|
+
- @forge/manifest@10.0.0-next.13
|
|
49
|
+
- @forge/cli-shared@8.0.0-next.15
|
|
50
|
+
|
|
51
|
+
## 5.9.0-next.14
|
|
52
|
+
|
|
53
|
+
### Patch Changes
|
|
54
|
+
|
|
55
|
+
- Updated dependencies [ba634d9]
|
|
56
|
+
- @forge/cli-shared@8.0.0-next.14
|
|
57
|
+
- @forge/manifest@10.0.0-next.12
|
|
58
|
+
|
|
59
|
+
## 5.9.0-next.13
|
|
60
|
+
|
|
61
|
+
### Patch Changes
|
|
62
|
+
|
|
63
|
+
- Updated dependencies [1992aaf]
|
|
64
|
+
- Updated dependencies [c2e09b9]
|
|
65
|
+
- @forge/manifest@10.0.0-next.11
|
|
66
|
+
- @forge/cli-shared@8.0.0-next.13
|
|
67
|
+
|
|
68
|
+
## 5.9.0-next.12
|
|
69
|
+
|
|
70
|
+
### Patch Changes
|
|
71
|
+
|
|
72
|
+
- Updated dependencies [d33186c]
|
|
73
|
+
- @forge/cli-shared@8.0.0-next.12
|
|
74
|
+
|
|
75
|
+
## 5.9.0-next.11
|
|
76
|
+
|
|
77
|
+
### Patch Changes
|
|
78
|
+
|
|
79
|
+
- Updated dependencies [e6cd96a]
|
|
80
|
+
- @forge/manifest@10.0.0-next.10
|
|
81
|
+
- @forge/cli-shared@8.0.0-next.11
|
|
82
|
+
|
|
83
|
+
## 5.9.0-next.10
|
|
84
|
+
|
|
85
|
+
### Patch Changes
|
|
86
|
+
|
|
87
|
+
- Updated dependencies [33c5750]
|
|
88
|
+
- @forge/manifest@10.0.0-next.9
|
|
89
|
+
- @forge/cli-shared@8.0.0-next.10
|
|
90
|
+
|
|
91
|
+
## 5.9.0-next.9
|
|
92
|
+
|
|
93
|
+
### Patch Changes
|
|
94
|
+
|
|
95
|
+
- Updated dependencies [37eba69]
|
|
96
|
+
- @forge/manifest@10.0.0-next.8
|
|
97
|
+
- @forge/cli-shared@8.0.0-next.9
|
|
98
|
+
|
|
3
99
|
## 5.9.0-next.8
|
|
4
100
|
|
|
5
101
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-properties-icon-verifier.d.ts","sourceRoot":"","sources":["../../../../../src/lint/linters/dynamic-properties-linter/verifiers/dynamic-properties-icon-verifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGlE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAG7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAE3F,qBAAa,6BACX,SAAQ,iCACR,YAAW,iBAAiB,CAAC,wBAAwB,EAAE,CAAC;IAExD,OAAO,CAAC,sBAAsB,CAAyB;gBAE3C,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"dynamic-properties-icon-verifier.d.ts","sourceRoot":"","sources":["../../../../../src/lint/linters/dynamic-properties-linter/verifiers/dynamic-properties-icon-verifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGlE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAG7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAE3F,qBAAa,6BACX,SAAQ,iCACR,YAAW,iBAAiB,CAAC,wBAAwB,EAAE,CAAC;IAExD,OAAO,CAAC,sBAAsB,CAAyB;gBAE3C,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ;IAWnD,SAAS,CAAC,YAAY,IAAI,SAAS;IAItB,OAAO,CAAC,QAAQ,EAAE,wBAAwB,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;CAmBtF"}
|
package/out/lint/linters/dynamic-properties-linter/verifiers/dynamic-properties-icon-verifier.js
CHANGED
|
@@ -10,7 +10,9 @@ class DynamicPropertiesIconVerifier extends abstract_dynamic_properties_verifier
|
|
|
10
10
|
egressFilteringService;
|
|
11
11
|
constructor(environment, manifest) {
|
|
12
12
|
super(environment, manifest);
|
|
13
|
-
const allowList = this.manifest?.permissions?.external?.images ?? []
|
|
13
|
+
const allowList = (this.manifest?.permissions?.external?.images ?? [])
|
|
14
|
+
.map((item) => (typeof item === 'object' && 'address' in item ? item.address : item))
|
|
15
|
+
.filter((item) => typeof item === 'string');
|
|
14
16
|
const collectedUrls = allowList.filter((item) => typeof item === 'string');
|
|
15
17
|
this.egressFilteringService = new egress_1.EgressFilteringService(collectedUrls);
|
|
16
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-url-verifier.d.ts","sourceRoot":"","sources":["../../../../../src/lint/linters/permission-linter/verifiers/image-url-verifier.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGlE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAiBjD,qBAAa,gBAAiB,SAAQ,qBAAsB,YAAW,iBAAiB,CAAC,QAAQ,EAAE,CAAC;IAClG,OAAO,CAAC,sBAAsB,CAAyB;gBAE3C,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"image-url-verifier.d.ts","sourceRoot":"","sources":["../../../../../src/lint/linters/permission-linter/verifiers/image-url-verifier.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGlE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAiBjD,qBAAa,gBAAiB,SAAQ,qBAAsB,YAAW,iBAAiB,CAAC,QAAQ,EAAE,CAAC;IAClG,OAAO,CAAC,sBAAsB,CAAyB;gBAE3C,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ;IAkBnD,SAAS,CAAC,YAAY,IAAI,SAAS;IAItB,OAAO,CAAC,SAAS,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;CAcvE"}
|
|
@@ -28,7 +28,9 @@ class ImageUrlVerifier extends verifier_interface_1.BaseLintIssueVerifier {
|
|
|
28
28
|
constructor(environment, manifest) {
|
|
29
29
|
super(environment, manifest);
|
|
30
30
|
const microsEnv = getMicrosEnvironment((0, cli_shared_1.getEnvironmentConfig)());
|
|
31
|
-
const allowList = this.manifest?.permissions?.external?.images ?? []
|
|
31
|
+
const allowList = (this.manifest?.permissions?.external?.images ?? [])
|
|
32
|
+
.map((item) => (typeof item === 'object' && 'address' in item ? item.address : item))
|
|
33
|
+
.filter((item) => typeof item === 'string');
|
|
32
34
|
const collectedUrls = [
|
|
33
35
|
...allowList,
|
|
34
36
|
...csp_1.ATLASSIAN_IMAGES_HOSTS[microsEnv],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/lint",
|
|
3
|
-
"version": "5.9.0
|
|
3
|
+
"version": "5.9.0",
|
|
4
4
|
"description": "Linting for forge apps",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@atlassian/xen-test-util": "^4.2.0",
|
|
14
|
-
"@forge/api": "^6.0.0
|
|
14
|
+
"@forge/api": "^6.0.0",
|
|
15
15
|
"@types/array.prototype.flatmap": "^1.2.6",
|
|
16
16
|
"@types/cross-spawn": "^6.0.6",
|
|
17
17
|
"@types/eslint": "8.56.2",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"eslint-plugin-import": "^2.29.1"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@forge/cli-shared": "8.0.0
|
|
23
|
-
"@forge/csp": "4.0.0
|
|
24
|
-
"@forge/egress": "2.0.0
|
|
25
|
-
"@forge/manifest": "10.0.0
|
|
22
|
+
"@forge/cli-shared": "8.0.0",
|
|
23
|
+
"@forge/csp": "4.0.0",
|
|
24
|
+
"@forge/egress": "2.0.0",
|
|
25
|
+
"@forge/manifest": "10.0.0",
|
|
26
26
|
"@typescript-eslint/typescript-estree": "^5.62.0",
|
|
27
27
|
"array.prototype.flatmap": "^1.3.2",
|
|
28
28
|
"atlassian-openapi": "^1.0.18",
|