@verdaccio/middleware 6.0.0-6-next.55 → 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 +193 -0
  2. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,198 @@
1
1
  # @verdaccio/middleware
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/url@12.0.0-next.0
15
+ - @verdaccio/utils@7.0.0-next.0
16
+
17
+ ## 6.0.0
18
+
19
+ ### Major Changes
20
+
21
+ - 292c0a37f: feat!: replace deprecated request dependency by got
22
+
23
+ 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.
24
+
25
+ ## Notes
26
+
27
+ - Remove deprecated `request` by other `got`, retry improved, custom Agent ( got does not include it built-in)
28
+ - Remove `async` dependency from storage (used by core) it was linked with proxy somehow safe to remove now
29
+ - Refactor with promises instead callback wherever is possible
30
+ - ~Document the API~
31
+ - Improve testing, integration tests
32
+ - Bugfix
33
+ - Clean up old validations
34
+ - Improve performance
35
+
36
+ ## 💥 Breaking changes
37
+
38
+ - Plugin API methods were callbacks based are returning promises, this will break current storage plugins, check documentation for upgrade.
39
+ - 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));`
40
+ - `@verdaccio/streams` stream abort support is legacy is being deprecated removed
41
+ - Remove AWS and Google Cloud packages for future refactoring [#2574](https://github.com/verdaccio/verdaccio/pull/2574).
42
+
43
+ - 794af76c5: Remove Node 12 support
44
+
45
+ - We need move to the new `undici` and does not support Node.js 12
46
+
47
+ - 10aeb4f13: feat!: experiments config renamed to flags
48
+
49
+ - The `experiments` configuration is renamed to `flags`. The functionality is exactly the same.
50
+
51
+ ```js
52
+ flags: token: false;
53
+ search: false;
54
+ ```
55
+
56
+ - The `self_path` property from the config file is being removed in favor of `config_file` full path.
57
+ - Refactor `config` module, better types and utilities
58
+
59
+ - e367c3f1e: - Replace signature handler for legacy tokens by removing deprecated crypto.createDecipher by createCipheriv
60
+
61
+ - Introduce environment variables for legacy tokens
62
+
63
+ ### Code Improvements
64
+
65
+ - Add debug library for improve developer experience
66
+
67
+ ### Breaking change
68
+
69
+ - The new signature invalidates all previous tokens generated by Verdaccio 4 or previous versions.
70
+ - The secret key must have 32 characters long.
71
+
72
+ ### New environment variables
73
+
74
+ - `VERDACCIO_LEGACY_ALGORITHM`: Allows to define the specific algorithm for the token signature which by default is `aes-256-ctr`
75
+ - `VERDACCIO_LEGACY_ENCRYPTION_KEY`: By default, the token stores in the database, but using this variable allows to get it from memory
76
+
77
+ ### Minor Changes
78
+
79
+ - a1986e098: feat: expose middleware utils
80
+ - ae93e039d: fix: expose middleware methods
81
+ - 24b9be020: refactor: improve docker image build with strict dependencies and prod build
82
+ - 631abe1ac: feat: refactor logger
83
+ - b61f762d6: feat: add server rate limit protection to all request
84
+
85
+ To modify custom values, use the server settings property.
86
+
87
+ ```markdown
88
+ server:
89
+
90
+ ## https://www.npmjs.com/package/express-rate-limit#configuration-options
91
+
92
+ rateLimit:
93
+ windowMs: 1000
94
+ max: 10000
95
+ ```
96
+
97
+ The values are intended to be high, if you want to improve security of your server consider
98
+ using different values.
99
+
100
+ - 154b2ecd3: refactor: remove @verdaccio/commons-api in favor @verdaccio/core and remove duplications
101
+ - aa763baec: feat: add typescript project references settings
102
+
103
+ 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.
104
+
105
+ It allows to navigate (IDE) trough the packages without need compile the packages.
106
+
107
+ 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).
108
+
109
+ - 4b29d715b: chore: move improvements from v5 to v6
110
+
111
+ Migrate improvements form v5 to v6:
112
+
113
+ - https://github.com/verdaccio/verdaccio/pull/3158
114
+ - https://github.com/verdaccio/verdaccio/pull/3151
115
+ - https://github.com/verdaccio/verdaccio/pull/2271
116
+ - https://github.com/verdaccio/verdaccio/pull/2787
117
+ - https://github.com/verdaccio/verdaccio/pull/2791
118
+ - https://github.com/verdaccio/verdaccio/pull/2205
119
+
120
+ - 45c03819e: refactor: render html middleware
121
+
122
+ ### Patch Changes
123
+
124
+ - 9943e2b18: fix: extract logger from middleware
125
+ - 1d1112805: Remove @ts-ignore and any in packages/web/src/endpoint/package.ts
126
+ - 7ef599cc4: fix: missing version on footer
127
+ - a610ef26b: chore: add release step to private regisry on merge changeset pr
128
+ - 4fc21146a: fix: missing logo on header
129
+ - 34f0f1101: Enable prerelease mode with **changesets**
130
+ - f859d2b1a: fix: official package "-" cannot be synced
131
+ - 65f88b826: bump logger packages
132
+ - 68ea21214: ESLint Warnings Fixed
133
+
134
+ Related to issue #1461
135
+
136
+ - max-len: most of the sensible max-len errors are fixed
137
+ - no-unused-vars: most of these types of errors are fixed by deleting not needed declarations
138
+ - @typescript-eslint/no-unused-vars: same as above
139
+
140
+ - fa274ee44: chore: bumb up package
141
+ - Updated dependencies [292c0a37f]
142
+ - Updated dependencies [dc05edfe6]
143
+ - Updated dependencies [a1986e098]
144
+ - Updated dependencies [974cd8c19]
145
+ - Updated dependencies [a828271d6]
146
+ - Updated dependencies [ef88da3b4]
147
+ - Updated dependencies [43f32687c]
148
+ - Updated dependencies [679c19c1b]
149
+ - Updated dependencies [a3a209b5e]
150
+ - Updated dependencies [459b6fa72]
151
+ - Updated dependencies [9fc2e7961]
152
+ - Updated dependencies [24b9be020]
153
+ - Updated dependencies [794af76c5]
154
+ - Updated dependencies [351aeeaa8]
155
+ - Updated dependencies [10aeb4f13]
156
+ - Updated dependencies [9718e0330]
157
+ - Updated dependencies [1b217fd34]
158
+ - Updated dependencies [e367c3f1e]
159
+ - Updated dependencies [a1da11308]
160
+ - Updated dependencies [d167f92e1]
161
+ - Updated dependencies [d2c65da9c]
162
+ - Updated dependencies [00d1d2a17]
163
+ - Updated dependencies [1810ed0d8]
164
+ - Updated dependencies [a610ef26b]
165
+ - Updated dependencies [ddb6a2239]
166
+ - Updated dependencies [648575aa4]
167
+ - Updated dependencies [b61f762d6]
168
+ - Updated dependencies [d43894e8f]
169
+ - Updated dependencies [154b2ecd3]
170
+ - Updated dependencies [aa763baec]
171
+ - Updated dependencies [378e907d5]
172
+ - Updated dependencies [16e38df8a]
173
+ - Updated dependencies [34f0f1101]
174
+ - Updated dependencies [82cb0f2bf]
175
+ - Updated dependencies [dc571aabd]
176
+ - Updated dependencies [ce013d2fc]
177
+ - Updated dependencies [f859d2b1a]
178
+ - Updated dependencies [6c1eb021b]
179
+ - Updated dependencies [62c24b632]
180
+ - Updated dependencies [0a6412ca9]
181
+ - Updated dependencies [d08fe29d9]
182
+ - Updated dependencies [5167bb528]
183
+ - Updated dependencies [f86c31ed0]
184
+ - Updated dependencies [c9d1af0e5]
185
+ - Updated dependencies [4b29d715b]
186
+ - Updated dependencies [b13a3fefd]
187
+ - Updated dependencies [68ea21214]
188
+ - Updated dependencies [8f43bf17d]
189
+ - Updated dependencies [45c03819e]
190
+ - Updated dependencies [b849128de]
191
+ - @verdaccio/config@6.0.0
192
+ - @verdaccio/core@6.0.0
193
+ - @verdaccio/url@11.0.0
194
+ - @verdaccio/utils@6.0.0
195
+
3
196
  ## 6.0.0-6-next.55
4
197
 
5
198
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdaccio/middleware",
3
- "version": "6.0.0-6-next.55",
3
+ "version": "7.0.0-next.0",
4
4
  "description": "express middleware utils",
5
5
  "main": "./build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -29,10 +29,10 @@
29
29
  "node": ">=12"
30
30
  },
31
31
  "dependencies": {
32
- "@verdaccio/core": "6.0.0-6-next.76",
33
- "@verdaccio/utils": "6.0.0-6-next.44",
34
- "@verdaccio/config": "6.0.0-6-next.76",
35
- "@verdaccio/url": "11.0.0-6-next.42",
32
+ "@verdaccio/core": "7.0.0-next.0",
33
+ "@verdaccio/utils": "7.0.0-next.0",
34
+ "@verdaccio/config": "7.0.0-next.0",
35
+ "@verdaccio/url": "12.0.0-next.0",
36
36
  "debug": "4.3.4",
37
37
  "lru-cache": "7.18.3",
38
38
  "express": "4.18.2",
@@ -45,7 +45,7 @@
45
45
  "url": "https://opencollective.com/verdaccio"
46
46
  },
47
47
  "devDependencies": {
48
- "@verdaccio/logger": "6.0.0-6-next.44",
48
+ "@verdaccio/logger": "7.0.0-next.0",
49
49
  "body-parser": "1.20.2",
50
50
  "supertest": "6.3.3"
51
51
  },