Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/edge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,18 @@
"url": "https://github.com/logtail/logtail-js/issues"
},
"dependencies": {
"@cloudflare/workers-types": "^4.20230904.0",
"@logtail/core": "^0.5.6",
"@logtail/types": "^0.5.6",
"@msgpack/msgpack": "^2.5.1",
"@types/stack-trace": "^0.0.33",
"minimatch": "^9.0.5",
"stack-trace": "0.0.10"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20230904.0"
},
"peerDependencies": {
"@cloudflare/workers-types": "^4.20230904.0"
},
"gitHead": "0f816cacc21b352576a5707741f9151aa1481041"
}
4 changes: 2 additions & 2 deletions packages/edge/src/edge.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ILogtailLog, LogLevel } from "@logtail/types";
import { Edge } from "./edge";

import { Mock } from "jest-mock";
import { ExecutionContext } from "@cloudflare/workers-types";
import type { ExecutionContext } from "@cloudflare/workers-types";

addEventListener("fetch", (event) => {
console.log(event);
Expand Down Expand Up @@ -117,7 +117,7 @@ describe("edge tests", () => {
const edgeWithCtx = edge.withExecutionContext({
waitUntil() {},
passThroughOnException() {},
} as ExecutionContext);
} as unknown as ExecutionContext);

edgeWithCtx.log(message);
edgeWithCtx.info(message);
Expand Down
2 changes: 1 addition & 1 deletion packages/edge/src/edge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { encode } from "@msgpack/msgpack";
import { Context, ILogLevel, ILogtailLog, ILogtailEdgeOptions, LogLevel } from "@logtail/types";
import { Base } from "@logtail/core";

import { ExecutionContext } from "@cloudflare/workers-types";
import type { ExecutionContext } from "@cloudflare/workers-types";

import { getStackContext } from "./context";
import { EdgeWithExecutionContext } from "./edgeWithExecutionContext";
Expand Down
2 changes: 1 addition & 1 deletion packages/edge/src/edgeWithExecutionContext.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Context, ILogLevel, ILogtailLog } from "@logtail/types";

import { ExecutionContext } from "@cloudflare/workers-types";
import type { ExecutionContext } from "@cloudflare/workers-types";

import { Edge } from "./edge";

Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,9 @@
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==

"@cloudflare/workers-types@^4.20230904.0":
version "4.20240620.0"
resolved "https://registry.yarnpkg.com/@cloudflare/workers-types/-/workers-types-4.20240620.0.tgz#1e996c0b81a1dab392f0292bea036fd7bb3b73f3"
integrity sha512-CQD8YS6evRob7LChvIX3gE3zYo0KVgaLDOu1SwNP1BVIS2Sa0b+FC8S1e1hhrNN8/E4chYlVN+FDAgA4KRDUEQ==
version "4.20250719.0"
resolved "https://registry.yarnpkg.com/@cloudflare/workers-types/-/workers-types-4.20250719.0.tgz#f84eda1416f30768a77f710780a4eb3fdd197d54"
integrity sha512-tSc2FM2QPWA8ZmDniQXz+4qVKuf8zrwVwqlkXxxGBsQHxTpcukuMibYcYWxwonzbzK7YzSug+iena2F8gGOuOw==

"@colors/colors@1.6.0", "@colors/colors@^1.6.0":
version "1.6.0"
Expand Down