@verdaccio/logger 9.0.0-next-9.3 → 9.0.0-next-9.5
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 +1121 -0
- package/build/_virtual/_rolldown/runtime.js +23 -0
- package/build/_virtual/_rolldown/runtime.mjs +7 -0
- package/build/colors.d.ts +1 -0
- package/build/colors.js +11 -0
- package/build/colors.js.map +1 -0
- package/build/colors.mjs +10 -0
- package/build/colors.mjs.map +1 -0
- package/build/formatter.d.ts +10 -0
- package/build/formatter.js +47 -0
- package/build/formatter.js.map +1 -0
- package/build/formatter.mjs +45 -0
- package/build/formatter.mjs.map +1 -0
- package/build/index.d.ts +13 -2
- package/build/index.js +43 -15
- package/build/index.js.map +1 -1
- package/build/index.mjs +21 -0
- package/build/index.mjs.map +1 -0
- package/build/levels.d.ts +35 -0
- package/build/levels.js +53 -0
- package/build/levels.js.map +1 -0
- package/build/levels.mjs +50 -0
- package/build/levels.mjs.map +1 -0
- package/build/logger.d.ts +9 -0
- package/build/logger.js +86 -0
- package/build/logger.js.map +1 -0
- package/build/logger.mjs +82 -0
- package/build/logger.mjs.map +1 -0
- package/build/prettify.d.ts +20 -0
- package/build/prettify.js +91 -0
- package/build/prettify.js.map +1 -0
- package/build/prettify.mjs +86 -0
- package/build/prettify.mjs.map +1 -0
- package/build/transport.d.ts +6 -0
- package/build/transport.js +33 -0
- package/build/transport.js.map +1 -0
- package/build/transport.mjs +31 -0
- package/build/transport.mjs.map +1 -0
- package/build/types.d.ts +5 -0
- package/build/utils.d.ts +5 -0
- package/build/utils.js +20 -0
- package/build/utils.js.map +1 -0
- package/build/utils.mjs +16 -0
- package/build/utils.mjs.map +1 -0
- package/package.json +30 -11
- package/src/colors.ts +8 -0
- package/src/formatter.ts +90 -0
- package/src/index.ts +28 -0
- package/src/levels.ts +60 -0
- package/src/logger.ts +126 -0
- package/src/prettify.ts +119 -0
- package/src/transport.ts +39 -0
- package/src/types.ts +6 -0
- package/src/utils.ts +18 -0
- package/test/__snapshots__/formatter.spec.ts.snap +21 -0
- package/test/createLogger.spec.ts +22 -0
- package/test/formatter.spec.ts +214 -0
- package/test/index.spec.ts +49 -0
- package/test/logger.spec.ts +368 -0
- package/test/prettify.spec.ts +387 -0
- package/test/transport.spec.ts +108 -0
- package/test/utils.test.ts +19 -0
- package/tsconfig.build.json +9 -0
- package/tsconfig.json +16 -0
- package/vite.config.mjs +3 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,1121 @@
|
|
|
1
|
+
# @verdaccio/logger
|
|
2
|
+
|
|
3
|
+
## 9.0.0-next-9.5
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 4eda7ac: Combine @verdaccio/logger-commons and @verdaccio/logger-prettify into @verdaccio/logger as a single package
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [8f9bcc8]
|
|
12
|
+
- Updated dependencies [a9d7b4a]
|
|
13
|
+
- Updated dependencies [1d5462f]
|
|
14
|
+
- @verdaccio/core@9.0.0-next-9.5
|
|
15
|
+
|
|
16
|
+
## 9.0.0-next-9.4
|
|
17
|
+
|
|
18
|
+
### Major Changes
|
|
19
|
+
|
|
20
|
+
- 52a6520: Replace Babel and esbuild build pipeline with Vite 8 across all packages. All packages now output dual ESM (.mjs) and CJS (.js) formats with TypeScript declarations generated via vite-plugin-dts. Includes shared build config at vite.lib.config.mjs, proper exports field in all package.json files, and fixes for type-only re-exports required by Rollup's stricter module analysis.
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [52a6520]
|
|
25
|
+
- @verdaccio/logger-commons@9.0.0-next-9.4
|
|
26
|
+
|
|
27
|
+
## 9.0.0-next-9.3
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- @verdaccio/logger-commons@9.0.0-next-9.3
|
|
32
|
+
|
|
33
|
+
## 9.0.0-next-9.2
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- @verdaccio/logger-commons@9.0.0-next-9.2
|
|
38
|
+
|
|
39
|
+
## 9.0.0-next-9.1
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- @verdaccio/logger-commons@9.0.0-next-9.1
|
|
44
|
+
|
|
45
|
+
## 9.0.0-next-9.0
|
|
46
|
+
|
|
47
|
+
### Major Changes
|
|
48
|
+
|
|
49
|
+
- 7f80af5: chore: bump package
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- Updated dependencies [7f80af5]
|
|
54
|
+
- @verdaccio/logger-commons@9.0.0-next-9.0
|
|
55
|
+
|
|
56
|
+
## 8.0.0-next-8.31
|
|
57
|
+
|
|
58
|
+
### Patch Changes
|
|
59
|
+
|
|
60
|
+
- @verdaccio/logger-commons@8.0.0-next-8.31
|
|
61
|
+
|
|
62
|
+
## 8.0.0-next-8.30
|
|
63
|
+
|
|
64
|
+
### Patch Changes
|
|
65
|
+
|
|
66
|
+
- @verdaccio/logger-commons@8.0.0-next-8.30
|
|
67
|
+
|
|
68
|
+
## 8.0.0-next-8.29
|
|
69
|
+
|
|
70
|
+
### Patch Changes
|
|
71
|
+
|
|
72
|
+
- @verdaccio/logger-commons@8.0.0-next-8.29
|
|
73
|
+
|
|
74
|
+
## 8.0.0-next-8.28
|
|
75
|
+
|
|
76
|
+
### Patch Changes
|
|
77
|
+
|
|
78
|
+
- @verdaccio/logger-commons@8.0.0-next-8.28
|
|
79
|
+
|
|
80
|
+
## 8.0.0-next-8.27
|
|
81
|
+
|
|
82
|
+
### Patch Changes
|
|
83
|
+
|
|
84
|
+
- @verdaccio/logger-commons@8.0.0-next-8.27
|
|
85
|
+
|
|
86
|
+
## 8.0.0-next-8.26
|
|
87
|
+
|
|
88
|
+
### Patch Changes
|
|
89
|
+
|
|
90
|
+
- @verdaccio/logger-commons@8.0.0-next-8.26
|
|
91
|
+
|
|
92
|
+
## 8.0.0-next-8.25
|
|
93
|
+
|
|
94
|
+
### Patch Changes
|
|
95
|
+
|
|
96
|
+
- @verdaccio/logger-commons@8.0.0-next-8.25
|
|
97
|
+
|
|
98
|
+
## 8.0.0-next-8.24
|
|
99
|
+
|
|
100
|
+
### Patch Changes
|
|
101
|
+
|
|
102
|
+
- @verdaccio/logger-commons@8.0.0-next-8.24
|
|
103
|
+
|
|
104
|
+
## 8.0.0-next-8.23
|
|
105
|
+
|
|
106
|
+
### Patch Changes
|
|
107
|
+
|
|
108
|
+
- @verdaccio/logger-commons@8.0.0-next-8.23
|
|
109
|
+
|
|
110
|
+
## 8.0.0-next-8.22
|
|
111
|
+
|
|
112
|
+
### Patch Changes
|
|
113
|
+
|
|
114
|
+
- @verdaccio/logger-commons@8.0.0-next-8.22
|
|
115
|
+
|
|
116
|
+
## 8.0.0-next-8.21
|
|
117
|
+
|
|
118
|
+
### Patch Changes
|
|
119
|
+
|
|
120
|
+
- @verdaccio/logger-commons@8.0.0-next-8.21
|
|
121
|
+
|
|
122
|
+
## 8.0.0-next-8.20
|
|
123
|
+
|
|
124
|
+
### Patch Changes
|
|
125
|
+
|
|
126
|
+
- Updated dependencies [a1a73e9]
|
|
127
|
+
- @verdaccio/logger-commons@8.0.0-next-8.20
|
|
128
|
+
|
|
129
|
+
## 8.0.0-next-8.19
|
|
130
|
+
|
|
131
|
+
### Patch Changes
|
|
132
|
+
|
|
133
|
+
- Updated dependencies [95e6c8f]
|
|
134
|
+
- @verdaccio/logger-commons@8.0.0-next-8.19
|
|
135
|
+
|
|
136
|
+
## 8.0.0-next-8.18
|
|
137
|
+
|
|
138
|
+
### Patch Changes
|
|
139
|
+
|
|
140
|
+
- @verdaccio/logger-commons@8.0.0-next-8.18
|
|
141
|
+
|
|
142
|
+
## 8.0.0-next-8.17
|
|
143
|
+
|
|
144
|
+
### Patch Changes
|
|
145
|
+
|
|
146
|
+
- @verdaccio/logger-commons@8.0.0-next-8.17
|
|
147
|
+
|
|
148
|
+
## 8.0.0-next-8.16
|
|
149
|
+
|
|
150
|
+
### Patch Changes
|
|
151
|
+
|
|
152
|
+
- @verdaccio/logger-commons@8.0.0-next-8.16
|
|
153
|
+
|
|
154
|
+
## 8.0.0-next-8.15
|
|
155
|
+
|
|
156
|
+
### Patch Changes
|
|
157
|
+
|
|
158
|
+
- @verdaccio/logger-commons@8.0.0-next-8.15
|
|
159
|
+
|
|
160
|
+
## 8.0.0-next-8.14
|
|
161
|
+
|
|
162
|
+
### Patch Changes
|
|
163
|
+
|
|
164
|
+
- @verdaccio/logger-commons@8.0.0-next-8.14
|
|
165
|
+
|
|
166
|
+
## 8.0.0-next-8.13
|
|
167
|
+
|
|
168
|
+
### Patch Changes
|
|
169
|
+
|
|
170
|
+
- e4a1539: chore: package.json maintenance
|
|
171
|
+
- 0607e80: chore: update readme badges and license files
|
|
172
|
+
- Updated dependencies [e4a1539]
|
|
173
|
+
- Updated dependencies [0607e80]
|
|
174
|
+
- @verdaccio/logger-commons@8.0.0-next-8.13
|
|
175
|
+
|
|
176
|
+
## 8.0.0-next-8.12
|
|
177
|
+
|
|
178
|
+
### Patch Changes
|
|
179
|
+
|
|
180
|
+
- @verdaccio/logger-commons@8.0.0-next-8.12
|
|
181
|
+
|
|
182
|
+
## 8.0.0-next-8.11
|
|
183
|
+
|
|
184
|
+
### Patch Changes
|
|
185
|
+
|
|
186
|
+
- @verdaccio/logger-commons@8.0.0-next-8.11
|
|
187
|
+
|
|
188
|
+
## 8.0.0-next-8.10
|
|
189
|
+
|
|
190
|
+
### Patch Changes
|
|
191
|
+
|
|
192
|
+
- @verdaccio/logger-commons@8.0.0-next-8.10
|
|
193
|
+
|
|
194
|
+
## 8.0.0-next-8.9
|
|
195
|
+
|
|
196
|
+
### Patch Changes
|
|
197
|
+
|
|
198
|
+
- @verdaccio/logger-commons@8.0.0-next-8.9
|
|
199
|
+
|
|
200
|
+
## 8.0.0-next-8.8
|
|
201
|
+
|
|
202
|
+
### Patch Changes
|
|
203
|
+
|
|
204
|
+
- @verdaccio/logger-commons@8.0.0-next-8.8
|
|
205
|
+
|
|
206
|
+
## 8.0.0-next-8.7
|
|
207
|
+
|
|
208
|
+
### Patch Changes
|
|
209
|
+
|
|
210
|
+
- @verdaccio/logger-commons@8.0.0-next-8.7
|
|
211
|
+
|
|
212
|
+
## 8.0.0-next-8.6
|
|
213
|
+
|
|
214
|
+
### Patch Changes
|
|
215
|
+
|
|
216
|
+
- @verdaccio/logger-commons@8.0.0-next-8.6
|
|
217
|
+
|
|
218
|
+
## 8.0.0-next-8.5
|
|
219
|
+
|
|
220
|
+
### Patch Changes
|
|
221
|
+
|
|
222
|
+
- Updated dependencies [15dddbe]
|
|
223
|
+
- Updated dependencies [a049bba]
|
|
224
|
+
- @verdaccio/logger-commons@8.0.0-next-8.5
|
|
225
|
+
|
|
226
|
+
## 8.0.0-next-8.4
|
|
227
|
+
|
|
228
|
+
### Patch Changes
|
|
229
|
+
|
|
230
|
+
- Updated dependencies [e93d6a3]
|
|
231
|
+
- @verdaccio/logger-commons@8.0.0-next-8.4
|
|
232
|
+
|
|
233
|
+
## 8.0.0-next-8.3
|
|
234
|
+
|
|
235
|
+
### Patch Changes
|
|
236
|
+
|
|
237
|
+
- @verdaccio/logger-commons@8.0.0-next-8.3
|
|
238
|
+
|
|
239
|
+
## 8.0.0-next-8.2
|
|
240
|
+
|
|
241
|
+
### Minor Changes
|
|
242
|
+
|
|
243
|
+
- 6a8154c: feat: update logger pino to latest
|
|
244
|
+
|
|
245
|
+
### Patch Changes
|
|
246
|
+
|
|
247
|
+
- Updated dependencies [6a8154c]
|
|
248
|
+
- @verdaccio/logger-commons@8.0.0-next-8.2
|
|
249
|
+
|
|
250
|
+
## 8.0.0-next-8.1
|
|
251
|
+
|
|
252
|
+
### Patch Changes
|
|
253
|
+
|
|
254
|
+
- @verdaccio/logger-commons@8.0.0-next-8.1
|
|
255
|
+
|
|
256
|
+
## 8.0.0-next-8.0
|
|
257
|
+
|
|
258
|
+
### Major Changes
|
|
259
|
+
|
|
260
|
+
- chore: move v7 next to v8 next
|
|
261
|
+
|
|
262
|
+
### Patch Changes
|
|
263
|
+
|
|
264
|
+
- Updated dependencies
|
|
265
|
+
- @verdaccio/logger-commons@8.0.0-next-8.0
|
|
266
|
+
|
|
267
|
+
## 7.0.0
|
|
268
|
+
|
|
269
|
+
### Major Changes
|
|
270
|
+
|
|
271
|
+
- 47f61c6: feat!: bump to v7
|
|
272
|
+
- e7ebccb: update major dependencies, remove old nodejs support
|
|
273
|
+
|
|
274
|
+
### Patch Changes
|
|
275
|
+
|
|
276
|
+
- Updated dependencies [47f61c6]
|
|
277
|
+
- Updated dependencies [cf1b46c]
|
|
278
|
+
- Updated dependencies [daceb6d]
|
|
279
|
+
- Updated dependencies [e7ebccb]
|
|
280
|
+
- @verdaccio/logger-commons@7.0.0
|
|
281
|
+
|
|
282
|
+
## 7.0.0-next-8.21
|
|
283
|
+
|
|
284
|
+
### Patch Changes
|
|
285
|
+
|
|
286
|
+
- @verdaccio/logger-commons@7.0.0-next-8.21
|
|
287
|
+
|
|
288
|
+
## 7.0.0-next-7.20
|
|
289
|
+
|
|
290
|
+
### Patch Changes
|
|
291
|
+
|
|
292
|
+
- @verdaccio/logger-commons@7.0.0-next-7.20
|
|
293
|
+
|
|
294
|
+
## 7.0.0-next-7.19
|
|
295
|
+
|
|
296
|
+
### Patch Changes
|
|
297
|
+
|
|
298
|
+
- @verdaccio/logger-commons@7.0.0-next-7.19
|
|
299
|
+
|
|
300
|
+
## 7.0.0-next-7.18
|
|
301
|
+
|
|
302
|
+
### Patch Changes
|
|
303
|
+
|
|
304
|
+
- @verdaccio/logger-commons@7.0.0-next-7.18
|
|
305
|
+
|
|
306
|
+
## 7.0.0-next-7.17
|
|
307
|
+
|
|
308
|
+
### Patch Changes
|
|
309
|
+
|
|
310
|
+
- @verdaccio/logger-commons@7.0.0-next-7.17
|
|
311
|
+
|
|
312
|
+
## 7.0.0-next-7.16
|
|
313
|
+
|
|
314
|
+
### Patch Changes
|
|
315
|
+
|
|
316
|
+
- Updated dependencies [cf1b46c]
|
|
317
|
+
- @verdaccio/logger-commons@7.0.0-next-7.16
|
|
318
|
+
|
|
319
|
+
## 7.0.0-next-7.15
|
|
320
|
+
|
|
321
|
+
### Patch Changes
|
|
322
|
+
|
|
323
|
+
- @verdaccio/logger-commons@7.0.0-next-7.15
|
|
324
|
+
|
|
325
|
+
## 7.0.0-next-7.14
|
|
326
|
+
|
|
327
|
+
### Patch Changes
|
|
328
|
+
|
|
329
|
+
- @verdaccio/logger-commons@7.0.0-next-7.14
|
|
330
|
+
|
|
331
|
+
## 7.0.0-next-7.13
|
|
332
|
+
|
|
333
|
+
### Patch Changes
|
|
334
|
+
|
|
335
|
+
- @verdaccio/logger-commons@7.0.0-next-7.13
|
|
336
|
+
|
|
337
|
+
## 7.0.0-next-7.12
|
|
338
|
+
|
|
339
|
+
### Patch Changes
|
|
340
|
+
|
|
341
|
+
- @verdaccio/logger-commons@7.0.0-next-7.12
|
|
342
|
+
|
|
343
|
+
## 7.0.0-next-7.11
|
|
344
|
+
|
|
345
|
+
### Patch Changes
|
|
346
|
+
|
|
347
|
+
- @verdaccio/logger-commons@7.0.0-next-7.11
|
|
348
|
+
|
|
349
|
+
## 7.0.0-next-7.10
|
|
350
|
+
|
|
351
|
+
### Patch Changes
|
|
352
|
+
|
|
353
|
+
- @verdaccio/logger-commons@7.0.0-next-7.10
|
|
354
|
+
|
|
355
|
+
## 7.0.0-next-7.9
|
|
356
|
+
|
|
357
|
+
### Patch Changes
|
|
358
|
+
|
|
359
|
+
- @verdaccio/logger-commons@7.0.0-next-7.9
|
|
360
|
+
|
|
361
|
+
## 7.0.0-next-7.8
|
|
362
|
+
|
|
363
|
+
### Patch Changes
|
|
364
|
+
|
|
365
|
+
- @verdaccio/logger-commons@7.0.0-next-7.8
|
|
366
|
+
|
|
367
|
+
## 7.0.0-next-7.7
|
|
368
|
+
|
|
369
|
+
### Patch Changes
|
|
370
|
+
|
|
371
|
+
- @verdaccio/logger-commons@7.0.0-next-7.7
|
|
372
|
+
|
|
373
|
+
## 7.0.0-next.6
|
|
374
|
+
|
|
375
|
+
### Patch Changes
|
|
376
|
+
|
|
377
|
+
- @verdaccio/logger-commons@7.0.0-next.6
|
|
378
|
+
|
|
379
|
+
## 7.0.0-next.5
|
|
380
|
+
|
|
381
|
+
### Patch Changes
|
|
382
|
+
|
|
383
|
+
- @verdaccio/logger-commons@7.0.0-next.5
|
|
384
|
+
|
|
385
|
+
## 7.0.0-next.4
|
|
386
|
+
|
|
387
|
+
### Patch Changes
|
|
388
|
+
|
|
389
|
+
- @verdaccio/logger-commons@7.0.0-next.4
|
|
390
|
+
|
|
391
|
+
## 7.0.0-next.3
|
|
392
|
+
|
|
393
|
+
### Major Changes
|
|
394
|
+
|
|
395
|
+
- e7ebccb61: update major dependencies, remove old nodejs support
|
|
396
|
+
|
|
397
|
+
### Patch Changes
|
|
398
|
+
|
|
399
|
+
- Updated dependencies [daceb6d87]
|
|
400
|
+
- Updated dependencies [e7ebccb61]
|
|
401
|
+
- @verdaccio/logger-commons@7.0.0-next.3
|
|
402
|
+
|
|
403
|
+
## 7.0.0-next.2
|
|
404
|
+
|
|
405
|
+
### Patch Changes
|
|
406
|
+
|
|
407
|
+
- @verdaccio/logger-commons@7.0.0-next.2
|
|
408
|
+
|
|
409
|
+
## 7.0.0-next.1
|
|
410
|
+
|
|
411
|
+
### Patch Changes
|
|
412
|
+
|
|
413
|
+
- @verdaccio/logger-commons@7.0.0-next.1
|
|
414
|
+
|
|
415
|
+
## 7.0.0-next.0
|
|
416
|
+
|
|
417
|
+
### Major Changes
|
|
418
|
+
|
|
419
|
+
- feat!: bump to v7
|
|
420
|
+
|
|
421
|
+
### Patch Changes
|
|
422
|
+
|
|
423
|
+
- Updated dependencies
|
|
424
|
+
- @verdaccio/logger-commons@7.0.0-next.0
|
|
425
|
+
|
|
426
|
+
## 6.0.0
|
|
427
|
+
|
|
428
|
+
### Major Changes
|
|
429
|
+
|
|
430
|
+
- 292c0a37f: feat!: replace deprecated request dependency by got
|
|
431
|
+
|
|
432
|
+
This is a big refactoring of the core, fetching dependencies, improve code, more tests and better stability. This is essential for the next release, will take some time but would allow modularize more the core.
|
|
433
|
+
|
|
434
|
+
## Notes
|
|
435
|
+
|
|
436
|
+
- Remove deprecated `request` by other `got`, retry improved, custom Agent ( got does not include it built-in)
|
|
437
|
+
- Remove `async` dependency from storage (used by core) it was linked with proxy somehow safe to remove now
|
|
438
|
+
- Refactor with promises instead callback wherever is possible
|
|
439
|
+
- ~Document the API~
|
|
440
|
+
- Improve testing, integration tests
|
|
441
|
+
- Bugfix
|
|
442
|
+
- Clean up old validations
|
|
443
|
+
- Improve performance
|
|
444
|
+
|
|
445
|
+
## 💥 Breaking changes
|
|
446
|
+
|
|
447
|
+
- Plugin API methods were callbacks based are returning promises, this will break current storage plugins, check documentation for upgrade.
|
|
448
|
+
- Write Tarball, Read Tarball methods parameters change, a new set of options like `AbortController` signals are being provided to the `addAbortSignal` can be internally used with Streams when a request is aborted. eg: `addAbortSignal(signal, fs.createReadStream(pathName));`
|
|
449
|
+
- `@verdaccio/streams` stream abort support is legacy is being deprecated removed
|
|
450
|
+
- Remove AWS and Google Cloud packages for future refactoring [#2574](https://github.com/verdaccio/verdaccio/pull/2574).
|
|
451
|
+
|
|
452
|
+
- a3a209b5e: feat: migrate to pino.js 8
|
|
453
|
+
- 794af76c5: Remove Node 12 support
|
|
454
|
+
|
|
455
|
+
- We need move to the new `undici` and does not support Node.js 12
|
|
456
|
+
|
|
457
|
+
- 10aeb4f13: feat!: experiments config renamed to flags
|
|
458
|
+
|
|
459
|
+
- The `experiments` configuration is renamed to `flags`. The functionality is exactly the same.
|
|
460
|
+
|
|
461
|
+
```js
|
|
462
|
+
flags: token: false;
|
|
463
|
+
search: false;
|
|
464
|
+
```
|
|
465
|
+
|
|
466
|
+
- The `self_path` property from the config file is being removed in favor of `config_file` full path.
|
|
467
|
+
- Refactor `config` module, better types and utilities
|
|
468
|
+
|
|
469
|
+
- e367c3f1e: - Replace signature handler for legacy tokens by removing deprecated crypto.createDecipher by createCipheriv
|
|
470
|
+
|
|
471
|
+
- Introduce environment variables for legacy tokens
|
|
472
|
+
|
|
473
|
+
### Code Improvements
|
|
474
|
+
|
|
475
|
+
- Add debug library for improve developer experience
|
|
476
|
+
|
|
477
|
+
### Breaking change
|
|
478
|
+
|
|
479
|
+
- The new signature invalidates all previous tokens generated by Verdaccio 4 or previous versions.
|
|
480
|
+
- The secret key must have 32 characters long.
|
|
481
|
+
|
|
482
|
+
### New environment variables
|
|
483
|
+
|
|
484
|
+
- `VERDACCIO_LEGACY_ALGORITHM`: Allows to define the specific algorithm for the token signature which by default is `aes-256-ctr`
|
|
485
|
+
- `VERDACCIO_LEGACY_ENCRYPTION_KEY`: By default, the token stores in the database, but using this variable allows to get it from memory
|
|
486
|
+
|
|
487
|
+
- 82cb0f2bf: feat!: config.logs throw an error, logging config not longer accept array or logs property
|
|
488
|
+
|
|
489
|
+
### 💥 Breaking change
|
|
490
|
+
|
|
491
|
+
This is valid
|
|
492
|
+
|
|
493
|
+
```yaml
|
|
494
|
+
log: { type: stdout, format: pretty, level: http }
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
This is invalid
|
|
498
|
+
|
|
499
|
+
```yaml
|
|
500
|
+
logs: { type: stdout, format: pretty, level: http }
|
|
501
|
+
```
|
|
502
|
+
|
|
503
|
+
or
|
|
504
|
+
|
|
505
|
+
```yaml
|
|
506
|
+
logs:
|
|
507
|
+
- [{ type: stdout, format: pretty, level: http }]
|
|
508
|
+
```
|
|
509
|
+
|
|
510
|
+
- b3e8438f6: logging prettifier only in development mode
|
|
511
|
+
|
|
512
|
+
- Verdaccio prettify `@verdaccio/logger-prettify` the logging which looks beautiful. But there are scenarios which does not make sense in production. This feature enables disable by default the prettifies if production `NODE_ENV` is enabled.
|
|
513
|
+
- Updates pino.js to `^6.7.0`.
|
|
514
|
+
- Suppress the warning when prettifier is enabled `suppressFlushSyncWarning`
|
|
515
|
+
|
|
516
|
+
- 730b5d8cc: feat: upgrade to pino v7
|
|
517
|
+
- 8f43bf17d: feat: node api new structure based on promise
|
|
518
|
+
|
|
519
|
+
```js
|
|
520
|
+
import { runServer } from "@verdaccio/node-api";
|
|
521
|
+
// or
|
|
522
|
+
import { runServer } from "verdaccio";
|
|
523
|
+
|
|
524
|
+
const app = await runServer(); // default configuration
|
|
525
|
+
const app = await runServer("./config/config.yaml");
|
|
526
|
+
const app = await runServer({ configuration });
|
|
527
|
+
app.listen(4000, (event) => {
|
|
528
|
+
// do something
|
|
529
|
+
});
|
|
530
|
+
```
|
|
531
|
+
|
|
532
|
+
### Breaking Change
|
|
533
|
+
|
|
534
|
+
If you are using the node-api, the new structure is Promise based and less arguments.
|
|
535
|
+
|
|
536
|
+
### Minor Changes
|
|
537
|
+
|
|
538
|
+
- ef88da3b4: feat: improve support for fs promises older nodejs
|
|
539
|
+
- 631abe1ac: feat: refactor logger
|
|
540
|
+
- b61f762d6: feat: add server rate limit protection to all request
|
|
541
|
+
|
|
542
|
+
To modify custom values, use the server settings property.
|
|
543
|
+
|
|
544
|
+
```markdown
|
|
545
|
+
server:
|
|
546
|
+
|
|
547
|
+
## https://www.npmjs.com/package/express-rate-limit#configuration-options
|
|
548
|
+
|
|
549
|
+
rateLimit:
|
|
550
|
+
windowMs: 1000
|
|
551
|
+
max: 10000
|
|
552
|
+
```
|
|
553
|
+
|
|
554
|
+
The values are intended to be high, if you want to improve security of your server consider
|
|
555
|
+
using different values.
|
|
556
|
+
|
|
557
|
+
- 154b2ecd3: refactor: remove @verdaccio/commons-api in favor @verdaccio/core and remove duplications
|
|
558
|
+
- aa763baec: feat: add typescript project references settings
|
|
559
|
+
|
|
560
|
+
Reading https://ebaytech.berlin/optimizing-multi-package-apps-with-typescript-project-references-d5c57a3b4440 I realized I can use project references to solve the issue to pre-compile modules on develop mode.
|
|
561
|
+
|
|
562
|
+
It allows to navigate (IDE) trough the packages without need compile the packages.
|
|
563
|
+
|
|
564
|
+
Add two `tsconfig`, one using the previous existing configuration that is able to produce declaration files (`tsconfig.build`) and a new one `tsconfig` which is enables [_projects references_](https://www.typescriptlang.org/docs/handbook/project-references.html).
|
|
565
|
+
|
|
566
|
+
- 6c1eb021b: feat: use warning codes for deprecation warnings
|
|
567
|
+
|
|
568
|
+
### Patch Changes
|
|
569
|
+
|
|
570
|
+
- e75c0a3b9: hydrate template placeholders in log messages when format is set to 'json'
|
|
571
|
+
- 351aeeaa8: fix(deps): @verdaccio/utils should be a prod dep of local-storage
|
|
572
|
+
- a610ef26b: chore: add release step to private regisry on merge changeset pr
|
|
573
|
+
- 34f0f1101: Enable prerelease mode with **changesets**
|
|
574
|
+
- b78f35257: Fix re-opening log files using SIGUSR2
|
|
575
|
+
- 2c594910d: do not show deprecation warning on default logger config
|
|
576
|
+
- 65f88b826: bump logger packages
|
|
577
|
+
- 68ea21214: ESLint Warnings Fixed
|
|
578
|
+
|
|
579
|
+
Related to issue #1461
|
|
580
|
+
|
|
581
|
+
- max-len: most of the sensible max-len errors are fixed
|
|
582
|
+
- no-unused-vars: most of these types of errors are fixed by deleting not needed declarations
|
|
583
|
+
- @typescript-eslint/no-unused-vars: same as above
|
|
584
|
+
|
|
585
|
+
- Updated dependencies [631abe1ac]
|
|
586
|
+
- Updated dependencies [84b2dffdb]
|
|
587
|
+
- Updated dependencies [65f88b826]
|
|
588
|
+
- Updated dependencies [4a33e269b]
|
|
589
|
+
- @verdaccio/logger-commons@6.0.0
|
|
590
|
+
|
|
591
|
+
## 6.0.0-6-next.44
|
|
592
|
+
|
|
593
|
+
### Patch Changes
|
|
594
|
+
|
|
595
|
+
- @verdaccio/logger-commons@6.0.0-6-next.44
|
|
596
|
+
|
|
597
|
+
## 6.0.0-6-next.43
|
|
598
|
+
|
|
599
|
+
### Patch Changes
|
|
600
|
+
|
|
601
|
+
- @verdaccio/logger-commons@6.0.0-6-next.43
|
|
602
|
+
|
|
603
|
+
## 6.0.0-6-next.42
|
|
604
|
+
|
|
605
|
+
### Patch Changes
|
|
606
|
+
|
|
607
|
+
- @verdaccio/logger-commons@6.0.0-6-next.42
|
|
608
|
+
|
|
609
|
+
## 6.0.0-6-next.41
|
|
610
|
+
|
|
611
|
+
### Patch Changes
|
|
612
|
+
|
|
613
|
+
- @verdaccio/logger-commons@6.0.0-6-next.41
|
|
614
|
+
|
|
615
|
+
## 6.0.0-6-next.40
|
|
616
|
+
|
|
617
|
+
### Patch Changes
|
|
618
|
+
|
|
619
|
+
- @verdaccio/logger-commons@6.0.0-6-next.40
|
|
620
|
+
|
|
621
|
+
## 6.0.0-6-next.39
|
|
622
|
+
|
|
623
|
+
### Patch Changes
|
|
624
|
+
|
|
625
|
+
- Updated dependencies [84b2dffdb]
|
|
626
|
+
- @verdaccio/logger-commons@6.0.0-6-next.39
|
|
627
|
+
|
|
628
|
+
## 6.0.0-6-next.38
|
|
629
|
+
|
|
630
|
+
### Patch Changes
|
|
631
|
+
|
|
632
|
+
- Updated dependencies [4a33e269]
|
|
633
|
+
- @verdaccio/logger-commons@6.0.0-6-next.38
|
|
634
|
+
|
|
635
|
+
## 6.0.0-6-next.37
|
|
636
|
+
|
|
637
|
+
### Patch Changes
|
|
638
|
+
|
|
639
|
+
- @verdaccio/logger-commons@6.0.0-6-next.37
|
|
640
|
+
|
|
641
|
+
## 6.0.0-6-next.36
|
|
642
|
+
|
|
643
|
+
### Patch Changes
|
|
644
|
+
|
|
645
|
+
- @verdaccio/logger-commons@6.0.0-6-next.36
|
|
646
|
+
|
|
647
|
+
## 6.0.0-6-next.35
|
|
648
|
+
|
|
649
|
+
### Patch Changes
|
|
650
|
+
|
|
651
|
+
- @verdaccio/logger-commons@6.0.0-6-next.35
|
|
652
|
+
|
|
653
|
+
## 6.0.0-6-next.34
|
|
654
|
+
|
|
655
|
+
### Patch Changes
|
|
656
|
+
|
|
657
|
+
- @verdaccio/logger-commons@6.0.0-6-next.34
|
|
658
|
+
|
|
659
|
+
## 6.0.0-6-next.33
|
|
660
|
+
|
|
661
|
+
### Patch Changes
|
|
662
|
+
|
|
663
|
+
- @verdaccio/logger-commons@6.0.0-6-next.33
|
|
664
|
+
|
|
665
|
+
## 6.0.0-6-next.32
|
|
666
|
+
|
|
667
|
+
### Patch Changes
|
|
668
|
+
|
|
669
|
+
- @verdaccio/logger-commons@6.0.0-6-next.32
|
|
670
|
+
|
|
671
|
+
## 6.0.0-6-next.31
|
|
672
|
+
|
|
673
|
+
### Patch Changes
|
|
674
|
+
|
|
675
|
+
- @verdaccio/logger-commons@6.0.0-6-next.31
|
|
676
|
+
|
|
677
|
+
## 6.0.0-6-next.30
|
|
678
|
+
|
|
679
|
+
### Patch Changes
|
|
680
|
+
|
|
681
|
+
- @verdaccio/logger-commons@6.0.0-6-next.30
|
|
682
|
+
|
|
683
|
+
## 6.0.0-6-next.29
|
|
684
|
+
|
|
685
|
+
### Patch Changes
|
|
686
|
+
|
|
687
|
+
- @verdaccio/logger-commons@6.0.0-6-next.29
|
|
688
|
+
|
|
689
|
+
## 6.0.0-6-next.28
|
|
690
|
+
|
|
691
|
+
### Patch Changes
|
|
692
|
+
|
|
693
|
+
- @verdaccio/logger-commons@6.0.0-6-next.28
|
|
694
|
+
|
|
695
|
+
## 6.0.0-6-next.27
|
|
696
|
+
|
|
697
|
+
### Patch Changes
|
|
698
|
+
|
|
699
|
+
- 65f88b82: bump logger packages
|
|
700
|
+
- Updated dependencies [65f88b82]
|
|
701
|
+
- @verdaccio/logger-commons@6.0.0-6-next.27
|
|
702
|
+
|
|
703
|
+
## 6.0.0-6-next.26
|
|
704
|
+
|
|
705
|
+
### Patch Changes
|
|
706
|
+
|
|
707
|
+
- @verdaccio/logger-commons@6.0.0-6-next.26
|
|
708
|
+
|
|
709
|
+
## 6.0.0-6-next.25
|
|
710
|
+
|
|
711
|
+
### Patch Changes
|
|
712
|
+
|
|
713
|
+
- @verdaccio/core@6.0.0-6-next.57
|
|
714
|
+
|
|
715
|
+
## 6.0.0-6-next.24
|
|
716
|
+
|
|
717
|
+
### Patch Changes
|
|
718
|
+
|
|
719
|
+
- @verdaccio/core@6.0.0-6-next.56
|
|
720
|
+
|
|
721
|
+
## 6.0.0-6-next.23
|
|
722
|
+
|
|
723
|
+
### Patch Changes
|
|
724
|
+
|
|
725
|
+
- Updated dependencies [9718e033]
|
|
726
|
+
- @verdaccio/core@6.0.0-6-next.55
|
|
727
|
+
|
|
728
|
+
## 6.0.0-6-next.22
|
|
729
|
+
|
|
730
|
+
### Minor Changes
|
|
731
|
+
|
|
732
|
+
- ef88da3b: feat: improve support for fs promises older nodejs
|
|
733
|
+
|
|
734
|
+
### Patch Changes
|
|
735
|
+
|
|
736
|
+
- Updated dependencies [ef88da3b]
|
|
737
|
+
- @verdaccio/core@6.0.0-6-next.54
|
|
738
|
+
- @verdaccio/logger-prettify@6.0.0-6-next.8
|
|
739
|
+
|
|
740
|
+
## 6.0.0-6-next.21
|
|
741
|
+
|
|
742
|
+
### Patch Changes
|
|
743
|
+
|
|
744
|
+
- @verdaccio/core@6.0.0-6-next.53
|
|
745
|
+
|
|
746
|
+
## 6.0.0-6-next.20
|
|
747
|
+
|
|
748
|
+
### Patch Changes
|
|
749
|
+
|
|
750
|
+
- @verdaccio/core@6.0.0-6-next.52
|
|
751
|
+
|
|
752
|
+
## 6.0.0-6-next.19
|
|
753
|
+
|
|
754
|
+
### Patch Changes
|
|
755
|
+
|
|
756
|
+
- Updated dependencies [4b29d715]
|
|
757
|
+
- @verdaccio/core@6.0.0-6-next.51
|
|
758
|
+
|
|
759
|
+
## 6.0.0-6-next.18
|
|
760
|
+
|
|
761
|
+
### Patch Changes
|
|
762
|
+
|
|
763
|
+
- @verdaccio/core@6.0.0-6-next.50
|
|
764
|
+
|
|
765
|
+
## 6.0.0-6-next.17
|
|
766
|
+
|
|
767
|
+
### Patch Changes
|
|
768
|
+
|
|
769
|
+
- @verdaccio/core@6.0.0-6-next.49
|
|
770
|
+
|
|
771
|
+
## 6.0.0-6-next.16
|
|
772
|
+
|
|
773
|
+
### Patch Changes
|
|
774
|
+
|
|
775
|
+
- Updated dependencies [43f32687]
|
|
776
|
+
- Updated dependencies [62c24b63]
|
|
777
|
+
- @verdaccio/core@6.0.0-6-next.48
|
|
778
|
+
|
|
779
|
+
## 6.0.0-6-next.15
|
|
780
|
+
|
|
781
|
+
### Patch Changes
|
|
782
|
+
|
|
783
|
+
- @verdaccio/core@6.0.0-6-next.47
|
|
784
|
+
|
|
785
|
+
## 6.0.0-6-next.14
|
|
786
|
+
|
|
787
|
+
### Patch Changes
|
|
788
|
+
|
|
789
|
+
- Updated dependencies [b849128d]
|
|
790
|
+
- @verdaccio/core@6.0.0-6-next.8
|
|
791
|
+
|
|
792
|
+
## 6.0.0-6-next.13
|
|
793
|
+
|
|
794
|
+
### Patch Changes
|
|
795
|
+
|
|
796
|
+
- 351aeeaa: fix(deps): @verdaccio/utils should be a prod dep of local-storage
|
|
797
|
+
- Updated dependencies [351aeeaa]
|
|
798
|
+
- @verdaccio/core@6.0.0-6-next.7
|
|
799
|
+
|
|
800
|
+
## 6.0.0-6-next.12
|
|
801
|
+
|
|
802
|
+
### Major Changes
|
|
803
|
+
|
|
804
|
+
- 292c0a37: feat!: replace deprecated request dependency by got
|
|
805
|
+
|
|
806
|
+
This is a big refactoring of the core, fetching dependencies, improve code, more tests and better stability. This is essential for the next release, will take some time but would allow modularize more the core.
|
|
807
|
+
|
|
808
|
+
## Notes
|
|
809
|
+
|
|
810
|
+
- Remove deprecated `request` by other `got`, retry improved, custom Agent ( got does not include it built-in)
|
|
811
|
+
- Remove `async` dependency from storage (used by core) it was linked with proxy somehow safe to remove now
|
|
812
|
+
- Refactor with promises instead callback wherever is possible
|
|
813
|
+
- ~Document the API~
|
|
814
|
+
- Improve testing, integration tests
|
|
815
|
+
- Bugfix
|
|
816
|
+
- Clean up old validations
|
|
817
|
+
- Improve performance
|
|
818
|
+
|
|
819
|
+
## 💥 Breaking changes
|
|
820
|
+
|
|
821
|
+
- Plugin API methods were callbacks based are returning promises, this will break current storage plugins, check documentation for upgrade.
|
|
822
|
+
- Write Tarball, Read Tarball methods parameters change, a new set of options like `AbortController` signals are being provided to the `addAbortSignal` can be internally used with Streams when a request is aborted. eg: `addAbortSignal(signal, fs.createReadStream(pathName));`
|
|
823
|
+
- `@verdaccio/streams` stream abort support is legacy is being deprecated removed
|
|
824
|
+
- Remove AWS and Google Cloud packages for future refactoring [#2574](https://github.com/verdaccio/verdaccio/pull/2574).
|
|
825
|
+
|
|
826
|
+
- a3a209b5: feat: migrate to pino.js 8
|
|
827
|
+
|
|
828
|
+
### Patch Changes
|
|
829
|
+
|
|
830
|
+
- Updated dependencies [292c0a37]
|
|
831
|
+
- Updated dependencies [a3a209b5]
|
|
832
|
+
- Updated dependencies [00d1d2a1]
|
|
833
|
+
- @verdaccio/core@6.0.0-6-next.6
|
|
834
|
+
- @verdaccio/logger-prettify@6.0.0-6-next.7
|
|
835
|
+
|
|
836
|
+
## 6.0.0-6-next.11
|
|
837
|
+
|
|
838
|
+
### Major Changes
|
|
839
|
+
|
|
840
|
+
- 82cb0f2b: feat!: config.logs throw an error, logging config not longer accept array or logs property
|
|
841
|
+
|
|
842
|
+
### 💥 Breaking change
|
|
843
|
+
|
|
844
|
+
This is valid
|
|
845
|
+
|
|
846
|
+
```yaml
|
|
847
|
+
log: { type: stdout, format: pretty, level: http }
|
|
848
|
+
```
|
|
849
|
+
|
|
850
|
+
This is invalid
|
|
851
|
+
|
|
852
|
+
```yaml
|
|
853
|
+
logs: { type: stdout, format: pretty, level: http }
|
|
854
|
+
```
|
|
855
|
+
|
|
856
|
+
or
|
|
857
|
+
|
|
858
|
+
```yaml
|
|
859
|
+
logs:
|
|
860
|
+
- [{ type: stdout, format: pretty, level: http }]
|
|
861
|
+
```
|
|
862
|
+
|
|
863
|
+
### Patch Changes
|
|
864
|
+
|
|
865
|
+
- Updated dependencies [82cb0f2b]
|
|
866
|
+
- Updated dependencies [5167bb52]
|
|
867
|
+
- @verdaccio/core@6.0.0-6-next.5
|
|
868
|
+
|
|
869
|
+
## 6.0.0-6-next.10
|
|
870
|
+
|
|
871
|
+
### Patch Changes
|
|
872
|
+
|
|
873
|
+
- b78f3525: Fix re-opening log files using SIGUSR2
|
|
874
|
+
|
|
875
|
+
## 6.0.0-6-next.9
|
|
876
|
+
|
|
877
|
+
### Major Changes
|
|
878
|
+
|
|
879
|
+
- 730b5d8c: feat: upgrade to pino v7
|
|
880
|
+
|
|
881
|
+
### Patch Changes
|
|
882
|
+
|
|
883
|
+
- Updated dependencies [730b5d8c]
|
|
884
|
+
- @verdaccio/logger-prettify@6.0.0-6-next.6
|
|
885
|
+
|
|
886
|
+
## 6.0.0-6-next.8
|
|
887
|
+
|
|
888
|
+
### Patch Changes
|
|
889
|
+
|
|
890
|
+
- e75c0a3b: hydrate template placeholders in log messages when format is set to 'json'
|
|
891
|
+
- Updated dependencies [24b9be02]
|
|
892
|
+
- Updated dependencies [e75c0a3b]
|
|
893
|
+
- @verdaccio/core@6.0.0-6-next.4
|
|
894
|
+
- @verdaccio/logger-prettify@6.0.0-6-next.5
|
|
895
|
+
|
|
896
|
+
## 6.0.0-6-next.7
|
|
897
|
+
|
|
898
|
+
### Minor Changes
|
|
899
|
+
|
|
900
|
+
- 6c1eb021: feat: use warning codes for deprecation warnings
|
|
901
|
+
|
|
902
|
+
### Patch Changes
|
|
903
|
+
|
|
904
|
+
- Updated dependencies [6c1eb021]
|
|
905
|
+
- @verdaccio/core@6.0.0-6-next.3
|
|
906
|
+
|
|
907
|
+
## 6.0.0-6-next.6
|
|
908
|
+
|
|
909
|
+
### Major Changes
|
|
910
|
+
|
|
911
|
+
- 794af76c: Remove Node 12 support
|
|
912
|
+
|
|
913
|
+
- We need move to the new `undici` and does not support Node.js 12
|
|
914
|
+
|
|
915
|
+
### Minor Changes
|
|
916
|
+
|
|
917
|
+
- 154b2ecd: refactor: remove @verdaccio/commons-api in favor @verdaccio/core and remove duplications
|
|
918
|
+
|
|
919
|
+
### Patch Changes
|
|
920
|
+
|
|
921
|
+
- Updated dependencies [b702ea36]
|
|
922
|
+
- @verdaccio/logger-prettify@6.0.0-6-next.4
|
|
923
|
+
|
|
924
|
+
## 6.0.0-6-next.5
|
|
925
|
+
|
|
926
|
+
### Patch Changes
|
|
927
|
+
|
|
928
|
+
- 2c594910: do not show deprecation warning on default logger config
|
|
929
|
+
|
|
930
|
+
## 6.0.0-6-next.4
|
|
931
|
+
|
|
932
|
+
### Major Changes
|
|
933
|
+
|
|
934
|
+
- 5c5057fc: feat: node api new structure based on promise
|
|
935
|
+
|
|
936
|
+
```js
|
|
937
|
+
import { runServer } from "@verdaccio/node-api";
|
|
938
|
+
// or
|
|
939
|
+
import { runServer } from "verdaccio";
|
|
940
|
+
|
|
941
|
+
const app = await runServer(); // default configuration
|
|
942
|
+
const app = await runServer("./config/config.yaml");
|
|
943
|
+
const app = await runServer({ configuration });
|
|
944
|
+
app.listen(4000, (event) => {
|
|
945
|
+
// do something
|
|
946
|
+
});
|
|
947
|
+
```
|
|
948
|
+
|
|
949
|
+
### Breaking Change
|
|
950
|
+
|
|
951
|
+
If you are using the node-api, the new structure is Promise based and less arguments.
|
|
952
|
+
|
|
953
|
+
## 5.0.0-alpha.3
|
|
954
|
+
|
|
955
|
+
### Patch Changes
|
|
956
|
+
|
|
957
|
+
- fecbb9be: chore: add release step to private regisry on merge changeset pr
|
|
958
|
+
- Updated dependencies [fecbb9be]
|
|
959
|
+
- @verdaccio/logger-prettify@5.0.0-alpha.3
|
|
960
|
+
|
|
961
|
+
## 5.0.0-alpha.2
|
|
962
|
+
|
|
963
|
+
### Minor Changes
|
|
964
|
+
|
|
965
|
+
- 54c58d1e: feat: add server rate limit protection to all request
|
|
966
|
+
|
|
967
|
+
To modify custom values, use the server settings property.
|
|
968
|
+
|
|
969
|
+
```markdown
|
|
970
|
+
server:
|
|
971
|
+
|
|
972
|
+
## https://www.npmjs.com/package/express-rate-limit#configuration-options
|
|
973
|
+
|
|
974
|
+
rateLimit:
|
|
975
|
+
windowMs: 1000
|
|
976
|
+
max: 10000
|
|
977
|
+
```
|
|
978
|
+
|
|
979
|
+
The values are intended to be high, if you want to improve security of your server consider
|
|
980
|
+
using different values.
|
|
981
|
+
|
|
982
|
+
### Patch Changes
|
|
983
|
+
|
|
984
|
+
- Updated dependencies [54c58d1e]
|
|
985
|
+
- @verdaccio/logger-prettify@5.0.0-alpha.2
|
|
986
|
+
|
|
987
|
+
## 5.0.0-alpha.1
|
|
988
|
+
|
|
989
|
+
### Major Changes
|
|
990
|
+
|
|
991
|
+
- d87fa026: feat!: experiments config renamed to flags
|
|
992
|
+
|
|
993
|
+
- The `experiments` configuration is renamed to `flags`. The functionality is exactly the same.
|
|
994
|
+
|
|
995
|
+
```js
|
|
996
|
+
flags: token: false;
|
|
997
|
+
search: false;
|
|
998
|
+
```
|
|
999
|
+
|
|
1000
|
+
- The `self_path` property from the config file is being removed in favor of `config_file` full path.
|
|
1001
|
+
- Refactor `config` module, better types and utilities
|
|
1002
|
+
|
|
1003
|
+
- da1ee9c8: - Replace signature handler for legacy tokens by removing deprecated crypto.createDecipher by createCipheriv
|
|
1004
|
+
|
|
1005
|
+
- Introduce environment variables for legacy tokens
|
|
1006
|
+
|
|
1007
|
+
### Code Improvements
|
|
1008
|
+
|
|
1009
|
+
- Add debug library for improve developer experience
|
|
1010
|
+
|
|
1011
|
+
### Breaking change
|
|
1012
|
+
|
|
1013
|
+
- The new signature invalidates all previous tokens generated by Verdaccio 4 or previous versions.
|
|
1014
|
+
- The secret key must have 32 characters long.
|
|
1015
|
+
|
|
1016
|
+
### New environment variables
|
|
1017
|
+
|
|
1018
|
+
- `VERDACCIO_LEGACY_ALGORITHM`: Allows to define the specific algorithm for the token signature which by default is `aes-256-ctr`
|
|
1019
|
+
- `VERDACCIO_LEGACY_ENCRYPTION_KEY`: By default, the token stores in the database, but using this variable allows to get it from memory
|
|
1020
|
+
|
|
1021
|
+
- add778d5: logging prettifier only in development mode
|
|
1022
|
+
|
|
1023
|
+
- Verdaccio prettify `@verdaccio/logger-prettify` the logging which looks beautiful. But there are scenarios which does not make sense in production. This feature enables disable by default the prettifies if production `NODE_ENV` is enabled.
|
|
1024
|
+
- Updates pino.js to `^6.7.0`.
|
|
1025
|
+
- Suppress the warning when prettifier is enabled `suppressFlushSyncWarning`
|
|
1026
|
+
|
|
1027
|
+
### Minor Changes
|
|
1028
|
+
|
|
1029
|
+
- 26b494cb: feat: add typescript project references settings
|
|
1030
|
+
|
|
1031
|
+
Reading https://ebaytech.berlin/optimizing-multi-package-apps-with-typescript-project-references-d5c57a3b4440 I realized I can use project references to solve the issue to pre-compile modules on develop mode.
|
|
1032
|
+
|
|
1033
|
+
It allows to navigate (IDE) trough the packages without need compile the packages.
|
|
1034
|
+
|
|
1035
|
+
Add two `tsconfig`, one using the previous existing configuration that is able to produce declaration files (`tsconfig.build`) and a new one `tsconfig` which is enables [_projects references_](https://www.typescriptlang.org/docs/handbook/project-references.html).
|
|
1036
|
+
|
|
1037
|
+
### Patch Changes
|
|
1038
|
+
|
|
1039
|
+
- b57b4338: Enable prerelease mode with **changesets**
|
|
1040
|
+
- 31af0164: ESLint Warnings Fixed
|
|
1041
|
+
|
|
1042
|
+
Related to issue #1461
|
|
1043
|
+
|
|
1044
|
+
- max-len: most of the sensible max-len errors are fixed
|
|
1045
|
+
- no-unused-vars: most of these types of errors are fixed by deleting not needed declarations
|
|
1046
|
+
- @typescript-eslint/no-unused-vars: same as above
|
|
1047
|
+
|
|
1048
|
+
- Updated dependencies [d87fa026]
|
|
1049
|
+
- Updated dependencies [da1ee9c8]
|
|
1050
|
+
- Updated dependencies [26b494cb]
|
|
1051
|
+
- Updated dependencies [b57b4338]
|
|
1052
|
+
- Updated dependencies [31af0164]
|
|
1053
|
+
- @verdaccio/logger-prettify@5.0.0-alpha.1
|
|
1054
|
+
|
|
1055
|
+
## 5.0.0-alpha.1
|
|
1056
|
+
|
|
1057
|
+
### Major Changes
|
|
1058
|
+
|
|
1059
|
+
- d87fa0268: feat!: experiments config renamed to flags
|
|
1060
|
+
|
|
1061
|
+
- The `experiments` configuration is renamed to `flags`. The functionality is exactly the same.
|
|
1062
|
+
|
|
1063
|
+
```js
|
|
1064
|
+
flags: token: false;
|
|
1065
|
+
search: false;
|
|
1066
|
+
```
|
|
1067
|
+
|
|
1068
|
+
- The `self_path` property from the config file is being removed in favor of `config_file` full path.
|
|
1069
|
+
- Refactor `config` module, better types and utilities
|
|
1070
|
+
|
|
1071
|
+
- da1ee9c82: - Replace signature handler for legacy tokens by removing deprecated crypto.createDecipher by createCipheriv
|
|
1072
|
+
|
|
1073
|
+
- Introduce environment variables for legacy tokens
|
|
1074
|
+
|
|
1075
|
+
### Code Improvements
|
|
1076
|
+
|
|
1077
|
+
- Add debug library for improve developer experience
|
|
1078
|
+
|
|
1079
|
+
### Breaking change
|
|
1080
|
+
|
|
1081
|
+
- The new signature invalidates all previous tokens generated by Verdaccio 4 or previous versions.
|
|
1082
|
+
- The secret key must have 32 characters long.
|
|
1083
|
+
|
|
1084
|
+
### New environment variables
|
|
1085
|
+
|
|
1086
|
+
- `VERDACCIO_LEGACY_ALGORITHM`: Allows to define the specific algorithm for the token signature which by default is `aes-256-ctr`
|
|
1087
|
+
- `VERDACCIO_LEGACY_ENCRYPTION_KEY`: By default, the token stores in the database, but using this variable allows to get it from memory
|
|
1088
|
+
|
|
1089
|
+
- add778d55: logging prettifier only in development mode
|
|
1090
|
+
|
|
1091
|
+
- Verdaccio prettify `@verdaccio/logger-prettify` the logging which looks beautiful. But there are scenarios which does not make sense in production. This feature enables disable by default the prettifies if production `NODE_ENV` is enabled.
|
|
1092
|
+
- Updates pino.js to `^6.7.0`.
|
|
1093
|
+
- Suppress the warning when prettifier is enabled `suppressFlushSyncWarning`
|
|
1094
|
+
|
|
1095
|
+
### Minor Changes
|
|
1096
|
+
|
|
1097
|
+
- 26b494cbd: feat: add typescript project references settings
|
|
1098
|
+
|
|
1099
|
+
Reading https://ebaytech.berlin/optimizing-multi-package-apps-with-typescript-project-references-d5c57a3b4440 I realized I can use project references to solve the issue to pre-compile modules on develop mode.
|
|
1100
|
+
|
|
1101
|
+
It allows to navigate (IDE) trough the packages without need compile the packages.
|
|
1102
|
+
|
|
1103
|
+
Add two `tsconfig`, one using the previous existing configuration that is able to produce declaration files (`tsconfig.build`) and a new one `tsconfig` which is enables [_projects references_](https://www.typescriptlang.org/docs/handbook/project-references.html).
|
|
1104
|
+
|
|
1105
|
+
### Patch Changes
|
|
1106
|
+
|
|
1107
|
+
- b57b43388: Enable prerelease mode with **changesets**
|
|
1108
|
+
- 31af01641: ESLint Warnings Fixed
|
|
1109
|
+
|
|
1110
|
+
Related to issue #1461
|
|
1111
|
+
|
|
1112
|
+
- max-len: most of the sensible max-len errors are fixed
|
|
1113
|
+
- no-unused-vars: most of these types of errors are fixed by deleting not needed declarations
|
|
1114
|
+
- @typescript-eslint/no-unused-vars: same as above
|
|
1115
|
+
|
|
1116
|
+
- Updated dependencies [d87fa0268]
|
|
1117
|
+
- Updated dependencies [da1ee9c82]
|
|
1118
|
+
- Updated dependencies [26b494cbd]
|
|
1119
|
+
- Updated dependencies [b57b43388]
|
|
1120
|
+
- Updated dependencies [31af01641]
|
|
1121
|
+
- @verdaccio/logger-prettify@5.0.0-alpha.1
|