Skip to content

Commit

Permalink
🔧 Updated package dependencies and removed unused code (#update-depen…
Browse files Browse the repository at this point in the history
…dencies-2024-12-29-10-31)

Summary: Updated package dependencies and removed unused code.

Highlights:

• Upgraded `next` to `^15.1.3` and `viem` to `^2.21.58` across multiple `package.json` files.
• Removed unused `tag` variable from `Cashtag.tsx`.
• Adjusted formatting in `uploadToIPFS.ts`.

Read more: https://pierre.co/hey/hey/update-dependencies-2024-12-29-10-31
  • Loading branch information
Yoginth authored and Pierre committed Dec 29, 2024
1 parent 554dc7e commit 62cf350
Show file tree
Hide file tree
Showing 8 changed files with 506 additions and 637 deletions.
2 changes: 1 addition & 1 deletion apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"ua-parser-js": "2.0.0",
"urlcat": "^3.1.0",
"uuid": "^11.0.2",
"viem": "^2.21.57",
"viem": "^2.21.58",
"zod": "^3.24.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/og/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@hey/indexer": "workspace:*",
"apollo-utilities": "^1.3.4",
"graphql": "^16.10.0",
"next": "^15.1.2",
"next": "^15.1.3",
"react": "18.3.1"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"@lens-protocol/metadata": "next",
"@lens-protocol/storage-node-client": "next",
"@livepeer/react": "^4.2.9",
"@next/bundle-analyzer": "^15.1.2",
"@next/bundle-analyzer": "^15.1.3",
"@radix-ui/react-hover-card": "^1.1.4",
"@tanstack/react-query": "^5.62.8",
"@tanstack/react-query": "^5.62.11",
"@uidotdev/usehooks": "^2.4.1",
"@unleash/proxy-client-react": "^4.4.0",
"axios": "^1.7.9",
Expand All @@ -37,7 +37,7 @@
"esbuild": "^0.24.2",
"franc": "^6.2.0",
"graphql": "^16.10.0",
"next": "^15.1.2",
"next": "^15.1.3",
"next-axiom": "^1.9.1",
"next-themes": "^0.4.4",
"plur": "^5.1.0",
Expand Down Expand Up @@ -65,8 +65,8 @@
"urlcat": "^3.1.0",
"use-resize-observer": "^9.1.0",
"uuid": "^11.0.2",
"viem": "^2.21.57",
"wagmi": "^2.14.4",
"viem": "^2.21.58",
"wagmi": "^2.14.6",
"zod": "^3.24.1",
"zustand": "5.0.2"
},
Expand Down
2 changes: 0 additions & 2 deletions apps/web/src/components/Shared/Markup/MarkupLink/Cashtag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ const Cashtag: FC<MarkupLinkProps> = ({ title }) => {
return null;
}

const tag = title.slice(1).toLowerCase();

return (
<Link
className="outline-none focus:underline"
Expand Down
34 changes: 17 additions & 17 deletions apps/web/src/helpers/uploadToIPFS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ const FALLBACK_TYPE = "image/jpeg";
* @returns Array of MediaSet objects.
*/
const uploadToIPFS = async (data: File[]): Promise<StorageNodeResponse[]> => {
try {
const { files } = await storageClient.uploadFolder(data);
const attachments = files.map(({ gatewayUrl }, index) => {
return { mimeType: data[index].type || FALLBACK_TYPE, uri: gatewayUrl };
});
try {
const { files } = await storageClient.uploadFolder(data);
const attachments = files.map(({ gatewayUrl }, index) => {
return { mimeType: data[index].type || FALLBACK_TYPE, uri: gatewayUrl };
});

return attachments;
} catch {
return [];
}
return attachments;
} catch {
return [];
}
};

/**
Expand All @@ -31,16 +31,16 @@ const uploadToIPFS = async (data: File[]): Promise<StorageNodeResponse[]> => {
* @returns MediaSet object or null if the upload fails.
*/
export const uploadFileToIPFS = async (
file: File,
file: File
): Promise<StorageNodeResponse> => {
try {
const response = await uploadToIPFS([file]);
const { uri, mimeType } = response[0];
try {
const response = await uploadToIPFS([file]);
const { uri, mimeType } = response[0];

return { mimeType, uri };
} catch {
return { mimeType: "", uri: "" };
}
return { mimeType, uri };
} catch {
return { mimeType: "", uri: "" };
}
};

export default uploadToIPFS;
2 changes: 1 addition & 1 deletion packages/helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"mailchecker": "^6.0.14",
"omit-deep": "^0.3.0",
"urlcat": "^3.1.0",
"viem": "^2.21.57",
"viem": "^2.21.58",
"winston": "^3.16.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"@radix-ui/react-switch": "^1.1.2",
"@radix-ui/react-tooltip": "^1.1.6",
"clsx": "^2.1.1",
"next": "^15.1.2",
"next": "^15.1.3",
"react": "18.3.1",
"react-hook-form": "^7.54.2",
"tailwind-merge": "^2.5.5",
"tailwind-merge": "^2.6.0",
"zod": "^3.24.1"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 62cf350

Please sign in to comment.