mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-23 22:27:34 -05:00
e10637f0f3
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1.8 KiB
1.8 KiB
@verdaccio/fastify-migration
6.0.0-6-next.12
Major Changes
-
459b6fa7
: refactor: search v1 endpoint and local-database- refactor search
api v1
endpoint, improve performance - remove usage of
async
dependency https://github.com/verdaccio/verdaccio/issues/1225 - refactor method storage class
- create new module
core
to reduce the ammount of modules with utilities - use
undici
insteadnode-fetch
- use
fastify
insteadexpress
for functional test
Breaking changes
- plugin storage API changes
- remove old search endpoint (return 404)
- filter local private packages at plugin level
The storage api changes for methods
get
,add
,remove
as promise base. Thesearch
methods also changes and recieves aquery
object that contains all query params from the client.export interface IPluginStorage<T> extends IPlugin { add(name: string): Promise<void>; remove(name: string): Promise<void>; get(): Promise<any>; init(): Promise<void>; getSecret(): Promise<string>; setSecret(secret: string): Promise<any>; getPackageStorage(packageInfo: string): IPackageStorage; search(query: searchUtils.SearchQuery): Promise<searchUtils.SearchItem[]>; saveToken(token: Token): Promise<any>; deleteToken(user: string, tokenKey: string): Promise<any>; readTokens(filter: TokenFilter): Promise<Token[]>; }
- refactor search
Patch Changes
- Updated dependencies [
459b6fa7
]- @verdaccio/auth@6.0.0-6-next.11
- @verdaccio/config@6.0.0-6-next.8
- @verdaccio/store@6.0.0-6-next.12
- @verdaccio/logger@6.0.0-6-next.4
6.0.0-6-next.11
Patch Changes
df0da3d6
: Added core-js missing from dependencies though referenced in .js sources- @verdaccio/auth@6.0.0-6-next.10
- @verdaccio/store@6.0.0-6-next.11
6.0.0-6-next.10
Minor Changes
55ee3fdd
: [Fastify] Add ping endpoint