{"record":{"id":"aeaabece5648fb7b","repo":"ueberdosis/tiptap","slug":"tiptap-warn-deprecated-the-user-command-is-d","errorCode":null,"errorMessage":"[tiptap warn]: DEPRECATED: The \"user\" command is deprecated. Please use \"updateUser\" instead. Read more: https://tiptap.dev/api/extensions/collaboration-caret","messagePattern":"\\[tiptap warn\\]: DEPRECATED: The \"user\" command is deprecated\\. Please use \"updateUser\" instead\\. Read more: https://tiptap\\.dev/api/extensions/collaboration-caret","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/extension-collaboration-caret/src/collaboration-caret.ts","lineNumber":167,"sourceCode":"    }\n  },\n\n  addStorage() {\n    return {\n      users: [],\n    }\n  },\n\n  addCommands() {\n    return {\n      updateUser: attributes => () => {\n        this.options.provider.awareness.setLocalStateField('user', attributes)\n        return true\n      },\n      user:\n        attributes =>\n        ({ editor }) => {\n          console.warn(\n            '[tiptap warn]: DEPRECATED: The \"user\" command is deprecated. Please use \"updateUser\" instead. Read more: https://tiptap.dev/api/extensions/collaboration-caret',\n          )\n\n          return editor.commands.updateUser(attributes)\n        },\n    }\n  },\n\n  addProseMirrorPlugins() {\n    const { provider } = this.options\n    const storage = this.storage\n    const user = this.options.user\n\n    // Owns the awareness 'update' subscription so it's torn down when the editor\n    // is destroyed. Without this, the listener would keep the editor reachable\n    // from a shared provider's awareness emitter and leak memory across editors.\n    const awarenessListenerPlugin = new Plugin({\n      key: new PluginKey('collaborationCaretAwarenessListener'),","sourceCodeStart":149,"sourceCodeEnd":185,"githubUrl":"https://github.com/ueberdosis/tiptap/blob/496d53afd7e4e3c7424b4749adeff4f45e27ddb0/packages/extension-collaboration-caret/src/collaboration-caret.ts#L149-L185","documentation":"Error \"[tiptap warn]: DEPRECATED: The \"user\" command is deprecated. Please use \"updateUser\" instead. Read more: https://tiptap.dev/api/extensions/collaboration-caret\" thrown in ueberdosis/tiptap.","triggerScenarios":"Thrown at packages/extension-collaboration-caret/src/collaboration-caret.ts:167 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"496d53afd7e4e3c7424b4749adeff4f45e27ddb0","analyzedAt":"2026-08-26T22:41:43.400Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}