@hocuspocus/extension-redis 3.1.12 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import type { IncomingMessage } from "http";
1
+ import type { IncomingMessage } from "node:http";
2
2
  import { type CloseEvent } from "@hocuspocus/common";
3
3
  import type WebSocket from "ws";
4
4
  import type Document from "./Document.ts";
@@ -1,4 +1,4 @@
1
- import type { IncomingMessage as HTTPIncomingMessage } from "http";
1
+ import type { IncomingMessage as HTTPIncomingMessage } from "node:http";
2
2
  import { type CloseEvent } from "@hocuspocus/common";
3
3
  import type WebSocket from "ws";
4
4
  import type Document from "./Document.ts";
@@ -1,4 +1,4 @@
1
- import type { IncomingMessage } from "http";
1
+ import type { IncomingMessage } from "node:http";
2
2
  import type WebSocket from "ws";
3
3
  import { DirectConnection } from "./DirectConnection.ts";
4
4
  import Document from "./Document.ts";
@@ -1,4 +1,4 @@
1
- import type { Server as HTTPServer, IncomingMessage, ServerResponse } from "http";
1
+ import type { Server as HTTPServer, IncomingMessage, ServerResponse } from "node:http";
2
2
  import { WebSocketServer } from "ws";
3
3
  import type { AddressInfo, ServerOptions } from "ws";
4
4
  import { Hocuspocus } from "./Hocuspocus.ts";
@@ -1,5 +1,5 @@
1
- import type { IncomingHttpHeaders, IncomingMessage, ServerResponse } from "http";
2
- import type { URLSearchParams } from "url";
1
+ import type { IncomingHttpHeaders, IncomingMessage, ServerResponse } from "node:http";
2
+ import type { URLSearchParams } from "node:url";
3
3
  import type { Awareness } from "y-protocols/awareness";
4
4
  import type Connection from "./Connection.ts";
5
5
  import type Document from "./Document.ts";
@@ -1,5 +1,5 @@
1
- import type { IncomingMessage } from "http";
2
- import { URLSearchParams } from "url";
1
+ import type { IncomingMessage } from "node:http";
2
+ import { URLSearchParams } from "node:url";
3
3
  /**
4
4
  * Get parameters by the given request
5
5
  */
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hocuspocus/extension-redis",
3
- "version": "3.1.12",
3
+ "version": "3.2.0",
4
4
  "description": "Scale Hocuspocus horizontally with Redis",
5
5
  "homepage": "https://hocuspocus.dev",
6
6
  "keywords": [
@@ -32,7 +32,7 @@
32
32
  "@types/redlock": "^4.0.3"
33
33
  },
34
34
  "dependencies": {
35
- "@hocuspocus/server": "^3.1.12",
35
+ "@hocuspocus/server": "^3.2.0",
36
36
  "ioredis": "^5.6.1",
37
37
  "kleur": "^4.1.4",
38
38
  "lodash.debounce": "^4.0.8",