@powersync/service-errors 0.2.0 → 0.2.2

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/codes.d.ts CHANGED
@@ -199,6 +199,20 @@ export declare enum ErrorCode {
199
199
  * Replication will be stopped for this Change Stream. Replication will restart with a new Change Stream.
200
200
  */
201
201
  PSYNC_S1344 = "PSYNC_S1344",
202
+ /**
203
+ * Failed to read MongoDB Change Stream due to a timeout.
204
+ *
205
+ * This may happen if there is a significant delay on the source database in reading the change stream.
206
+ *
207
+ * If this is not resolved after retries, replication may need to be restarted from scratch.
208
+ */
209
+ PSYNC_S1345 = "PSYNC_S1345",
210
+ /**
211
+ * Failed to read MongoDB Change Stream.
212
+ *
213
+ * See the error cause for more details.
214
+ */
215
+ PSYNC_S1346 = "PSYNC_S1346",
202
216
  /**
203
217
  * Max transaction tries exceeded.
204
218
  */
@@ -249,6 +263,12 @@ export declare enum ErrorCode {
249
263
  * Maximum active concurrent connections limit has been reached.
250
264
  */
251
265
  PSYNC_S2304 = "PSYNC_S2304",
266
+ /**
267
+ * Too many buckets.
268
+ *
269
+ * There is currently a limit of 1000 buckets per active connection.
270
+ */
271
+ PSYNC_S2305 = "PSYNC_S2305",
252
272
  /**
253
273
  * Could not get clusterTime.
254
274
  */
package/dist/codes.js CHANGED
@@ -212,6 +212,20 @@ export var ErrorCode;
212
212
  * Replication will be stopped for this Change Stream. Replication will restart with a new Change Stream.
213
213
  */
214
214
  ErrorCode["PSYNC_S1344"] = "PSYNC_S1344";
215
+ /**
216
+ * Failed to read MongoDB Change Stream due to a timeout.
217
+ *
218
+ * This may happen if there is a significant delay on the source database in reading the change stream.
219
+ *
220
+ * If this is not resolved after retries, replication may need to be restarted from scratch.
221
+ */
222
+ ErrorCode["PSYNC_S1345"] = "PSYNC_S1345";
223
+ /**
224
+ * Failed to read MongoDB Change Stream.
225
+ *
226
+ * See the error cause for more details.
227
+ */
228
+ ErrorCode["PSYNC_S1346"] = "PSYNC_S1346";
215
229
  // ## PSYNC_S14xx: MongoDB storage replication issues
216
230
  /**
217
231
  * Max transaction tries exceeded.
@@ -269,6 +283,12 @@ export var ErrorCode;
269
283
  * Maximum active concurrent connections limit has been reached.
270
284
  */
271
285
  ErrorCode["PSYNC_S2304"] = "PSYNC_S2304";
286
+ /**
287
+ * Too many buckets.
288
+ *
289
+ * There is currently a limit of 1000 buckets per active connection.
290
+ */
291
+ ErrorCode["PSYNC_S2305"] = "PSYNC_S2305";
272
292
  // ## PSYNC_S23xx: Sync API errors - MongoDB Storage
273
293
  /**
274
294
  * Could not get clusterTime.
package/dist/codes.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"codes.js","sourceRoot":"","sources":["../src/codes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,SAkXX;AAlXD,WAAY,SAAS;IACnB,mCAAmC;IAEnC;;OAEG;IACH,wCAA2B,CAAA;IAE3B,qCAAqC;IAErC,iDAAiD;IAEjD,oCAAoC;IAEpC,+CAA+C;IAE/C,6CAA6C;IAE7C,wCAAwC;IAExC,gCAAgC;IAEhC;;;;OAIG;IACH,wCAA2B,CAAA;IAE3B;;;;;;;;OAQG;IACH,wCAA2B,CAAA;IAE3B,qCAAqC;IAErC;;;;;OAKG;IACH,wCAA2B,CAAA;IAE3B;;;;;;;;;OASG;IACH,wCAA2B,CAAA;IAE3B;;;;OAIG;IACH,wCAA2B,CAAA;IAE3B,8CAA8C;IAE9C;;;;OAIG;IACH,wCAA2B,CAAA;IAE3B;;;;;OAKG;IACH,wCAA2B,CAAA;IAE3B;;;;OAIG;IACH,wCAA2B,CAAA;IAE3B;;;;OAIG;IACH,wCAA2B,CAAA;IAE3B;;;;OAIG;IACH,wCAA2B,CAAA;IAE3B;;;;OAIG;IACH,wCAA2B,CAAA;IAE3B;;;;OAIG;IACH,wCAA2B,CAAA;IAE3B;;;;OAIG;IACH,wCAA2B,CAAA;IAE3B;;;;OAIG;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,KAAT,SAAS,QAyYpB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@powersync/service-errors",
3
3
  "repository": "https://github.com/powersync-ja/powersync-service",
4
- "version": "0.2.0",
4
+ "version": "0.2.2",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "FSL-1.1-Apache-2.0",