@go-avro/avro-js 0.0.57 → 0.0.58

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.
@@ -17,10 +17,6 @@ export const AvroQueryClientProvider = ({ baseUrl, authManager, queryClient, con
17
17
  return () => {
18
18
  try {
19
19
  client.teardownSocketInvalidation();
20
- // Socket is NOT disconnected here. Its lifecycle is managed by the
21
- // AvroQueryClient constructor and token refresh callbacks.
22
- // Disconnecting here breaks React StrictMode — the constructor's
23
- // async connect flow has already completed, so the socket stays dead.
24
20
  }
25
21
  catch (e) {
26
22
  // ignore
@@ -2,4 +2,12 @@ export type RetryStrategy = 'fixed' | 'exponential' | ((attempt: number) => numb
2
2
  export interface CancelToken {
3
3
  isCancelled(): boolean;
4
4
  }
5
- export type ClientId = 'prod-web' | 'beta-web' | 'prod-app' | 'beta-app';
5
+ export declare const ClientId: {
6
+ readonly PROD_WEB: "prod-web";
7
+ readonly PROD_APP: "prod-app";
8
+ readonly BETA_WEB: "beta-web";
9
+ readonly BETA_APP: "beta-app";
10
+ readonly DEV_WEB: "dev-web";
11
+ readonly DEV_APP: "dev-app";
12
+ };
13
+ export type ClientId = (typeof ClientId)[keyof typeof ClientId];
@@ -1 +1,8 @@
1
- export {};
1
+ export const ClientId = {
2
+ PROD_WEB: 'prod-web',
3
+ PROD_APP: 'prod-app',
4
+ BETA_WEB: 'beta-web',
5
+ BETA_APP: 'beta-app',
6
+ DEV_WEB: 'dev-web',
7
+ DEV_APP: 'dev-app',
8
+ };
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const AVRO_JS_VERSION = "0.0.57";
1
+ export declare const AVRO_JS_VERSION = "0.0.58";
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // AUTO-GENERATED by scripts/gen-version.js — do not edit by hand.
2
2
  // Regenerated from package.json by the `prebuild` npm hook.
3
- export const AVRO_JS_VERSION = '0.0.57';
3
+ export const AVRO_JS_VERSION = '0.0.58';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-avro/avro-js",
3
- "version": "0.0.57",
3
+ "version": "0.0.58",
4
4
  "description": "JS client for Avro backend integration.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",