verdaccio-auth-memory 11.0.0-alpha.3 → 12.0.0-next.1

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