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

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