verdaccio-auth-memory 11.0.0-alpha.3 → 12.0.0-next.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 CHANGED
@@ -1,5 +1,513 @@
1
1
  # Change Log
2
2
 
3
+ ## 12.0.0-next.0
4
+
5
+ ### Major Changes
6
+
7
+ - feat!: bump to v7
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @verdaccio/core@7.0.0-next.0
13
+
14
+ ## 11.0.0
15
+
16
+ ### Major Changes
17
+
18
+ - 292c0a37f: feat!: replace deprecated request dependency by got
19
+
20
+ 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.
21
+
22
+ ## Notes
23
+
24
+ - Remove deprecated `request` by other `got`, retry improved, custom Agent ( got does not include it built-in)
25
+ - Remove `async` dependency from storage (used by core) it was linked with proxy somehow safe to remove now
26
+ - Refactor with promises instead callback wherever is possible
27
+ - ~Document the API~
28
+ - Improve testing, integration tests
29
+ - Bugfix
30
+ - Clean up old validations
31
+ - Improve performance
32
+
33
+ ## 💥 Breaking changes
34
+
35
+ - Plugin API methods were callbacks based are returning promises, this will break current storage plugins, check documentation for upgrade.
36
+ - 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));`
37
+ - `@verdaccio/streams` stream abort support is legacy is being deprecated removed
38
+ - Remove AWS and Google Cloud packages for future refactoring [#2574](https://github.com/verdaccio/verdaccio/pull/2574).
39
+
40
+ - 9fc2e7961: feat(plugins): improve plugin loader
41
+
42
+ ### Changes
43
+
44
+ - Add scope plugin support to 6.x https://github.com/verdaccio/verdaccio/pull/3227
45
+ - Avoid config collisions https://github.com/verdaccio/verdaccio/issues/928
46
+ - https://github.com/verdaccio/verdaccio/issues/1394
47
+ - `config.plugins` plugin path validations
48
+ - Updated algorithm for plugin loader.
49
+ - improved documentation (included dev)
50
+
51
+ ## Features
52
+
53
+ - Add scope plugin support to 6.x https://github.com/verdaccio/verdaccio/pull/3227
54
+ - Custom prefix:
55
+
56
+ ```
57
+ // config.yaml
58
+ server:
59
+ pluginPrefix: mycompany
60
+ middleware:
61
+ audit:
62
+ foo: 1
63
+ ```
64
+
65
+ This configuration will look up for `mycompany-audit` instead `Verdaccio-audit`.
66
+
67
+ ## Breaking Changes
68
+
69
+ ### sinopia plugins
70
+
71
+ - `sinopia` fallback support is removed, but can be restored using `pluginPrefix`
72
+
73
+ ### plugin filter
74
+
75
+ - method rename `filter_metadata`->`filterMetadata`
76
+
77
+ ### Plugin constructor does not merge configs anymore https://github.com/verdaccio/verdaccio/issues/928
78
+
79
+ The plugin receives as first argument `config`, which represents the config of the plugin. Example:
80
+
81
+ ```
82
+ // config.yaml
83
+ auth:
84
+ plugin:
85
+ foo: 1
86
+ bar: 2
87
+
88
+ export class Plugin<T> {
89
+ public constructor(config: T, options: PluginOptions) {
90
+ console.log(config);
91
+ // {foo:1, bar: 2}
92
+ }
93
+ }
94
+ ```
95
+
96
+ - 794af76c5: Remove Node 12 support
97
+
98
+ - We need move to the new `undici` and does not support Node.js 12
99
+
100
+ - 10aeb4f13: feat!: experiments config renamed to flags
101
+
102
+ - The `experiments` configuration is renamed to `flags`. The functionality is exactly the same.
103
+
104
+ ```js
105
+ flags: token: false;
106
+ search: false;
107
+ ```
108
+
109
+ - The `self_path` property from the config file is being removed in favor of `config_file` full path.
110
+ - Refactor `config` module, better types and utilities
111
+
112
+ ### Minor Changes
113
+
114
+ - 631abe1ac: feat: refactor logger
115
+ - b61f762d6: feat: add server rate limit protection to all request
116
+
117
+ To modify custom values, use the server settings property.
118
+
119
+ ```markdown
120
+ server:
121
+
122
+ ## https://www.npmjs.com/package/express-rate-limit#configuration-options
123
+
124
+ rateLimit:
125
+ windowMs: 1000
126
+ max: 10000
127
+ ```
128
+
129
+ The values are intended to be high, if you want to improve security of your server consider
130
+ using different values.
131
+
132
+ - 154b2ecd3: refactor: remove @verdaccio/commons-api in favor @verdaccio/core and remove duplications
133
+
134
+ ### Patch Changes
135
+
136
+ - 351aeeaa8: fix(deps): @verdaccio/utils should be a prod dep of local-storage
137
+ - a610ef26b: chore: add release step to private regisry on merge changeset pr
138
+ - Updated dependencies [292c0a37f]
139
+ - Updated dependencies [974cd8c19]
140
+ - Updated dependencies [ef88da3b4]
141
+ - Updated dependencies [43f32687c]
142
+ - Updated dependencies [a3a209b5e]
143
+ - Updated dependencies [459b6fa72]
144
+ - Updated dependencies [24b9be020]
145
+ - Updated dependencies [794af76c5]
146
+ - Updated dependencies [351aeeaa8]
147
+ - Updated dependencies [9718e0330]
148
+ - Updated dependencies [a1da11308]
149
+ - Updated dependencies [00d1d2a17]
150
+ - Updated dependencies [154b2ecd3]
151
+ - Updated dependencies [378e907d5]
152
+ - Updated dependencies [16e38df8a]
153
+ - Updated dependencies [82cb0f2bf]
154
+ - Updated dependencies [dc571aabd]
155
+ - Updated dependencies [f859d2b1a]
156
+ - Updated dependencies [6c1eb021b]
157
+ - Updated dependencies [62c24b632]
158
+ - Updated dependencies [0a6412ca9]
159
+ - Updated dependencies [5167bb528]
160
+ - Updated dependencies [c9d1af0e5]
161
+ - Updated dependencies [4b29d715b]
162
+ - Updated dependencies [b849128de]
163
+ - @verdaccio/core@6.0.0
164
+
165
+ ## 11.0.0-6-next.41
166
+
167
+ ### Patch Changes
168
+
169
+ - @verdaccio/core@6.0.0-6-next.76
170
+
171
+ ## 11.0.0-6-next.40
172
+
173
+ ### Patch Changes
174
+
175
+ - Updated dependencies [0a6412ca9]
176
+ - @verdaccio/core@6.0.0-6-next.75
177
+
178
+ ## 11.0.0-6-next.39
179
+
180
+ ### Patch Changes
181
+
182
+ - @verdaccio/core@6.0.0-6-next.74
183
+
184
+ ## 11.0.0-6-next.38
185
+
186
+ ### Patch Changes
187
+
188
+ - Updated dependencies [f859d2b1a]
189
+ - @verdaccio/core@6.0.0-6-next.73
190
+
191
+ ## 11.0.0-6-next.37
192
+
193
+ ### Patch Changes
194
+
195
+ - @verdaccio/core@6.0.0-6-next.72
196
+
197
+ ## 11.0.0-6-next.36
198
+
199
+ ### Patch Changes
200
+
201
+ - @verdaccio/core@6.0.0-6-next.71
202
+
203
+ ## 11.0.0-6-next.35
204
+
205
+ ### Patch Changes
206
+
207
+ - @verdaccio/core@6.0.0-6-next.70
208
+
209
+ ## 11.0.0-6-next.34
210
+
211
+ ### Patch Changes
212
+
213
+ - Updated dependencies [c9d1af0e]
214
+ - @verdaccio/core@6.0.0-6-next.69
215
+
216
+ ## 11.0.0-6-next.33
217
+
218
+ ### Patch Changes
219
+
220
+ - @verdaccio/core@6.0.0-6-next.68
221
+
222
+ ## 11.0.0-6-next.32
223
+
224
+ ### Patch Changes
225
+
226
+ - Updated dependencies [16e38df8]
227
+ - @verdaccio/core@6.0.0-6-next.67
228
+
229
+ ## 11.0.0-6-next.31
230
+
231
+ ### Patch Changes
232
+
233
+ - @verdaccio/core@6.0.0-6-next.66
234
+
235
+ ## 11.0.0-6-next.30
236
+
237
+ ### Patch Changes
238
+
239
+ - Updated dependencies [a1da1130]
240
+ - @verdaccio/core@6.0.0-6-next.65
241
+
242
+ ## 11.0.0-6-next.29
243
+
244
+ ### Patch Changes
245
+
246
+ - Updated dependencies [974cd8c1]
247
+ - @verdaccio/core@6.0.0-6-next.64
248
+
249
+ ## 11.0.0-6-next.28
250
+
251
+ ### Patch Changes
252
+
253
+ - Updated dependencies [dc571aab]
254
+ - @verdaccio/core@6.0.0-6-next.63
255
+
256
+ ## 11.0.0-6-next.27
257
+
258
+ ### Patch Changes
259
+
260
+ - Updated dependencies [378e907d]
261
+ - @verdaccio/core@6.0.0-6-next.62
262
+
263
+ ## 11.0.0-6-next.26
264
+
265
+ ### Patch Changes
266
+
267
+ - @verdaccio/core@6.0.0-6-next.61
268
+
269
+ ## 11.0.0-6-next.25
270
+
271
+ ### Patch Changes
272
+
273
+ - @verdaccio/core@6.0.0-6-next.60
274
+
275
+ ## 11.0.0-6-next.24
276
+
277
+ ### Patch Changes
278
+
279
+ - @verdaccio/core@6.0.0-6-next.59
280
+
281
+ ## 11.0.0-6-next.23
282
+
283
+ ### Patch Changes
284
+
285
+ - @verdaccio/core@6.0.0-6-next.58
286
+
287
+ ## 11.0.0-6-next.22
288
+
289
+ ### Patch Changes
290
+
291
+ - @verdaccio/core@6.0.0-6-next.57
292
+
293
+ ## 11.0.0-6-next.21
294
+
295
+ ### Patch Changes
296
+
297
+ - @verdaccio/core@6.0.0-6-next.56
298
+
299
+ ## 11.0.0-6-next.20
300
+
301
+ ### Patch Changes
302
+
303
+ - Updated dependencies [9718e033]
304
+ - @verdaccio/core@6.0.0-6-next.55
305
+
306
+ ## 11.0.0-6-next.19
307
+
308
+ ### Patch Changes
309
+
310
+ - Updated dependencies [ef88da3b]
311
+ - @verdaccio/core@6.0.0-6-next.54
312
+
313
+ ## 11.0.0-6-next.18
314
+
315
+ ### Patch Changes
316
+
317
+ - @verdaccio/core@6.0.0-6-next.53
318
+
319
+ ## 11.0.0-6-next.17
320
+
321
+ ### Patch Changes
322
+
323
+ - @verdaccio/core@6.0.0-6-next.52
324
+
325
+ ## 11.0.0-6-next.16
326
+
327
+ ### Patch Changes
328
+
329
+ - Updated dependencies [4b29d715]
330
+ - @verdaccio/core@6.0.0-6-next.51
331
+
332
+ ## 11.0.0-6-next.15
333
+
334
+ ### Patch Changes
335
+
336
+ - @verdaccio/core@6.0.0-6-next.50
337
+
338
+ ## 11.0.0-6-next.14
339
+
340
+ ### Patch Changes
341
+
342
+ - @verdaccio/core@6.0.0-6-next.49
343
+
344
+ ## 11.0.0-6-next.13
345
+
346
+ ### Major Changes
347
+
348
+ - 9fc2e796: feat(plugins): improve plugin loader
349
+
350
+ ### Changes
351
+
352
+ - Add scope plugin support to 6.x https://github.com/verdaccio/verdaccio/pull/3227
353
+ - Avoid config collisions https://github.com/verdaccio/verdaccio/issues/928
354
+ - https://github.com/verdaccio/verdaccio/issues/1394
355
+ - `config.plugins` plugin path validations
356
+ - Updated algorithm for plugin loader.
357
+ - improved documentation (included dev)
358
+
359
+ ## Features
360
+
361
+ - Add scope plugin support to 6.x https://github.com/verdaccio/verdaccio/pull/3227
362
+ - Custom prefix:
363
+
364
+ ```
365
+ // config.yaml
366
+ server:
367
+ pluginPrefix: mycompany
368
+ middleware:
369
+ audit:
370
+ foo: 1
371
+ ```
372
+
373
+ This configuration will look up for `mycompany-audit` instead `Verdaccio-audit`.
374
+
375
+ ## Breaking Changes
376
+
377
+ ### sinopia plugins
378
+
379
+ - `sinopia` fallback support is removed, but can be restored using `pluginPrefix`
380
+
381
+ ### plugin filter
382
+
383
+ - method rename `filter_metadata`->`filterMetadata`
384
+
385
+ ### Plugin constructor does not merge configs anymore https://github.com/verdaccio/verdaccio/issues/928
386
+
387
+ The plugin receives as first argument `config`, which represents the config of the plugin. Example:
388
+
389
+ ```
390
+ // config.yaml
391
+ auth:
392
+ plugin:
393
+ foo: 1
394
+ bar: 2
395
+
396
+ export class Plugin<T> {
397
+ public constructor(config: T, options: PluginOptions) {
398
+ console.log(config);
399
+ // {foo:1, bar: 2}
400
+ }
401
+ }
402
+ ```
403
+
404
+ ### Patch Changes
405
+
406
+ - Updated dependencies [43f32687]
407
+ - Updated dependencies [62c24b63]
408
+ - @verdaccio/core@6.0.0-6-next.48
409
+
410
+ ## 11.0.0-6-next.12
411
+
412
+ ### Patch Changes
413
+
414
+ - @verdaccio/core@6.0.0-6-next.47
415
+
416
+ ## 11.0.0-6-next.11
417
+
418
+ ### Patch Changes
419
+
420
+ - Updated dependencies [b849128d]
421
+ - @verdaccio/core@6.0.0-6-next.8
422
+
423
+ ## 11.0.0-6-next.10
424
+
425
+ ### Patch Changes
426
+
427
+ - 351aeeaa: fix(deps): @verdaccio/utils should be a prod dep of local-storage
428
+ - Updated dependencies [351aeeaa]
429
+ - @verdaccio/core@6.0.0-6-next.7
430
+
431
+ ## 11.0.0-6-next.9
432
+
433
+ ### Major Changes
434
+
435
+ - 292c0a37: feat!: replace deprecated request dependency by got
436
+
437
+ 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.
438
+
439
+ ## Notes
440
+
441
+ - Remove deprecated `request` by other `got`, retry improved, custom Agent ( got does not include it built-in)
442
+ - Remove `async` dependency from storage (used by core) it was linked with proxy somehow safe to remove now
443
+ - Refactor with promises instead callback wherever is possible
444
+ - ~Document the API~
445
+ - Improve testing, integration tests
446
+ - Bugfix
447
+ - Clean up old validations
448
+ - Improve performance
449
+
450
+ ## 💥 Breaking changes
451
+
452
+ - Plugin API methods were callbacks based are returning promises, this will break current storage plugins, check documentation for upgrade.
453
+ - 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));`
454
+ - `@verdaccio/streams` stream abort support is legacy is being deprecated removed
455
+ - Remove AWS and Google Cloud packages for future refactoring [#2574](https://github.com/verdaccio/verdaccio/pull/2574).
456
+
457
+ ### Patch Changes
458
+
459
+ - Updated dependencies [292c0a37]
460
+ - Updated dependencies [a3a209b5]
461
+ - Updated dependencies [00d1d2a1]
462
+ - @verdaccio/core@6.0.0-6-next.6
463
+
464
+ ## 11.0.0-6-next.8
465
+
466
+ ### Patch Changes
467
+
468
+ - Updated dependencies [82cb0f2b]
469
+ - Updated dependencies [5167bb52]
470
+ - @verdaccio/core@6.0.0-6-next.5
471
+
472
+ ## 11.0.0-6-next.7
473
+
474
+ ### Patch Changes
475
+
476
+ - Updated dependencies [24b9be02]
477
+ - @verdaccio/core@6.0.0-6-next.4
478
+
479
+ ## 11.0.0-6-next.6
480
+
481
+ ### Patch Changes
482
+
483
+ - Updated dependencies [6c1eb021]
484
+ - @verdaccio/core@6.0.0-6-next.3
485
+
486
+ ## 11.0.0-6-next.5
487
+
488
+ ### Major Changes
489
+
490
+ - 794af76c: Remove Node 12 support
491
+
492
+ - We need move to the new `undici` and does not support Node.js 12
493
+
494
+ ### Minor Changes
495
+
496
+ - 154b2ecd: refactor: remove @verdaccio/commons-api in favor @verdaccio/core and remove duplications
497
+
498
+ ### Patch Changes
499
+
500
+ - Updated dependencies [794af76c]
501
+ - Updated dependencies [154b2ecd]
502
+ - @verdaccio/core@6.0.0-6-next.2
503
+
504
+ ## 11.0.0-6-next.4
505
+
506
+ ### Patch Changes
507
+
508
+ - Updated dependencies [459b6fa7]
509
+ - @verdaccio/commons-api@11.0.0-6-next.4
510
+
3
511
  ## 10.0.0-alpha.3
4
512
 
5
513
  ### Patch Changes
package/build/Memory.d.ts CHANGED
@@ -1,14 +1,17 @@
1
- import { PluginOptions, Callback, PackageAccess, IPluginAuth, RemoteUser, Logger } from '@verdaccio/types';
2
- import { VerdaccioMemoryConfig, Users } from './types';
3
- export default class Memory implements IPluginAuth<VerdaccioMemoryConfig> {
1
+ import { pluginUtils } from '@verdaccio/core';
2
+ import { Config, Logger, PackageAccess, RemoteUser } from '@verdaccio/types';
3
+ import { Users, VerdaccioMemoryConfig } from './types';
4
+ declare const Plugin: typeof pluginUtils.Plugin;
5
+ export default class Memory extends Plugin<VerdaccioMemoryConfig> implements pluginUtils.Auth<VerdaccioMemoryConfig> {
4
6
  _logger: Logger;
5
7
  _users: Users;
6
8
  _config: {};
7
- _app_config: VerdaccioMemoryConfig;
8
- constructor(config: VerdaccioMemoryConfig, appOptions: PluginOptions<VerdaccioMemoryConfig>);
9
- authenticate(user: string, password: string, done: Callback): void;
10
- adduser(user: string, password: string, done: Callback): void;
11
- changePassword(username: string, password: string, newPassword: string, cb: Callback): void;
12
- allow_access(user: RemoteUser, pkg: PackageAccess, cb: Callback): void;
13
- allow_publish(user: RemoteUser, pkg: PackageAccess, cb: Callback): void;
9
+ _app_config: Config;
10
+ constructor(config: VerdaccioMemoryConfig, appOptions: pluginUtils.PluginOptions);
11
+ authenticate(user: string, password: string, cb: pluginUtils.AuthCallback): void;
12
+ adduser(user: string, password: string, cb: pluginUtils.AuthUserCallback): void;
13
+ changePassword(username: string, password: string, newPassword: string, cb: pluginUtils.AuthChangePasswordCallback): void;
14
+ allow_access(user: RemoteUser, pkg: PackageAccess, cb: pluginUtils.AccessCallback): void;
15
+ allow_publish(user: RemoteUser, pkg: PackageAccess, cb: pluginUtils.AuthAccessCallback): void;
14
16
  }
17
+ export {};