@verdaccio/cli 6.0.0-6-next.75 → 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 +303 -0
  2. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,308 @@
1
1
  # @verdaccio/cli
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/config@7.0.0-next.0
13
+ - @verdaccio/core@7.0.0-next.0
14
+ - @verdaccio/logger@7.0.0-next.0
15
+ - @verdaccio/node-api@7.0.0-next.0
16
+
17
+ ## 6.0.0
18
+
19
+ ### Major Changes
20
+
21
+ - 292c0a37f: feat!: replace deprecated request dependency by got
22
+
23
+ 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.
24
+
25
+ ## Notes
26
+
27
+ - Remove deprecated `request` by other `got`, retry improved, custom Agent ( got does not include it built-in)
28
+ - Remove `async` dependency from storage (used by core) it was linked with proxy somehow safe to remove now
29
+ - Refactor with promises instead callback wherever is possible
30
+ - ~Document the API~
31
+ - Improve testing, integration tests
32
+ - Bugfix
33
+ - Clean up old validations
34
+ - Improve performance
35
+
36
+ ## 💥 Breaking changes
37
+
38
+ - Plugin API methods were callbacks based are returning promises, this will break current storage plugins, check documentation for upgrade.
39
+ - 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));`
40
+ - `@verdaccio/streams` stream abort support is legacy is being deprecated removed
41
+ - Remove AWS and Google Cloud packages for future refactoring [#2574](https://github.com/verdaccio/verdaccio/pull/2574).
42
+
43
+ - a3a209b5e: feat: migrate to pino.js 8
44
+ - 459b6fa72: refactor: search v1 endpoint and local-database
45
+
46
+ - refactor search `api v1` endpoint, improve performance
47
+ - remove usage of `async` dependency https://github.com/verdaccio/verdaccio/issues/1225
48
+ - refactor method storage class
49
+ - create new module `core` to reduce the ammount of modules with utilities
50
+ - use `undici` instead `node-fetch`
51
+ - use `fastify` instead `express` for functional test
52
+
53
+ ### Breaking changes
54
+
55
+ - plugin storage API changes
56
+ - remove old search endpoint (return 404)
57
+ - filter local private packages at plugin level
58
+
59
+ 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.
60
+
61
+ ```ts
62
+ export interface IPluginStorage<T> extends IPlugin {
63
+ add(name: string): Promise<void>;
64
+ remove(name: string): Promise<void>;
65
+ get(): Promise<any>;
66
+ init(): Promise<void>;
67
+ getSecret(): Promise<string>;
68
+ setSecret(secret: string): Promise<any>;
69
+ getPackageStorage(packageInfo: string): IPackageStorage;
70
+ search(query: searchUtils.SearchQuery): Promise<searchUtils.SearchItem[]>;
71
+ saveToken(token: Token): Promise<any>;
72
+ deleteToken(user: string, tokenKey: string): Promise<any>;
73
+ readTokens(filter: TokenFilter): Promise<Token[]>;
74
+ }
75
+ ```
76
+
77
+ - 794af76c5: Remove Node 12 support
78
+
79
+ - We need move to the new `undici` and does not support Node.js 12
80
+
81
+ - 10aeb4f13: feat!: experiments config renamed to flags
82
+
83
+ - The `experiments` configuration is renamed to `flags`. The functionality is exactly the same.
84
+
85
+ ```js
86
+ flags: token: false;
87
+ search: false;
88
+ ```
89
+
90
+ - The `self_path` property from the config file is being removed in favor of `config_file` full path.
91
+ - Refactor `config` module, better types and utilities
92
+
93
+ - e367c3f1e: - Replace signature handler for legacy tokens by removing deprecated crypto.createDecipher by createCipheriv
94
+
95
+ - Introduce environment variables for legacy tokens
96
+
97
+ ### Code Improvements
98
+
99
+ - Add debug library for improve developer experience
100
+
101
+ ### Breaking change
102
+
103
+ - The new signature invalidates all previous tokens generated by Verdaccio 4 or previous versions.
104
+ - The secret key must have 32 characters long.
105
+
106
+ ### New environment variables
107
+
108
+ - `VERDACCIO_LEGACY_ALGORITHM`: Allows to define the specific algorithm for the token signature which by default is `aes-256-ctr`
109
+ - `VERDACCIO_LEGACY_ENCRYPTION_KEY`: By default, the token stores in the database, but using this variable allows to get it from memory
110
+
111
+ - 2e3b9552c: feat: node 14 as minimum for running cli
112
+ - 5becf3f25: feat: use clipanion over commander
113
+ - 82cb0f2bf: feat!: config.logs throw an error, logging config not longer accept array or logs property
114
+
115
+ ### 💥 Breaking change
116
+
117
+ This is valid
118
+
119
+ ```yaml
120
+ log: { type: stdout, format: pretty, level: http }
121
+ ```
122
+
123
+ This is invalid
124
+
125
+ ```yaml
126
+ logs: { type: stdout, format: pretty, level: http }
127
+ ```
128
+
129
+ or
130
+
131
+ ```yaml
132
+ logs:
133
+ - [{ type: stdout, format: pretty, level: http }]
134
+ ```
135
+
136
+ - 8f43bf17d: feat: node api new structure based on promise
137
+
138
+ ```js
139
+ import { runServer } from '@verdaccio/node-api';
140
+ // or
141
+ import { runServer } from 'verdaccio';
142
+
143
+ const app = await runServer(); // default configuration
144
+ const app = await runServer('./config/config.yaml');
145
+ const app = await runServer({ configuration });
146
+ app.listen(4000, (event) => {
147
+ // do something
148
+ });
149
+ ```
150
+
151
+ ### Breaking Change
152
+
153
+ If you are using the node-api, the new structure is Promise based and less arguments.
154
+
155
+ ### Minor Changes
156
+
157
+ - 974cd8c19: fix: startup messages improved and logs support on types
158
+ - 631abe1ac: feat: refactor logger
159
+ - 00d1d2a17: chore: env variable for launch fastify
160
+
161
+ - Update fastify to major release `v4.3.0`
162
+ - Update CLI launcher
163
+
164
+ via CLI
165
+
166
+ ```
167
+ VERDACCIO_SERVER=fastify verdaccio
168
+ ```
169
+
170
+ with docker
171
+
172
+ ```
173
+ docker run -it --rm --name verdaccio \
174
+ -e "VERDACCIO_SERVER=8080" -p 8080:8080 \
175
+ -e "VERDACCIO_SERVER=fastify" \
176
+ verdaccio/verdaccio
177
+ ```
178
+
179
+ - 55ee3fdd9: [Fastify] Add ping endpoint
180
+ - b61f762d6: feat: add server rate limit protection to all request
181
+
182
+ To modify custom values, use the server settings property.
183
+
184
+ ```markdown
185
+ server:
186
+
187
+ ## https://www.npmjs.com/package/express-rate-limit#configuration-options
188
+
189
+ rateLimit:
190
+ windowMs: 1000
191
+ max: 10000
192
+ ```
193
+
194
+ The values are intended to be high, if you want to improve security of your server consider
195
+ using different values.
196
+
197
+ - 154b2ecd3: refactor: remove @verdaccio/commons-api in favor @verdaccio/core and remove duplications
198
+ - aa763baec: feat: add typescript project references settings
199
+
200
+ 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.
201
+
202
+ It allows to navigate (IDE) trough the packages without need compile the packages.
203
+
204
+ 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).
205
+
206
+ - d5eacc218: feat: improve cli loggin on start up
207
+ - 6c1eb021b: feat: use warning codes for deprecation warnings
208
+
209
+ ### Patch Changes
210
+
211
+ - d78c8b515: chore: improve error logger message
212
+ - 351aeeaa8: fix(deps): @verdaccio/utils should be a prod dep of local-storage
213
+ - 19d272d10: fix: restore logger on init
214
+
215
+ Enable logger after parse configuration and log the very first step on startup phase.
216
+
217
+ ```bash
218
+ warn --- experiments are enabled, it is recommended do not use experiments in production comment out this section to disable it
219
+ info --- support for experiment [token] is disabled
220
+ info --- support for experiment [search] is disabled
221
+ (node:50831) Warning: config.logs is deprecated, rename configuration to "config.log"
222
+ (Use `node --trace-warnings ...` to show where the warning was created)
223
+ info --- http address http://localhost:4873/
224
+ info --- version: 6.0.0-6-next.11
225
+ info --- server started
226
+ ```
227
+
228
+ - a610ef26b: chore: add release step to private regisry on merge changeset pr
229
+ - 020ede43f: fix: version with breakline
230
+ - 34f0f1101: Enable prerelease mode with **changesets**
231
+ - 68ea21214: ESLint Warnings Fixed
232
+
233
+ Related to issue #1461
234
+
235
+ - max-len: most of the sensible max-len errors are fixed
236
+ - no-unused-vars: most of these types of errors are fixed by deleting not needed declarations
237
+ - @typescript-eslint/no-unused-vars: same as above
238
+
239
+ - b849128de: fix: handle upload scoped tarball
240
+ - Updated dependencies [292c0a37f]
241
+ - Updated dependencies [974cd8c19]
242
+ - Updated dependencies [ef88da3b4]
243
+ - Updated dependencies [43f32687c]
244
+ - Updated dependencies [679c19c1b]
245
+ - Updated dependencies [a3a209b5e]
246
+ - Updated dependencies [459b6fa72]
247
+ - Updated dependencies [9fc2e7961]
248
+ - Updated dependencies [24b9be020]
249
+ - Updated dependencies [794af76c5]
250
+ - Updated dependencies [e75c0a3b9]
251
+ - Updated dependencies [351aeeaa8]
252
+ - Updated dependencies [10aeb4f13]
253
+ - Updated dependencies [631abe1ac]
254
+ - Updated dependencies [9718e0330]
255
+ - Updated dependencies [1b217fd34]
256
+ - Updated dependencies [e367c3f1e]
257
+ - Updated dependencies [a1da11308]
258
+ - Updated dependencies [d167f92e1]
259
+ - Updated dependencies [00d1d2a17]
260
+ - Updated dependencies [19d272d10]
261
+ - Updated dependencies [1810ed0d8]
262
+ - Updated dependencies [a610ef26b]
263
+ - Updated dependencies [ddb6a2239]
264
+ - Updated dependencies [b61f762d6]
265
+ - Updated dependencies [d43894e8f]
266
+ - Updated dependencies [154b2ecd3]
267
+ - Updated dependencies [aa763baec]
268
+ - Updated dependencies [d5eacc218]
269
+ - Updated dependencies [378e907d5]
270
+ - Updated dependencies [16e38df8a]
271
+ - Updated dependencies [34f0f1101]
272
+ - Updated dependencies [df0da3d69]
273
+ - Updated dependencies [82cb0f2bf]
274
+ - Updated dependencies [dc571aabd]
275
+ - Updated dependencies [b78f35257]
276
+ - Updated dependencies [f859d2b1a]
277
+ - Updated dependencies [2c594910d]
278
+ - Updated dependencies [6c1eb021b]
279
+ - Updated dependencies [62c24b632]
280
+ - Updated dependencies [0a6412ca9]
281
+ - Updated dependencies [d08fe29d9]
282
+ - Updated dependencies [5167bb528]
283
+ - Updated dependencies [65f88b826]
284
+ - Updated dependencies [b3e8438f6]
285
+ - Updated dependencies [c9d1af0e5]
286
+ - Updated dependencies [730b5d8cc]
287
+ - Updated dependencies [4b29d715b]
288
+ - Updated dependencies [68ea21214]
289
+ - Updated dependencies [8f43bf17d]
290
+ - Updated dependencies [45c03819e]
291
+ - Updated dependencies [b849128de]
292
+ - @verdaccio/config@6.0.0
293
+ - @verdaccio/core@6.0.0
294
+ - @verdaccio/logger@6.0.0
295
+ - @verdaccio/node-api@6.0.0
296
+
297
+ ## 6.0.0-6-next.76
298
+
299
+ ### Patch Changes
300
+
301
+ - @verdaccio/node-api@6.0.0-6-next.76
302
+ - @verdaccio/core@6.0.0-6-next.76
303
+ - @verdaccio/config@6.0.0-6-next.76
304
+ - @verdaccio/logger@6.0.0-6-next.44
305
+
3
306
  ## 6.0.0-6-next.75
4
307
 
5
308
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdaccio/cli",
3
- "version": "6.0.0-6-next.75",
3
+ "version": "7.0.0-next.0",
4
4
  "author": {
5
5
  "name": "Juan Picado",
6
6
  "email": "juanpicado19@gmail.com"
@@ -34,10 +34,10 @@
34
34
  "main": "./build/index.js",
35
35
  "types": "build/index.d.ts",
36
36
  "dependencies": {
37
- "@verdaccio/core": "6.0.0-6-next.75",
38
- "@verdaccio/config": "6.0.0-6-next.75",
39
- "@verdaccio/logger": "6.0.0-6-next.43",
40
- "@verdaccio/node-api": "6.0.0-6-next.75",
37
+ "@verdaccio/core": "7.0.0-next.0",
38
+ "@verdaccio/config": "7.0.0-next.0",
39
+ "@verdaccio/logger": "7.0.0-next.0",
40
+ "@verdaccio/node-api": "7.0.0-next.0",
41
41
  "clipanion": "3.2.1",
42
42
  "envinfo": "7.8.1",
43
43
  "kleur": "4.1.5",