Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hocuspocus/extension-database

Package Overview
Dependencies
Maintainers
5
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hocuspocus/extension-database - npm Package Compare versions

Comparing version 2.9.2-rc.0 to 2.10.0

2

dist/packages/provider/src/HocuspocusProvider.d.ts

@@ -124,3 +124,3 @@ import * as mutex from 'lib0/mutex';

get isAuthenticationRequired(): boolean;
connect(): Promise<unknown>;
connect(): Promise<any>;
disconnect(): void;

@@ -127,0 +127,0 @@ onOpen(event: Event): Promise<void>;

@@ -105,3 +105,3 @@ import type { MessageEvent } from 'ws';

onStatus(data: onStatusParameters): Promise<void>;
attach(provider: HocuspocusProvider): void;
attach(provider: HocuspocusProvider): Promise<any> | undefined;
detach(provider: HocuspocusProvider): void;

@@ -108,0 +108,0 @@ setConfiguration(configuration?: Partial<HocuspocusProviderWebsocketConfiguration>): void;

@@ -48,9 +48,9 @@ import type { AbstractType, YArrayEvent } from 'yjs';

private getYThread;
createThread(data: TCollabThread): TCollabThread | null;
updateThread(id: TCollabThread['id'], data: Pick<TCollabThread, 'data'>): TCollabThread | null;
createThread(data: Omit<TCollabThread, '_id' | 'createdAt' | 'updatedAt' | 'comments'>): TCollabThread | null;
updateThread(id: TCollabThread['id'], data: Partial<Pick<TCollabThread, 'data' | 'resolvedAt'>>): TCollabThread | null;
deleteThread(id: TCollabThread['id']): void;
getThreadComments(threadId: TCollabThread['id']): TCollabComment[] | null;
getThreadComment(threadId: TCollabThread['id'], commentId: TCollabComment['id']): TCollabComment | null;
addComment(threadId: TCollabThread['id'], data: TCollabComment): TCollabThread | null;
updateComment(threadId: TCollabThread['id'], commentId: TCollabComment['id'], data: TCollabComment): TCollabThread | null;
addComment(threadId: TCollabThread['id'], data: Omit<TCollabComment, 'id' | 'updatedAt' | 'createdAt'>): TCollabThread | null;
updateComment(threadId: TCollabThread['id'], commentId: TCollabComment['id'], data: Partial<Pick<TCollabComment, 'data' | 'content'>>): TCollabThread | null;
deleteComment(threadId: TCollabThread['id'], commentId: TCollabComment['id']): TCollabThread | null;

@@ -57,0 +57,0 @@ watchThreads(callback: () => void): void;

@@ -91,2 +91,3 @@ import { Encoder } from 'lib0/encoding';

updatedAt: number;
resolvedAt?: string;
comments: TCollabComment<CommentData>[];

@@ -93,0 +94,0 @@ data: Data;

{
"name": "@hocuspocus/extension-database",
"description": "a generic Hocuspocus persistence driver for the database",
"version": "2.9.2-rc.0",
"version": "2.10.0",
"homepage": "https://hocuspocus.dev",

@@ -30,3 +30,3 @@ "keywords": [

"dependencies": {
"@hocuspocus/server": "^2.9.2-rc.0"
"@hocuspocus/server": "^2.10.0"
},

@@ -33,0 +33,0 @@ "peerDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc