@verdaccio/auth 6.0.0-6-next.54 → 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 +329 -0
  2. package/package.json +9 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,334 @@
1
1
  # @verdaccio/auth
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/loaders@7.0.0-next.0
15
+ - @verdaccio/logger@7.0.0-next.0
16
+ - verdaccio-htpasswd@12.0.0-next.0
17
+ - @verdaccio/signature@7.0.0-next.0
18
+ - @verdaccio/utils@7.0.0-next.0
19
+
20
+ ## 6.0.0
21
+
22
+ ### Major Changes
23
+
24
+ - 292c0a37f: feat!: replace deprecated request dependency by got
25
+
26
+ 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.
27
+
28
+ ## Notes
29
+
30
+ - Remove deprecated `request` by other `got`, retry improved, custom Agent ( got does not include it built-in)
31
+ - Remove `async` dependency from storage (used by core) it was linked with proxy somehow safe to remove now
32
+ - Refactor with promises instead callback wherever is possible
33
+ - ~Document the API~
34
+ - Improve testing, integration tests
35
+ - Bugfix
36
+ - Clean up old validations
37
+ - Improve performance
38
+
39
+ ## 💥 Breaking changes
40
+
41
+ - Plugin API methods were callbacks based are returning promises, this will break current storage plugins, check documentation for upgrade.
42
+ - 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));`
43
+ - `@verdaccio/streams` stream abort support is legacy is being deprecated removed
44
+ - Remove AWS and Google Cloud packages for future refactoring [#2574](https://github.com/verdaccio/verdaccio/pull/2574).
45
+
46
+ - 459b6fa72: refactor: search v1 endpoint and local-database
47
+
48
+ - refactor search `api v1` endpoint, improve performance
49
+ - remove usage of `async` dependency https://github.com/verdaccio/verdaccio/issues/1225
50
+ - refactor method storage class
51
+ - create new module `core` to reduce the ammount of modules with utilities
52
+ - use `undici` instead `node-fetch`
53
+ - use `fastify` instead `express` for functional test
54
+
55
+ ### Breaking changes
56
+
57
+ - plugin storage API changes
58
+ - remove old search endpoint (return 404)
59
+ - filter local private packages at plugin level
60
+
61
+ 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.
62
+
63
+ ```ts
64
+ export interface IPluginStorage<T> extends IPlugin {
65
+ add(name: string): Promise<void>;
66
+ remove(name: string): Promise<void>;
67
+ get(): Promise<any>;
68
+ init(): Promise<void>;
69
+ getSecret(): Promise<string>;
70
+ setSecret(secret: string): Promise<any>;
71
+ getPackageStorage(packageInfo: string): IPackageStorage;
72
+ search(query: searchUtils.SearchQuery): Promise<searchUtils.SearchItem[]>;
73
+ saveToken(token: Token): Promise<any>;
74
+ deleteToken(user: string, tokenKey: string): Promise<any>;
75
+ readTokens(filter: TokenFilter): Promise<Token[]>;
76
+ }
77
+ ```
78
+
79
+ - 9fc2e7961: feat(plugins): improve plugin loader
80
+
81
+ ### Changes
82
+
83
+ - Add scope plugin support to 6.x https://github.com/verdaccio/verdaccio/pull/3227
84
+ - Avoid config collisions https://github.com/verdaccio/verdaccio/issues/928
85
+ - https://github.com/verdaccio/verdaccio/issues/1394
86
+ - `config.plugins` plugin path validations
87
+ - Updated algorithm for plugin loader.
88
+ - improved documentation (included dev)
89
+
90
+ ## Features
91
+
92
+ - Add scope plugin support to 6.x https://github.com/verdaccio/verdaccio/pull/3227
93
+ - Custom prefix:
94
+
95
+ ```
96
+ // config.yaml
97
+ server:
98
+ pluginPrefix: mycompany
99
+ middleware:
100
+ audit:
101
+ foo: 1
102
+ ```
103
+
104
+ This configuration will look up for `mycompany-audit` instead `Verdaccio-audit`.
105
+
106
+ ## Breaking Changes
107
+
108
+ ### sinopia plugins
109
+
110
+ - `sinopia` fallback support is removed, but can be restored using `pluginPrefix`
111
+
112
+ ### plugin filter
113
+
114
+ - method rename `filter_metadata`->`filterMetadata`
115
+
116
+ ### Plugin constructor does not merge configs anymore https://github.com/verdaccio/verdaccio/issues/928
117
+
118
+ The plugin receives as first argument `config`, which represents the config of the plugin. Example:
119
+
120
+ ```
121
+ // config.yaml
122
+ auth:
123
+ plugin:
124
+ foo: 1
125
+ bar: 2
126
+
127
+ export class Plugin<T> {
128
+ public constructor(config: T, options: PluginOptions) {
129
+ console.log(config);
130
+ // {foo:1, bar: 2}
131
+ }
132
+ }
133
+ ```
134
+
135
+ - 794af76c5: Remove Node 12 support
136
+
137
+ - We need move to the new `undici` and does not support Node.js 12
138
+
139
+ - 10aeb4f13: feat!: experiments config renamed to flags
140
+
141
+ - The `experiments` configuration is renamed to `flags`. The functionality is exactly the same.
142
+
143
+ ```js
144
+ flags: token: false;
145
+ search: false;
146
+ ```
147
+
148
+ - The `self_path` property from the config file is being removed in favor of `config_file` full path.
149
+ - Refactor `config` module, better types and utilities
150
+
151
+ - e367c3f1e: - Replace signature handler for legacy tokens by removing deprecated crypto.createDecipher by createCipheriv
152
+
153
+ - Introduce environment variables for legacy tokens
154
+
155
+ ### Code Improvements
156
+
157
+ - Add debug library for improve developer experience
158
+
159
+ ### Breaking change
160
+
161
+ - The new signature invalidates all previous tokens generated by Verdaccio 4 or previous versions.
162
+ - The secret key must have 32 characters long.
163
+
164
+ ### New environment variables
165
+
166
+ - `VERDACCIO_LEGACY_ALGORITHM`: Allows to define the specific algorithm for the token signature which by default is `aes-256-ctr`
167
+ - `VERDACCIO_LEGACY_ENCRYPTION_KEY`: By default, the token stores in the database, but using this variable allows to get it from memory
168
+
169
+ - 061bfcc8d: feat: standalone registry with no dependencies
170
+
171
+ ## Usage
172
+
173
+ To install a server with no dependencies
174
+
175
+ ```bash
176
+ npm install -g @verdaccio/standalone
177
+ ```
178
+
179
+ with no internet required
180
+
181
+ ```bash
182
+ npm install -g ./tarball.tar.gz
183
+ ```
184
+
185
+ Bundles htpasswd and audit plugins.
186
+
187
+ ### Breaking Change
188
+
189
+ It does not allow anymore the `auth` and `middleware` property at config file empty,
190
+ it will fallback to those plugins by default.
191
+
192
+ ### Minor Changes
193
+
194
+ - 631abe1ac: feat: refactor logger
195
+ - ddb6a2239: feat: signature package
196
+ - b61f762d6: feat: add server rate limit protection to all request
197
+
198
+ To modify custom values, use the server settings property.
199
+
200
+ ```markdown
201
+ server:
202
+
203
+ ## https://www.npmjs.com/package/express-rate-limit#configuration-options
204
+
205
+ rateLimit:
206
+ windowMs: 1000
207
+ max: 10000
208
+ ```
209
+
210
+ The values are intended to be high, if you want to improve security of your server consider
211
+ using different values.
212
+
213
+ - 154b2ecd3: refactor: remove @verdaccio/commons-api in favor @verdaccio/core and remove duplications
214
+ - aa763baec: feat: add typescript project references settings
215
+
216
+ 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.
217
+
218
+ It allows to navigate (IDE) trough the packages without need compile the packages.
219
+
220
+ 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).
221
+
222
+ - 62c24b632: feat: add passwordValidationRegex property
223
+ - 20c9e43ed: dist tags Implementation on Fastify
224
+ - c9d1af0e5: feat: async bcrypt hash
225
+ - 4b29d715b: chore: move improvements from v5 to v6
226
+
227
+ Migrate improvements form v5 to v6:
228
+
229
+ - https://github.com/verdaccio/verdaccio/pull/3158
230
+ - https://github.com/verdaccio/verdaccio/pull/3151
231
+ - https://github.com/verdaccio/verdaccio/pull/2271
232
+ - https://github.com/verdaccio/verdaccio/pull/2787
233
+ - https://github.com/verdaccio/verdaccio/pull/2791
234
+ - https://github.com/verdaccio/verdaccio/pull/2205
235
+
236
+ ### Patch Changes
237
+
238
+ - 351aeeaa8: fix(deps): @verdaccio/utils should be a prod dep of local-storage
239
+ - a610ef26b: chore: add release step to private regisry on merge changeset pr
240
+ - 34f0f1101: Enable prerelease mode with **changesets**
241
+ - aeff267d9: Refactor htpasswd plugin to use the bcryptjs 'compare' api call instead of 'comparSync'. Add a new configuration value named 'slow_verify_ms' to the htpasswd plugin that when exceeded during password verification will log a warning message.
242
+ - 68ea21214: ESLint Warnings Fixed
243
+
244
+ Related to issue #1461
245
+
246
+ - max-len: most of the sensible max-len errors are fixed
247
+ - no-unused-vars: most of these types of errors are fixed by deleting not needed declarations
248
+ - @typescript-eslint/no-unused-vars: same as above
249
+
250
+ - Updated dependencies [292c0a37f]
251
+ - Updated dependencies [a1986e098]
252
+ - Updated dependencies [974cd8c19]
253
+ - Updated dependencies [a828271d6]
254
+ - Updated dependencies [ef88da3b4]
255
+ - Updated dependencies [43f32687c]
256
+ - Updated dependencies [679c19c1b]
257
+ - Updated dependencies [a3a209b5e]
258
+ - Updated dependencies [459b6fa72]
259
+ - Updated dependencies [9fc2e7961]
260
+ - Updated dependencies [24b9be020]
261
+ - Updated dependencies [794af76c5]
262
+ - Updated dependencies [e75c0a3b9]
263
+ - Updated dependencies [351aeeaa8]
264
+ - Updated dependencies [10aeb4f13]
265
+ - Updated dependencies [631abe1ac]
266
+ - Updated dependencies [9718e0330]
267
+ - Updated dependencies [1b217fd34]
268
+ - Updated dependencies [e367c3f1e]
269
+ - Updated dependencies [a1da11308]
270
+ - Updated dependencies [d167f92e1]
271
+ - Updated dependencies [d2c65da9c]
272
+ - Updated dependencies [00d1d2a17]
273
+ - Updated dependencies [1810ed0d8]
274
+ - Updated dependencies [a610ef26b]
275
+ - Updated dependencies [ddb6a2239]
276
+ - Updated dependencies [e54ec4b5d]
277
+ - Updated dependencies [31d661c7b]
278
+ - Updated dependencies [648575aa4]
279
+ - Updated dependencies [b61f762d6]
280
+ - Updated dependencies [d43894e8f]
281
+ - Updated dependencies [154b2ecd3]
282
+ - Updated dependencies [061bfcc8d]
283
+ - Updated dependencies [aa763baec]
284
+ - Updated dependencies [378e907d5]
285
+ - Updated dependencies [16e38df8a]
286
+ - Updated dependencies [34f0f1101]
287
+ - Updated dependencies [df0da3d69]
288
+ - Updated dependencies [82cb0f2bf]
289
+ - Updated dependencies [dc571aabd]
290
+ - Updated dependencies [b78f35257]
291
+ - Updated dependencies [f859d2b1a]
292
+ - Updated dependencies [2c594910d]
293
+ - Updated dependencies [6c1eb021b]
294
+ - Updated dependencies [62c24b632]
295
+ - Updated dependencies [09753cc1f]
296
+ - Updated dependencies [0a6412ca9]
297
+ - Updated dependencies [d08fe29d9]
298
+ - Updated dependencies [5167bb528]
299
+ - Updated dependencies [f86c31ed0]
300
+ - Updated dependencies [c8a040e69]
301
+ - Updated dependencies [65f88b826]
302
+ - Updated dependencies [aeff267d9]
303
+ - Updated dependencies [b3e8438f6]
304
+ - Updated dependencies [c9d1af0e5]
305
+ - Updated dependencies [730b5d8cc]
306
+ - Updated dependencies [4b29d715b]
307
+ - Updated dependencies [b13a3fefd]
308
+ - Updated dependencies [68ea21214]
309
+ - Updated dependencies [8f43bf17d]
310
+ - Updated dependencies [45c03819e]
311
+ - Updated dependencies [b849128de]
312
+ - @verdaccio/config@6.0.0
313
+ - @verdaccio/core@6.0.0
314
+ - @verdaccio/loaders@6.0.0
315
+ - @verdaccio/logger@6.0.0
316
+ - verdaccio-htpasswd@11.0.0
317
+ - @verdaccio/utils@6.0.0
318
+ - @verdaccio/signature@6.0.0
319
+
320
+ ## 6.0.0-6-next.55
321
+
322
+ ### Patch Changes
323
+
324
+ - @verdaccio/core@6.0.0-6-next.76
325
+ - @verdaccio/config@6.0.0-6-next.76
326
+ - @verdaccio/loaders@6.0.0-6-next.45
327
+ - verdaccio-htpasswd@11.0.0-6-next.46
328
+ - @verdaccio/utils@6.0.0-6-next.44
329
+ - @verdaccio/signature@6.0.0-6-next.2
330
+ - @verdaccio/logger@6.0.0-6-next.44
331
+
3
332
  ## 6.0.0-6-next.54
4
333
 
5
334
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdaccio/auth",
3
- "version": "6.0.0-6-next.54",
3
+ "version": "7.0.0-next.0",
4
4
  "description": "logger",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -30,19 +30,19 @@
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/loaders": "6.0.0-6-next.44",
36
- "@verdaccio/logger": "6.0.0-6-next.43",
37
- "@verdaccio/signature": "6.0.0-6-next.2",
38
- "@verdaccio/utils": "6.0.0-6-next.43",
33
+ "@verdaccio/core": "7.0.0-next.0",
34
+ "@verdaccio/config": "7.0.0-next.0",
35
+ "@verdaccio/loaders": "7.0.0-next.0",
36
+ "@verdaccio/logger": "7.0.0-next.0",
37
+ "@verdaccio/signature": "7.0.0-next.0",
38
+ "@verdaccio/utils": "7.0.0-next.0",
39
39
  "debug": "4.3.4",
40
40
  "express": "4.18.2",
41
41
  "lodash": "4.17.21",
42
- "verdaccio-htpasswd": "11.0.0-6-next.45"
42
+ "verdaccio-htpasswd": "12.0.0-next.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@verdaccio/types": "11.0.0-6-next.25"
45
+ "@verdaccio/types": "12.0.0-next.0"
46
46
  },
47
47
  "funding": {
48
48
  "type": "opencollective",