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