@verdaccio/config 6.0.0-6-next.76 → 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 +376 -0
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,381 @@
1
1
  # @verdaccio/config
2
2
 
3
+ ## 7.0.0-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - @verdaccio/core@7.0.0-next.1
8
+ - @verdaccio/utils@7.0.0-next.1
9
+
10
+ ## 7.0.0-next.0
11
+
12
+ ### Major Changes
13
+
14
+ - feat!: bump to v7
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+ - @verdaccio/core@7.0.0-next.0
20
+ - @verdaccio/utils@7.0.0-next.0
21
+
22
+ ## 6.0.0
23
+
24
+ ### Major Changes
25
+
26
+ - 292c0a37f: feat!: replace deprecated request dependency by got
27
+
28
+ 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.
29
+
30
+ ## Notes
31
+
32
+ - Remove deprecated `request` by other `got`, retry improved, custom Agent ( got does not include it built-in)
33
+ - Remove `async` dependency from storage (used by core) it was linked with proxy somehow safe to remove now
34
+ - Refactor with promises instead callback wherever is possible
35
+ - ~Document the API~
36
+ - Improve testing, integration tests
37
+ - Bugfix
38
+ - Clean up old validations
39
+ - Improve performance
40
+
41
+ ## 💥 Breaking changes
42
+
43
+ - Plugin API methods were callbacks based are returning promises, this will break current storage plugins, check documentation for upgrade.
44
+ - 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));`
45
+ - `@verdaccio/streams` stream abort support is legacy is being deprecated removed
46
+ - Remove AWS and Google Cloud packages for future refactoring [#2574](https://github.com/verdaccio/verdaccio/pull/2574).
47
+
48
+ - 459b6fa72: refactor: search v1 endpoint and local-database
49
+
50
+ - refactor search `api v1` endpoint, improve performance
51
+ - remove usage of `async` dependency https://github.com/verdaccio/verdaccio/issues/1225
52
+ - refactor method storage class
53
+ - create new module `core` to reduce the ammount of modules with utilities
54
+ - use `undici` instead `node-fetch`
55
+ - use `fastify` instead `express` for functional test
56
+
57
+ ### Breaking changes
58
+
59
+ - plugin storage API changes
60
+ - remove old search endpoint (return 404)
61
+ - filter local private packages at plugin level
62
+
63
+ 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.
64
+
65
+ ```ts
66
+ export interface IPluginStorage<T> extends IPlugin {
67
+ add(name: string): Promise<void>;
68
+ remove(name: string): Promise<void>;
69
+ get(): Promise<any>;
70
+ init(): Promise<void>;
71
+ getSecret(): Promise<string>;
72
+ setSecret(secret: string): Promise<any>;
73
+ getPackageStorage(packageInfo: string): IPackageStorage;
74
+ search(query: searchUtils.SearchQuery): Promise<searchUtils.SearchItem[]>;
75
+ saveToken(token: Token): Promise<any>;
76
+ deleteToken(user: string, tokenKey: string): Promise<any>;
77
+ readTokens(filter: TokenFilter): Promise<Token[]>;
78
+ }
79
+ ```
80
+
81
+ - 9fc2e7961: feat(plugins): improve plugin loader
82
+
83
+ ### Changes
84
+
85
+ - Add scope plugin support to 6.x https://github.com/verdaccio/verdaccio/pull/3227
86
+ - Avoid config collisions https://github.com/verdaccio/verdaccio/issues/928
87
+ - https://github.com/verdaccio/verdaccio/issues/1394
88
+ - `config.plugins` plugin path validations
89
+ - Updated algorithm for plugin loader.
90
+ - improved documentation (included dev)
91
+
92
+ ## Features
93
+
94
+ - Add scope plugin support to 6.x https://github.com/verdaccio/verdaccio/pull/3227
95
+ - Custom prefix:
96
+
97
+ ```
98
+ // config.yaml
99
+ server:
100
+ pluginPrefix: mycompany
101
+ middleware:
102
+ audit:
103
+ foo: 1
104
+ ```
105
+
106
+ This configuration will look up for `mycompany-audit` instead `Verdaccio-audit`.
107
+
108
+ ## Breaking Changes
109
+
110
+ ### sinopia plugins
111
+
112
+ - `sinopia` fallback support is removed, but can be restored using `pluginPrefix`
113
+
114
+ ### plugin filter
115
+
116
+ - method rename `filter_metadata`->`filterMetadata`
117
+
118
+ ### Plugin constructor does not merge configs anymore https://github.com/verdaccio/verdaccio/issues/928
119
+
120
+ The plugin receives as first argument `config`, which represents the config of the plugin. Example:
121
+
122
+ ```
123
+ // config.yaml
124
+ auth:
125
+ plugin:
126
+ foo: 1
127
+ bar: 2
128
+
129
+ export class Plugin<T> {
130
+ public constructor(config: T, options: PluginOptions) {
131
+ console.log(config);
132
+ // {foo:1, bar: 2}
133
+ }
134
+ }
135
+ ```
136
+
137
+ - 794af76c5: Remove Node 12 support
138
+
139
+ - We need move to the new `undici` and does not support Node.js 12
140
+
141
+ - 10aeb4f13: feat!: experiments config renamed to flags
142
+
143
+ - The `experiments` configuration is renamed to `flags`. The functionality is exactly the same.
144
+
145
+ ```js
146
+ flags: token: false;
147
+ search: false;
148
+ ```
149
+
150
+ - The `self_path` property from the config file is being removed in favor of `config_file` full path.
151
+ - Refactor `config` module, better types and utilities
152
+
153
+ - e367c3f1e: - Replace signature handler for legacy tokens by removing deprecated crypto.createDecipher by createCipheriv
154
+
155
+ - Introduce environment variables for legacy tokens
156
+
157
+ ### Code Improvements
158
+
159
+ - Add debug library for improve developer experience
160
+
161
+ ### Breaking change
162
+
163
+ - The new signature invalidates all previous tokens generated by Verdaccio 4 or previous versions.
164
+ - The secret key must have 32 characters long.
165
+
166
+ ### New environment variables
167
+
168
+ - `VERDACCIO_LEGACY_ALGORITHM`: Allows to define the specific algorithm for the token signature which by default is `aes-256-ctr`
169
+ - `VERDACCIO_LEGACY_ENCRYPTION_KEY`: By default, the token stores in the database, but using this variable allows to get it from memory
170
+
171
+ - 82cb0f2bf: feat!: config.logs throw an error, logging config not longer accept array or logs property
172
+
173
+ ### 💥 Breaking change
174
+
175
+ This is valid
176
+
177
+ ```yaml
178
+ log: { type: stdout, format: pretty, level: http }
179
+ ```
180
+
181
+ This is invalid
182
+
183
+ ```yaml
184
+ logs: { type: stdout, format: pretty, level: http }
185
+ ```
186
+
187
+ or
188
+
189
+ ```yaml
190
+ logs:
191
+ - [{ type: stdout, format: pretty, level: http }]
192
+ ```
193
+
194
+ - 8f43bf17d: feat: node api new structure based on promise
195
+
196
+ ```js
197
+ import { runServer } from '@verdaccio/node-api';
198
+ // or
199
+ import { runServer } from 'verdaccio';
200
+
201
+ const app = await runServer(); // default configuration
202
+ const app = await runServer('./config/config.yaml');
203
+ const app = await runServer({ configuration });
204
+ app.listen(4000, (event) => {
205
+ // do something
206
+ });
207
+ ```
208
+
209
+ ### Breaking Change
210
+
211
+ If you are using the node-api, the new structure is Promise based and less arguments.
212
+
213
+ ### Minor Changes
214
+
215
+ - ef88da3b4: feat: improve support for fs promises older nodejs
216
+ - 1b217fd34: Some verdaccio modules depend on 'mkdirp' library which provides recursive directory creation functionality.
217
+ NodeJS can do this out of the box since v.10.12. The last commit in 'mkdirp' was made in early 2016, and it's mid 2021 now.
218
+ Time to stick with a built-in library solution!
219
+
220
+ - All 'mkdirp' calls are replaced with appropriate 'fs' calls.
221
+
222
+ - d167f92e1: chore: rollback yaml dep support old nodejs versions
223
+ - ddb6a2239: feat: signature package
224
+ - b61f762d6: feat: add server rate limit protection to all request
225
+
226
+ To modify custom values, use the server settings property.
227
+
228
+ ```markdown
229
+ server:
230
+
231
+ ## https://www.npmjs.com/package/express-rate-limit#configuration-options
232
+
233
+ rateLimit:
234
+ windowMs: 1000
235
+ max: 10000
236
+ ```
237
+
238
+ The values are intended to be high, if you want to improve security of your server consider
239
+ using different values.
240
+
241
+ - d43894e8f: feat: rework web header for mobile, add new settings and raw manifest button
242
+
243
+ ### New set of variables to hide features
244
+
245
+ Add set of new variables that allow hide different parts of the UI, buttons, footer or download tarballs. _All are
246
+ enabled by default_.
247
+
248
+ ```yaml
249
+ # login: true <-- already exist but worth the reminder
250
+ # showInfo: true
251
+ # showSettings: true
252
+ # In combination with darkMode you can force specific theme
253
+ # showThemeSwitch: true
254
+ # showFooter: true
255
+ # showSearch: true
256
+ # showDownloadTarball: true
257
+ ```
258
+
259
+ > If you disable `showThemeSwitch` and force `darkMode: true` the local storage settings would be
260
+ > ignored and force all themes to the one in the configuration file.
261
+
262
+ Future could be extended to
263
+
264
+ ### Raw button to display manifest package
265
+
266
+ A new experimental feature (enabled by default), button named RAW to be able navigate on the package manifest directly on the ui, kudos to [react-json-view](https://www.npmjs.com/package/react-json-view) that allows an easy integration, not configurable yet until get more feedback.
267
+
268
+ ```yaml
269
+ showRaw: true
270
+ ```
271
+
272
+ #### Rework header buttons
273
+
274
+ - The header has been rework, the mobile was not looking broken.
275
+ - Removed info button in the header and moved to a dialog
276
+ - Info dialog now contains more information about the project, license and the aid content for Ukrania now is inside of the info modal.
277
+ - Separate settings and info to avoid collapse too much info (for mobile still need some work)
278
+
279
+ - 154b2ecd3: refactor: remove @verdaccio/commons-api in favor @verdaccio/core and remove duplications
280
+ - aa763baec: feat: add typescript project references settings
281
+
282
+ 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.
283
+
284
+ It allows to navigate (IDE) trough the packages without need compile the packages.
285
+
286
+ 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).
287
+
288
+ - 16e38df8a: feat: trustProxy property
289
+ - dc571aabd: feat: add forceEnhancedLegacySignature
290
+ - 62c24b632: feat: add passwordValidationRegex property
291
+ - d08fe29d9: feat(web): add a config item to web,let the developer can select whet……her enable the html cache
292
+ - 5167bb528: feat: ui search support for remote, local and private packages
293
+
294
+ The command `npm search` search globally and return all matches, with this improvement the user interface
295
+ is powered with the same capabilities.
296
+
297
+ The UI also tag where is the origin the package with a tag, also provide the latest version and description of the package.
298
+
299
+ - 4b29d715b: chore: move improvements from v5 to v6
300
+
301
+ Migrate improvements form v5 to v6:
302
+
303
+ - https://github.com/verdaccio/verdaccio/pull/3158
304
+ - https://github.com/verdaccio/verdaccio/pull/3151
305
+ - https://github.com/verdaccio/verdaccio/pull/2271
306
+ - https://github.com/verdaccio/verdaccio/pull/2787
307
+ - https://github.com/verdaccio/verdaccio/pull/2791
308
+ - https://github.com/verdaccio/verdaccio/pull/2205
309
+
310
+ - 45c03819e: refactor: render html middleware
311
+
312
+ ### Patch Changes
313
+
314
+ - 679c19c1b: Respect the `changePassword` configuration flag to enable changing the password through the web API.
315
+
316
+ > **Note**
317
+ > This feature is still experimental and not fully supported in the default web application.
318
+
319
+ - 9718e0330: fix: build targets for 5x modules
320
+ - 1810ed0d8: Feature
321
+
322
+ - add option to set storage from environment variable VERDACCIO_STORAGE_PATH
323
+
324
+ #### Related tickets
325
+
326
+ https://github.com/verdaccio/verdaccio/issues/1681
327
+
328
+ - a610ef26b: chore: add release step to private regisry on merge changeset pr
329
+ - 34f0f1101: Enable prerelease mode with **changesets**
330
+ - 68ea21214: ESLint Warnings Fixed
331
+
332
+ Related to issue #1461
333
+
334
+ - max-len: most of the sensible max-len errors are fixed
335
+ - no-unused-vars: most of these types of errors are fixed by deleting not needed declarations
336
+ - @typescript-eslint/no-unused-vars: same as above
337
+
338
+ - Updated dependencies [292c0a37f]
339
+ - Updated dependencies [a1986e098]
340
+ - Updated dependencies [974cd8c19]
341
+ - Updated dependencies [a828271d6]
342
+ - Updated dependencies [ef88da3b4]
343
+ - Updated dependencies [43f32687c]
344
+ - Updated dependencies [a3a209b5e]
345
+ - Updated dependencies [459b6fa72]
346
+ - Updated dependencies [24b9be020]
347
+ - Updated dependencies [794af76c5]
348
+ - Updated dependencies [351aeeaa8]
349
+ - Updated dependencies [10aeb4f13]
350
+ - Updated dependencies [9718e0330]
351
+ - Updated dependencies [e367c3f1e]
352
+ - Updated dependencies [a1da11308]
353
+ - Updated dependencies [d2c65da9c]
354
+ - Updated dependencies [00d1d2a17]
355
+ - Updated dependencies [a610ef26b]
356
+ - Updated dependencies [648575aa4]
357
+ - Updated dependencies [b61f762d6]
358
+ - Updated dependencies [154b2ecd3]
359
+ - Updated dependencies [aa763baec]
360
+ - Updated dependencies [378e907d5]
361
+ - Updated dependencies [16e38df8a]
362
+ - Updated dependencies [34f0f1101]
363
+ - Updated dependencies [82cb0f2bf]
364
+ - Updated dependencies [dc571aabd]
365
+ - Updated dependencies [f859d2b1a]
366
+ - Updated dependencies [6c1eb021b]
367
+ - Updated dependencies [62c24b632]
368
+ - Updated dependencies [0a6412ca9]
369
+ - Updated dependencies [5167bb528]
370
+ - Updated dependencies [f86c31ed0]
371
+ - Updated dependencies [c9d1af0e5]
372
+ - Updated dependencies [4b29d715b]
373
+ - Updated dependencies [b13a3fefd]
374
+ - Updated dependencies [68ea21214]
375
+ - Updated dependencies [b849128de]
376
+ - @verdaccio/core@6.0.0
377
+ - @verdaccio/utils@6.0.0
378
+
3
379
  ## 6.0.0-6-next.76
4
380
 
5
381
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdaccio/config",
3
- "version": "6.0.0-6-next.76",
3
+ "version": "7.0.0-next.1",
4
4
  "description": "logger",
5
5
  "main": "./build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -29,8 +29,8 @@
29
29
  "node": ">=12"
30
30
  },
31
31
  "dependencies": {
32
- "@verdaccio/core": "6.0.0-6-next.76",
33
- "@verdaccio/utils": "6.0.0-6-next.44",
32
+ "@verdaccio/core": "7.0.0-next.1",
33
+ "@verdaccio/utils": "7.0.0-next.1",
34
34
  "debug": "4.3.4",
35
35
  "js-yaml": "4.1.0",
36
36
  "lodash": "4.17.21",