dacument 1.2.1 → 1.2.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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 simple-crdts contributors
3
+ Copyright (c) 2025 dacument contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1818,7 +1818,7 @@ export class Dacument {
1818
1818
  const shadow = this.shadowFor(field, state);
1819
1819
  const { patches, result } = this.capturePatches((listener) => shadow.onChange(listener), () => mutate(shadow));
1820
1820
  if (patches.length === 0)
1821
- return;
1821
+ return result;
1822
1822
  this.queueLocalOp({
1823
1823
  iss: this.actorId,
1824
1824
  sub: this.docId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dacument",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Schema-driven CRDT document with signed ops, role-based ACLs, and per-actor auditability.",
5
5
  "keywords": [
6
6
  "crdt",