Skip to content

Commit e815025

Browse files
committed
chore: update package dependencies and version to 2.10.1
1 parent f8ad8ca commit e815025

12 files changed

+1001
-996
lines changed

web/app/ai/packages.service.server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class AIPackageService {
4040
model: google("gemini-1.5-flash"),
4141
prompt: `${prompt}\n---\n${context}`,
4242
// Just a safeguard to prevent excessive token usage.
43-
maxTokens: 8192,
43+
maxOutputTokens: 8192,
4444
temperature: 0.3,
4545
});
4646

@@ -73,7 +73,7 @@ export class AIPackageService {
7373
model: google("gemini-1.5-flash"),
7474
prompt: `${prompt}\n---\n${context}`,
7575
// Just a safeguard to prevent excessive token usage.
76-
maxTokens: 8192,
76+
maxOutputTokens: 8192,
7777
});
7878

7979
const answer = this.sanitizeHTMLPartial(text);
@@ -113,7 +113,7 @@ export class AIPackageService {
113113
const json = await generateObject({
114114
model: google("gemini-1.5-flash"),
115115
prompt: `${prompt}\n---\n${context}`,
116-
maxTokens: 8192,
116+
maxOutputTokens: 8192,
117117
schema: z.array(
118118
z.object({
119119
platform: z.string(),

web/app/licenses.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

web/app/modules/info-card.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { RiArrowRightSLine, RiExternalLinkLine } from "@remixicon/react";
22
import { cva, VariantProps } from "cva";
3-
import { PropsWithChildren } from "react";
3+
import { type PropsWithChildren } from "react";
44

55
type Props = PropsWithChildren<
66
Required<VariantProps<typeof twGradient>> & {
@@ -29,7 +29,7 @@ const twGradient = cva({
2929
},
3030
});
3131

32-
const iconMap: Record<string, JSX.Element> = {
32+
const iconMap: Record<string, React.ReactNode> = {
3333
external: (
3434
<RiExternalLinkLine
3535
className="group-hover/card:animate-wiggle-more group-hover/card:animate-infinite"

web/app/modules/meta.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const mergeMeta = (
2929
// replace any parent meta with the same name or property with the override
3030
const overrides = overrideFn(arg);
3131

32-
for (const override of overrides) {
32+
for (const override of overrides || []) {
3333
const index = mergedMeta.findIndex(
3434
(meta) =>
3535
("name" in meta &&
@@ -49,7 +49,7 @@ export const mergeMeta = (
4949

5050
// append any additional meta
5151
if (appendFn) {
52-
mergedMeta = mergedMeta.concat(appendFn(arg));
52+
mergedMeta = mergedMeta.concat(appendFn(arg) || []);
5353
}
5454

5555
return mergedMeta;

web/app/modules/search.idle-placeholder.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { RiGlassesFill, RiCloseFill } from "@remixicon/react";
2-
import { PackageSemanticSearchHit } from "../data/package.shape";
3-
import { BaseSearchHit } from "./search.hit";
2+
import { BaseSearchHit, PackageSemanticSearchHit } from "./search.hit";
43

54
export function SearchIdlePlaceholder(props: {
65
onSelect: (item?: BaseSearchHit | PackageSemanticSearchHit) => void;
@@ -13,7 +12,7 @@ export function SearchIdlePlaceholder(props: {
1312
Ready when you are{" "}
1413
<RiGlassesFill
1514
size={32}
16-
className="mb-2 ml-2 inline animate-wiggle animate-duration-700 animate-infinite"
15+
className="animate-wiggle animate-duration-700 animate-infinite mb-2 ml-2 inline"
1716
/>
1817
</p>
1918
<div className="text-gray-dim mt-28 space-y-1 text-center text-sm">

web/app/routes/_page.author.$authorName.og._index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const loader = async ({ request, params }: LoaderFunctionArgs) => {
2121
requestUrl: origin,
2222
});
2323

24-
return new Response(png, {
24+
return new Response(png as BodyInit, {
2525
status: 200,
2626
headers: {
2727
"Content-Type": "image/png",

web/app/routes/_page.package.$packageName.og._index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const loader = async ({ request, params }: LoaderFunctionArgs) => {
2626
requestUrl: origin,
2727
});
2828

29-
return new Response(png, {
29+
return new Response(png as BodyInit, {
3030
status: 200,
3131
headers: {
3232
"Content-Type": "image/png",

web/app/routes/_page.press.$articleType._article.$articleSlug.og._index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const loader = async ({ request, params }: LoaderFunctionArgs) => {
3939
});
4040

4141
// Respond with the PNG buffer
42-
return new Response(png, {
42+
return new Response(png as BodyInit, {
4343
status: 200,
4444
headers: {
4545
"Content-Type": "image/png",

web/app/routes/_page.press.$articleType.og._index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const loader = async ({ request, params }: LoaderFunctionArgs) => {
1212
articleType: params.articleType as string,
1313
});
1414

15-
return new Response(png, {
15+
return new Response(png as BodyInit, {
1616
status: 200,
1717
headers: {
1818
"Content-Type": "image/png",

web/app/routes/og._index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const loader = async ({ request }: LoaderFunctionArgs) => {
1111
});
1212

1313
// Respond with the PNG buffer
14-
return new Response(png, {
14+
return new Response(png as BodyInit, {
1515
status: 200,
1616
headers: {
1717
// Tell the browser the response is an image

0 commit comments

Comments
 (0)