@iobroker/repochecker 3.3.1 → 3.4.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/README.md +148 -127
- package/index.js +1 -0
- package/lib/M000_PackageJson.js +420 -142
- package/lib/M100_IOPackageJson.js +43 -25
- package/lib/M400_Repository.js +6 -5
- package/lib/M500_Code.js +4 -5
- package/lib/M600_Readme.js +4 -4
- package/lib/common.js +1 -1
- package/lib/config.js +14 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,275 +33,296 @@ npx @iobroker/repochecker https://github.com/ioBroker/ioBroker.javascript --loca
|
|
|
33
33
|
-->
|
|
34
34
|
|
|
35
35
|
## Changelog
|
|
36
|
+
### 3.4.0 (2025-02-11)
|
|
37
|
+
|
|
38
|
+
- (mcm1957) Do not suggest to migrate to adapter-dev if only gulpfile.js exists. (#334).
|
|
39
|
+
- (mcm1957) Warn if onlyWWW adapter uses adapter-core (#251).
|
|
40
|
+
- (mcm1957) Singleton checks have been reduced to suggestion level.
|
|
41
|
+
- (mcm1957) Adapter-core 3.2. required now.
|
|
42
|
+
- (mcm1957) Blacklists for peerDependencies and optionalDependencies have been added (#364).
|
|
43
|
+
- (mcm1957) Suggestings for typical devDependencies have been added (#344).
|
|
44
|
+
- (mcm1957) Checking of package dependencies has been enhanced.
|
|
45
|
+
- (mcm1957) Allow legacy-testing instead of testing.
|
|
46
|
+
- (mcm1957) Warn if axios is listed as devDependency (#314).
|
|
47
|
+
- (mcm1957) Adapt common.materialize deprecation message (#315).
|
|
48
|
+
- (mcm1957) Log an error if dependency is listed multiple times (#316).
|
|
49
|
+
- (mcm1957) Check package.json for invalid attributes.
|
|
50
|
+
- (mcm1957) Fix duplicated warning E432 and E434.
|
|
51
|
+
- (mcm1957) Adapt copyright year advisory.
|
|
52
|
+
|
|
53
|
+
### 3.3.2 (2025-01-20)
|
|
54
|
+
|
|
55
|
+
- (mcm1957) Avoid crash if some file cannot be downloaded.
|
|
56
|
+
|
|
36
57
|
### 3.3.1 (2025-01-19)
|
|
37
58
|
|
|
38
|
-
-
|
|
59
|
+
- (mcm1957) Report malformed semver specifications has been fixed.
|
|
39
60
|
|
|
40
61
|
### 3.3.0 (2025-01-19)
|
|
41
62
|
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
63
|
+
- (mcm1957) "common.singleton" causes a warning now for non-onlyWWW Adapters.
|
|
64
|
+
- (mcm1957) "$schema" has been blacklisted at io-package.json.
|
|
65
|
+
- (mcm1957) Warn if 'common.nondeletable' flag is detected.
|
|
66
|
+
- (mcm1957) Report request as deprecated package.
|
|
67
|
+
- (mcm1957) Report malformed semver specifications.
|
|
68
|
+
- (mcm1957) Check of copyright-year complains about future dates now.
|
|
69
|
+
- (mcm1957) Checking for responsive design issues has been added.
|
|
70
|
+
- (mcm1957) Releaseinfo has been added to "checks" log.
|
|
50
71
|
|
|
51
72
|
### 3.2.4 (2025-01-16)
|
|
52
|
-
-
|
|
73
|
+
- (mcm1957) Suggested release of testing and adapter-core increased.
|
|
53
74
|
|
|
54
75
|
### 3.2.3 (2025-01-11)
|
|
55
76
|
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
77
|
+
- (mcm1957) An error is issued if js-controller dependency is missing.
|
|
78
|
+
- (mcm1957) Required js-controller has been increased to 5.0.19.
|
|
79
|
+
- (mcm1957) Recommended js-controller version is omitted if identical to required one.
|
|
59
80
|
|
|
60
81
|
### 3.2.2 (2024-11-01)
|
|
61
82
|
|
|
62
|
-
-
|
|
63
|
-
-
|
|
83
|
+
- (mcm1957) Link to open issues has been corrected.
|
|
84
|
+
- (mcm1957) Component name added to responsive check issues.
|
|
64
85
|
|
|
65
86
|
### 3.2.1 (2024-11-01)
|
|
66
87
|
|
|
67
|
-
-
|
|
88
|
+
- (mcm1957) Size checking for "divider" and "staticImage" suspended.
|
|
68
89
|
|
|
69
90
|
### 3.2.0 (2024-11-01)
|
|
70
91
|
|
|
71
|
-
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
92
|
+
- (oweitman) Script has been extended to use optionally local data for checking.
|
|
93
|
+
- (mcm1957) Warning if i18n is not used has been fixed [#324].
|
|
94
|
+
- (mcm1957) Check for importent issues has been added.
|
|
95
|
+
- (mcm1957) Checking of jsonConfig (initially) added.
|
|
75
96
|
|
|
76
97
|
### 3.1.4 (2024-10-26)
|
|
77
98
|
|
|
78
|
-
-
|
|
79
|
-
-
|
|
80
|
-
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
99
|
+
- (mcm1957) linter has been activated and issues reported have been fixed.
|
|
100
|
+
- (mcm1957) Blacklist for package/dependencies has been extended.
|
|
101
|
+
- (mcm1957) Recommend adapter-core 3.2.2 now.
|
|
102
|
+
- (mcm1957) Clearify test for "[E952] .npmignore not found". [#320]
|
|
103
|
+
- (mcm1957) Abort processing if iobroker.live not reachable. [#321]
|
|
83
104
|
|
|
84
105
|
### 3.1.3 (2024-10-11)
|
|
85
106
|
|
|
86
|
-
-
|
|
107
|
+
- (mcm1957) Checker no longer crash id no npm package exists.
|
|
87
108
|
|
|
88
109
|
### 3.1.2 (2024-10-04)
|
|
89
110
|
|
|
90
|
-
-
|
|
111
|
+
- (mcm1957) Require node 18 minimum as engines clause.
|
|
91
112
|
|
|
92
113
|
### 3.1.1 (2024-10-04)
|
|
93
114
|
|
|
94
|
-
-
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
115
|
+
- (mcm1957) "[E166] 'common.mode: extension' is unknown" has been fixed [#308]
|
|
116
|
+
- (mcm1957) "[E904] file iob_npm.done found in repository, but not found in .gitignore" removed as covered by [E503]. [#309]
|
|
117
|
+
- (mcm1957) "[E500] node_modules found" has been retricted to adapetr root. [#297]
|
|
118
|
+
- (mcm1957) Do not check main entry if common.mode none or extension.
|
|
119
|
+
- (mcm1957) Change "[W113] Adapter should support compact mode" text and honor common.compact set to false. [#300]
|
|
99
120
|
|
|
100
121
|
### 3.1.0 (2024-09-29)
|
|
101
122
|
|
|
102
|
-
-
|
|
103
|
-
-
|
|
104
|
-
-
|
|
123
|
+
- (mcm1957) "@iobroker/plugin-sentry" blacklisted as dependency [#301]
|
|
124
|
+
- (mcm1957) Accept .ts files as main file too. [#303]
|
|
125
|
+
- (mcm1957) [E405] and [E426] incorrect path has been corrected. [#299]
|
|
105
126
|
|
|
106
127
|
### 3.0.7 (2024-09-19)
|
|
107
128
|
|
|
108
|
-
-
|
|
129
|
+
- (mcm1957) "[W523] 'package-lock.json"'not found in repo!" reduced to suggestion. [#298]
|
|
109
130
|
|
|
110
131
|
### 3.0.6 (2024-09-13)
|
|
111
132
|
|
|
112
|
-
-
|
|
113
|
-
-
|
|
114
|
-
-
|
|
133
|
+
- (mcm1957) "[E124] Main file not found" no longer raised if `common.nogit` is set
|
|
134
|
+
- (mcm1957) 'Text of "common.main" is deprecated' has been adapted. [#266]
|
|
135
|
+
- (mcm1957) Ignore errors caused by complex .gitignor/.npmignore. [#288]
|
|
115
136
|
|
|
116
137
|
### 3.0.5 (2024-09-13)
|
|
117
138
|
|
|
118
|
-
-
|
|
139
|
+
- (mcm1957) '@iobroker/dev-server' is valid as dev-dependency. [#260]
|
|
119
140
|
|
|
120
141
|
### 3.0.4 (2024-09-12)
|
|
121
142
|
|
|
122
|
-
-
|
|
123
|
-
-
|
|
124
|
-
-
|
|
125
|
-
-
|
|
126
|
-
-
|
|
127
|
-
-
|
|
128
|
-
-
|
|
143
|
+
- (mcm1957) Abort with incorrect dependency definition fixed [#287]
|
|
144
|
+
- (mcm1957) Improve handling of malformed dependency definitions [#284]
|
|
145
|
+
- (mcm1957) Improve handling of malformed .releaseconfig.json files [#283]
|
|
146
|
+
- (mcm1957) Missing mandatory translations are considered an error now. [#277, #278]
|
|
147
|
+
- (mcm1957) '.npmignore found but "files" is used' is a warning now. [#274]
|
|
148
|
+
- (mcm1957) '@iobroker/dev-server' has been blacklisted as any dependency. [#260]
|
|
149
|
+
- (mcm1957) Do no longer require a js-controller dependency for wwwOnly adapters. [#250]
|
|
129
150
|
|
|
130
151
|
### 3.0.3 (2024-09-12)
|
|
131
152
|
|
|
132
|
-
-
|
|
153
|
+
- (mcm1957) Check for iob_npm.done at `.npmignore` has been removed [#294]
|
|
133
154
|
|
|
134
155
|
### 3.0.2 (2024-09-11)
|
|
135
156
|
|
|
136
|
-
-
|
|
137
|
-
-
|
|
138
|
-
-
|
|
139
|
-
-
|
|
157
|
+
- (mcm1957) Handling of a missing LICENSE file corrected. [#282]
|
|
158
|
+
- (mcm1957) [W126] Missing mandatory translation is an error now. [#293]
|
|
159
|
+
- (mcm1957) Record repochcker version used for tests.
|
|
160
|
+
- (mcm1957) Record GitHub commit-sha of last commit used for tests.
|
|
140
161
|
|
|
141
162
|
### 3.0.0 (2024-09-10)
|
|
142
163
|
|
|
143
|
-
-
|
|
144
|
-
-
|
|
164
|
+
- (mcm1957) Error and warning numbering has been reviewed and duplicates removed.
|
|
165
|
+
- (mcm1957) index.js has been split into seperated modules.
|
|
145
166
|
|
|
146
167
|
### 2.10.0 (2024-08-19)
|
|
147
168
|
|
|
148
|
-
-
|
|
169
|
+
- (mcm1957) Suggestions ([Sxxx] have been added).
|
|
149
170
|
|
|
150
171
|
### 2.9.1 (2024-08-12)
|
|
151
172
|
|
|
152
|
-
-
|
|
153
|
-
-
|
|
154
|
-
-
|
|
155
|
-
-
|
|
173
|
+
- (mcm1957) E162 - correct dependency check for js-controller. [#267].
|
|
174
|
+
- (mcm1957) E605 - copyright year range including whitespaces is now accepted. [#269].
|
|
175
|
+
- (mcm1957) E016 - missing vaiable expansion has been added. [#263].
|
|
176
|
+
- (mcm1957) E114 - typo at error message has been fixed [#261].
|
|
156
177
|
|
|
157
178
|
### 2.9.0 (2024-07-29)
|
|
158
179
|
|
|
159
|
-
-
|
|
160
|
-
-
|
|
161
|
-
-
|
|
162
|
-
-
|
|
163
|
-
-
|
|
180
|
+
- (mcm1957) Adapt text if sources-dist(-stable).json need a correction [#97].
|
|
181
|
+
- (mcm1957) Missing "common.mode" error text corrected [#249].
|
|
182
|
+
- (mcm1957) Files "iob" and "iobroker" are disallowed now [#248].
|
|
183
|
+
- (mcm1957) Checks related to @alcalzone/releasescript modified [#71].
|
|
184
|
+
- (mcm1957) Text of E114 (missing adminUI) adapted.
|
|
164
185
|
|
|
165
186
|
### 2.8.1 (2024-07-28)
|
|
166
187
|
|
|
167
|
-
-
|
|
168
|
-
-
|
|
188
|
+
- (mcm1957) Check of js-controller version has been corrected [#247].
|
|
189
|
+
- (mcm1957) Honor '>' at dependency checks too [#246].
|
|
169
190
|
|
|
170
191
|
### 2.8.0 (2024-07-28)
|
|
171
192
|
|
|
172
|
-
-
|
|
173
|
-
-
|
|
174
|
-
-
|
|
175
|
-
-
|
|
176
|
-
-
|
|
177
|
-
-
|
|
178
|
-
-
|
|
193
|
+
- (mcm1957) Copyright year check has been fixed for single year entries.
|
|
194
|
+
- (mcm1957) js-controller version check added [#233].
|
|
195
|
+
- (mcm1957) Check for fixed version dependencies and for github dependencies [#233].
|
|
196
|
+
- (mcm1957) Missing language files reduced to warning [#203].
|
|
197
|
+
- (mcm1957) Missing .gitignore is considered an error now.
|
|
198
|
+
- (mcm1957) "common.noConfig" no longer reported as error if "common.adminUI" is present [#245].
|
|
199
|
+
- (mcm1957) "common.noConfig" must match "common.adminUI" setting [#170].
|
|
179
200
|
|
|
180
201
|
### 2.7.2 (2024-07-26)
|
|
181
202
|
|
|
182
|
-
-
|
|
203
|
+
- (mcm1957) package-lock.json check fixed.
|
|
183
204
|
|
|
184
205
|
### 2.7.1 (2024-07-26)
|
|
185
206
|
|
|
186
|
-
-
|
|
207
|
+
- (mcm1957) Reduce setTimeout/setInterval error to warning temporary.
|
|
187
208
|
|
|
188
209
|
### 2.7.0 (2024-07-26)
|
|
189
210
|
|
|
190
|
-
-
|
|
191
|
-
-
|
|
192
|
-
-
|
|
193
|
-
-
|
|
194
|
-
-
|
|
195
|
-
-
|
|
196
|
-
-
|
|
197
|
-
-
|
|
198
|
-
-
|
|
199
|
-
-
|
|
200
|
-
-
|
|
211
|
+
- (mcm1957) Some non trivial keywords related to adapter are enforced now [#234].
|
|
212
|
+
- (mcm1957) Severity if [E105] / [W105] has been corrected [#204].
|
|
213
|
+
- (mcm1957) Disallow 'globalDependencies' at package.json [#204].
|
|
214
|
+
- (mcm1957) Several false positives for wwwOnly widgetadapters have been fixed [#230, #222].
|
|
215
|
+
- (mcm1957) Missing .npmignore is now considered an error [#229].
|
|
216
|
+
- (mcm1957) Usage of package.json 'files' section is now recommended.
|
|
217
|
+
- (mcm1957) If more than 7 common.news entries are present a warning is issued now [#232].
|
|
218
|
+
- (mcm1957) Versions listed at common.news are checked to exist at npm now [#226].
|
|
219
|
+
- (mcm1957) 'package-lock.json' is checked to exist at GitHub now [#188].
|
|
220
|
+
- (mcm1957) travis checks have been removed [#237].
|
|
221
|
+
- (mcm1957) Copyright year now honors commit year and npm publish year too [#237].
|
|
201
222
|
|
|
202
223
|
### 2.6.1 (2024-06-24)
|
|
203
224
|
|
|
204
|
-
-
|
|
225
|
+
- (mcm1957) Check "[W156] Adapter should support admin 5 UI (jsonConfig)" checks for reactUi now.
|
|
205
226
|
|
|
206
227
|
### 2.6.0 (2024-06-24)
|
|
207
228
|
|
|
208
|
-
-
|
|
209
|
-
-
|
|
229
|
+
- (mcm1957) Check has been aded to ensure keywords and common.keywords are present. [#200]
|
|
230
|
+
- (mcm1957) Detection of react has been added, gulpfile.js is accepted for react based UIs now. [#223]
|
|
210
231
|
|
|
211
232
|
### 2.5.1 (2024-06-24)
|
|
212
233
|
|
|
213
|
-
-
|
|
214
|
-
-
|
|
234
|
+
- (mcm1957) Suggestion to update dependencies to recommended version added.
|
|
235
|
+
- (mcm1957) Adapter-core recommended set to 3.1.6 [#220]
|
|
215
236
|
|
|
216
237
|
### 2.5.0 (2024-05-30)
|
|
217
238
|
|
|
218
|
-
-
|
|
239
|
+
- (mcm1957) Check to ensure that dependency revisions are available at repository added. [#180]
|
|
219
240
|
|
|
220
241
|
### 2.4.0 (2024-05-30)
|
|
221
242
|
|
|
222
|
-
-
|
|
223
|
-
-
|
|
243
|
+
- (mcm1957) Add check to protect sensitive data. [#195]
|
|
244
|
+
- (mcm1957) Add check to verify that dependencies and globalDepencies are of type array. [#90]
|
|
224
245
|
|
|
225
246
|
### 2.3.1 (2024-05-07)
|
|
226
247
|
|
|
227
|
-
-
|
|
228
|
-
-
|
|
229
|
-
-
|
|
248
|
+
- (mcm1957) Reduce number of missing translation warnings.
|
|
249
|
+
- (mcm1957) Seperate between required and recommended translations.
|
|
250
|
+
- (mcm1957) Log missing translations in detail.
|
|
230
251
|
|
|
231
252
|
### 2.3.0 (2024-05-07)
|
|
232
253
|
|
|
233
|
-
-
|
|
234
|
-
-
|
|
235
|
-
-
|
|
236
|
-
-
|
|
237
|
-
-
|
|
238
|
-
-
|
|
254
|
+
- (mcm1957) Elements marked as deprectaed added to blacklist.
|
|
255
|
+
- (mcm1957) Blacklist added to block elements at package.json and io-package.json.
|
|
256
|
+
- (mcm1957) Error [E000] will be raised now if repository cannot be accessed at all [#194].
|
|
257
|
+
- (mcm1957) Reading of package.json and io-package.json has been moved to head of tests.
|
|
258
|
+
- (mcm1957) Check minimum and recommended node version at package.json (#160)
|
|
259
|
+
- (mcm1957) Raise an error if version at package.json is lower than latest release at npmjs [#192]
|
|
239
260
|
|
|
240
261
|
### 2.2.3 (2024-03-29)
|
|
241
262
|
|
|
242
|
-
-
|
|
263
|
+
- (mcm1957) Checking of license has been improved
|
|
243
264
|
|
|
244
265
|
### 2.2.2 (2024-03-29)
|
|
245
266
|
|
|
246
|
-
-
|
|
247
|
-
-
|
|
267
|
+
- (mcm1957) Checking of adapter-core has been fixed
|
|
268
|
+
- (mcm1957) Load all potential interesting files, fixes [#149]
|
|
248
269
|
|
|
249
270
|
### 2.2.1 (2024-03-26)
|
|
250
271
|
|
|
251
|
-
-
|
|
252
|
-
-
|
|
253
|
-
-
|
|
254
|
-
-
|
|
255
|
-
-
|
|
256
|
-
-
|
|
272
|
+
- (mcm1957) Added check that own adapter is not listed at common.restartAdapters
|
|
273
|
+
- (mcm1957) Added check of version strings at common.news
|
|
274
|
+
- (mcm1957) Added check for recommended node version (node 18 for now)
|
|
275
|
+
- (mcm1957) Disallow common.mode == subscribe
|
|
276
|
+
- (mcm1957) Deprecate common.wakeup
|
|
277
|
+
- (mcm1957) Added check for adapter-core version (>= 3.0.6)
|
|
257
278
|
|
|
258
279
|
### 2.2.0 (2024-03-24)
|
|
259
280
|
|
|
260
|
-
-
|
|
261
|
-
-
|
|
262
|
-
-
|
|
263
|
-
-
|
|
281
|
+
- (klein0r) Added check for licenseInformation
|
|
282
|
+
- (klein0r) Added check for deprecated license
|
|
283
|
+
- (klein0r) Added check for required attribute common.tier
|
|
284
|
+
- (klein0r) Added check for disallowed attribute common.automaticUpgrade
|
|
264
285
|
|
|
265
286
|
### 2.1.13 (2024-01-02)
|
|
266
287
|
|
|
267
|
-
-
|
|
288
|
+
- (bluefox) Corrected rule W156: adminUI.config === 'none' is allowed
|
|
268
289
|
|
|
269
290
|
### 2.1.12 (2023-09-21)
|
|
270
291
|
|
|
271
|
-
-
|
|
292
|
+
- (bluefox) Added check of using '\_' in adapter name
|
|
272
293
|
|
|
273
294
|
### 2.1.11 (2023-09-05)
|
|
274
295
|
|
|
275
|
-
-
|
|
296
|
+
- (bluefox) Added check of iobroker.js-controller in dependencies
|
|
276
297
|
|
|
277
298
|
### 2.1.7 (2023-08-14)
|
|
278
299
|
|
|
279
|
-
-
|
|
280
|
-
-
|
|
300
|
+
- (mcm57) Update index.js - fix typo in error message (packet.json)
|
|
301
|
+
- (mcm57) Update index.js - renumber E504/1 to 519 - fixes #112
|
|
281
302
|
|
|
282
303
|
### 2.1.6 (2022-12-08)
|
|
283
304
|
|
|
284
|
-
-
|
|
305
|
+
- (bluefox) added better error logging
|
|
285
306
|
|
|
286
307
|
### 2.1.5 (2022-12-07)
|
|
287
308
|
|
|
288
|
-
-
|
|
309
|
+
- (bluefox) added check of `.releaseconfig.json` file
|
|
289
310
|
|
|
290
311
|
### 2.1.4 (2022-08-19)
|
|
291
312
|
|
|
292
|
-
-
|
|
313
|
+
- (bluefox) Added check for adapter name: it may not start with '\_'
|
|
293
314
|
|
|
294
315
|
### 2.1.2 (2022-07-14)
|
|
295
316
|
|
|
296
|
-
-
|
|
317
|
+
- (bluefox) Fixed some errors
|
|
297
318
|
|
|
298
319
|
### 2.1.0 (2022-05-26)
|
|
299
320
|
|
|
300
|
-
-
|
|
321
|
+
- (bluefox) Added support for jsonConfig.json5 and jsonCustom.json5
|
|
301
322
|
|
|
302
323
|
### 2.0.5 (2022-05-22)
|
|
303
324
|
|
|
304
|
-
-
|
|
325
|
+
- (bluefox) Made it possible to run with npx
|
|
305
326
|
|
|
306
327
|
## License
|
|
307
328
|
|
package/index.js
CHANGED
|
@@ -138,6 +138,7 @@ function check(request, ctx, callback) {
|
|
|
138
138
|
.then(context => M800_Github.getCommitInfos(context))
|
|
139
139
|
.then(context => M000_PackageJson.getPackageJson(context))
|
|
140
140
|
.then(context => M100_IOPackageJson.getIOPackageJson(context))
|
|
141
|
+
.then(context => config.updateConfig(context))
|
|
141
142
|
.then(context => M000_PackageJson.checkPackageJson(context))
|
|
142
143
|
.then(context => M100_IOPackageJson.checkIOPackageJson(context))
|
|
143
144
|
.then(context => M250_Npm.checkNpm(context))
|