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