@go-avro/avro-js 0.0.67 → 0.0.68

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.
@@ -107,13 +107,20 @@ const SOCKET_EVENT_CONFIG = {
107
107
  entityKey: 'companies',
108
108
  action: 'create',
109
109
  fetchPath: (id) => `/company/${id}`,
110
+ alsoInvalidate: [['/company/list']],
110
111
  },
111
112
  update_company: {
112
113
  entityKey: 'companies',
113
114
  action: 'update',
114
115
  fetchPath: (id) => `/company/${id}`,
116
+ alsoInvalidate: [['companies', 'current'], ['/company/list']],
117
+ },
118
+ delete_company: {
119
+ entityKey: 'companies',
120
+ action: 'delete',
121
+ fetchPath: null,
122
+ alsoInvalidate: [['companies', 'current'], ['/company/list']],
115
123
  },
116
- delete_company: { entityKey: 'companies', action: 'delete', fetchPath: null },
117
124
  // ── Users (no single-entity socket events) ──
118
125
  user_updated: { invalidateKeys: [['users'], ['user']] },
119
126
  update_users: { invalidateKeys: [['users'], ['user']] },
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const AVRO_JS_VERSION = "0.0.67";
1
+ export declare const AVRO_JS_VERSION = "0.0.68";
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.67';
3
+ export const AVRO_JS_VERSION = '0.0.68';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-avro/avro-js",
3
- "version": "0.0.67",
3
+ "version": "0.0.68",
4
4
  "description": "JS client for Avro backend integration.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",