@verdaccio/store 6.0.0-6-next.56 → 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 +393 -0
  2. package/package.json +13 -13
package/CHANGELOG.md CHANGED
@@ -1,5 +1,398 @@
1
1
  # @verdaccio/store
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/tarball@12.0.0-next.1
10
+ - @verdaccio/url@12.0.0-next.1
11
+ - @verdaccio/hooks@7.0.0-next.1
12
+ - @verdaccio/loaders@7.0.0-next.1
13
+ - @verdaccio/local-storage@12.0.0-next.1
14
+ - @verdaccio/proxy@7.0.0-next.1
15
+ - @verdaccio/utils@7.0.0-next.1
16
+ - @verdaccio/logger@7.0.0-next.1
17
+
18
+ ## 7.0.0-next.0
19
+
20
+ ### Major Changes
21
+
22
+ - feat!: bump to v7
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies
27
+ - @verdaccio/config@7.0.0-next.0
28
+ - @verdaccio/core@7.0.0-next.0
29
+ - @verdaccio/tarball@12.0.0-next.0
30
+ - @verdaccio/url@12.0.0-next.0
31
+ - @verdaccio/hooks@7.0.0-next.0
32
+ - @verdaccio/loaders@7.0.0-next.0
33
+ - @verdaccio/logger@7.0.0-next.0
34
+ - @verdaccio/local-storage@12.0.0-next.0
35
+ - @verdaccio/proxy@7.0.0-next.0
36
+ - @verdaccio/utils@7.0.0-next.0
37
+
38
+ ## 6.0.0
39
+
40
+ ### Major Changes
41
+
42
+ - 292c0a37f: feat!: replace deprecated request dependency by got
43
+
44
+ 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.
45
+
46
+ ## Notes
47
+
48
+ - Remove deprecated `request` by other `got`, retry improved, custom Agent ( got does not include it built-in)
49
+ - Remove `async` dependency from storage (used by core) it was linked with proxy somehow safe to remove now
50
+ - Refactor with promises instead callback wherever is possible
51
+ - ~Document the API~
52
+ - Improve testing, integration tests
53
+ - Bugfix
54
+ - Clean up old validations
55
+ - Improve performance
56
+
57
+ ## 💥 Breaking changes
58
+
59
+ - Plugin API methods were callbacks based are returning promises, this will break current storage plugins, check documentation for upgrade.
60
+ - 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));`
61
+ - `@verdaccio/streams` stream abort support is legacy is being deprecated removed
62
+ - Remove AWS and Google Cloud packages for future refactoring [#2574](https://github.com/verdaccio/verdaccio/pull/2574).
63
+
64
+ - dc05edfe6: # async storage plugin bootstrap
65
+
66
+ Gives a storage plugin the ability to perform asynchronous tasks on initialization
67
+
68
+ ## Breaking change
69
+
70
+ Plugin must have an init method in which asynchronous tasks can be executed
71
+
72
+ ```js
73
+ public async init(): Promise<void> {
74
+ this.data = await this._fetchLocalPackages();
75
+ this._sync();
76
+ }
77
+ ```
78
+
79
+ - a828271d6: refactor: download manifest endpoint and integrate fastify
80
+
81
+ Much simpler API for fetching a package
82
+
83
+ ```
84
+ const manifest = await storage.getPackageNext({
85
+ name,
86
+ uplinksLook: true,
87
+ req,
88
+ version: queryVersion,
89
+ requestOptions,
90
+ });
91
+ ```
92
+
93
+ > not perfect, the `req` still is being passed to the proxy (this has to be refactored at proxy package) and then removed from here, in proxy we pass the request instance to the `request` library.
94
+
95
+ ### Details
96
+
97
+ - `async/await` sugar for getPackage()
98
+ - Improve and reuse code between current implementation and new fastify endpoint (add scaffolding for request manifest)
99
+ - Improve performance
100
+ - Add new tests
101
+
102
+ ### Breaking changes
103
+
104
+ All storage plugins will stop to work since the storage uses `getPackageNext` method which is Promise based, I won't replace this now because will force me to update all plugins, I'll follow up in another PR. Currently will throw http 500
105
+
106
+ - 459b6fa72: refactor: search v1 endpoint and local-database
107
+
108
+ - refactor search `api v1` endpoint, improve performance
109
+ - remove usage of `async` dependency https://github.com/verdaccio/verdaccio/issues/1225
110
+ - refactor method storage class
111
+ - create new module `core` to reduce the ammount of modules with utilities
112
+ - use `undici` instead `node-fetch`
113
+ - use `fastify` instead `express` for functional test
114
+
115
+ ### Breaking changes
116
+
117
+ - plugin storage API changes
118
+ - remove old search endpoint (return 404)
119
+ - filter local private packages at plugin level
120
+
121
+ 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.
122
+
123
+ ```ts
124
+ export interface IPluginStorage<T> extends IPlugin {
125
+ add(name: string): Promise<void>;
126
+ remove(name: string): Promise<void>;
127
+ get(): Promise<any>;
128
+ init(): Promise<void>;
129
+ getSecret(): Promise<string>;
130
+ setSecret(secret: string): Promise<any>;
131
+ getPackageStorage(packageInfo: string): IPackageStorage;
132
+ search(query: searchUtils.SearchQuery): Promise<searchUtils.SearchItem[]>;
133
+ saveToken(token: Token): Promise<any>;
134
+ deleteToken(user: string, tokenKey: string): Promise<any>;
135
+ readTokens(filter: TokenFilter): Promise<Token[]>;
136
+ }
137
+ ```
138
+
139
+ - 9fc2e7961: feat(plugins): improve plugin loader
140
+
141
+ ### Changes
142
+
143
+ - Add scope plugin support to 6.x https://github.com/verdaccio/verdaccio/pull/3227
144
+ - Avoid config collisions https://github.com/verdaccio/verdaccio/issues/928
145
+ - https://github.com/verdaccio/verdaccio/issues/1394
146
+ - `config.plugins` plugin path validations
147
+ - Updated algorithm for plugin loader.
148
+ - improved documentation (included dev)
149
+
150
+ ## Features
151
+
152
+ - Add scope plugin support to 6.x https://github.com/verdaccio/verdaccio/pull/3227
153
+ - Custom prefix:
154
+
155
+ ```
156
+ // config.yaml
157
+ server:
158
+ pluginPrefix: mycompany
159
+ middleware:
160
+ audit:
161
+ foo: 1
162
+ ```
163
+
164
+ This configuration will look up for `mycompany-audit` instead `Verdaccio-audit`.
165
+
166
+ ## Breaking Changes
167
+
168
+ ### sinopia plugins
169
+
170
+ - `sinopia` fallback support is removed, but can be restored using `pluginPrefix`
171
+
172
+ ### plugin filter
173
+
174
+ - method rename `filter_metadata`->`filterMetadata`
175
+
176
+ ### Plugin constructor does not merge configs anymore https://github.com/verdaccio/verdaccio/issues/928
177
+
178
+ The plugin receives as first argument `config`, which represents the config of the plugin. Example:
179
+
180
+ ```
181
+ // config.yaml
182
+ auth:
183
+ plugin:
184
+ foo: 1
185
+ bar: 2
186
+
187
+ export class Plugin<T> {
188
+ public constructor(config: T, options: PluginOptions) {
189
+ console.log(config);
190
+ // {foo:1, bar: 2}
191
+ }
192
+ }
193
+ ```
194
+
195
+ - 794af76c5: Remove Node 12 support
196
+
197
+ - We need move to the new `undici` and does not support Node.js 12
198
+
199
+ - 10aeb4f13: feat!: experiments config renamed to flags
200
+
201
+ - The `experiments` configuration is renamed to `flags`. The functionality is exactly the same.
202
+
203
+ ```js
204
+ flags: token: false;
205
+ search: false;
206
+ ```
207
+
208
+ - The `self_path` property from the config file is being removed in favor of `config_file` full path.
209
+ - Refactor `config` module, better types and utilities
210
+
211
+ - e367c3f1e: - Replace signature handler for legacy tokens by removing deprecated crypto.createDecipher by createCipheriv
212
+
213
+ - Introduce environment variables for legacy tokens
214
+
215
+ ### Code Improvements
216
+
217
+ - Add debug library for improve developer experience
218
+
219
+ ### Breaking change
220
+
221
+ - The new signature invalidates all previous tokens generated by Verdaccio 4 or previous versions.
222
+ - The secret key must have 32 characters long.
223
+
224
+ ### New environment variables
225
+
226
+ - `VERDACCIO_LEGACY_ALGORITHM`: Allows to define the specific algorithm for the token signature which by default is `aes-256-ctr`
227
+ - `VERDACCIO_LEGACY_ENCRYPTION_KEY`: By default, the token stores in the database, but using this variable allows to get it from memory
228
+
229
+ ### Minor Changes
230
+
231
+ - 631abe1ac: feat: refactor logger
232
+ - b702ea363: abort search request support for proxy
233
+ - b61f762d6: feat: add server rate limit protection to all request
234
+
235
+ To modify custom values, use the server settings property.
236
+
237
+ ```markdown
238
+ server:
239
+
240
+ ## https://www.npmjs.com/package/express-rate-limit#configuration-options
241
+
242
+ rateLimit:
243
+ windowMs: 1000
244
+ max: 10000
245
+ ```
246
+
247
+ The values are intended to be high, if you want to improve security of your server consider
248
+ using different values.
249
+
250
+ - 154b2ecd3: refactor: remove @verdaccio/commons-api in favor @verdaccio/core and remove duplications
251
+ - aa763baec: feat: add typescript project references settings
252
+
253
+ 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.
254
+
255
+ It allows to navigate (IDE) trough the packages without need compile the packages.
256
+
257
+ 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).
258
+
259
+ - 16e38df8a: feat: trustProxy property
260
+ - ce013d2fc: refactor: npm star command support reimplemented
261
+ - 62c24b632: feat: add passwordValidationRegex property
262
+ - 0a6412ca9: feat: refactor proxy with got v12
263
+ - 5167bb528: feat: ui search support for remote, local and private packages
264
+
265
+ The command `npm search` search globally and return all matches, with this improvement the user interface
266
+ is powered with the same capabilities.
267
+
268
+ The UI also tag where is the origin the package with a tag, also provide the latest version and description of the package.
269
+
270
+ - f86c31ed0: feat: migrate web sidebar endpoint to fastify
271
+
272
+ reuse utils methods between packages
273
+
274
+ - b13a3fefd: refactor: improve versions and dist-tag filters
275
+ - 37274e4c8: feat: implement abbreviated manifest
276
+
277
+ Enable abbreviated manifest data by adding the header:
278
+
279
+ ```
280
+ curl -H "Accept: application/vnd.npm.install-v1+json" https://registry.npmjs.org/verdaccio
281
+ ```
282
+
283
+ It returns a filtered manifest, additionally includes the [time](https://github.com/pnpm/rfcs/pull/2) field by request.
284
+
285
+ Current support for packages managers:
286
+
287
+ - npm: yes
288
+ - pnpm: yes
289
+ - yarn classic: yes
290
+ - yarn modern (+2.x): [no](https://github.com/yarnpkg/berry/pull/3981#issuecomment-1076566096)
291
+
292
+ https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md#abbreviated-metadata-format
293
+
294
+ - 45c03819e: refactor: render html middleware
295
+
296
+ ### Patch Changes
297
+
298
+ - 43f32687c: fix: abbreviated headers handle quality values
299
+ - 351aeeaa8: fix(deps): @verdaccio/utils should be a prod dep of local-storage
300
+ - 9718e0330: fix: build targets for 5x modules
301
+ - a610ef26b: chore: add release step to private regisry on merge changeset pr
302
+ - 34f0f1101: Enable prerelease mode with **changesets**
303
+ - 5ddfa5264: Fix the search by exact name of the package
304
+
305
+ Full package name queries was not finding anithing. It was happening
306
+ becouse of stemmer of [lunr.js](https://lunrjs.com/).
307
+
308
+ To fix this, the stemmer of [lunr.js](https://lunrjs.com/) was removed from search pipeline.
309
+
310
+ - 0a6412ca9: refactor: got instead undici
311
+ - 68ea21214: ESLint Warnings Fixed
312
+
313
+ Related to issue #1461
314
+
315
+ - max-len: most of the sensible max-len errors are fixed
316
+ - no-unused-vars: most of these types of errors are fixed by deleting not needed declarations
317
+ - @typescript-eslint/no-unused-vars: same as above
318
+
319
+ - b849128de: fix: handle upload scoped tarball
320
+ - Updated dependencies [292c0a37f]
321
+ - Updated dependencies [dc05edfe6]
322
+ - Updated dependencies [a1986e098]
323
+ - Updated dependencies [974cd8c19]
324
+ - Updated dependencies [a828271d6]
325
+ - Updated dependencies [ef88da3b4]
326
+ - Updated dependencies [43f32687c]
327
+ - Updated dependencies [679c19c1b]
328
+ - Updated dependencies [a3a209b5e]
329
+ - Updated dependencies [459b6fa72]
330
+ - Updated dependencies [9fc2e7961]
331
+ - Updated dependencies [24b9be020]
332
+ - Updated dependencies [794af76c5]
333
+ - Updated dependencies [e75c0a3b9]
334
+ - Updated dependencies [351aeeaa8]
335
+ - Updated dependencies [10aeb4f13]
336
+ - Updated dependencies [631abe1ac]
337
+ - Updated dependencies [9718e0330]
338
+ - Updated dependencies [b702ea363]
339
+ - Updated dependencies [1b217fd34]
340
+ - Updated dependencies [e367c3f1e]
341
+ - Updated dependencies [a1da11308]
342
+ - Updated dependencies [d167f92e1]
343
+ - Updated dependencies [d2c65da9c]
344
+ - Updated dependencies [00d1d2a17]
345
+ - Updated dependencies [1810ed0d8]
346
+ - Updated dependencies [a610ef26b]
347
+ - Updated dependencies [ddb6a2239]
348
+ - Updated dependencies [e54ec4b5d]
349
+ - Updated dependencies [65cb26cf3]
350
+ - Updated dependencies [31d661c7b]
351
+ - Updated dependencies [648575aa4]
352
+ - Updated dependencies [e381e4845]
353
+ - Updated dependencies [b61f762d6]
354
+ - Updated dependencies [d43894e8f]
355
+ - Updated dependencies [154b2ecd3]
356
+ - Updated dependencies [aa763baec]
357
+ - Updated dependencies [378e907d5]
358
+ - Updated dependencies [16e38df8a]
359
+ - Updated dependencies [34f0f1101]
360
+ - Updated dependencies [df0da3d69]
361
+ - Updated dependencies [82cb0f2bf]
362
+ - Updated dependencies [dc571aabd]
363
+ - Updated dependencies [b78f35257]
364
+ - Updated dependencies [ce013d2fc]
365
+ - Updated dependencies [f859d2b1a]
366
+ - Updated dependencies [2c594910d]
367
+ - Updated dependencies [6c1eb021b]
368
+ - Updated dependencies [62c24b632]
369
+ - Updated dependencies [0a6412ca9]
370
+ - Updated dependencies [0a6412ca9]
371
+ - Updated dependencies [d08fe29d9]
372
+ - Updated dependencies [5167bb528]
373
+ - Updated dependencies [f86c31ed0]
374
+ - Updated dependencies [65f88b826]
375
+ - Updated dependencies [b3e8438f6]
376
+ - Updated dependencies [c9d1af0e5]
377
+ - Updated dependencies [730b5d8cc]
378
+ - Updated dependencies [4b29d715b]
379
+ - Updated dependencies [b13a3fefd]
380
+ - Updated dependencies [68ea21214]
381
+ - Updated dependencies [37274e4c8]
382
+ - Updated dependencies [8f43bf17d]
383
+ - Updated dependencies [45c03819e]
384
+ - Updated dependencies [b849128de]
385
+ - @verdaccio/config@6.0.0
386
+ - @verdaccio/core@6.0.0
387
+ - @verdaccio/tarball@11.0.0
388
+ - @verdaccio/url@11.0.0
389
+ - @verdaccio/hooks@6.0.0
390
+ - @verdaccio/loaders@6.0.0
391
+ - @verdaccio/logger@6.0.0
392
+ - @verdaccio/local-storage@11.0.0
393
+ - @verdaccio/proxy@6.0.0
394
+ - @verdaccio/utils@6.0.0
395
+
3
396
  ## 6.0.0-6-next.56
4
397
 
5
398
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdaccio/store",
3
- "version": "6.0.0-6-next.56",
3
+ "version": "7.0.0-next.1",
4
4
  "description": "loaders logic",
5
5
  "main": "./build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -30,16 +30,16 @@
30
30
  "npm": ">=6"
31
31
  },
32
32
  "dependencies": {
33
- "@verdaccio/config": "6.0.0-6-next.76",
34
- "@verdaccio/core": "6.0.0-6-next.76",
35
- "@verdaccio/hooks": "6.0.0-6-next.46",
36
- "@verdaccio/loaders": "6.0.0-6-next.45",
37
- "@verdaccio/local-storage": "11.0.0-6-next.46",
38
- "@verdaccio/logger": "6.0.0-6-next.44",
39
- "@verdaccio/proxy": "6.0.0-6-next.54",
40
- "@verdaccio/url": "11.0.0-6-next.42",
41
- "@verdaccio/utils": "6.0.0-6-next.44",
42
- "@verdaccio/tarball": "11.0.0-6-next.45",
33
+ "@verdaccio/config": "7.0.0-next.1",
34
+ "@verdaccio/core": "7.0.0-next.1",
35
+ "@verdaccio/hooks": "7.0.0-next.1",
36
+ "@verdaccio/loaders": "7.0.0-next.1",
37
+ "@verdaccio/local-storage": "12.0.0-next.1",
38
+ "@verdaccio/logger": "7.0.0-next.1",
39
+ "@verdaccio/proxy": "7.0.0-next.1",
40
+ "@verdaccio/url": "12.0.0-next.1",
41
+ "@verdaccio/utils": "7.0.0-next.1",
42
+ "@verdaccio/tarball": "12.0.0-next.1",
43
43
  "JSONStream": "1.3.5",
44
44
  "debug": "4.3.4",
45
45
  "lodash": "4.17.21",
@@ -47,8 +47,8 @@
47
47
  "semver": "7.5.4"
48
48
  },
49
49
  "devDependencies": {
50
- "@verdaccio/types": "11.0.0-6-next.25",
51
- "@verdaccio/test-helper": "2.0.0-6-next.8",
50
+ "@verdaccio/types": "12.0.0-next.0",
51
+ "@verdaccio/test-helper": "3.0.0-next.0",
52
52
  "nock": "13.2.9",
53
53
  "node-mocks-http": "1.13.0",
54
54
  "mockdate": "3.0.5"