Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Definition of "document" vs "non-document" delta #81

Closed
x11x opened this issue Jul 8, 2022 · 1 comment
Closed

Definition of "document" vs "non-document" delta #81

x11x opened this issue Jul 8, 2022 · 1 comment

Comments

@x11x
Copy link
Contributor

x11x commented Jul 8, 2022

Hi,

Am I correct in understanding that a "document" delta is one which contains only "insert" operations? Are there additional constraints? i.e. it must end with a newline?
A "non-document" is the inverse?

I can't find this documented anywhere. Do you think it would be worth adding a sentence or two explaining this distinction at the start of the Readme somewhere, since the API docs refer to "document" and "non-document" deltas?

Thanks

@jhchen
Copy link
Member

jhchen commented Jul 12, 2022

It's meant to be explained in the third paragraph of the Readme. A non-document is simply a delta that is not a document. So it does not only have inserts.

@jhchen jhchen closed this as completed Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants