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