@verdaccio/loaders 6.0.0-6-next.44 → 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 +202 -0
  2. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,207 @@
1
1
  # @verdaccio/loaders
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/logger@7.0.0-next.0
13
+
14
+ ## 6.0.0
15
+
16
+ ### Major Changes
17
+
18
+ - 292c0a37f: feat!: replace deprecated request dependency by got
19
+
20
+ 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.
21
+
22
+ ## Notes
23
+
24
+ - Remove deprecated `request` by other `got`, retry improved, custom Agent ( got does not include it built-in)
25
+ - Remove `async` dependency from storage (used by core) it was linked with proxy somehow safe to remove now
26
+ - Refactor with promises instead callback wherever is possible
27
+ - ~Document the API~
28
+ - Improve testing, integration tests
29
+ - Bugfix
30
+ - Clean up old validations
31
+ - Improve performance
32
+
33
+ ## 💥 Breaking changes
34
+
35
+ - Plugin API methods were callbacks based are returning promises, this will break current storage plugins, check documentation for upgrade.
36
+ - 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));`
37
+ - `@verdaccio/streams` stream abort support is legacy is being deprecated removed
38
+ - Remove AWS and Google Cloud packages for future refactoring [#2574](https://github.com/verdaccio/verdaccio/pull/2574).
39
+
40
+ - 9fc2e7961: feat(plugins): improve plugin loader
41
+
42
+ ### Changes
43
+
44
+ - Add scope plugin support to 6.x https://github.com/verdaccio/verdaccio/pull/3227
45
+ - Avoid config collisions https://github.com/verdaccio/verdaccio/issues/928
46
+ - https://github.com/verdaccio/verdaccio/issues/1394
47
+ - `config.plugins` plugin path validations
48
+ - Updated algorithm for plugin loader.
49
+ - improved documentation (included dev)
50
+
51
+ ## Features
52
+
53
+ - Add scope plugin support to 6.x https://github.com/verdaccio/verdaccio/pull/3227
54
+ - Custom prefix:
55
+
56
+ ```
57
+ // config.yaml
58
+ server:
59
+ pluginPrefix: mycompany
60
+ middleware:
61
+ audit:
62
+ foo: 1
63
+ ```
64
+
65
+ This configuration will look up for `mycompany-audit` instead `Verdaccio-audit`.
66
+
67
+ ## Breaking Changes
68
+
69
+ ### sinopia plugins
70
+
71
+ - `sinopia` fallback support is removed, but can be restored using `pluginPrefix`
72
+
73
+ ### plugin filter
74
+
75
+ - method rename `filter_metadata`->`filterMetadata`
76
+
77
+ ### Plugin constructor does not merge configs anymore https://github.com/verdaccio/verdaccio/issues/928
78
+
79
+ The plugin receives as first argument `config`, which represents the config of the plugin. Example:
80
+
81
+ ```
82
+ // config.yaml
83
+ auth:
84
+ plugin:
85
+ foo: 1
86
+ bar: 2
87
+
88
+ export class Plugin<T> {
89
+ public constructor(config: T, options: PluginOptions) {
90
+ console.log(config);
91
+ // {foo:1, bar: 2}
92
+ }
93
+ }
94
+ ```
95
+
96
+ - 794af76c5: Remove Node 12 support
97
+
98
+ - We need move to the new `undici` and does not support Node.js 12
99
+
100
+ - 10aeb4f13: feat!: experiments config renamed to flags
101
+
102
+ - The `experiments` configuration is renamed to `flags`. The functionality is exactly the same.
103
+
104
+ ```js
105
+ flags: token: false;
106
+ search: false;
107
+ ```
108
+
109
+ - The `self_path` property from the config file is being removed in favor of `config_file` full path.
110
+ - Refactor `config` module, better types and utilities
111
+
112
+ - e367c3f1e: - Replace signature handler for legacy tokens by removing deprecated crypto.createDecipher by createCipheriv
113
+
114
+ - Introduce environment variables for legacy tokens
115
+
116
+ ### Code Improvements
117
+
118
+ - Add debug library for improve developer experience
119
+
120
+ ### Breaking change
121
+
122
+ - The new signature invalidates all previous tokens generated by Verdaccio 4 or previous versions.
123
+ - The secret key must have 32 characters long.
124
+
125
+ ### New environment variables
126
+
127
+ - `VERDACCIO_LEGACY_ALGORITHM`: Allows to define the specific algorithm for the token signature which by default is `aes-256-ctr`
128
+ - `VERDACCIO_LEGACY_ENCRYPTION_KEY`: By default, the token stores in the database, but using this variable allows to get it from memory
129
+
130
+ ### Minor Changes
131
+
132
+ - ef88da3b4: feat: improve support for fs promises older nodejs
133
+ - 631abe1ac: feat: refactor logger
134
+ - b61f762d6: feat: add server rate limit protection to all request
135
+
136
+ To modify custom values, use the server settings property.
137
+
138
+ ```markdown
139
+ server:
140
+
141
+ ## https://www.npmjs.com/package/express-rate-limit#configuration-options
142
+
143
+ rateLimit:
144
+ windowMs: 1000
145
+ max: 10000
146
+ ```
147
+
148
+ The values are intended to be high, if you want to improve security of your server consider
149
+ using different values.
150
+
151
+ - 154b2ecd3: refactor: remove @verdaccio/commons-api in favor @verdaccio/core and remove duplications
152
+ - aa763baec: feat: add typescript project references settings
153
+
154
+ 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.
155
+
156
+ It allows to navigate (IDE) trough the packages without need compile the packages.
157
+
158
+ 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).
159
+
160
+ ### Patch Changes
161
+
162
+ - 351aeeaa8: fix(deps): @verdaccio/utils should be a prod dep of local-storage
163
+ - a610ef26b: chore: add release step to private regisry on merge changeset pr
164
+ - 31d661c7b: always create plugin instance with new
165
+ - 34f0f1101: Enable prerelease mode with **changesets**
166
+ - 68ea21214: ESLint Warnings Fixed
167
+
168
+ Related to issue #1461
169
+
170
+ - max-len: most of the sensible max-len errors are fixed
171
+ - no-unused-vars: most of these types of errors are fixed by deleting not needed declarations
172
+ - @typescript-eslint/no-unused-vars: same as above
173
+
174
+ - Updated dependencies [292c0a37f]
175
+ - Updated dependencies [ef88da3b4]
176
+ - Updated dependencies [a3a209b5e]
177
+ - Updated dependencies [794af76c5]
178
+ - Updated dependencies [e75c0a3b9]
179
+ - Updated dependencies [351aeeaa8]
180
+ - Updated dependencies [10aeb4f13]
181
+ - Updated dependencies [631abe1ac]
182
+ - Updated dependencies [e367c3f1e]
183
+ - Updated dependencies [a610ef26b]
184
+ - Updated dependencies [b61f762d6]
185
+ - Updated dependencies [154b2ecd3]
186
+ - Updated dependencies [aa763baec]
187
+ - Updated dependencies [34f0f1101]
188
+ - Updated dependencies [82cb0f2bf]
189
+ - Updated dependencies [b78f35257]
190
+ - Updated dependencies [2c594910d]
191
+ - Updated dependencies [6c1eb021b]
192
+ - Updated dependencies [65f88b826]
193
+ - Updated dependencies [b3e8438f6]
194
+ - Updated dependencies [730b5d8cc]
195
+ - Updated dependencies [68ea21214]
196
+ - Updated dependencies [8f43bf17d]
197
+ - @verdaccio/logger@6.0.0
198
+
199
+ ## 6.0.0-6-next.45
200
+
201
+ ### Patch Changes
202
+
203
+ - @verdaccio/logger@6.0.0-6-next.44
204
+
3
205
  ## 6.0.0-6-next.44
4
206
 
5
207
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdaccio/loaders",
3
- "version": "6.0.0-6-next.44",
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",
@@ -13,17 +13,17 @@
13
13
  "url": "https://github.com/verdaccio/verdaccio"
14
14
  },
15
15
  "dependencies": {
16
- "@verdaccio/logger": "6.0.0-6-next.43",
16
+ "@verdaccio/logger": "7.0.0-next.0",
17
17
  "debug": "4.3.4",
18
18
  "lodash": "4.17.21"
19
19
  },
20
20
  "devDependencies": {
21
- "@verdaccio/core": "6.0.0-6-next.75",
22
- "@verdaccio/config": "6.0.0-6-next.75",
23
- "@verdaccio/types": "11.0.0-6-next.25",
21
+ "@verdaccio/core": "7.0.0-next.0",
22
+ "@verdaccio/config": "7.0.0-next.0",
23
+ "@verdaccio/types": "12.0.0-next.0",
24
24
  "@verdaccio-scope/verdaccio-auth-foo": "0.0.2",
25
- "customprefix-auth": "1.0.0-6-next.0",
26
- "verdaccio-auth-memory": "11.0.0-6-next.40"
25
+ "customprefix-auth": "2.0.0-next.0",
26
+ "verdaccio-auth-memory": "12.0.0-next.0"
27
27
  },
28
28
  "homepage": "https://verdaccio.org",
29
29
  "keywords": [