automerge / automerge-swift

Swift language bindings presenting Automerge
https://automerge.org/automerge-swift/documentation/automerge/
MIT License
233 stars 13 forks source link

Accessing history timestamp #104

Open lightsprint09 opened 8 months ago

lightsprint09 commented 8 months ago

As far as I know, every change encodes a wall clock time stamp. Is this already exposed?

heckj commented 8 months ago

That's not exposed from the core library (as of version 0.5.7)

heckj commented 8 months ago

/cc @alexjg

alexjg commented 8 months ago

It is possible to set the timestamp on a Transaction in the core library, but we are not using transactions here, we are using AutoCommit. I think what we should do is to add a configuration option to AutoCommit to allow you to annotate changes with a timestamp etc. (there are other metadata features we will want soon I think). Once we have that API we can expose the same API in Swift.

alexjg commented 8 months ago

I've added an issue in the automerge repo here: https://github.com/automerge/automerge/issues/847