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