From 034463798df62fd2a1950179c19a6f06bb87caf6 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Tue, 22 Dec 2020 17:04:31 +0100 Subject: [PATCH] deprecate toJSON --- src/utils/Doc.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/Doc.js b/src/utils/Doc.js index bec8966b..b18ea09e 100644 --- a/src/utils/Doc.js +++ b/src/utils/Doc.js @@ -217,6 +217,9 @@ export class Doc extends Observable { /** * Converts the entire document into a js object, recursively traversing each yjs type + * Doesn't log types that have not been defined (using ydoc.getType(..)). + * + * @deprecated Do not use this method and rather call toJSON directly on the shared types. * * @return {Object} */