@fedify/fedify 2.5.0-dev.2758 → 2.5.0-dev.2766

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 (38) hide show
  1. package/dist/compat/mod.d.cts +1 -1
  2. package/dist/compat/mod.d.ts +1 -1
  3. package/dist/{context-CuLvR1Os.d.ts → context-CgIOZfHW.d.ts} +1 -1
  4. package/dist/{context-apq0IBg2.d.cts → context-ZtE85CT_.d.cts} +1 -1
  5. package/dist/federation/mod.cjs +2 -1
  6. package/dist/federation/mod.d.cts +4 -4
  7. package/dist/federation/mod.d.ts +4 -4
  8. package/dist/federation/mod.js +125 -54
  9. package/dist/{federation-yC0wXSla.cjs → federation-COgnjnjr.cjs} +132 -55
  10. package/dist/{http-C1F-sW0Z.cjs → http-BqrOCUOK.cjs} +1 -1
  11. package/dist/{http-bjnB3G93.js → http-CZfnujnl.js} +1 -1
  12. package/dist/kv-B0eIwj06.d.cts +238 -0
  13. package/dist/kv-B0eIwj06.d.ts +238 -0
  14. package/dist/{kv-cache-MVXUHOtN.cjs → kv-cache-DFpIzPHz.cjs} +1 -1
  15. package/dist/{kv-cache-KQ9dNdBF.js → kv-cache-DT7zGfKY.js} +1 -1
  16. package/dist/{middleware-DcZbCWUu.js → middleware-Dz8iJh0H.js} +3 -3
  17. package/dist/{mod-BkTi19dI.d.ts → mod-BD6xjFNY.d.ts} +1 -1
  18. package/dist/{mod-DB2NOzQF.d.cts → mod-Bl1EEZMj.d.cts} +1 -1
  19. package/dist/{mod-CMtF0VVy.d.ts → mod-SgCN1wPF.d.ts} +1 -1
  20. package/dist/{mod-D2Z9MiCm.d.cts → mod-rDDnkuR8.d.cts} +1 -1
  21. package/dist/mod.cjs +5 -4
  22. package/dist/mod.d.cts +6 -6
  23. package/dist/mod.d.ts +6 -6
  24. package/dist/mod.js +6 -6
  25. package/dist/otel/mod.d.cts +1 -1
  26. package/dist/otel/mod.d.ts +1 -1
  27. package/dist/{portable-collection-dSrn_Flq.js → portable-collection-BrBFw0DP.js} +1 -1
  28. package/dist/{portable-collection-DoWiXH0U.cjs → portable-collection-CJ6-QUgP.cjs} +1 -1
  29. package/dist/sig/mod.cjs +2 -2
  30. package/dist/sig/mod.js +2 -2
  31. package/dist/utils/mod.cjs +1 -1
  32. package/dist/utils/mod.d.cts +1 -1
  33. package/dist/utils/mod.d.ts +1 -1
  34. package/dist/utils/mod.js +1 -1
  35. package/package.json +6 -6
  36. package/skills/fedify/SKILL.md +71 -5
  37. package/dist/kv-B2mzK5tl.d.cts +0 -112
  38. package/dist/kv-B2mzK5tl.d.ts +0 -112
@@ -1,112 +0,0 @@
1
- /// <reference lib="esnext.temporal" />
2
- //#region src/federation/kv.d.ts
3
- /**
4
- * A key for a key–value store. An array of one or more strings.
5
- *
6
- * @since 0.5.0
7
- */
8
- type KvKey = readonly [string] | readonly [string, ...string[]];
9
- /**
10
- * Additional options for setting a value in a key–value store.
11
- *
12
- * @since 0.5.0
13
- */
14
- interface KvStoreSetOptions {
15
- /**
16
- * The time-to-live (TTL) for the value.
17
- */
18
- ttl?: Temporal.Duration;
19
- }
20
- /**
21
- * An entry returned by the {@link KvStore.list} method.
22
- *
23
- * @since 1.10.0
24
- */
25
- interface KvStoreListEntry {
26
- /**
27
- * The key of the entry.
28
- */
29
- readonly key: KvKey;
30
- /**
31
- * The value of the entry.
32
- */
33
- readonly value: unknown;
34
- }
35
- /**
36
- * An abstract interface for a key–value store.
37
- *
38
- * @since 0.5.0
39
- */
40
- interface KvStore {
41
- /**
42
- * Gets the value for the given key.
43
- * @param key The key to get the value for.
44
- * @returns The value for the key, including `null` if stored, or `undefined`
45
- * if the key does not exist.
46
- * @template T The type of the value to get.
47
- */
48
- get<T = unknown>(key: KvKey): Promise<T | undefined>;
49
- /**
50
- * Sets the value for the given key.
51
- * @param key The key to set the value for.
52
- * @param value The value to set. `null` is a storable value.
53
- * @param options Additional options for setting the value.
54
- */
55
- set(key: KvKey, value: unknown, options?: KvStoreSetOptions): Promise<void>;
56
- /**
57
- * Deletes the value for the given key.
58
- * @param key The key to delete.
59
- */
60
- delete(key: KvKey): Promise<void>;
61
- /**
62
- * Compare-and-swap (CAS) operation for the key–value store.
63
- * @param key The key to perform the CAS operation on.
64
- * @param expectedValue The expected value for the key.
65
- * @param newValue The new value to set if the expected value matches.
66
- * @param options Additional options for setting the value.
67
- * @return `true` if the CAS operation was successful, `false` otherwise.
68
- * @since 1.8.0
69
- */
70
- cas?: (key: KvKey, expectedValue: unknown, newValue: unknown, options?: KvStoreSetOptions) => Promise<boolean>;
71
- /**
72
- * Lists all entries in the store that match the given prefix.
73
- * If no prefix is given, all entries are returned.
74
- * @param prefix The prefix to filter keys by. If not specified, all entries
75
- * are returned.
76
- * @returns An async iterable of entries matching the prefix.
77
- * @since 1.10.0
78
- * @since 2.0.0 This method is now required instead of optional.
79
- */
80
- list(prefix?: KvKey): AsyncIterable<KvStoreListEntry>;
81
- }
82
- /**
83
- * A key–value store that stores values in memory.
84
- * Do not use this in production as it does not persist values.
85
- *
86
- * @since 0.5.0
87
- */
88
- declare class MemoryKvStore implements KvStore {
89
- #private;
90
- /**
91
- * {@inheritDoc KvStore.get}
92
- */
93
- get<T = unknown>(key: KvKey): Promise<T | undefined>;
94
- /**
95
- * {@inheritDoc KvStore.set}
96
- */
97
- set(key: KvKey, value: unknown, options?: KvStoreSetOptions): Promise<void>;
98
- /**
99
- * {@inheritDoc KvStore.delete}
100
- */
101
- delete(key: KvKey): Promise<void>;
102
- /**
103
- * {@inheritDoc KvStore.cas}
104
- */
105
- cas(key: KvKey, expectedValue: unknown, newValue: unknown, options?: KvStoreSetOptions): Promise<boolean>;
106
- /**
107
- * {@inheritDoc KvStore.list}
108
- */
109
- list(prefix?: KvKey): AsyncIterable<KvStoreListEntry>;
110
- }
111
- //#endregion
112
- export { MemoryKvStore as a, KvStoreSetOptions as i, KvStore as n, KvStoreListEntry as r, KvKey as t };