@verdaccio/hooks 6.0.0-6-next.46 → 7.0.0-next-7.8

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 (3) hide show
  1. package/CHANGELOG.md +261 -0
  2. package/LICENSE +1 -1
  3. package/package.json +11 -11
package/CHANGELOG.md CHANGED
@@ -1,5 +1,266 @@
1
1
  # @verdaccio/hooks
2
2
 
3
+ ## 7.0.0-next-7.8
4
+
5
+ ### Patch Changes
6
+
7
+ - @verdaccio/core@7.0.0-next-7.8
8
+ - @verdaccio/logger@7.0.0-next-7.8
9
+
10
+ ## 7.0.0-next-7.7
11
+
12
+ ### Patch Changes
13
+
14
+ - @verdaccio/core@7.0.0-next-7.7
15
+ - @verdaccio/logger@7.0.0-next-7.7
16
+
17
+ ## 7.0.0-next.6
18
+
19
+ ### Patch Changes
20
+
21
+ - @verdaccio/core@7.0.0-next.6
22
+ - @verdaccio/logger@7.0.0-next.6
23
+
24
+ ## 7.0.0-next.5
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies [f047cc8]
29
+ - @verdaccio/core@7.0.0-next.5
30
+ - @verdaccio/logger@7.0.0-next.5
31
+
32
+ ## 7.0.0-next.4
33
+
34
+ ### Patch Changes
35
+
36
+ - @verdaccio/core@7.0.0-next.4
37
+ - @verdaccio/logger@7.0.0-next.4
38
+
39
+ ## 7.0.0-next.3
40
+
41
+ ### Major Changes
42
+
43
+ - e7ebccb61: update major dependencies, remove old nodejs support
44
+
45
+ ### Patch Changes
46
+
47
+ - Updated dependencies [daceb6d87]
48
+ - Updated dependencies [e7ebccb61]
49
+ - @verdaccio/core@7.0.0-next.3
50
+ - @verdaccio/logger@7.0.0-next.3
51
+
52
+ ## 7.0.0-next.2
53
+
54
+ ### Patch Changes
55
+
56
+ - @verdaccio/core@7.0.0-next.2
57
+ - @verdaccio/logger@7.0.0-next.2
58
+
59
+ ## 7.0.0-next.1
60
+
61
+ ### Patch Changes
62
+
63
+ - @verdaccio/core@7.0.0-next.1
64
+ - @verdaccio/logger@7.0.0-next.1
65
+
66
+ ## 7.0.0-next.0
67
+
68
+ ### Major Changes
69
+
70
+ - feat!: bump to v7
71
+
72
+ ### Patch Changes
73
+
74
+ - Updated dependencies
75
+ - @verdaccio/core@7.0.0-next.0
76
+ - @verdaccio/logger@7.0.0-next.0
77
+
78
+ ## 6.0.0
79
+
80
+ ### Major Changes
81
+
82
+ - 292c0a37f: feat!: replace deprecated request dependency by got
83
+
84
+ 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.
85
+
86
+ ## Notes
87
+
88
+ - Remove deprecated `request` by other `got`, retry improved, custom Agent ( got does not include it built-in)
89
+ - Remove `async` dependency from storage (used by core) it was linked with proxy somehow safe to remove now
90
+ - Refactor with promises instead callback wherever is possible
91
+ - ~Document the API~
92
+ - Improve testing, integration tests
93
+ - Bugfix
94
+ - Clean up old validations
95
+ - Improve performance
96
+
97
+ ## 💥 Breaking changes
98
+
99
+ - Plugin API methods were callbacks based are returning promises, this will break current storage plugins, check documentation for upgrade.
100
+ - 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));`
101
+ - `@verdaccio/streams` stream abort support is legacy is being deprecated removed
102
+ - Remove AWS and Google Cloud packages for future refactoring [#2574](https://github.com/verdaccio/verdaccio/pull/2574).
103
+
104
+ - 459b6fa72: refactor: search v1 endpoint and local-database
105
+
106
+ - refactor search `api v1` endpoint, improve performance
107
+ - remove usage of `async` dependency https://github.com/verdaccio/verdaccio/issues/1225
108
+ - refactor method storage class
109
+ - create new module `core` to reduce the ammount of modules with utilities
110
+ - use `undici` instead `node-fetch`
111
+ - use `fastify` instead `express` for functional test
112
+
113
+ ### Breaking changes
114
+
115
+ - plugin storage API changes
116
+ - remove old search endpoint (return 404)
117
+ - filter local private packages at plugin level
118
+
119
+ 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.
120
+
121
+ ```ts
122
+ export interface IPluginStorage<T> extends IPlugin {
123
+ add(name: string): Promise<void>;
124
+ remove(name: string): Promise<void>;
125
+ get(): Promise<any>;
126
+ init(): Promise<void>;
127
+ getSecret(): Promise<string>;
128
+ setSecret(secret: string): Promise<any>;
129
+ getPackageStorage(packageInfo: string): IPackageStorage;
130
+ search(query: searchUtils.SearchQuery): Promise<searchUtils.SearchItem[]>;
131
+ saveToken(token: Token): Promise<any>;
132
+ deleteToken(user: string, tokenKey: string): Promise<any>;
133
+ readTokens(filter: TokenFilter): Promise<Token[]>;
134
+ }
135
+ ```
136
+
137
+ - 794af76c5: Remove Node 12 support
138
+
139
+ - We need move to the new `undici` and does not support Node.js 12
140
+
141
+ - 10aeb4f13: feat!: experiments config renamed to flags
142
+
143
+ - The `experiments` configuration is renamed to `flags`. The functionality is exactly the same.
144
+
145
+ ```js
146
+ flags: token: false;
147
+ search: false;
148
+ ```
149
+
150
+ - The `self_path` property from the config file is being removed in favor of `config_file` full path.
151
+ - Refactor `config` module, better types and utilities
152
+
153
+ - e367c3f1e: - Replace signature handler for legacy tokens by removing deprecated crypto.createDecipher by createCipheriv
154
+
155
+ - Introduce environment variables for legacy tokens
156
+
157
+ ### Code Improvements
158
+
159
+ - Add debug library for improve developer experience
160
+
161
+ ### Breaking change
162
+
163
+ - The new signature invalidates all previous tokens generated by Verdaccio 4 or previous versions.
164
+ - The secret key must have 32 characters long.
165
+
166
+ ### New environment variables
167
+
168
+ - `VERDACCIO_LEGACY_ALGORITHM`: Allows to define the specific algorithm for the token signature which by default is `aes-256-ctr`
169
+ - `VERDACCIO_LEGACY_ENCRYPTION_KEY`: By default, the token stores in the database, but using this variable allows to get it from memory
170
+
171
+ ### Minor Changes
172
+
173
+ - ef88da3b4: feat: improve support for fs promises older nodejs
174
+ - 631abe1ac: feat: refactor logger
175
+ - b702ea363: abort search request support for proxy
176
+ - b61f762d6: feat: add server rate limit protection to all request
177
+
178
+ To modify custom values, use the server settings property.
179
+
180
+ ```markdown
181
+ server:
182
+
183
+ ## https://www.npmjs.com/package/express-rate-limit#configuration-options
184
+
185
+ rateLimit:
186
+ windowMs: 1000
187
+ max: 10000
188
+ ```
189
+
190
+ The values are intended to be high, if you want to improve security of your server consider
191
+ using different values.
192
+
193
+ - 154b2ecd3: refactor: remove @verdaccio/commons-api in favor @verdaccio/core and remove duplications
194
+ - aa763baec: feat: add typescript project references settings
195
+
196
+ 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.
197
+
198
+ It allows to navigate (IDE) trough the packages without need compile the packages.
199
+
200
+ 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).
201
+
202
+ - 45c03819e: refactor: render html middleware
203
+
204
+ ### Patch Changes
205
+
206
+ - 351aeeaa8: fix(deps): @verdaccio/utils should be a prod dep of local-storage
207
+ - a610ef26b: chore: add release step to private regisry on merge changeset pr
208
+ - 65cb26cf3: refactor: migrate request to node-fetch at hooks package
209
+ - e381e4845: fix: improve legacy nodejs support
210
+ - 34f0f1101: Enable prerelease mode with **changesets**
211
+ - df0da3d69: Added core-js missing from dependencies though referenced in .js sources
212
+ - 0a6412ca9: refactor: got instead undici
213
+ - 68ea21214: ESLint Warnings Fixed
214
+
215
+ Related to issue #1461
216
+
217
+ - max-len: most of the sensible max-len errors are fixed
218
+ - no-unused-vars: most of these types of errors are fixed by deleting not needed declarations
219
+ - @typescript-eslint/no-unused-vars: same as above
220
+
221
+ - Updated dependencies [292c0a37f]
222
+ - Updated dependencies [974cd8c19]
223
+ - Updated dependencies [ef88da3b4]
224
+ - Updated dependencies [43f32687c]
225
+ - Updated dependencies [a3a209b5e]
226
+ - Updated dependencies [459b6fa72]
227
+ - Updated dependencies [24b9be020]
228
+ - Updated dependencies [794af76c5]
229
+ - Updated dependencies [e75c0a3b9]
230
+ - Updated dependencies [351aeeaa8]
231
+ - Updated dependencies [10aeb4f13]
232
+ - Updated dependencies [631abe1ac]
233
+ - Updated dependencies [9718e0330]
234
+ - Updated dependencies [e367c3f1e]
235
+ - Updated dependencies [a1da11308]
236
+ - Updated dependencies [00d1d2a17]
237
+ - Updated dependencies [a610ef26b]
238
+ - Updated dependencies [b61f762d6]
239
+ - Updated dependencies [154b2ecd3]
240
+ - Updated dependencies [aa763baec]
241
+ - Updated dependencies [378e907d5]
242
+ - Updated dependencies [16e38df8a]
243
+ - Updated dependencies [34f0f1101]
244
+ - Updated dependencies [82cb0f2bf]
245
+ - Updated dependencies [dc571aabd]
246
+ - Updated dependencies [b78f35257]
247
+ - Updated dependencies [f859d2b1a]
248
+ - Updated dependencies [2c594910d]
249
+ - Updated dependencies [6c1eb021b]
250
+ - Updated dependencies [62c24b632]
251
+ - Updated dependencies [0a6412ca9]
252
+ - Updated dependencies [5167bb528]
253
+ - Updated dependencies [65f88b826]
254
+ - Updated dependencies [b3e8438f6]
255
+ - Updated dependencies [c9d1af0e5]
256
+ - Updated dependencies [730b5d8cc]
257
+ - Updated dependencies [4b29d715b]
258
+ - Updated dependencies [68ea21214]
259
+ - Updated dependencies [8f43bf17d]
260
+ - Updated dependencies [b849128de]
261
+ - @verdaccio/core@6.0.0
262
+ - @verdaccio/logger@6.0.0
263
+
3
264
  ## 6.0.0-6-next.46
4
265
 
5
266
  ### Patch Changes
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 Verdaccio contributors
3
+ Copyright (c) 2024 Verdaccio contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdaccio/hooks",
3
- "version": "6.0.0-6-next.46",
3
+ "version": "7.0.0-next-7.8",
4
4
  "description": "loaders logic",
5
5
  "main": "./build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -26,21 +26,21 @@
26
26
  "verdaccio"
27
27
  ],
28
28
  "engines": {
29
- "node": ">=12"
29
+ "node": ">=18"
30
30
  },
31
31
  "dependencies": {
32
- "@verdaccio/core": "6.0.0-6-next.76",
33
- "@verdaccio/logger": "6.0.0-6-next.44",
34
- "core-js": "3.30.2",
32
+ "@verdaccio/core": "7.0.0-next-7.8",
33
+ "@verdaccio/logger": "7.0.0-next-7.8",
34
+ "core-js": "3.35.0",
35
35
  "debug": "4.3.4",
36
- "handlebars": "4.7.7",
37
- "got-cjs": "12.5.4"
36
+ "got-cjs": "12.5.4",
37
+ "handlebars": "4.7.8"
38
38
  },
39
39
  "devDependencies": {
40
- "@verdaccio/auth": "6.0.0-6-next.55",
41
- "@verdaccio/config": "6.0.0-6-next.76",
42
- "@verdaccio/types": "11.0.0-6-next.25",
43
- "nock": "13.2.9"
40
+ "@verdaccio/auth": "7.0.0-next-7.8",
41
+ "@verdaccio/config": "7.0.0-next-7.8",
42
+ "@verdaccio/types": "12.0.0-next.2",
43
+ "nock": "13.5.1"
44
44
  },
45
45
  "funding": {
46
46
  "type": "opencollective",