@nxtedition/lib 20.0.2 → 20.0.4

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.
package/couch.js CHANGED
@@ -120,6 +120,17 @@ export function makeCouch(opts) {
120
120
  })
121
121
  }
122
122
 
123
+ /**
124
+ * Fetches changes from the CouchDB changes feed.
125
+ *
126
+ * @param {Object} [options={}] - The options for fetching changes.
127
+ * @param {AbortSignal} [options.signal=null] - The signal to abort the request.
128
+ * @param {boolean} [options.descending=false] - Whether to return changes in descending order.
129
+ * @param {boolean} [options.include_docs=false] - Whether to include the document with each change.
130
+ * @param {number} [options.seq_interval=null] - The interval at which to return sequence numbers.
131
+ * @param {string} [options.since=null] - The sequence number to start from.
132
+ * @yields {Object} The changes from the CouchDB changes feed.
133
+ */
123
134
  async function* changes({ client = defaultClient, signal = null, ...options } = {}) {
124
135
  const params = {}
125
136
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "20.0.2",
3
+ "version": "20.0.4",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",
package/weakCache.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export function makeWeakCache<FactoryArgs extends any[], CachedType>(
1
+ export function makeWeakCache<FactoryArgs extends unknown[], CachedType>(
2
2
  valueSelector: (...args: FactoryArgs) => CachedType,
3
3
  keySelector?: (...args: FactoryArgs) => string,
4
4
  ): (...args: FactoryArgs) => CachedType