2021-09-08 12:33:09 -05:00
# @verdaccio/eslint-config
2023-08-21 10:38:13 -05:00
## 3.0.0-next.0
### Major Changes
- feat!: bump to v7
## 2.0.0
### Major Changes
- a3a209b5e: feat: migrate to pino.js 8
- 459b6fa72: 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` instead `node-fetch`
- use `fastify` instead `express` 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. The `search` methods also changes and recieves a `query` object that contains all query params from the client.
```ts
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 [ ] > ;
}
```
2022-08-19 16:48:06 -05:00
## 2.0.0-6-next.1
### Major Changes
- a3a209b5: feat: migrate to pino.js 8
2021-09-08 12:33:09 -05:00
## 2.0.0-6-next.0
2022-08-19 16:48:06 -05:00
2021-09-08 12:33:09 -05:00
### Major Changes
- 459b6fa7: refactor: search v1 endpoint and local-database
2022-08-19 16:48:06 -05:00
2021-09-08 12:33:09 -05:00
- 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` instead `node-fetch`
- use `fastify` instead `express` for functional test
2022-08-19 16:48:06 -05:00
2021-09-08 12:33:09 -05:00
### Breaking changes
2022-08-19 16:48:06 -05:00
2021-09-08 12:33:09 -05:00
- plugin storage API changes
- remove old search endpoint (return 404)
- filter local private packages at plugin level
2022-08-19 16:48:06 -05:00
2021-09-08 12:33:09 -05:00
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.
2022-08-19 16:48:06 -05:00
2021-09-08 12:33:09 -05:00
```ts
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 [ ] > ;
}
```