Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c867f53

Browse files
Merge pull request #225 from takker99:websocket-type
fix(websocket): Update websocket types to use @cosense/types for consistency and remove deprecated emit-events.ts
2 parents 59b5368 + 3f4106c commit c867f53

17 files changed

+60
-327
lines changed

‎deno.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@cosense/std/browser/websocket": "./websocket/mod.ts",
2828
"@cosense/std/rest": "./rest/mod.ts",
2929
"@cosense/std/websocket": "./websocket/mod.ts",
30-
"@cosense/types": "jsr:@cosense/types@^0.10.4",
30+
"@cosense/types": "jsr:@cosense/types@^0.10.7",
3131
"@cosense/types/rest": "jsr:@cosense/types@0.10/rest",
3232
"@cosense/types/userscript": "jsr:@cosense/types@0.10/userscript",
3333
"@progfay/scrapbox-parser": "jsr:@progfay/scrapbox-parser@9",

‎deno.lock

Lines changed: 28 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎websocket/applyCommit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { CommitNotification } from "./listen-events.ts";
1+
import type { CommitNotification } from "@cosense/types/websocket";
22
import type { BaseLine } from "@cosense/types/rest";
33
import { getUnixTimeFromId } from "./id.ts";
44

‎websocket/change.ts

Lines changed: 0 additions & 90 deletions
This file was deleted.

‎websocket/diffToChanges.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { diff, toExtendedChanges } from "../deps/onp.ts";
22
import type { Line } from "@cosense/types/userscript";
3-
import type { DeleteChange, InsertChange, UpdateChange } from "./change.ts";
3+
import type { UpdateChange } from "@cosense/types/websocket";
4+
import type { DeleteChange, InsertChange } from "@cosense/types/rest";
45
import { createNewLineId } from "./id.ts";
56

67
type Options = {

‎websocket/emit-events.ts

Lines changed: 0 additions & 75 deletions
This file was deleted.

‎websocket/emit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ import { createErr, createOk, type Result } from "option-t/plain_result";
22
import type { Socket } from "socket.io-client";
33
import type {
44
JoinRoomRequest,
5+
JoinRoomResponse,
56
MoveCursorData,
67
PageCommit,
78
PageCommitResponse,
8-
} from "./emit-events.ts";
9+
} from "@cosense/types/websocket";
910
import {
1011
isPageCommitError,
1112
type PageCommitError,
1213
type SocketIOServerDisconnectError,
1314
type TimeoutError,
1415
type UnexpectedRequestError,
1516
} from "./error.ts";
16-
import type { JoinRoomResponse } from "./emit-events.ts";
1717
import type { ScrapboxSocket } from "./socket.ts";
1818

1919
export interface WrapperdEmitEvents {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /