@verdaccio/server 6.0.0-6-next.65 → 7.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +454 -0
  2. package/package.json +14 -14
package/CHANGELOG.md CHANGED
@@ -1,5 +1,459 @@
1
1
  # @verdaccio/server
2
2
 
3
+ ## 7.0.0-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - @verdaccio/core@7.0.0-next.1
8
+ - @verdaccio/config@7.0.0-next.1
9
+ - @verdaccio/api@7.0.0-next.1
10
+ - @verdaccio/auth@7.0.0-next.1
11
+ - @verdaccio/loaders@7.0.0-next.1
12
+ - @verdaccio/middleware@7.0.0-next.1
13
+ - verdaccio-audit@12.0.0-next.1
14
+ - @verdaccio/store@7.0.0-next.1
15
+ - @verdaccio/utils@7.0.0-next.1
16
+ - @verdaccio/web@7.0.0-next.1
17
+ - @verdaccio/logger@7.0.0-next.1
18
+
19
+ ## 7.0.0-next.0
20
+
21
+ ### Major Changes
22
+
23
+ - feat!: bump to v7
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+ - @verdaccio/api@7.0.0-next.0
29
+ - @verdaccio/auth@7.0.0-next.0
30
+ - @verdaccio/config@7.0.0-next.0
31
+ - @verdaccio/core@7.0.0-next.0
32
+ - @verdaccio/loaders@7.0.0-next.0
33
+ - @verdaccio/logger@7.0.0-next.0
34
+ - @verdaccio/middleware@7.0.0-next.0
35
+ - verdaccio-audit@12.0.0-next.0
36
+ - @verdaccio/store@7.0.0-next.0
37
+ - @verdaccio/utils@7.0.0-next.0
38
+ - @verdaccio/web@7.0.0-next.0
39
+
40
+ ## 6.0.0
41
+
42
+ ### Major Changes
43
+
44
+ - 292c0a37f: feat!: replace deprecated request dependency by got
45
+
46
+ 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.
47
+
48
+ ## Notes
49
+
50
+ - Remove deprecated `request` by other `got`, retry improved, custom Agent ( got does not include it built-in)
51
+ - Remove `async` dependency from storage (used by core) it was linked with proxy somehow safe to remove now
52
+ - Refactor with promises instead callback wherever is possible
53
+ - ~Document the API~
54
+ - Improve testing, integration tests
55
+ - Bugfix
56
+ - Clean up old validations
57
+ - Improve performance
58
+
59
+ ## 💥 Breaking changes
60
+
61
+ - Plugin API methods were callbacks based are returning promises, this will break current storage plugins, check documentation for upgrade.
62
+ - 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));`
63
+ - `@verdaccio/streams` stream abort support is legacy is being deprecated removed
64
+ - Remove AWS and Google Cloud packages for future refactoring [#2574](https://github.com/verdaccio/verdaccio/pull/2574).
65
+
66
+ - a828271d6: refactor: download manifest endpoint and integrate fastify
67
+
68
+ Much simpler API for fetching a package
69
+
70
+ ```
71
+ const manifest = await storage.getPackageNext({
72
+ name,
73
+ uplinksLook: true,
74
+ req,
75
+ version: queryVersion,
76
+ requestOptions,
77
+ });
78
+ ```
79
+
80
+ > not perfect, the `req` still is being passed to the proxy (this has to be refactored at proxy package) and then removed from here, in proxy we pass the request instance to the `request` library.
81
+
82
+ ### Details
83
+
84
+ - `async/await` sugar for getPackage()
85
+ - Improve and reuse code between current implementation and new fastify endpoint (add scaffolding for request manifest)
86
+ - Improve performance
87
+ - Add new tests
88
+
89
+ ### Breaking changes
90
+
91
+ All storage plugins will stop to work since the storage uses `getPackageNext` method which is Promise based, I won't replace this now because will force me to update all plugins, I'll follow up in another PR. Currently will throw http 500
92
+
93
+ - 459b6fa72: refactor: search v1 endpoint and local-database
94
+
95
+ - refactor search `api v1` endpoint, improve performance
96
+ - remove usage of `async` dependency https://github.com/verdaccio/verdaccio/issues/1225
97
+ - refactor method storage class
98
+ - create new module `core` to reduce the ammount of modules with utilities
99
+ - use `undici` instead `node-fetch`
100
+ - use `fastify` instead `express` for functional test
101
+
102
+ ### Breaking changes
103
+
104
+ - plugin storage API changes
105
+ - remove old search endpoint (return 404)
106
+ - filter local private packages at plugin level
107
+
108
+ The storage api changes for methods `get`, `add`, `remove` as promise base. The `search` methods also changes and recieves a `query` object that contains all query params from the client.
109
+
110
+ ```ts
111
+ export interface IPluginStorage<T> extends IPlugin {
112
+ add(name: string): Promise<void>;
113
+ remove(name: string): Promise<void>;
114
+ get(): Promise<any>;
115
+ init(): Promise<void>;
116
+ getSecret(): Promise<string>;
117
+ setSecret(secret: string): Promise<any>;
118
+ getPackageStorage(packageInfo: string): IPackageStorage;
119
+ search(query: searchUtils.SearchQuery): Promise<searchUtils.SearchItem[]>;
120
+ saveToken(token: Token): Promise<any>;
121
+ deleteToken(user: string, tokenKey: string): Promise<any>;
122
+ readTokens(filter: TokenFilter): Promise<Token[]>;
123
+ }
124
+ ```
125
+
126
+ - 9fc2e7961: feat(plugins): improve plugin loader
127
+
128
+ ### Changes
129
+
130
+ - Add scope plugin support to 6.x https://github.com/verdaccio/verdaccio/pull/3227
131
+ - Avoid config collisions https://github.com/verdaccio/verdaccio/issues/928
132
+ - https://github.com/verdaccio/verdaccio/issues/1394
133
+ - `config.plugins` plugin path validations
134
+ - Updated algorithm for plugin loader.
135
+ - improved documentation (included dev)
136
+
137
+ ## Features
138
+
139
+ - Add scope plugin support to 6.x https://github.com/verdaccio/verdaccio/pull/3227
140
+ - Custom prefix:
141
+
142
+ ```
143
+ // config.yaml
144
+ server:
145
+ pluginPrefix: mycompany
146
+ middleware:
147
+ audit:
148
+ foo: 1
149
+ ```
150
+
151
+ This configuration will look up for `mycompany-audit` instead `Verdaccio-audit`.
152
+
153
+ ## Breaking Changes
154
+
155
+ ### sinopia plugins
156
+
157
+ - `sinopia` fallback support is removed, but can be restored using `pluginPrefix`
158
+
159
+ ### plugin filter
160
+
161
+ - method rename `filter_metadata`->`filterMetadata`
162
+
163
+ ### Plugin constructor does not merge configs anymore https://github.com/verdaccio/verdaccio/issues/928
164
+
165
+ The plugin receives as first argument `config`, which represents the config of the plugin. Example:
166
+
167
+ ```
168
+ // config.yaml
169
+ auth:
170
+ plugin:
171
+ foo: 1
172
+ bar: 2
173
+
174
+ export class Plugin<T> {
175
+ public constructor(config: T, options: PluginOptions) {
176
+ console.log(config);
177
+ // {foo:1, bar: 2}
178
+ }
179
+ }
180
+ ```
181
+
182
+ - 794af76c5: Remove Node 12 support
183
+
184
+ - We need move to the new `undici` and does not support Node.js 12
185
+
186
+ - 10aeb4f13: feat!: experiments config renamed to flags
187
+
188
+ - The `experiments` configuration is renamed to `flags`. The functionality is exactly the same.
189
+
190
+ ```js
191
+ flags: token: false;
192
+ search: false;
193
+ ```
194
+
195
+ - The `self_path` property from the config file is being removed in favor of `config_file` full path.
196
+ - Refactor `config` module, better types and utilities
197
+
198
+ - e367c3f1e: - Replace signature handler for legacy tokens by removing deprecated crypto.createDecipher by createCipheriv
199
+
200
+ - Introduce environment variables for legacy tokens
201
+
202
+ ### Code Improvements
203
+
204
+ - Add debug library for improve developer experience
205
+
206
+ ### Breaking change
207
+
208
+ - The new signature invalidates all previous tokens generated by Verdaccio 4 or previous versions.
209
+ - The secret key must have 32 characters long.
210
+
211
+ ### New environment variables
212
+
213
+ - `VERDACCIO_LEGACY_ALGORITHM`: Allows to define the specific algorithm for the token signature which by default is `aes-256-ctr`
214
+ - `VERDACCIO_LEGACY_ENCRYPTION_KEY`: By default, the token stores in the database, but using this variable allows to get it from memory
215
+
216
+ - 061bfcc8d: feat: standalone registry with no dependencies
217
+
218
+ ## Usage
219
+
220
+ To install a server with no dependencies
221
+
222
+ ```bash
223
+ npm install -g @verdaccio/standalone
224
+ ```
225
+
226
+ with no internet required
227
+
228
+ ```bash
229
+ npm install -g ./tarball.tar.gz
230
+ ```
231
+
232
+ Bundles htpasswd and audit plugins.
233
+
234
+ ### Breaking Change
235
+
236
+ It does not allow anymore the `auth` and `middleware` property at config file empty,
237
+ it will fallback to those plugins by default.
238
+
239
+ - 82cb0f2bf: feat!: config.logs throw an error, logging config not longer accept array or logs property
240
+
241
+ ### 💥 Breaking change
242
+
243
+ This is valid
244
+
245
+ ```yaml
246
+ log: { type: stdout, format: pretty, level: http }
247
+ ```
248
+
249
+ This is invalid
250
+
251
+ ```yaml
252
+ logs: { type: stdout, format: pretty, level: http }
253
+ ```
254
+
255
+ or
256
+
257
+ ```yaml
258
+ logs:
259
+ - [{ type: stdout, format: pretty, level: http }]
260
+ ```
261
+
262
+ ### Minor Changes
263
+
264
+ - ae93e039d: fix: expose middleware methods
265
+ - 631abe1ac: feat: refactor logger
266
+ - 00d1d2a17: chore: env variable for launch fastify
267
+
268
+ - Update fastify to major release `v4.3.0`
269
+ - Update CLI launcher
270
+
271
+ via CLI
272
+
273
+ ```
274
+ VERDACCIO_SERVER=fastify verdaccio
275
+ ```
276
+
277
+ with docker
278
+
279
+ ```
280
+ docker run -it --rm --name verdaccio \
281
+ -e "VERDACCIO_SERVER=8080" -p 8080:8080 \
282
+ -e "VERDACCIO_SERVER=fastify" \
283
+ verdaccio/verdaccio
284
+ ```
285
+
286
+ - 048ac95e8: feat: align with v5 ui endpoints and ui small bugfix
287
+ - b61f762d6: feat: add server rate limit protection to all request
288
+
289
+ To modify custom values, use the server settings property.
290
+
291
+ ```markdown
292
+ server:
293
+
294
+ ## https://www.npmjs.com/package/express-rate-limit#configuration-options
295
+
296
+ rateLimit:
297
+ windowMs: 1000
298
+ max: 10000
299
+ ```
300
+
301
+ The values are intended to be high, if you want to improve security of your server consider
302
+ using different values.
303
+
304
+ - 154b2ecd3: refactor: remove @verdaccio/commons-api in favor @verdaccio/core and remove duplications
305
+ - aa763baec: feat: add typescript project references settings
306
+
307
+ 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.
308
+
309
+ It allows to navigate (IDE) trough the packages without need compile the packages.
310
+
311
+ 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).
312
+
313
+ - 16e38df8a: feat: trustProxy property
314
+ - 5167bb528: feat: ui search support for remote, local and private packages
315
+
316
+ The command `npm search` search globally and return all matches, with this improvement the user interface
317
+ is powered with the same capabilities.
318
+
319
+ The UI also tag where is the origin the package with a tag, also provide the latest version and description of the package.
320
+
321
+ - 45c03819e: refactor: render html middleware
322
+
323
+ ### Patch Changes
324
+
325
+ - 9943e2b18: fix: extract logger from middleware
326
+ - 351aeeaa8: fix(deps): @verdaccio/utils should be a prod dep of local-storage
327
+ - 7ef599cc4: fix: missing version on footer
328
+ - 19d272d10: fix: restore logger on init
329
+
330
+ Enable logger after parse configuration and log the very first step on startup phase.
331
+
332
+ ```bash
333
+ warn --- experiments are enabled, it is recommended do not use experiments in production comment out this section to disable it
334
+ info --- support for experiment [token] is disabled
335
+ info --- support for experiment [search] is disabled
336
+ (node:50831) Warning: config.logs is deprecated, rename configuration to "config.log"
337
+ (Use `node --trace-warnings ...` to show where the warning was created)
338
+ info --- http address http://localhost:4873/
339
+ info --- version: 6.0.0-6-next.11
340
+ info --- server started
341
+ ```
342
+
343
+ - a610ef26b: chore: add release step to private regisry on merge changeset pr
344
+ - 648575aa4: Bug Fixes
345
+
346
+ - fix escaped slash in namespaced packages
347
+
348
+ #### Related tickets
349
+
350
+ https://github.com/verdaccio/verdaccio/pull/2193
351
+
352
+ - 34f0f1101: Enable prerelease mode with **changesets**
353
+ - 68ea21214: ESLint Warnings Fixed
354
+
355
+ Related to issue #1461
356
+
357
+ - max-len: most of the sensible max-len errors are fixed
358
+ - no-unused-vars: most of these types of errors are fixed by deleting not needed declarations
359
+ - @typescript-eslint/no-unused-vars: same as above
360
+
361
+ - Updated dependencies [0da7031e7]
362
+ - Updated dependencies [292c0a37f]
363
+ - Updated dependencies [dc05edfe6]
364
+ - Updated dependencies [a1986e098]
365
+ - Updated dependencies [974cd8c19]
366
+ - Updated dependencies [a828271d6]
367
+ - Updated dependencies [ef88da3b4]
368
+ - Updated dependencies [43f32687c]
369
+ - Updated dependencies [679c19c1b]
370
+ - Updated dependencies [a3a209b5e]
371
+ - Updated dependencies [459b6fa72]
372
+ - Updated dependencies [9fc2e7961]
373
+ - Updated dependencies [9943e2b18]
374
+ - Updated dependencies [ae93e039d]
375
+ - Updated dependencies [702d5c497]
376
+ - Updated dependencies [24b9be020]
377
+ - Updated dependencies [794af76c5]
378
+ - Updated dependencies [e75c0a3b9]
379
+ - Updated dependencies [351aeeaa8]
380
+ - Updated dependencies [10aeb4f13]
381
+ - Updated dependencies [1d1112805]
382
+ - Updated dependencies [631abe1ac]
383
+ - Updated dependencies [9718e0330]
384
+ - Updated dependencies [7ef599cc4]
385
+ - Updated dependencies [b702ea363]
386
+ - Updated dependencies [1b217fd34]
387
+ - Updated dependencies [e367c3f1e]
388
+ - Updated dependencies [a1da11308]
389
+ - Updated dependencies [d167f92e1]
390
+ - Updated dependencies [d2c65da9c]
391
+ - Updated dependencies [00d1d2a17]
392
+ - Updated dependencies [a828a5f6c]
393
+ - Updated dependencies [1810ed0d8]
394
+ - Updated dependencies [a610ef26b]
395
+ - Updated dependencies [ddb6a2239]
396
+ - Updated dependencies [e54ec4b5d]
397
+ - Updated dependencies [a23628be9]
398
+ - Updated dependencies [048ac95e8]
399
+ - Updated dependencies [f96b147ea]
400
+ - Updated dependencies [31d661c7b]
401
+ - Updated dependencies [648575aa4]
402
+ - Updated dependencies [b61f762d6]
403
+ - Updated dependencies [4fc21146a]
404
+ - Updated dependencies [d43894e8f]
405
+ - Updated dependencies [154b2ecd3]
406
+ - Updated dependencies [061bfcc8d]
407
+ - Updated dependencies [aa763baec]
408
+ - Updated dependencies [378e907d5]
409
+ - Updated dependencies [16e38df8a]
410
+ - Updated dependencies [34f0f1101]
411
+ - Updated dependencies [82cb0f2bf]
412
+ - Updated dependencies [dc571aabd]
413
+ - Updated dependencies [5ddfa5264]
414
+ - Updated dependencies [b78f35257]
415
+ - Updated dependencies [ce013d2fc]
416
+ - Updated dependencies [f859d2b1a]
417
+ - Updated dependencies [000d43746]
418
+ - Updated dependencies [2c594910d]
419
+ - Updated dependencies [6c1eb021b]
420
+ - Updated dependencies [168833d85]
421
+ - Updated dependencies [62c24b632]
422
+ - Updated dependencies [0a6412ca9]
423
+ - Updated dependencies [0a6412ca9]
424
+ - Updated dependencies [d08fe29d9]
425
+ - Updated dependencies [b4cc80017]
426
+ - Updated dependencies [558d78f32]
427
+ - Updated dependencies [5167bb528]
428
+ - Updated dependencies [f86c31ed0]
429
+ - Updated dependencies [65f88b826]
430
+ - Updated dependencies [781ac9ac2]
431
+ - Updated dependencies [aeff267d9]
432
+ - Updated dependencies [20c9e43ed]
433
+ - Updated dependencies [b3e8438f6]
434
+ - Updated dependencies [c9d1af0e5]
435
+ - Updated dependencies [730b5d8cc]
436
+ - Updated dependencies [4b29d715b]
437
+ - Updated dependencies [b13a3fefd]
438
+ - Updated dependencies [68ea21214]
439
+ - Updated dependencies [37274e4c8]
440
+ - Updated dependencies [fa274ee44]
441
+ - Updated dependencies [8f43bf17d]
442
+ - Updated dependencies [45c03819e]
443
+ - Updated dependencies [aecbd226d]
444
+ - Updated dependencies [b849128de]
445
+ - @verdaccio/web@6.0.0
446
+ - @verdaccio/api@6.0.0
447
+ - @verdaccio/auth@6.0.0
448
+ - @verdaccio/config@6.0.0
449
+ - @verdaccio/core@6.0.0
450
+ - @verdaccio/loaders@6.0.0
451
+ - @verdaccio/logger@6.0.0
452
+ - @verdaccio/middleware@6.0.0
453
+ - verdaccio-audit@11.0.0
454
+ - @verdaccio/store@6.0.0
455
+ - @verdaccio/utils@6.0.0
456
+
3
457
  ## 6.0.0-6-next.65
4
458
 
5
459
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdaccio/server",
3
- "version": "6.0.0-6-next.65",
3
+ "version": "7.0.0-next.1",
4
4
  "description": "server logic",
5
5
  "main": "./build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -30,17 +30,17 @@
30
30
  "npm": ">=6"
31
31
  },
32
32
  "dependencies": {
33
- "@verdaccio/api": "6.0.0-6-next.59",
34
- "@verdaccio/auth": "6.0.0-6-next.55",
35
- "@verdaccio/core": "6.0.0-6-next.76",
36
- "@verdaccio/config": "6.0.0-6-next.76",
37
- "@verdaccio/loaders": "6.0.0-6-next.45",
38
- "@verdaccio/logger": "6.0.0-6-next.44",
39
- "@verdaccio/middleware": "6.0.0-6-next.55",
40
- "@verdaccio/store": "6.0.0-6-next.56",
41
- "@verdaccio/utils": "6.0.0-6-next.44",
42
- "@verdaccio/web": "6.0.0-6-next.63",
43
- "verdaccio-audit": "11.0.0-6-next.39",
33
+ "@verdaccio/api": "7.0.0-next.1",
34
+ "@verdaccio/auth": "7.0.0-next.1",
35
+ "@verdaccio/core": "7.0.0-next.1",
36
+ "@verdaccio/config": "7.0.0-next.1",
37
+ "@verdaccio/loaders": "7.0.0-next.1",
38
+ "@verdaccio/logger": "7.0.0-next.1",
39
+ "@verdaccio/middleware": "7.0.0-next.1",
40
+ "@verdaccio/store": "7.0.0-next.1",
41
+ "@verdaccio/utils": "7.0.0-next.1",
42
+ "@verdaccio/web": "7.0.0-next.1",
43
+ "verdaccio-audit": "12.0.0-next.1",
44
44
  "compression": "1.7.4",
45
45
  "cors": "2.8.5",
46
46
  "debug": "4.3.4",
@@ -48,8 +48,8 @@
48
48
  "lodash": "4.17.21"
49
49
  },
50
50
  "devDependencies": {
51
- "@verdaccio/proxy": "6.0.0-6-next.54",
52
- "@verdaccio/test-helper": "2.0.0-6-next.8",
51
+ "@verdaccio/proxy": "7.0.0-next.1",
52
+ "@verdaccio/test-helper": "3.0.0-next.0",
53
53
  "http-errors": "2.0.0"
54
54
  },
55
55
  "funding": {