@forge/lint 6.2.3-next.2 → 6.2.3-next.21

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,140 @@
1
1
  # @forge/lint
2
2
 
3
+ ## 6.2.3-next.21
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [fb0dbe8]
8
+ - @forge/cli-shared@9.7.0-next.20
9
+
10
+ ## 6.2.3-next.20
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [608da16]
15
+ - @forge/cli-shared@9.7.0-next.19
16
+
17
+ ## 6.2.3-next.19
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [c0b2b2a]
22
+ - Updated dependencies [cf81630]
23
+ - @forge/cli-shared@9.7.0-next.18
24
+
25
+ ## 6.2.3-next.18
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies [797ac88]
30
+ - @forge/cli-shared@9.7.0-next.17
31
+
32
+ ## 6.2.3-next.17
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies [78af9a2]
37
+ - @forge/cli-shared@9.7.0-next.16
38
+
39
+ ## 6.2.3-next.16
40
+
41
+ ### Patch Changes
42
+
43
+ - Updated dependencies [2d36913]
44
+ - @forge/manifest@13.6.0-next.2
45
+ - @forge/cli-shared@9.7.0-next.15
46
+
47
+ ## 6.2.3-next.15
48
+
49
+ ### Patch Changes
50
+
51
+ - Updated dependencies [4740d03]
52
+ - @forge/cli-shared@9.7.0-next.14
53
+
54
+ ## 6.2.3-next.14
55
+
56
+ ### Patch Changes
57
+
58
+ - Updated dependencies [ce74751]
59
+ - @forge/manifest@13.5.1-next.1
60
+ - @forge/cli-shared@9.7.0-next.13
61
+
62
+ ## 6.2.3-next.13
63
+
64
+ ### Patch Changes
65
+
66
+ - 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.
67
+
68
+ ## 6.2.3-next.12
69
+
70
+ ### Patch Changes
71
+
72
+ - Updated dependencies [a384019]
73
+ - @forge/cli-shared@9.7.0-next.12
74
+
75
+ ## 6.2.3-next.11
76
+
77
+ ### Patch Changes
78
+
79
+ - Updated dependencies [b090628]
80
+ - @forge/cli-shared@9.7.0-next.11
81
+
82
+ ## 6.2.3-next.10
83
+
84
+ ### Patch Changes
85
+
86
+ - Updated dependencies [385ac1a]
87
+ - @forge/cli-shared@9.7.0-next.10
88
+
89
+ ## 6.2.3-next.9
90
+
91
+ ### Patch Changes
92
+
93
+ - Updated dependencies [988dff5]
94
+ - @forge/cli-shared@9.7.0-next.9
95
+
96
+ ## 6.2.3-next.8
97
+
98
+ ### Patch Changes
99
+
100
+ - Updated dependencies [9d391ab]
101
+ - @forge/cli-shared@9.7.0-next.8
102
+
103
+ ## 6.2.3-next.7
104
+
105
+ ### Patch Changes
106
+
107
+ - Updated dependencies [82730f2]
108
+ - @forge/cli-shared@9.7.0-next.7
109
+
110
+ ## 6.2.3-next.6
111
+
112
+ ### Patch Changes
113
+
114
+ - Updated dependencies [93f4631]
115
+ - @forge/cli-shared@9.7.0-next.6
116
+
117
+ ## 6.2.3-next.5
118
+
119
+ ### Patch Changes
120
+
121
+ - Updated dependencies [56fd47c]
122
+ - @forge/cli-shared@9.7.0-next.5
123
+
124
+ ## 6.2.3-next.4
125
+
126
+ ### Patch Changes
127
+
128
+ - Updated dependencies [b77e195]
129
+ - @forge/cli-shared@9.7.0-next.4
130
+
131
+ ## 6.2.3-next.3
132
+
133
+ ### Patch Changes
134
+
135
+ - Updated dependencies [ea3b2ba]
136
+ - @forge/cli-shared@9.7.0-next.3
137
+
3
138
  ## 6.2.3-next.2
4
139
 
5
140
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"storage-module-linter.d.ts","sourceRoot":"","sources":["../../../../src/lint/linters/storage-module-linter/storage-module-linter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAA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OAAO,UAAU,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAClF,OAAO,EAAE,OAAO,EAAgB,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAM7E,UAAU,gCAAgC;IACxC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,EAAE,CAAC;IACzB,GAAG,EAAE,cAAc,EAAE,CAAC;IACtB,EAAE,EAAE,cAAc,EAAE,CAAC;CACtB;AAaD,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,cAAc,EAAE,EACxB,UAAU,cAAc,EAAE,EAC1B,OAAO,YAAY,KAClB,OAAO,CAAC,YAAY,CAkCtB,CAAC;AAEF,qBAAa,oBAAqB,SAAQ,UAAU,CAAC,OAAO,EAAE,gCAAgC,EAAE,OAAO,EAAE,CAAC;IAGtG,OAAO,CAAC,QAAQ;gBADhB,WAAW,EAAE,MAAM,EACX,QAAQ,EAAE,QAAQ,EAC1B,MAAM,EAAE,UAAU;IAKP,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IASvC,SAAS,CAAC,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAOjD,SAAS,CAAC,QAAQ,IACd,CAAC,CAAC,MAAM,EAAE,cAAc,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,KAAK,EAAE,YAAY,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC,GACtG,SAAS;IAIb,SAAS,CAAC,oBAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;CAWzE"}
@@ -22,7 +22,7 @@ const fixMissingModules = async (errors, warnings, state) => {
22
22
  const currentModules = (await state.configFile.readConfig())?.modules ?? {};
23
23
  const modulesToAdd = {};
24
24
  const missingSQLModule = errors.find((error) => error.metadata?.missingStorageModule === SQL_MODULE);
25
- const missingOsModule = warnings.find((warning) => warning.metadata?.missingStorageModule === OBJECT_STORE_MODULE);
25
+ const missingOsModule = errors.find((error) => error.metadata?.missingStorageModule === OBJECT_STORE_MODULE);
26
26
  if (missingSQLModule && !currentModules.sql) {
27
27
  modulesToAdd.sql = [
28
28
  {
@@ -39,7 +39,7 @@ const fixMissingModules = async (errors, warnings, state) => {
39
39
  storageClass: ObjectStoreClass.standard
40
40
  }
41
41
  ];
42
- state.warningsFixed += 1;
42
+ state.errorsFixed += 1;
43
43
  }
44
44
  if (Object.keys(modulesToAdd).length) {
45
45
  const newModules = { ...currentModules, ...modulesToAdd };
@@ -7,7 +7,7 @@ const text_1 = require("../../../text");
7
7
  const OS_MODULE = 'objectStore';
8
8
  class OsVerifier extends verifier_interface_1.BaseLintIssueVerifier {
9
9
  getLintClass() {
10
- return linter_interface_1.LintClass.Warning;
10
+ return linter_interface_1.LintClass.Error;
11
11
  }
12
12
  async process(apiCalls) {
13
13
  if (this.manifest.modules && OS_MODULE in this.manifest.modules) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/lint",
3
- "version": "6.2.3-next.2",
3
+ "version": "6.2.3-next.21",
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.0",
14
+ "@forge/api": "^8.2.0-next.2",
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.2",
21
+ "@forge/cli-shared": "9.7.0-next.20",
22
22
  "@forge/csp": "6.3.1",
23
23
  "@forge/egress": "3.0.0",
24
- "@forge/manifest": "13.5.1-next.0",
24
+ "@forge/manifest": "13.6.0-next.2",
25
25
  "@typescript-eslint/typescript-estree": "^5.62.0",
26
26
  "archiver": "^8.0.0",
27
27
  "array.prototype.flatmap": "^1.3.3",