Skip to content

Commit 27220b6

Browse files
committed
Merge remote-tracking branch 'origin/main' into chore/vite-migration
2 parents c43dca5 + dc87b88 commit 27220b6

64 files changed

Lines changed: 363 additions & 249 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.configs/tsconfig.base.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"esModuleInterop": true,
2727
"emitDecoratorMetadata": false,
2828
"experimentalDecorators": false,
29-
"downlevelIteration": true,
3029
"isolatedModules": true,
3130
"noUncheckedIndexedAccess": true,
3231

apps/webapp/app/routes/otel.v1.logs.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ export async function action({ request }: ActionFunctionArgs) {
2121
await exporter.exportLogsRaw(new Uint8Array(buffer));
2222

2323
return new Response(
24-
ExportLogsServiceResponse.encode(ExportLogsServiceResponse.create()).finish(),
24+
ExportLogsServiceResponse.encode(
25+
ExportLogsServiceResponse.create()
26+
).finish() as Uint8Array<ArrayBuffer>,
2527
{ status: 200 }
2628
);
2729
}
@@ -30,9 +32,12 @@ export async function action({ request }: ActionFunctionArgs) {
3032

3133
const exportResponse = await exporter.exportLogs(exportRequest);
3234

33-
return new Response(ExportLogsServiceResponse.encode(exportResponse).finish(), {
34-
status: 200,
35-
});
35+
return new Response(
36+
ExportLogsServiceResponse.encode(exportResponse).finish() as Uint8Array<ArrayBuffer>,
37+
{
38+
status: 200,
39+
}
40+
);
3641
} else {
3742
return new Response(
3843
"Unsupported content type. Must be either application/x-protobuf or application/json",

apps/webapp/app/routes/otel.v1.metrics.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ export async function action({ request }: ActionFunctionArgs) {
2525
await exporter.exportMetricsRaw(new Uint8Array(buffer));
2626

2727
return new Response(
28-
ExportMetricsServiceResponse.encode(ExportMetricsServiceResponse.create()).finish(),
28+
ExportMetricsServiceResponse.encode(
29+
ExportMetricsServiceResponse.create()
30+
).finish() as Uint8Array<ArrayBuffer>,
2931
{ status: 200 }
3032
);
3133
}
@@ -34,9 +36,12 @@ export async function action({ request }: ActionFunctionArgs) {
3436

3537
const exportResponse = await exporter.exportMetrics(exportRequest);
3638

37-
return new Response(ExportMetricsServiceResponse.encode(exportResponse).finish(), {
38-
status: 200,
39-
});
39+
return new Response(
40+
ExportMetricsServiceResponse.encode(exportResponse).finish() as Uint8Array<ArrayBuffer>,
41+
{
42+
status: 200,
43+
}
44+
);
4045
} else {
4146
return new Response(
4247
"Unsupported content type. Must be either application/x-protobuf or application/json",

apps/webapp/app/routes/otel.v1.traces.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ export async function action({ request }: ActionFunctionArgs) {
2121
await exporter.exportTracesRaw(new Uint8Array(buffer));
2222

2323
return new Response(
24-
ExportTraceServiceResponse.encode(ExportTraceServiceResponse.create()).finish(),
24+
ExportTraceServiceResponse.encode(
25+
ExportTraceServiceResponse.create()
26+
).finish() as Uint8Array<ArrayBuffer>,
2527
{ status: 200 }
2628
);
2729
}
@@ -30,9 +32,12 @@ export async function action({ request }: ActionFunctionArgs) {
3032

3133
const exportResponse = await exporter.exportTraces(exportRequest);
3234

33-
return new Response(ExportTraceServiceResponse.encode(exportResponse).finish(), {
34-
status: 200,
35-
});
35+
return new Response(
36+
ExportTraceServiceResponse.encode(exportResponse).finish() as Uint8Array<ArrayBuffer>,
37+
{
38+
status: 200,
39+
}
40+
);
3641
} else {
3742
return new Response(
3843
"Unsupported content type. Must be either application/x-protobuf or application/json",

apps/webapp/app/routes/promo.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { LoginPageLayout } from "~/components/LoginPageLayout";
88
import { Button, LinkButton } from "~/components/primitives/Buttons";
99
import { Callout } from "~/components/primitives/Callout";
1010
import { Fieldset } from "~/components/primitives/Fieldset";
11-
import { Header2 } from "~/components/primitives/Headers";
11+
import { Header1 } from "~/components/primitives/Headers";
1212
import { Paragraph } from "~/components/primitives/Paragraph";
1313
import { TextLink } from "~/components/primitives/TextLink";
1414
import { isGithubAuthSupported, isGoogleAuthSupported } from "~/services/auth.server";
@@ -139,9 +139,9 @@ export default function PromoPage() {
139139
<div className="flex w-full flex-col">
140140
{data.view === "signed_in" ? (
141141
<>
142-
<Header2 className="sm:text-2xl md:text-3xl lg:text-4xl" spacing>
142+
<Header1 className="pb-4 leading-tight sm:text-2xl md:text-3xl md:leading-tight lg:text-4xl lg:leading-tight">
143143
Promo codes are for new accounts
144-
</Header2>
144+
</Header1>
145145
<Paragraph variant="base" spacing>
146146
You're already signed in. Promo credits can only be added to a brand-new account.
147147
</Paragraph>
@@ -151,11 +151,11 @@ export default function PromoPage() {
151151
</>
152152
) : (
153153
<>
154-
<Header2 className="sm:text-2xl md:text-3xl lg:text-4xl" spacing>
154+
<Header1 className="pb-4 leading-tight sm:text-2xl md:text-3xl md:leading-tight lg:text-4xl lg:leading-tight">
155155
{data.view === "valid"
156156
? `Claim ${formatDollars(data.amountInCents)} credits`
157157
: "Create your account"}
158-
</Header2>
158+
</Header1>
159159
{data.view === "valid" ? (
160160
<Paragraph variant="base" spacing>
161161
These are only available for new accounts on the Free plan.

apps/webapp/app/services/realtime/redisRealtimeStreams.server.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,9 @@ export class RedisRealtimeStreams implements StreamIngestor, StreamResponder {
321321
let currentChunkIndex = startChunk;
322322

323323
try {
324-
const textStream = stream.pipeThrough(new TextDecoderStream());
324+
const textStream = stream.pipeThrough(
325+
new TextDecoderStream() as ReadableWritablePair<string, Uint8Array>
326+
);
325327
const reader = textStream.getReader();
326328

327329
while (true) {

apps/webapp/tsconfig.check.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
},
1111
"customConditions": []
1212
},
13-
"exclude": ["**/*.test.ts", "**/*.test.tsx"]
13+
"exclude": ["**/*.test.ts", "**/*.test.tsx", "test/setup-test-env.ts"]
1414
}

apps/webapp/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"skipLibCheck": true,
1818
"experimentalDecorators": true,
1919
"emitDecoratorMetadata": true,
20-
"baseUrl": ".",
2120
"paths": {
2221
"~/*": ["./app/*"],
2322
"@/*": ["./*"]

internal-packages/cache/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"moduleResolution": "Node16",
77
"moduleDetection": "force",
88
"verbatimModuleSyntax": false,
9-
"types": ["vitest/globals"],
9+
"types": ["vitest/globals", "node"],
1010
"esModuleInterop": true,
1111
"forceConsistentCasingInFileNames": true,
1212
"isolatedModules": true,

internal-packages/clickhouse/tsconfig.build.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"include": ["src/**/*.ts"],
33
"exclude": ["src/**/*.test.ts"],
44
"compilerOptions": {
5+
"types": ["node"],
6+
"rootDir": ".",
57
"composite": true,
68
"target": "ES2019",
79
"lib": ["ES2019", "DOM", "DOM.Iterable", "DOM.AsyncIterable"],

0 commit comments

Comments
 (0)