Document Versioning like prosemirror in quill

I am using y-quill with a y-websocket, I need help about making versions of documents in y-quill like prosemirror example in yjs.dev.