@apibara/plugin-drizzle 2.1.0-beta.17 → 2.1.0-beta.19
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/dist/index.cjs +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +3 -3
- package/src/persistence.ts +3 -1
package/dist/index.cjs
CHANGED
|
@@ -201,7 +201,9 @@ async function persistState(props) {
|
|
|
201
201
|
target: checkpoints.id,
|
|
202
202
|
set: {
|
|
203
203
|
orderKey: Number(endCursor.orderKey),
|
|
204
|
-
|
|
204
|
+
// Explicitly set the unique key to `null` to indicate that it has been deleted
|
|
205
|
+
// Otherwise drizzle will not update its value.
|
|
206
|
+
uniqueKey: endCursor.uniqueKey ? endCursor.uniqueKey : null
|
|
205
207
|
}
|
|
206
208
|
});
|
|
207
209
|
if (filter) {
|
package/dist/index.mjs
CHANGED
|
@@ -195,7 +195,9 @@ async function persistState(props) {
|
|
|
195
195
|
target: checkpoints.id,
|
|
196
196
|
set: {
|
|
197
197
|
orderKey: Number(endCursor.orderKey),
|
|
198
|
-
|
|
198
|
+
// Explicitly set the unique key to `null` to indicate that it has been deleted
|
|
199
|
+
// Otherwise drizzle will not update its value.
|
|
200
|
+
uniqueKey: endCursor.uniqueKey ? endCursor.uniqueKey : null
|
|
199
201
|
}
|
|
200
202
|
});
|
|
201
203
|
if (filter) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apibara/plugin-drizzle",
|
|
3
|
-
"version": "2.1.0-beta.
|
|
3
|
+
"version": "2.1.0-beta.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"vitest": "^1.6.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@apibara/indexer": "2.1.0-beta.
|
|
49
|
-
"@apibara/protocol": "2.1.0-beta.
|
|
48
|
+
"@apibara/indexer": "2.1.0-beta.19",
|
|
49
|
+
"@apibara/protocol": "2.1.0-beta.19",
|
|
50
50
|
"postgres-range": "^1.1.4"
|
|
51
51
|
}
|
|
52
52
|
}
|
package/src/persistence.ts
CHANGED
|
@@ -174,7 +174,9 @@ export async function persistState<
|
|
|
174
174
|
target: checkpoints.id,
|
|
175
175
|
set: {
|
|
176
176
|
orderKey: Number(endCursor.orderKey),
|
|
177
|
-
|
|
177
|
+
// Explicitly set the unique key to `null` to indicate that it has been deleted
|
|
178
|
+
// Otherwise drizzle will not update its value.
|
|
179
|
+
uniqueKey: endCursor.uniqueKey ? endCursor.uniqueKey : null,
|
|
178
180
|
},
|
|
179
181
|
});
|
|
180
182
|
|