Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubkottnauer committed Jul 1, 2024
1 parent 91ebb7a commit 3526450
Show file tree
Hide file tree
Showing 9 changed files with 4,139 additions and 1,878 deletions.
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM node:18-alpine AS deps
FROM node:20-alpine AS deps

WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile

FROM node:18-alpine AS BUILD_IMAGE
FROM node:20-alpine AS BUILD_IMAGE

WORKDIR /app

Expand All @@ -15,7 +15,7 @@ RUN yarn build
RUN rm -rf node_modules
RUN yarn install --production --frozen-lockfile --ignore-scripts --prefer-offline

FROM node:18-alpine
FROM node:20-alpine

ENV NODE_ENV production

Expand Down
2 changes: 1 addition & 1 deletion components/entries/__tests__/TaskName.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { render, screen } from "@testing-library/react";
import { render } from "@testing-library/react";
import TaskName from "../TaskName";
import "@testing-library/jest-dom";

Expand Down
2 changes: 1 addition & 1 deletion components/layout/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from "react";
import { Avatar, Layout, Menu } from "antd";
import { ItemType } from "antd/lib/menu/interface";
import Link from "next/link";
import Image from "next/image";
import { isUserInRole, logout, useUser } from "../../lib/api";
import { ItemType } from "antd/lib/menu/hooks/useItems";
import { usePathname } from "next/navigation";
import { AccessRole } from "../../types";
import { Route } from "../../lib/routes";
Expand Down
5 changes: 5 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default [
{
extends: "next/core-web-vitals",
},
];
9 changes: 9 additions & 0 deletions instrumentation.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export async function register() {
if (process.env.NEXT_RUNTIME === "nodejs") {
await import("./sentry.server.config");
}

if (process.env.NEXT_RUNTIME === "edge") {
await import("./sentry.edge.config");
}
}
47 changes: 24 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,34 @@
"test:e2e": "playwright test"
},
"dependencies": {
"@ant-design/cssinjs": "^1.18.4",
"@ant-design/icons": "^5.3.0",
"@sentry/nextjs": "^7.99.0",
"antd": "^5.14.0",
"axios": "^0.27.2",
"@ant-design/cssinjs": "^1.21.0",
"@ant-design/icons": "^5.3.7",
"@sentry/nextjs": "^8.13.0",
"antd": "^5.19.0",
"axios": "^1.7.2",
"classnames": "^2.5.1",
"mobx": "^6.12.0",
"mobx-react-lite": "^4.0.5",
"moment": "^2.29.4",
"next": "^14.1.0",
"mobx": "^6.12.5",
"mobx-react-lite": "^4.0.7",
"moment": "^2.30.1",
"next": "^14.2.4",
"nookies": "^2.5.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"swr": "^2.2.4"
"react": "^18.3.1",
"react-dom": "^18.3.1",
"swr": "^2.2.5"
},
"devDependencies": {
"@playwright/test": "^1.27.1",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.3.0",
"@types/http-proxy": "^1.17.9",
"@types/react": "^18.2.53",
"eslint": "^8.20.0",
"eslint-config-next": "^13.4.1",
"jest": "^28.1.3",
"jest-environment-jsdom": "^28.1.3",
"prettier": "^3.2.5",
"typescript": "^5.3.3"
"@playwright/test": "^1.45.0",
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/react": "^16.0.0",
"@types/http-proxy": "^1.17.14",
"@types/jest": "^29.5.12",
"@types/react": "^18.3.3",
"eslint": "^9.6.0",
"eslint-config-next": "^14.2.4",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.3.2",
"typescript": "^5.5.2"
},
"packageManager": "yarn@4.1.0"
}
2 changes: 1 addition & 1 deletion pages/api/harvest/[...path].ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
});
}

export default Sentry.withSentry(handler);
export default handler;

const handleMockRequest = (req: NextApiRequest, res: NextApiResponse) => {
let data = {};
Expand Down
Loading

0 comments on commit 3526450

Please sign in to comment.