Skip to content

Commit 59c1907

Browse files
authored
keyv - feat: (breaking) moving to Hookified (#1900)
* keyv - feat: (breaking) moving to Hookified * removing throwErrors * Update get-client.test.ts * Update v5-to-v6.md * throwOnErrors * lint fixes
1 parent 1e856aa commit 59c1907

File tree

16 files changed

+328
-641
lines changed

16 files changed

+328
-641
lines changed

core/keyv/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
"url": "https://github.com/jaredwray/keyv/issues"
5959
},
6060
"homepage": "https://github.com/jaredwray/keyv",
61+
"dependencies": {
62+
"hookified": "^2.0.1"
63+
},
6164
"devDependencies": {
6265
"@biomejs/biome": "^2.3.13",
6366
"@faker-js/faker": "^10.2.0",

core/keyv/src/event-manager.ts

Lines changed: 0 additions & 102 deletions
This file was deleted.

core/keyv/src/generic-store.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// biome-ignore-all lint/suspicious/noExplicitAny: map type
2-
import EventManager from "./event-manager.js";
2+
import { Hookified } from "hookified";
33
import {
44
Keyv,
55
type KeyvEntry,
@@ -92,10 +92,7 @@ export type KeyPrefixData = {
9292
* });
9393
* ```
9494
*/
95-
export class KeyvGenericStore
96-
extends EventManager
97-
implements KeyvStorageAdapter
98-
{
95+
export class KeyvGenericStore extends Hookified implements KeyvStorageAdapter {
9996
private readonly _options?: KeyvGenericStoreOptions;
10097
private _store: KeyvMapType;
10198
private _namespace?: string | (() => string);

core/keyv/src/hooks-manager.ts

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)