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