From d928e0d495dec391d4c2f0fd4fbd41318ccb1689 Mon Sep 17 00:00:00 2001 From: Eero Ruohola Date: Fri, 11 Feb 2022 00:00:47 +0200 Subject: [PATCH] Update all dependencies to latest The Prettier reformatting havoc was caused by: https://github.com/tailwindlabs/tailwindcss/pull/7412 --- package.json | 24 +- src/components/Home/Features.tsx | 8 +- src/components/Home/Pricing.tsx | 10 +- src/components/Home/Setup.tsx | 8 +- src/components/Home/TopSection.tsx | 12 +- src/components/Home/Why.tsx | 10 +- src/components/dashboard/DashboardCard.tsx | 2 +- src/components/dashboard/DashboardOptions.tsx | 4 +- src/components/dashboard/EndpointMetrics.tsx | 18 +- src/components/dashboard/EndpointTooltip.tsx | 2 +- .../dashboard/PercentileMetrics.tsx | 6 +- .../dashboard/StatusCodeMetrics.tsx | 18 +- .../dashboard/TimeFrameAreaChart.tsx | 2 +- src/components/dashboard/TimeFrameMetrics.tsx | 10 +- src/components/dashboard/UserAgentMetrics.tsx | 20 +- src/components/layout/BlogTemplate.tsx | 8 +- src/components/layout/DocsTemplate.tsx | 8 +- src/components/layout/ErrorTemplate.tsx | 2 +- src/components/layout/Footer.tsx | 6 +- src/components/layout/Header.tsx | 40 +- src/components/layout/Layout.tsx | 6 +- src/components/layout/LoadingTemplate.tsx | 2 +- src/components/layout/LoginFormTemplate.tsx | 4 +- src/components/layout/MainTemplate.tsx | 2 +- src/components/layout/NotFoundTemplate.tsx | 2 +- src/components/shared/ApiKeyField.tsx | 4 +- src/components/shared/BackButton.tsx | 2 +- src/components/shared/BlogCard.tsx | 6 +- src/components/shared/Button.tsx | 4 +- src/components/shared/CTASection.tsx | 8 +- src/components/shared/EmailListForm.tsx | 4 +- src/components/shared/FeatureCard.tsx | 2 +- src/components/shared/IconButton.tsx | 2 +- src/components/shared/Input.tsx | 2 +- src/components/shared/LoadingIndicator.tsx | 2 +- src/components/shared/Modal.tsx | 4 +- src/components/shared/OriginMenu.tsx | 6 +- src/components/shared/Select.tsx | 2 +- src/components/shared/TextArea.tsx | 2 +- src/docs/get-started.mdx | 2 +- src/pages/[slug].tsx | 2 +- src/pages/account.tsx | 2 +- src/pages/blog/index.tsx | 2 +- src/pages/contact.tsx | 2 +- src/pages/demo.tsx | 10 +- src/pages/login.tsx | 2 +- src/pages/logout.tsx | 4 +- src/pages/new-origin.tsx | 2 +- src/pages/origins/[slug]/dynamic-routes.tsx | 14 +- src/pages/origins/[slug]/index.tsx | 6 +- src/pages/origins/[slug]/settings.tsx | 8 +- src/pages/origins/index.tsx | 10 +- src/pages/register.tsx | 6 +- yarn.lock | 2612 +++++++++-------- 54 files changed, 1503 insertions(+), 1465 deletions(-) diff --git a/package.json b/package.json index e71bddb1..9a1baaa1 100644 --- a/package.json +++ b/package.json @@ -20,39 +20,39 @@ }, "dependencies": { "@apilytics/next": "1.3.0", - "@fontsource/ubuntu": "4.5.1", + "@fontsource/ubuntu": "4.5.2", "@heroicons/react": "1.0.5", "@next-auth/prisma-adapter": "1.0.1", - "@prisma/client": "3.9.0", - "aws-sdk": "2.1066.0", + "@prisma/client": "3.9.2", + "aws-sdk": "2.1073.0", "clsx": "1.1.1", "daisyui": "1.25.4", "dayjs": "1.10.7", "gray-matter": "4.0.3", "next": "12.0.10", - "next-auth": "4.1.2", + "next-auth": "4.2.1", "next-mdx-remote": "3.0.8", "next-plausible": "3.1.4", "nodemailer": "6.7.2", "react": "17.0.2", "react-dom": "17.0.2", - "recharts": "2.1.8", + "recharts": "2.1.9", "rehype-highlight": "5.0.2", "remark-heading-id": "1.0.0", "simple-encryptor": "4.0.0", "slugify": "1.6.5", - "swagger-ui-dist": "4.4.1", + "swagger-ui-dist": "4.5.0", "ua-parser-js": "1.0.2" }, "devDependencies": { "@tailwindcss/typography": "0.5.1", "@types/jest": "27.4.0", "@types/node": "14.18", - "@types/react": "17.0.38", + "@types/react": "17.0.39", "@types/react-dom": "17.0.11", "@types/swagger-ui-dist": "3.30.1", "@types/ua-parser-js": "0.7.36", - "@typescript-eslint/eslint-plugin": "5.10.2", + "@typescript-eslint/eslint-plugin": "5.11.0", "autoprefixer": "10.4.2", "dpdm": "3.8.0", "eslint": "8.8.0", @@ -60,15 +60,15 @@ "eslint-config-prettier": "8.3.0", "eslint-plugin-prettier": "4.0.0", "eslint-plugin-simple-import-sort": "7.0.0", - "jest": "27.4.7", + "jest": "27.5.1", "jest-mock-extended": "2.0.4", "node-mocks-http": "1.11.0", "postcss": "8.4.6", "prettier": "2.5.1", "prettier-plugin-prisma": "3.9.0", - "prisma": "3.9.0", - "tailwindcss": "3.0.18", - "ts-node": "10.4.0", + "prisma": "3.9.2", + "tailwindcss": "3.0.20", + "ts-node": "10.5.0", "typescript": "4.5.5" } } diff --git a/src/components/Home/Features.tsx b/src/components/Home/Features.tsx index 146fe2e9..f87191b1 100644 --- a/src/components/Home/Features.tsx +++ b/src/components/Home/Features.tsx @@ -47,7 +47,7 @@ const FEATURES = [ ]; export const Features: React.FC = () => ( -
+

It's time to stop being blind about your
@@ -58,11 +58,11 @@ export const Features: React.FC = () => ( configuration and no installable host-agents. Works in any environment with no performance overhead to your application.

-
+
{FEATURES.map(({ icon: Icon, title, content, comingSoon }) => ( -
+
- +
{title}

{content}

diff --git a/src/components/Home/Pricing.tsx b/src/components/Home/Pricing.tsx index d485adf8..dfcc3e08 100644 --- a/src/components/Home/Pricing.tsx +++ b/src/components/Home/Pricing.tsx @@ -68,8 +68,8 @@ export const Pricing: React.FC = () => {
No credit card required. -
-
+
+
Monthly requests

{getRequestsDisplay()}

@@ -89,13 +89,13 @@ export const Pricing: React.FC = () => { min={1} max={requestOptions.length + 1} step={1} - className="range range-primary range-lg w-full mt-8 rounded-lg" + className="range range-primary range-lg mt-8 w-full rounded-lg" onClick={(): void => plausible('pricing-slider-click')} /> -
+
{FEATURES.map((feature) => (

- {feature} + {feature}

))}
diff --git a/src/components/Home/Setup.tsx b/src/components/Home/Setup.tsx index eaca0537..b6f88cba 100644 --- a/src/components/Home/Setup.tsx +++ b/src/components/Home/Setup.tsx @@ -26,9 +26,9 @@ export const Setup: React.FC = ({ snippets }) => { const { source } = snippet; return ( -
+
-
+

Set up in 5 minutes

@@ -45,8 +45,8 @@ export const Setup: React.FC = ({ snippets }) => {
-
-
+
+
{snippets.map(({ name }) => (

{ const eventOptions = { location: EVENT_LOCATIONS.PAGE_TOP }; return ( -

+
-
+

API analytics @@ -54,7 +54,7 @@ export const TopSection: React.FC = () => {

{DESCRIPTION}
Simple integration with any backend
-
+
{INTEGRATIONS.map(({ name, image }) => (
{
))}
-
+
-
+
diff --git a/src/components/Home/Why.tsx b/src/components/Home/Why.tsx index d2ad4ff8..ab161a27 100644 --- a/src/components/Home/Why.tsx +++ b/src/components/Home/Why.tsx @@ -31,17 +31,17 @@ const REASONS = [ ]; export const Why: React.FC = () => ( -
+
-
+

Why choose Apilytics?

-
+
{REASONS.map(({ title, content }) => ( -
+
- +
{title}

{content}

diff --git a/src/components/dashboard/DashboardCard.tsx b/src/components/dashboard/DashboardCard.tsx index 83f8827e..c54b5a68 100644 --- a/src/components/dashboard/DashboardCard.tsx +++ b/src/components/dashboard/DashboardCard.tsx @@ -6,5 +6,5 @@ interface Props { } export const DashboardCard: React.FC = ({ children }) => ( -
{children}
+
{children}
); diff --git a/src/components/dashboard/DashboardOptions.tsx b/src/components/dashboard/DashboardOptions.tsx index 45505660..7b332472 100644 --- a/src/components/dashboard/DashboardOptions.tsx +++ b/src/components/dashboard/DashboardOptions.tsx @@ -60,8 +60,8 @@ export const DashboardOptions: React.FC = ({ origin: { name, slug }, apil className="btn-sm hidden sm:flex" /> )} -
-
{name}
+
+
{name}
{!!apilyticsPackage && } {selectedMethod && ( ); @@ -288,10 +288,10 @@ export const Header: React.FC = ({ maxWidth = DEFAULT_MAX_WIDTH }) ); return ( -
+
diff --git a/src/components/layout/Layout.tsx b/src/components/layout/Layout.tsx index 9cae1ca1..d35a6242 100644 --- a/src/components/layout/Layout.tsx +++ b/src/components/layout/Layout.tsx @@ -13,10 +13,10 @@ export const Layout: React.FC = ({ }) => ( <> -
-
+
+
-
{children}
+
{children}
diff --git a/src/components/layout/LoadingTemplate.tsx b/src/components/layout/LoadingTemplate.tsx index eeb7a84f..9e2584b5 100644 --- a/src/components/layout/LoadingTemplate.tsx +++ b/src/components/layout/LoadingTemplate.tsx @@ -6,7 +6,7 @@ import { LoadingIndicator } from 'components/shared/LoadingIndicator'; export const LoadingTemplate: React.FC = () => ( <> -
+
diff --git a/src/components/layout/LoginFormTemplate.tsx b/src/components/layout/LoginFormTemplate.tsx index 40e75121..02ad67bb 100644 --- a/src/components/layout/LoginFormTemplate.tsx +++ b/src/components/layout/LoginFormTemplate.tsx @@ -79,7 +79,7 @@ export const LoginFormTemplate: React.FC = ({ again and check your spam folder. Contact us if the problem still persists.

- @@ -88,7 +88,7 @@ export const LoginFormTemplate: React.FC = ({ return ( -
+
= ({ children, ...props }) => ( -
{children}
+
{children}
); diff --git a/src/components/layout/NotFoundTemplate.tsx b/src/components/layout/NotFoundTemplate.tsx index fd9c3779..13c8c548 100644 --- a/src/components/layout/NotFoundTemplate.tsx +++ b/src/components/layout/NotFoundTemplate.tsx @@ -4,7 +4,7 @@ import { MainTemplate } from 'components/layout/MainTemplate'; export const NotFoundTemplate: React.FC = () => ( -
+

Not found...

diff --git a/src/components/shared/ApiKeyField.tsx b/src/components/shared/ApiKeyField.tsx index 53f07ffc..3ce2040a 100644 --- a/src/components/shared/ApiKeyField.tsx +++ b/src/components/shared/ApiKeyField.tsx @@ -29,7 +29,7 @@ export const ApiKeyField: React.FC = ({ value }) => { = ({ value }) => { icon={ClipboardCopyIcon} tooltip="Copy your API key to the clipboard." tooltipProps={{ className: 'tooltip-left' }} - className="rounded-l-none btn-outline btn-primary border-l-0" + className="btn-outline btn-primary rounded-l-none border-l-0" />