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