@hocuspocus/extension-database
Advanced tools
Comparing version 2.9.2-rc.0 to 2.10.0
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
78146
2030
0
Updated@hocuspocus/server@^2.10.0