@verdaccio/types 12.0.0-next.1 → 13.0.0-next-8.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.
- package/CHANGELOG.md +58 -7
- package/package.json +1 -1
- package/src/configuration.ts +8 -2
- package/src/manifest.ts +14 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,56 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 13.0.0-next-8.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- chore: move v7 next to v8 next
|
|
8
|
+
|
|
9
|
+
## 12.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- 47f61c6: feat!: bump to v7
|
|
14
|
+
- e7ebccb: update major dependencies, remove old nodejs support
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- f047cc8: refactor: auth with legacy sign support
|
|
19
|
+
- bd8703e: feat: add migrateToSecureLegacySignature and remove enhancedLegacySignature property
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- 10dd81f: feat: complete overhaul of web user interface
|
|
24
|
+
- 6e764e3: feat: add support for npm owner
|
|
25
|
+
- de6ff5c: fix: update fields for abbreviated manifest
|
|
26
|
+
- 117eb1c: fix: change bundleDependencies to array
|
|
27
|
+
|
|
28
|
+
## 12.0.0-next-7.5
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- 10dd81f: feat: complete overhaul of web user interface
|
|
33
|
+
|
|
34
|
+
## 12.0.0-next-7.4
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- 6e764e3: feat: add support for npm owner
|
|
39
|
+
- de6ff5c: fix: update fields for abbreviated manifest
|
|
40
|
+
- 117eb1c: fix: change bundleDependencies to array
|
|
41
|
+
|
|
42
|
+
## 12.0.0-next-7.3
|
|
43
|
+
|
|
44
|
+
### Minor Changes
|
|
45
|
+
|
|
46
|
+
- bd8703e: feat: add migrateToSecureLegacySignature and remove enhancedLegacySignature property
|
|
47
|
+
|
|
48
|
+
## 12.0.0-next.2
|
|
49
|
+
|
|
50
|
+
### Minor Changes
|
|
51
|
+
|
|
52
|
+
- f047cc8: refactor: auth with legacy sign support
|
|
53
|
+
|
|
3
54
|
## 12.0.0-next.1
|
|
4
55
|
|
|
5
56
|
### Major Changes
|
|
@@ -211,12 +262,12 @@
|
|
|
211
262
|
- 8f43bf17d: feat: node api new structure based on promise
|
|
212
263
|
|
|
213
264
|
```js
|
|
214
|
-
import { runServer } from
|
|
265
|
+
import { runServer } from "@verdaccio/node-api";
|
|
215
266
|
// or
|
|
216
|
-
import { runServer } from
|
|
267
|
+
import { runServer } from "verdaccio";
|
|
217
268
|
|
|
218
269
|
const app = await runServer(); // default configuration
|
|
219
|
-
const app = await runServer(
|
|
270
|
+
const app = await runServer("./config/config.yaml");
|
|
220
271
|
const app = await runServer({ configuration });
|
|
221
272
|
app.listen(4000, (event) => {
|
|
222
273
|
// do something
|
|
@@ -808,14 +859,14 @@
|
|
|
808
859
|
- 5c5057fc: feat: node api new structure based on promise
|
|
809
860
|
|
|
810
861
|
```js
|
|
811
|
-
import { runServer } from
|
|
862
|
+
import { runServer } from "@verdaccio/node-api";
|
|
812
863
|
// or
|
|
813
|
-
import { runServer } from
|
|
864
|
+
import { runServer } from "verdaccio";
|
|
814
865
|
|
|
815
866
|
const app = await runServer(); // default configuration
|
|
816
|
-
const app = await runServer(
|
|
867
|
+
const app = await runServer("./config/config.yaml");
|
|
817
868
|
const app = await runServer({ configuration });
|
|
818
|
-
app.listen(4000, event => {
|
|
869
|
+
app.listen(4000, (event) => {
|
|
819
870
|
// do something
|
|
820
871
|
});
|
|
821
872
|
```
|
package/package.json
CHANGED
package/src/configuration.ts
CHANGED
|
@@ -83,6 +83,7 @@ export type PackageManagers = 'pnpm' | 'yarn' | 'npm';
|
|
|
83
83
|
export type CommonWebConf = {
|
|
84
84
|
title?: string;
|
|
85
85
|
logo?: string;
|
|
86
|
+
logoDark?: string;
|
|
86
87
|
favicon?: string;
|
|
87
88
|
gravatar?: boolean;
|
|
88
89
|
sort_packages?: string;
|
|
@@ -98,6 +99,7 @@ export type CommonWebConf = {
|
|
|
98
99
|
showFooter?: boolean;
|
|
99
100
|
showThemeSwitch?: boolean;
|
|
100
101
|
showDownloadTarball?: boolean;
|
|
102
|
+
showUplinks?: boolean;
|
|
101
103
|
hideDeprecatedVersions?: boolean;
|
|
102
104
|
primaryColor: string;
|
|
103
105
|
showRaw?: boolean;
|
|
@@ -182,17 +184,21 @@ export interface JWTVerifyOptions {
|
|
|
182
184
|
|
|
183
185
|
export interface APITokenOptions {
|
|
184
186
|
legacy: boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Temporary flag to allow migration to the new legacy signature
|
|
189
|
+
*/
|
|
190
|
+
migrateToSecureLegacySignature: boolean;
|
|
185
191
|
jwt?: JWTOptions;
|
|
186
192
|
}
|
|
187
193
|
|
|
188
194
|
export interface Security {
|
|
189
|
-
enhancedLegacySignature?: boolean;
|
|
190
195
|
web: JWTOptions;
|
|
191
196
|
api: APITokenOptions;
|
|
192
197
|
}
|
|
193
198
|
|
|
194
199
|
export interface PublishOptions {
|
|
195
200
|
allow_offline: boolean;
|
|
201
|
+
check_owners: boolean;
|
|
196
202
|
}
|
|
197
203
|
|
|
198
204
|
export interface ListenAddress {
|
|
@@ -296,7 +302,7 @@ export interface Config extends Omit<ConfigYaml, 'packages' | 'security' | 'conf
|
|
|
296
302
|
// security object defaults is added by the config file but optional in the yaml file
|
|
297
303
|
security: Security;
|
|
298
304
|
// @deprecated (pending adding the replacement)
|
|
299
|
-
checkSecretKey(token: string): string;
|
|
305
|
+
checkSecretKey(token: string | void): string;
|
|
300
306
|
getMatchedPackagesSpec(storage: string): PackageAccess | void;
|
|
301
307
|
// TODO: verify how to handle this in the future
|
|
302
308
|
[key: string]: any;
|
package/src/manifest.ts
CHANGED
|
@@ -3,7 +3,7 @@ export interface PackageAccess {
|
|
|
3
3
|
publish?: string[];
|
|
4
4
|
proxy?: string[];
|
|
5
5
|
access?: string[];
|
|
6
|
-
unpublish
|
|
6
|
+
unpublish?: string[];
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export interface PackageList {
|
|
@@ -123,7 +123,8 @@ export interface Version {
|
|
|
123
123
|
devDependencies?: Dependencies;
|
|
124
124
|
optionalDependencies?: Dependencies;
|
|
125
125
|
peerDependenciesMeta?: PeerDependenciesMeta;
|
|
126
|
-
bundleDependencies?:
|
|
126
|
+
bundleDependencies?: string[];
|
|
127
|
+
acceptDependencies?: Dependencies;
|
|
127
128
|
keywords?: string | string[];
|
|
128
129
|
nodeVersion?: string;
|
|
129
130
|
_id: string;
|
|
@@ -178,7 +179,9 @@ export interface FullRemoteManifest {
|
|
|
178
179
|
'dist-tags': GenericBody;
|
|
179
180
|
time: GenericBody;
|
|
180
181
|
versions: Versions;
|
|
182
|
+
/** store owners of this package */
|
|
181
183
|
maintainers?: Author[];
|
|
184
|
+
contributors?: Author[];
|
|
182
185
|
/** store the latest readme **/
|
|
183
186
|
readme?: string;
|
|
184
187
|
/** store star assigned to this packages by users */
|
|
@@ -223,7 +226,6 @@ export type AbbreviatedVersion = Pick<
|
|
|
223
226
|
Version,
|
|
224
227
|
| 'name'
|
|
225
228
|
| 'version'
|
|
226
|
-
| 'description'
|
|
227
229
|
| 'dependencies'
|
|
228
230
|
| 'devDependencies'
|
|
229
231
|
| 'bin'
|
|
@@ -231,6 +233,15 @@ export type AbbreviatedVersion = Pick<
|
|
|
231
233
|
| 'engines'
|
|
232
234
|
| 'funding'
|
|
233
235
|
| 'peerDependencies'
|
|
236
|
+
| 'cpu'
|
|
237
|
+
| 'deprecated'
|
|
238
|
+
| 'directories'
|
|
239
|
+
| 'hasInstallScript'
|
|
240
|
+
| 'optionalDependencies'
|
|
241
|
+
| 'os'
|
|
242
|
+
| 'peerDependenciesMeta'
|
|
243
|
+
| 'acceptDependencies'
|
|
244
|
+
| '_hasShrinkwrap'
|
|
234
245
|
>;
|
|
235
246
|
|
|
236
247
|
export interface AbbreviatedVersions {
|