Skip to content

Commit ffdf65d

Browse files
committed
chore: standardize typescript files to use kebab case names
1 parent 262e496 commit ffdf65d

36 files changed

+39
-39
lines changed

packages/actor-core/src/actor/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {
2727
handleSseConnect,
2828
handleRpc,
2929
handleConnectionMessage,
30-
} from "./router_endpoints";
30+
} from "./router-endpoints";
3131

3232
export type {
3333
ConnectWebSocketOpts,

packages/actor-core/src/client/actor_conn.ts renamed to packages/actor-core/src/client/actor-conn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { importWebSocket } from "@/common/websocket";
1010
import type { ActorQuery } from "@/manager/protocol/query";
1111
import * as cbor from "cbor-x";
1212
import pRetry from "p-retry";
13-
import type { ActorDefinitionRpcs as ActorDefinitionRpcsImport } from "./actor_common";
13+
import type { ActorDefinitionRpcs as ActorDefinitionRpcsImport } from "./actor-common";
1414
import { ACTOR_CONNS_SYMBOL, type ClientRaw, TRANSPORT_SYMBOL } from "./client";
1515
import * as errors from "./errors";
1616
import { logger } from "./log";

packages/actor-core/src/client/actor_handle.ts renamed to packages/actor-core/src/client/actor-handle.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import type { AnyActorDefinition } from "@/actor/definition";
22
import type { RpcRequest, RpcResponse } from "@/actor/protocol/http/rpc";
33
import type { Encoding } from "@/actor/protocol/serde";
44
import type { ActorQuery } from "@/manager/protocol/query";
5-
import { type ActorDefinitionRpcs, resolveActorId } from "./actor_common";
6-
import { type ActorConn, ActorConnRaw } from "./actor_conn";
5+
import { type ActorDefinitionRpcs, resolveActorId } from "./actor-common";
6+
import { type ActorConn, ActorConnRaw } from "./actor-conn";
77
import { CREATE_ACTOR_CONN_PROXY, type ClientRaw } from "./client";
88
import { logger } from "./log";
99
import { sendHttpRequest } from "./utils";

packages/actor-core/src/client/client.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import type { Transport } from "@/actor/protocol/message/mod";
22
import type { Encoding } from "@/actor/protocol/serde";
33
import type { ActorQuery } from "@/manager/protocol/query";
44
import * as errors from "./errors";
5-
import { ActorConn, ActorConnRaw, CONNECT_SYMBOL } from "./actor_conn";
6-
import { ActorHandle, ActorHandleRaw } from "./actor_handle";
7-
import { ActorRPCFunction, resolveActorId } from "./actor_common";
5+
import { ActorConn, ActorConnRaw, CONNECT_SYMBOL } from "./actor-conn";
6+
import { ActorHandle, ActorHandleRaw } from "./actor-handle";
7+
import { ActorRPCFunction, resolveActorId } from "./actor-common";
88
import { logger } from "./log";
99
import type { ActorCoreApp } from "@/mod";
1010
import type { AnyActorDefinition } from "@/actor/definition";

packages/actor-core/src/client/mod.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ export type {
1212
ExtractAppFromClient,
1313
ClientRaw,
1414
} from "./client";
15-
export type { ActorConn } from "./actor_conn";
16-
export { ActorConnRaw } from "./actor_conn";
17-
export type { EventUnsubscribe } from "./actor_conn";
18-
export type { ActorHandle } from "./actor_handle";
19-
export { ActorHandleRaw } from "./actor_handle";
20-
export type { ActorRPCFunction } from "./actor_common";
15+
export type { ActorConn } from "./actor-conn";
16+
export { ActorConnRaw } from "./actor-conn";
17+
export type { EventUnsubscribe } from "./actor-conn";
18+
export type { ActorHandle } from "./actor-handle";
19+
export { ActorHandleRaw } from "./actor-handle";
20+
export type { ActorRPCFunction } from "./actor-common";
2121
export type { Transport } from "@/actor/protocol/message/mod";
2222
export type { Encoding } from "@/actor/protocol/serde";
2323
export type { CreateRequest } from "@/manager/protocol/query";

packages/actor-core/src/common/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Context as HonoContext, Next } from "hono";
22
import { getLogger, Logger } from "./log";
33
import { deconstructError } from "./utils";
4-
import { getRequestEncoding } from "@/actor/router_endpoints";
4+
import { getRequestEncoding } from "@/actor/router-endpoints";
55
import { serialize } from "@/actor/protocol/serde";
66
import { ResponseError } from "@/actor/protocol/http/error";
77

packages/actor-core/src/manager/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
handleRpc,
1010
handleSseConnect,
1111
handleWebSocketConnect,
12-
} from "@/actor/router_endpoints";
12+
} from "@/actor/router-endpoints";
1313
import { assertUnreachable } from "@/actor/utils";
1414
import type { AppConfig } from "@/app/config";
1515
import {

packages/actor-core/src/test/driver/actor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ActorDriver, AnyActorInstance } from "@/driver-helpers/mod";
2-
import type { TestGlobalState } from "./global_state";
2+
import type { TestGlobalState } from "./global-state";
33

44
export interface ActorDriverContext {
55
// Used to test that the actor context works from tests

0 commit comments

Comments
 (0)