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