@go-avro/avro-js 0.0.120 → 0.1.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.
@@ -151,7 +151,12 @@ export class AvroQueryClient {
151
151
  patchMemberLocation(queryClient, data);
152
152
  });
153
153
  // schedule_locked lives in a Redis lock, not a row.
154
- for (const event of ['schedule_complete', 'scheduling_error', 'schedule_adjustments']) {
154
+ for (const event of [
155
+ 'schedule_started',
156
+ 'schedule_complete',
157
+ 'scheduling_error',
158
+ 'schedule_adjustments',
159
+ ]) {
155
160
  on(event, () => {
156
161
  queryClient.invalidateQueries({ queryKey: ['companies'] });
157
162
  });
@@ -131,7 +131,10 @@ AvroQueryClient.prototype.useScheduleRoutes = function () {
131
131
  });
132
132
  },
133
133
  onSuccess: () => {
134
- this.syncAfterMutation('route', 'job', 'company');
134
+ // The scheduling banner (schedule_locked) is redis state the
135
+ // changes stream never carries: always refetch the company.
136
+ queryClient.invalidateQueries({ queryKey: ['companies'] });
137
+ this.syncAfterMutation('route', 'job');
135
138
  },
136
139
  });
137
140
  };
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const AVRO_JS_VERSION = "0.0.120";
1
+ export declare const AVRO_JS_VERSION = "0.1.0";
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.120';
3
+ export const AVRO_JS_VERSION = '0.1.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-avro/avro-js",
3
- "version": "0.0.120",
3
+ "version": "0.1.0",
4
4
  "description": "JS client for Avro backend integration.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",