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