@go-avro/avro-js 0.1.12 → 0.1.13

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.
@@ -483,8 +483,10 @@ export class AvroQueryClient {
483
483
  this.authStateListeners = this.authStateListeners.filter((c) => c !== cb);
484
484
  }
485
485
  setAuthState(state) {
486
- this.authStateListeners.forEach((cb) => cb(state));
486
+ // Store before notifying so listeners that read getAuthState()
487
+ // (e.g. useSyncExternalStore snapshots) see the new value.
487
488
  this._authState = state;
489
+ this.authStateListeners.forEach((cb) => cb(state));
488
490
  }
489
491
  getAuthState() {
490
492
  return this._authState;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const AVRO_JS_VERSION = "0.1.12";
1
+ export declare const AVRO_JS_VERSION = "0.1.13";
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.1.12';
3
+ export const AVRO_JS_VERSION = '0.1.13';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-avro/avro-js",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "JS client for Avro backend integration.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",