convex 1.25.0-alpha.3 → 1.25.0

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/CHANGELOG.md CHANGED
@@ -2,8 +2,11 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
- - Set `process.env.NODE_ENV = "production"` during bundling. This will result in
6
- different code being bundled!
5
+ - Set `process.env.NODE_ENV = "production"` during Convex function bundling.
6
+ This will result in different code being bundled from some packages, generally
7
+ faster code.
8
+
9
+ - Smaller bundles via minification.
7
10
 
8
11
  - ConvexHttpClient mutations are now queued by default, making the
9
12
  ConvexHttpClient match the behavior of ConvexClient and ConvexReactClient.
@@ -34,6 +37,13 @@
34
37
  `mutation.withOptimisticUpdate()`: an optimistic update function is expected
35
38
  to run synchronously.
36
39
 
40
+ - Experimental onServerDisconnectError() callback option for Convex clients.
41
+
42
+ This is a stopgap client callback to report unusual server disconnect errors.
43
+ The content of these messages, which messages trigger the callback, and the
44
+ existence of the callback are all subject to change as we develop better
45
+ interfaces for disconnect metrics.
46
+
37
47
  ## 1.24.8
38
48
 
39
49
  - Restore short retry timer for WebSocket reconnects initiated by an error on
@@ -28,7 +28,7 @@ var convex = (() => {
28
28
  });
29
29
 
30
30
  // src/index.ts
31
- var version = "1.25.0-alpha.3";
31
+ var version = "1.25.0";
32
32
 
33
33
  // src/values/base64.ts
34
34
  var base64_exports = {};
@@ -1687,7 +1687,7 @@ var convex = (() => {
1687
1687
  msg += `: ${event.reason}`;
1688
1688
  }
1689
1689
  this.logger.log(msg);
1690
- if (this.onServerDisconnectError) {
1690
+ if (this.onServerDisconnectError && event.reason) {
1691
1691
  this.onServerDisconnectError(msg);
1692
1692
  }
1693
1693
  }