@crombolo/core 0.23.0 → 0.25.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/documents.ts +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crombolo/core",
3
- "version": "0.23.0",
3
+ "version": "0.25.0",
4
4
  "description": "Domain model, entity keys and shared contracts for crombolo. No I/O.",
5
5
  "license": "MIT",
6
6
  "author": "Crombolo",
package/src/documents.ts CHANGED
@@ -57,6 +57,11 @@ export interface DocumentAggregate {
57
57
  edited: boolean
58
58
  values: DocumentValue[]
59
59
  variants: DocumentVariant[]
60
+ /**
61
+ * Which state of the draft this is (story 172): changes whenever a save,
62
+ * publish, rollback or value upgrade changes what an editor would see. Opaque.
63
+ */
64
+ revision?: string
60
65
  }
61
66
 
62
67
  /** One property that failed validation, in the terms the editor highlights. */