Skip to content

Commit

Permalink
chore: next and react version bump (formbricks#4459)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Nannt <[email protected]>
  • Loading branch information
gupta-piyush19 and mattinannt authored Dec 13, 2024
1 parent 264ebb1 commit 65d9220
Show file tree
Hide file tree
Showing 12 changed files with 1,008 additions and 1,049 deletions.
2 changes: 1 addition & 1 deletion apps/demo/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
14 changes: 7 additions & 7 deletions apps/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@
"private": true,
"scripts": {
"clean": "rimraf .turbo node_modules .next",
"dev": "next dev -p 3002 --turbo",
"go": "next dev -p 3002 --turbo",
"dev": "next dev -p 3002 --turbopack",
"go": "next dev -p 3002 --turbopack",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@formbricks/js": "workspace:*",
"lucide-react": "0.452.0",
"next": "15.0.3",
"react": "19.0.0-rc-ed15d500-20241110",
"react-dom": "19.0.0-rc-ed15d500-20241110"
"next": "15.1.0",
"react": "19.0.0",
"react-dom": "19.0.0"
},
"devDependencies": {
"@formbricks/eslint-config": "workspace:*",
"@formbricks/config-typescript": "workspace:*"
"@formbricks/config-typescript": "workspace:*",
"@formbricks/eslint-config": "workspace:*"
}
}
7 changes: 1 addition & 6 deletions apps/docs/components/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ const docSearchConfig = {
indexName: process.env.NEXT_PUBLIC_DOCSEARCH_INDEX_NAME || "",
};

interface HitProps {
hit: { url: string };
children: React.ReactNode;
}

const Hit = ({ hit, children }: HitProps) => {
const Hit = ({ hit, children }): JSX.Element => {
return <Link href={hit.url}>{children}</Link>;
};

Expand Down
10 changes: 5 additions & 5 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"clean": "rimraf .turbo node_modules .next",
"dev": "next dev --port 3001",
"dev": "next dev --turbopack --port 3001",
"build": "next build",
"start": "next start",
"lint": "next lint",
Expand All @@ -23,7 +23,7 @@
"@mapbox/rehype-prism": "0.9.0",
"@mdx-js/loader": "3.0.1",
"@mdx-js/react": "3.0.1",
"@next/mdx": "15.0.3",
"@next/mdx": "15.1.0",
"@paralleldrive/cuid2": "2.2.2",
"@sindresorhus/slugify": "2.2.1",
"@tailwindcss/typography": "0.5.15",
Expand All @@ -38,16 +38,16 @@
"lucide-react": "0.452.0",
"mdast-util-to-string": "4.0.0",
"mdx-annotations": "0.1.4",
"next": "15.0.3",
"next": "15.1.0",
"next-plausible": "3.12.2",
"next-seo": "6.6.0",
"next-sitemap": "4.2.3",
"next-themes": "0.3.0",
"node-fetch": "3.3.2",
"prism-react-renderer": "2.4.0",
"prismjs": "1.29.0",
"react": "19.0.0-rc-ed15d500-20241110",
"react-dom": "19.0.0-rc-ed15d500-20241110",
"react": "19.0.0",
"react-dom": "19.0.0",
"react-highlight-words": "0.20.0",
"react-markdown": "9.0.1",
"react-responsive-embed": "2.1.0",
Expand Down
4 changes: 2 additions & 2 deletions apps/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
},
"dependencies": {
"eslint-plugin-react-refresh": "0.4.12",
"react": "19.0.0-rc-ed15d500-20241110",
"react-dom": "19.0.0-rc-ed15d500-20241110"
"react": "19.0.0",
"react-dom": "19.0.0"
},
"devDependencies": {
"@chromatic-com/storybook": "2.0.2",
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(auth)/invite/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { sendInviteAcceptedEmail } from "@/modules/email";
import { Button } from "@/modules/ui/components/button";
import { getServerSession } from "next-auth";
import { getTranslations } from "next-intl/server";
import { unstable_after as after } from "next/server";
import Link from "next/link";
import { after } from "next/server";
import { DEFAULT_LOCALE, WEBAPP_URL } from "@formbricks/lib/constants";
import { deleteInvite, getInvite } from "@formbricks/lib/invite/service";
import { verifyInviteToken } from "@formbricks/lib/jwt";
Expand Down
2 changes: 1 addition & 1 deletion apps/web/modules/ee/license-check/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
TEnterpriseLicenseFeatures,
} from "@/modules/ee/license-check/types/enterprise-license";
import { HttpsProxyAgent } from "https-proxy-agent";
import { unstable_after as after } from "next/server";
import { after } from "next/server";
import fetch from "node-fetch";
import { cache as reactCache } from "react";
import { prisma } from "@formbricks/database";
Expand Down
6 changes: 2 additions & 4 deletions apps/web/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ const nextConfig = {
outputFileTracingIncludes: {
"app/api/packages": ["../../packages/js-core/dist/*", "../../packages/surveys/dist/*"],
},
experimental: {
after: true,
},
experimental: {},
transpilePackages: ["@formbricks/database", "@formbricks/lib"],
images: {
remotePatterns: [
Expand Down Expand Up @@ -317,7 +315,7 @@ const sentryConfig = {
};

const exportConfig = process.env.NEXT_PUBLIC_SENTRY_DSN
? withSentryConfig(nextConfig, sentryOptions, sentryConfig)
? withSentryConfig(nextConfig, sentryOptions)
: nextConfig;

export default withNextIntl(nextConfig);
12 changes: 6 additions & 6 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"private": true,
"scripts": {
"clean": "rimraf .turbo node_modules .next",
"dev": "next dev -p 3000 --turbo",
"go": "next dev -p 3000 --turbo",
"dev": "next dev -p 3000 --turbopack",
"go": "next dev -p 3000 --turbopack",
"build": "next build",
"build:dev": "next build",
"start": "next start",
Expand Down Expand Up @@ -87,20 +87,20 @@
"lru-cache": "11.0.1",
"lucide-react": "0.452.0",
"mime": "4.0.4",
"next": "15.0.3",
"next": "15.1.0",
"next-auth": "4.24.10",
"next-intl": "3.20.0",
"next-safe-action": "7.9.3",
"next-safe-action": "7.10.1",
"optional": "0.1.4",
"otplib": "12.0.1",
"papaparse": "5.4.1",
"posthog-js": "1.167.0",
"prismjs": "1.29.0",
"react": "19.0.0-rc-ed15d500-20241110",
"react": "19.0.0",
"react-colorful": "5.6.1",
"react-confetti": "6.1.0",
"react-day-picker": "9.0.8",
"react-dom": "19.0.0-rc-ed15d500-20241110",
"react-dom": "19.0.0",
"react-hook-form": "7.53.0",
"react-hot-toast": "2.4.1",
"react-icons": "5.3.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/config-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
},
"devDependencies": {
"@types/node": "22.3.0",
"@types/react": "18.3.11",
"@types/react-dom": "18.3.0",
"@types/react": "19.0.1",
"@types/react-dom": "19.0.2",
"typescript": "5.4.5"
}
}
2 changes: 1 addition & 1 deletion packages/surveys/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@formbricks/lib": "workspace:*",
"@formbricks/types": "workspace:*",
"@preact/preset-vite": "2.9.0",
"@types/react": "18.3.11",
"@types/react": "19.0.1",
"autoprefixer": "10.4.20",
"concurrently": "8.2.2",
"isomorphic-dompurify": "2.14.0",
Expand Down
Loading

0 comments on commit 65d9220

Please sign in to comment.