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