@korajs/core 0.3.0 → 0.3.2

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.
@@ -275,6 +275,9 @@ type KoraEvent = {
275
275
  } | {
276
276
  type: 'sync:disconnected';
277
277
  reason: string;
278
+ } | {
279
+ type: 'sync:auth-failed';
280
+ reason: string;
278
281
  } | {
279
282
  type: 'sync:sent';
280
283
  operations: Operation[];
@@ -275,6 +275,9 @@ type KoraEvent = {
275
275
  } | {
276
276
  type: 'sync:disconnected';
277
277
  reason: string;
278
+ } | {
279
+ type: 'sync:auth-failed';
280
+ reason: string;
278
281
  } | {
279
282
  type: 'sync:sent';
280
283
  operations: Operation[];
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RandomSource, F as FieldKind, a as FieldDescriptor, C as CustomResolver, S as SchemaDefinition, b as CollectionDefinition, c as RelationDefinition, O as OperationType, d as Operation, V as VersionVector } from './events-D_kDPDC9.cjs';
2
- export { e as CONNECTION_QUALITIES, f as ConnectionQuality, g as Constraint, H as HLCTimestamp, h as HybridLogicalClock, K as KoraEvent, i as KoraEventByType, j as KoraEventEmitter, k as KoraEventListener, l as KoraEventType, M as MERGE_STRATEGIES, m as MergeStrategy, n as MergeTrace, o as OnDeleteAction, p as OperationInput, q as RelationType, T as TimeSource, r as createOperation, s as isValidOperation, v as verifyOperationIntegrity } from './events-D_kDPDC9.cjs';
1
+ import { R as RandomSource, F as FieldKind, a as FieldDescriptor, C as CustomResolver, S as SchemaDefinition, b as CollectionDefinition, c as RelationDefinition, O as OperationType, d as Operation, V as VersionVector } from './events-7Fhdjxd2.cjs';
2
+ export { e as CONNECTION_QUALITIES, f as ConnectionQuality, g as Constraint, H as HLCTimestamp, h as HybridLogicalClock, K as KoraEvent, i as KoraEventByType, j as KoraEventEmitter, k as KoraEventListener, l as KoraEventType, M as MERGE_STRATEGIES, m as MergeStrategy, n as MergeTrace, o as OnDeleteAction, p as OperationInput, q as RelationType, T as TimeSource, r as createOperation, s as isValidOperation, v as verifyOperationIntegrity } from './events-7Fhdjxd2.cjs';
3
3
 
4
4
  /**
5
5
  * Base error class for all Kora errors.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RandomSource, F as FieldKind, a as FieldDescriptor, C as CustomResolver, S as SchemaDefinition, b as CollectionDefinition, c as RelationDefinition, O as OperationType, d as Operation, V as VersionVector } from './events-D_kDPDC9.js';
2
- export { e as CONNECTION_QUALITIES, f as ConnectionQuality, g as Constraint, H as HLCTimestamp, h as HybridLogicalClock, K as KoraEvent, i as KoraEventByType, j as KoraEventEmitter, k as KoraEventListener, l as KoraEventType, M as MERGE_STRATEGIES, m as MergeStrategy, n as MergeTrace, o as OnDeleteAction, p as OperationInput, q as RelationType, T as TimeSource, r as createOperation, s as isValidOperation, v as verifyOperationIntegrity } from './events-D_kDPDC9.js';
1
+ import { R as RandomSource, F as FieldKind, a as FieldDescriptor, C as CustomResolver, S as SchemaDefinition, b as CollectionDefinition, c as RelationDefinition, O as OperationType, d as Operation, V as VersionVector } from './events-7Fhdjxd2.js';
2
+ export { e as CONNECTION_QUALITIES, f as ConnectionQuality, g as Constraint, H as HLCTimestamp, h as HybridLogicalClock, K as KoraEvent, i as KoraEventByType, j as KoraEventEmitter, k as KoraEventListener, l as KoraEventType, M as MERGE_STRATEGIES, m as MergeStrategy, n as MergeTrace, o as OnDeleteAction, p as OperationInput, q as RelationType, T as TimeSource, r as createOperation, s as isValidOperation, v as verifyOperationIntegrity } from './events-7Fhdjxd2.js';
3
3
 
4
4
  /**
5
5
  * Base error class for all Kora errors.
@@ -1,5 +1,5 @@
1
- import { p as OperationInput, j as KoraEventEmitter, l as KoraEventType, k as KoraEventListener, i as KoraEventByType, d as Operation } from './events-D_kDPDC9.cjs';
2
- export { t as validateOperationParams } from './events-D_kDPDC9.cjs';
1
+ import { p as OperationInput, j as KoraEventEmitter, l as KoraEventType, k as KoraEventListener, i as KoraEventByType, d as Operation } from './events-7Fhdjxd2.cjs';
2
+ export { t as validateOperationParams } from './events-7Fhdjxd2.cjs';
3
3
 
4
4
  /**
5
5
  * Compute the content-addressed ID for an operation using SHA-256.
@@ -1,5 +1,5 @@
1
- import { p as OperationInput, j as KoraEventEmitter, l as KoraEventType, k as KoraEventListener, i as KoraEventByType, d as Operation } from './events-D_kDPDC9.js';
2
- export { t as validateOperationParams } from './events-D_kDPDC9.js';
1
+ import { p as OperationInput, j as KoraEventEmitter, l as KoraEventType, k as KoraEventListener, i as KoraEventByType, d as Operation } from './events-7Fhdjxd2.js';
2
+ export { t as validateOperationParams } from './events-7Fhdjxd2.js';
3
3
 
4
4
  /**
5
5
  * Compute the content-addressed ID for an operation using SHA-256.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@korajs/core",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Schema definitions, operations, Hybrid Logical Clock, version vectors, and type inference for Kora.js",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",