@verdaccio/core 6.0.0-6-next.76 → 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.
- package/CHANGELOG.md +155 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,160 @@
|
|
|
1
1
|
# @verdaccio/core
|
|
2
2
|
|
|
3
|
+
## 7.0.0-next.1
|
|
4
|
+
|
|
5
|
+
## 7.0.0-next.0
|
|
6
|
+
|
|
7
|
+
### Major Changes
|
|
8
|
+
|
|
9
|
+
- feat!: bump to v7
|
|
10
|
+
|
|
11
|
+
## 6.0.0
|
|
12
|
+
|
|
13
|
+
### Major Changes
|
|
14
|
+
|
|
15
|
+
- 292c0a37f: feat!: replace deprecated request dependency by got
|
|
16
|
+
|
|
17
|
+
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.
|
|
18
|
+
|
|
19
|
+
## Notes
|
|
20
|
+
|
|
21
|
+
- Remove deprecated `request` by other `got`, retry improved, custom Agent ( got does not include it built-in)
|
|
22
|
+
- Remove `async` dependency from storage (used by core) it was linked with proxy somehow safe to remove now
|
|
23
|
+
- Refactor with promises instead callback wherever is possible
|
|
24
|
+
- ~Document the API~
|
|
25
|
+
- Improve testing, integration tests
|
|
26
|
+
- Bugfix
|
|
27
|
+
- Clean up old validations
|
|
28
|
+
- Improve performance
|
|
29
|
+
|
|
30
|
+
## 💥 Breaking changes
|
|
31
|
+
|
|
32
|
+
- Plugin API methods were callbacks based are returning promises, this will break current storage plugins, check documentation for upgrade.
|
|
33
|
+
- 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));`
|
|
34
|
+
- `@verdaccio/streams` stream abort support is legacy is being deprecated removed
|
|
35
|
+
- Remove AWS and Google Cloud packages for future refactoring [#2574](https://github.com/verdaccio/verdaccio/pull/2574).
|
|
36
|
+
|
|
37
|
+
- a3a209b5e: feat: migrate to pino.js 8
|
|
38
|
+
- 459b6fa72: refactor: search v1 endpoint and local-database
|
|
39
|
+
|
|
40
|
+
- refactor search `api v1` endpoint, improve performance
|
|
41
|
+
- remove usage of `async` dependency https://github.com/verdaccio/verdaccio/issues/1225
|
|
42
|
+
- refactor method storage class
|
|
43
|
+
- create new module `core` to reduce the ammount of modules with utilities
|
|
44
|
+
- use `undici` instead `node-fetch`
|
|
45
|
+
- use `fastify` instead `express` for functional test
|
|
46
|
+
|
|
47
|
+
### Breaking changes
|
|
48
|
+
|
|
49
|
+
- plugin storage API changes
|
|
50
|
+
- remove old search endpoint (return 404)
|
|
51
|
+
- filter local private packages at plugin level
|
|
52
|
+
|
|
53
|
+
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.
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
export interface IPluginStorage<T> extends IPlugin {
|
|
57
|
+
add(name: string): Promise<void>;
|
|
58
|
+
remove(name: string): Promise<void>;
|
|
59
|
+
get(): Promise<any>;
|
|
60
|
+
init(): Promise<void>;
|
|
61
|
+
getSecret(): Promise<string>;
|
|
62
|
+
setSecret(secret: string): Promise<any>;
|
|
63
|
+
getPackageStorage(packageInfo: string): IPackageStorage;
|
|
64
|
+
search(query: searchUtils.SearchQuery): Promise<searchUtils.SearchItem[]>;
|
|
65
|
+
saveToken(token: Token): Promise<any>;
|
|
66
|
+
deleteToken(user: string, tokenKey: string): Promise<any>;
|
|
67
|
+
readTokens(filter: TokenFilter): Promise<Token[]>;
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
- 794af76c5: Remove Node 12 support
|
|
72
|
+
|
|
73
|
+
- We need move to the new `undici` and does not support Node.js 12
|
|
74
|
+
|
|
75
|
+
- 82cb0f2bf: feat!: config.logs throw an error, logging config not longer accept array or logs property
|
|
76
|
+
|
|
77
|
+
### 💥 Breaking change
|
|
78
|
+
|
|
79
|
+
This is valid
|
|
80
|
+
|
|
81
|
+
```yaml
|
|
82
|
+
log: { type: stdout, format: pretty, level: http }
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
This is invalid
|
|
86
|
+
|
|
87
|
+
```yaml
|
|
88
|
+
logs: { type: stdout, format: pretty, level: http }
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
or
|
|
92
|
+
|
|
93
|
+
```yaml
|
|
94
|
+
logs:
|
|
95
|
+
- [{ type: stdout, format: pretty, level: http }]
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Minor Changes
|
|
99
|
+
|
|
100
|
+
- 974cd8c19: fix: startup messages improved and logs support on types
|
|
101
|
+
- ef88da3b4: feat: improve support for fs promises older nodejs
|
|
102
|
+
- 24b9be020: refactor: improve docker image build with strict dependencies and prod build
|
|
103
|
+
- 00d1d2a17: chore: env variable for launch fastify
|
|
104
|
+
|
|
105
|
+
- Update fastify to major release `v4.3.0`
|
|
106
|
+
- Update CLI launcher
|
|
107
|
+
|
|
108
|
+
via CLI
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
VERDACCIO_SERVER=fastify verdaccio
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
with docker
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
docker run -it --rm --name verdaccio \
|
|
118
|
+
-e "VERDACCIO_SERVER=8080" -p 8080:8080 \
|
|
119
|
+
-e "VERDACCIO_SERVER=fastify" \
|
|
120
|
+
verdaccio/verdaccio
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
- 154b2ecd3: refactor: remove @verdaccio/commons-api in favor @verdaccio/core and remove duplications
|
|
124
|
+
- 16e38df8a: feat: trustProxy property
|
|
125
|
+
- dc571aabd: feat: add forceEnhancedLegacySignature
|
|
126
|
+
- 6c1eb021b: feat: use warning codes for deprecation warnings
|
|
127
|
+
- 62c24b632: feat: add passwordValidationRegex property
|
|
128
|
+
- 5167bb528: feat: ui search support for remote, local and private packages
|
|
129
|
+
|
|
130
|
+
The command `npm search` search globally and return all matches, with this improvement the user interface
|
|
131
|
+
is powered with the same capabilities.
|
|
132
|
+
|
|
133
|
+
The UI also tag where is the origin the package with a tag, also provide the latest version and description of the package.
|
|
134
|
+
|
|
135
|
+
- c9d1af0e5: feat: async bcrypt hash
|
|
136
|
+
- 4b29d715b: chore: move improvements from v5 to v6
|
|
137
|
+
|
|
138
|
+
Migrate improvements form v5 to v6:
|
|
139
|
+
|
|
140
|
+
- https://github.com/verdaccio/verdaccio/pull/3158
|
|
141
|
+
- https://github.com/verdaccio/verdaccio/pull/3151
|
|
142
|
+
- https://github.com/verdaccio/verdaccio/pull/2271
|
|
143
|
+
- https://github.com/verdaccio/verdaccio/pull/2787
|
|
144
|
+
- https://github.com/verdaccio/verdaccio/pull/2791
|
|
145
|
+
- https://github.com/verdaccio/verdaccio/pull/2205
|
|
146
|
+
|
|
147
|
+
### Patch Changes
|
|
148
|
+
|
|
149
|
+
- 43f32687c: fix: abbreviated headers handle quality values
|
|
150
|
+
- 351aeeaa8: fix(deps): @verdaccio/utils should be a prod dep of local-storage
|
|
151
|
+
- 9718e0330: fix: build targets for 5x modules
|
|
152
|
+
- a1da11308: fix: minor typo on warning message
|
|
153
|
+
- 378e907d5: fix(core): fix `isObject` function.`isObject(true)` should return false.
|
|
154
|
+
- f859d2b1a: fix: official package "-" cannot be synced
|
|
155
|
+
- 0a6412ca9: refactor: got instead undici
|
|
156
|
+
- b849128de: fix: handle upload scoped tarball
|
|
157
|
+
|
|
3
158
|
## 6.0.0-6-next.76
|
|
4
159
|
|
|
5
160
|
## 6.0.0-6-next.75
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verdaccio/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0-next.1",
|
|
4
4
|
"description": "core utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"private",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"lodash": "4.17.21",
|
|
45
45
|
"typedoc": "0.23.25",
|
|
46
46
|
"typedoc-plugin-missing-exports": "latest",
|
|
47
|
-
"@verdaccio/types": "
|
|
47
|
+
"@verdaccio/types": "12.0.0-next.0"
|
|
48
48
|
},
|
|
49
49
|
"funding": {
|
|
50
50
|
"type": "opencollective",
|