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