chore: update npm dependencies (#2464)

This commit is contained in:
Matti Nannt
2024-04-17 13:34:38 +02:00
committed by GitHub
parent e8e701c567
commit 294b67a6cc
26 changed files with 1166 additions and 1555 deletions
+2 -2
View File
@@ -12,8 +12,8 @@
},
"dependencies": {
"@formbricks/js": "workspace:*",
"lucide-react": "^0.365.0",
"next": "14.1.4",
"lucide-react": "^0.368.0",
"next": "14.2.1",
"react": "18.2.0",
"react-dom": "18.2.0"
},
+2 -2
View File
@@ -2,7 +2,7 @@ import { slugifyWithCounter } from '@sindresorhus/slugify'
import * as acorn from 'acorn'
import { toString } from 'mdast-util-to-string'
import { mdxAnnotations } from 'mdx-annotations'
import shiki from 'shiki'
import { getHighlighter } from 'shiki'
import { visit } from 'unist-util-visit'
function rehypeParseCodeBlocks() {
@@ -23,7 +23,7 @@ let highlighter
function rehypeShiki() {
return async (tree) => {
highlighter =
highlighter ?? (await shiki.getHighlighter({ theme: 'css-variables' }))
highlighter ?? (await getHighlighter({ theme: 'css-variables' }))
visit(tree, 'element', (node) => {
if (node.tagName === 'pre' && node.children[0]?.tagName === 'code') {
+13 -13
View File
@@ -13,33 +13,33 @@
"browserslist": "defaults, not ie <= 11",
"dependencies": {
"@algolia/autocomplete-core": "^1.17.0",
"@calcom/embed-react": "^1.3.2",
"@calcom/embed-react": "^1.4.0",
"@docsearch/css": "3",
"@docsearch/react": "^3.6.0",
"@formbricks/lib": "workspace:*",
"@formbricks/types": "workspace:*",
"@formbricks/ui": "workspace:*",
"@headlessui/react": "^1.7.18",
"@headlessui/react": "^1.7.19",
"@headlessui/tailwindcss": "^0.2.0",
"@mapbox/rehype-prism": "^0.9.0",
"@mdx-js/loader": "^3.0.1",
"@mdx-js/react": "^3.0.1",
"@next/mdx": "14.1.3",
"@next/mdx": "14.2.1",
"@paralleldrive/cuid2": "^2.2.2",
"@sindresorhus/slugify": "^2.2.1",
"@tailwindcss/typography": "^0.5.10",
"@tailwindcss/typography": "^0.5.12",
"acorn": "^8.11.3",
"autoprefixer": "^10.4.18",
"autoprefixer": "^10.4.19",
"clsx": "^2.1.0",
"fast-glob": "^3.3.2",
"flexsearch": "^0.7.43",
"framer-motion": "11.0.13",
"framer-motion": "11.1.1",
"lottie-web": "^5.12.2",
"lucide": "^0.350.0",
"lucide-react": "^0.356.0",
"lucide": "^0.368.0",
"lucide-react": "^0.368.0",
"mdast-util-to-string": "^4.0.0",
"mdx-annotations": "^0.1.4",
"next": "14.1.3",
"next": "14.2.1",
"next-plausible": "^3.12.0",
"next-seo": "^6.5.0",
"next-sitemap": "^4.2.3",
@@ -50,17 +50,17 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"react-highlight-words": "^0.20.0",
"react-icons": "^5.0.1",
"react-icons": "^5.1.0",
"react-markdown": "^9.0.1",
"react-responsive-embed": "^2.1.0",
"remark": "^15.0.1",
"remark-gfm": "^4.0.0",
"remark-mdx": "^3.0.0",
"remark-mdx": "^3.0.1",
"schema-dts": "^1.1.2",
"sharp": "^0.33.1",
"sharp": "^0.33.3",
"shiki": "^0.14.7",
"simple-functional-loader": "^1.2.1",
"tailwindcss": "^3.4.1",
"tailwindcss": "^3.4.3",
"unist-util-filter": "^5.0.1",
"unist-util-visit": "^5.0.0",
"zustand": "^4.5.2"
+10 -10
View File
@@ -17,19 +17,19 @@
},
"devDependencies": {
"@formbricks/tsconfig": "workspace:*",
"@storybook/addon-essentials": "^8.0.6",
"@storybook/addon-interactions": "^8.0.6",
"@storybook/addon-links": "^8.0.6",
"@storybook/addon-onboarding": "^8.0.6",
"@storybook/blocks": "^8.0.6",
"@storybook/react": "^8.0.6",
"@storybook/react-vite": "^8.0.6",
"@storybook/addon-essentials": "^8.0.8",
"@storybook/addon-interactions": "^8.0.8",
"@storybook/addon-links": "^8.0.8",
"@storybook/addon-onboarding": "^8.0.8",
"@storybook/blocks": "^8.0.8",
"@storybook/react": "^8.0.8",
"@storybook/react-vite": "^8.0.8",
"@storybook/testing-library": "^0.2.2",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"@typescript-eslint/eslint-plugin": "^7.7.0",
"@typescript-eslint/parser": "^7.7.0",
"@vitejs/plugin-react": "^4.2.1",
"esbuild": "^0.20.2",
"tsup": "^8.0.2",
"vite": "^5.2.8"
"vite": "^5.2.9"
}
}
+10 -10
View File
@@ -22,7 +22,7 @@
"@formbricks/tailwind-config": "workspace:*",
"@formbricks/types": "workspace:*",
"@formbricks/ui": "workspace:*",
"@headlessui/react": "^1.7.18",
"@headlessui/react": "^1.7.19",
"@json2csv/node": "^7.0.6",
"@opentelemetry/auto-instrumentations-node": "^0.44.0",
"@opentelemetry/exporter-trace-otlp-http": "^0.50.0",
@@ -32,33 +32,33 @@
"@paralleldrive/cuid2": "^2.2.2",
"@radix-ui/react-collapsible": "^1.0.3",
"@react-email/components": "^0.0.16",
"@sentry/nextjs": "^7.109.0",
"@sentry/nextjs": "^7.110.1",
"@vercel/og": "^0.6.2",
"@vercel/speed-insights": "^1.0.10",
"bcryptjs": "^2.4.3",
"dotenv": "^16.4.5",
"encoding": "^0.1.13",
"framer-motion": "11.0.25",
"framer-motion": "11.1.1",
"googleapis": "^134.0.0",
"jiti": "^1.21.0",
"jsonwebtoken": "^9.0.2",
"lodash": "^4.17.21",
"lru-cache": "^10.2.0",
"lucide-react": "^0.365.0",
"lucide-react": "^0.368.0",
"mime": "^4.0.1",
"next": "14.1.4",
"next": "14.2.1",
"nodemailer": "^6.9.13",
"otplib": "^12.0.1",
"posthog-js": "^1.118.1",
"posthog-js": "^1.125.0",
"prismjs": "^1.29.0",
"qrcode": "^1.5.3",
"react": "18.2.0",
"react-beautiful-dnd": "^13.1.1",
"react-dom": "18.2.0",
"react-email": "^2.1.1",
"react-hook-form": "^7.51.2",
"react-hook-form": "^7.51.3",
"react-hot-toast": "^2.4.1",
"react-icons": "^5.0.1",
"react-icons": "^5.1.0",
"redis": "^4.6.13",
"sharp": "^0.33.3",
"ua-parser-js": "^1.0.37",
@@ -67,10 +67,10 @@
},
"devDependencies": {
"@formbricks/tsconfig": "workspace:*",
"@neshca/cache-handler": "^1.0.8",
"@neshca/cache-handler": "^1.2.1",
"@types/bcryptjs": "^2.4.6",
"@types/lodash": "^4.17.0",
"@types/markdown-it": "^13.0.7",
"@types/markdown-it": "^14.0.1",
"@types/qrcode": "^1.5.5",
"eslint-config-formbricks": "workspace:*"
}
+4 -4
View File
@@ -32,13 +32,13 @@
"prepare": "husky install"
},
"devDependencies": {
"@playwright/test": "^1.42.1",
"@playwright/test": "^1.43.1",
"eslint-config-formbricks": "workspace:*",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"rimraf": "^5.0.5",
"tsx": "^4.7.1",
"turbo": "^1.12.5"
"tsx": "^4.7.2",
"turbo": "^1.13.2"
},
"lint-staged": {
"(apps|packages)/**/*.{js,ts,jsx,tsx}": [
@@ -64,6 +64,6 @@
},
"dependencies": {
"@changesets/cli": "^2.27.1",
"playwright": "^1.42.1"
"playwright": "^1.43.1"
}
}
+2 -2
View File
@@ -38,7 +38,7 @@
"@formbricks/types": "workspace:*",
"eslint-config-formbricks": "workspace:*",
"terser": "^5.30.3",
"vite": "^5.2.8",
"vite-plugin-dts": "^3.8.1"
"vite": "^5.2.9",
"vite-plugin-dts": "^3.8.3"
}
}
+2 -1
View File
@@ -1,5 +1,6 @@
import Stripe from "stripe";
import { STRIPE_API_VERSION } from "@formbricks/lib/constants";
import { env } from "@formbricks/lib/env";
import { handleCheckoutSessionCompleted } from "../handlers/checkoutSessionCompleted";
@@ -7,7 +8,7 @@ import { handleSubscriptionUpdatedOrCreated } from "../handlers/subscriptionCrea
import { handleSubscriptionDeleted } from "../handlers/subscriptionDeleted";
const stripe = new Stripe(env.STRIPE_SECRET_KEY!, {
apiVersion: "2023-10-16",
apiVersion: STRIPE_API_VERSION,
});
const webhookSecret: string = env.STRIPE_WEBHOOK_SECRET!;
@@ -1,5 +1,6 @@
import Stripe from "stripe";
import { STRIPE_API_VERSION } from "@formbricks/lib/constants";
import { env } from "@formbricks/lib/env";
import {
getMonthlyActiveTeamPeopleCount,
@@ -13,7 +14,7 @@ import { reportUsage } from "../lib/reportUsage";
const stripe = new Stripe(env.STRIPE_SECRET_KEY!, {
// https://github.com/stripe/stripe-node#configuration
apiVersion: "2023-10-16",
apiVersion: STRIPE_API_VERSION,
});
export const handleCheckoutSessionCompleted = async (event: Stripe.Event) => {
@@ -1,5 +1,6 @@
import Stripe from "stripe";
import { STRIPE_API_VERSION } from "@formbricks/lib/constants";
import { env } from "@formbricks/lib/env";
import {
getMonthlyActiveTeamPeopleCount,
@@ -13,7 +14,7 @@ import { reportUsage } from "../lib/reportUsage";
const stripe = new Stripe(env.STRIPE_SECRET_KEY!, {
// https://github.com/stripe/stripe-node#configuration
apiVersion: "2023-10-16",
apiVersion: STRIPE_API_VERSION,
});
const isProductScheduled = async (
@@ -1,5 +1,6 @@
import Stripe from "stripe";
import { STRIPE_API_VERSION } from "@formbricks/lib/constants";
import { env } from "@formbricks/lib/env";
import { getTeam, updateTeam } from "@formbricks/lib/team/service";
@@ -8,7 +9,7 @@ import { unsubscribeCoreAndAppSurveyFeatures, unsubscribeLinkSurveyProFeatures }
const stripe = new Stripe(env.STRIPE_SECRET_KEY!, {
// https://github.com/stripe/stripe-node#configuration
apiVersion: "2023-10-16",
apiVersion: STRIPE_API_VERSION,
});
export const handleSubscriptionDeleted = async (event: Stripe.Event) => {
@@ -1,10 +1,11 @@
import Stripe from "stripe";
import { STRIPE_API_VERSION } from "@formbricks/lib/constants";
import { env } from "@formbricks/lib/env";
const stripe = new Stripe(env.STRIPE_SECRET_KEY!, {
// https://github.com/stripe/stripe-node#configuration
apiVersion: "2023-10-16",
apiVersion: STRIPE_API_VERSION,
});
export const createCustomerPortalSession = async (stripeCustomerId: string, returnUrl: string) => {
@@ -1,13 +1,13 @@
import Stripe from "stripe";
import { WEBAPP_URL } from "@formbricks/lib/constants";
import { STRIPE_API_VERSION, WEBAPP_URL } from "@formbricks/lib/constants";
import { env } from "@formbricks/lib/env";
import { getTeam } from "@formbricks/lib/team/service";
import { StripePriceLookupKeys } from "./constants";
const stripe = new Stripe(env.STRIPE_SECRET_KEY!, {
apiVersion: "2023-10-16",
apiVersion: STRIPE_API_VERSION,
});
const baseUrl = process.env.NODE_ENV === "production" ? WEBAPP_URL : "http://localhost:3000";
@@ -1,6 +1,6 @@
import Stripe from "stripe";
import { WEBAPP_URL } from "@formbricks/lib/constants";
import { STRIPE_API_VERSION, WEBAPP_URL } from "@formbricks/lib/constants";
import { env } from "@formbricks/lib/env";
import { getTeam, updateTeam } from "@formbricks/lib/team/service";
@@ -8,7 +8,7 @@ import { StripePriceLookupKeys } from "./constants";
import { getFirstOfNextMonthTimestamp } from "./createSubscription";
const stripe = new Stripe(env.STRIPE_SECRET_KEY!, {
apiVersion: "2023-10-16",
apiVersion: STRIPE_API_VERSION,
});
const baseUrl = process.env.NODE_ENV === "production" ? WEBAPP_URL : "http://localhost:3000";
+2 -1
View File
@@ -1,12 +1,13 @@
import Stripe from "stripe";
import { STRIPE_API_VERSION } from "@formbricks/lib/constants";
import { env } from "@formbricks/lib/env";
import { ProductFeatureKeys } from "./constants";
const stripe = new Stripe(env.STRIPE_SECRET_KEY!, {
// https://github.com/stripe/stripe-node#configuration
apiVersion: "2023-10-16",
apiVersion: STRIPE_API_VERSION,
});
export const reportUsage = async (
+1 -1
View File
@@ -18,6 +18,6 @@
},
"dependencies": {
"@formbricks/lib": "workspace:*",
"stripe": "^14.24.0"
"stripe": "^15.2.0"
}
}
@@ -8,10 +8,10 @@
"clean": "rimraf node_modules .turbo"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"@typescript-eslint/eslint-plugin": "^7.7.0",
"@typescript-eslint/parser": "^7.7.0",
"eslint": "^8.57.0",
"eslint-config-next": "^14.1.4",
"eslint-config-next": "^14.2.1",
"eslint-config-prettier": "^9.1.0",
"eslint-config-turbo": "1.10.12",
"eslint-plugin-react": "7.34.1",
+2 -2
View File
@@ -46,7 +46,7 @@
"@formbricks/types": "workspace:*",
"eslint-config-formbricks": "workspace:*",
"terser": "^5.30.3",
"vite": "^5.2.8",
"vite-plugin-dts": "^3.8.1"
"vite": "^5.2.9",
"vite-plugin-dts": "^3.8.3"
}
}
+3 -3
View File
@@ -1,7 +1,7 @@
{
"name": "@formbricks/js",
"license": "MIT",
"version": "1.7.3",
"version": "2.0.0-beta.0",
"description": "Formbricks-js allows you to connect your app to Formbricks, display surveys and trigger events.",
"homepage": "https://formbricks.com",
"repository": {
@@ -42,7 +42,7 @@
"@formbricks/tsconfig": "workspace:*",
"eslint-config-formbricks": "workspace:*",
"terser": "^5.30.3",
"vite": "^5.2.8",
"vite-plugin-dts": "^3.8.1"
"vite": "^5.2.9",
"vite-plugin-dts": "^3.8.3"
}
}
+2
View File
@@ -182,3 +182,5 @@ export const RATE_LIMITING_DISABLED = env.RATE_LIMITING_DISABLED === "1";
export const CUSTOMER_IO_SITE_ID = env.CUSTOMER_IO_SITE_ID;
export const CUSTOMER_IO_API_KEY = env.CUSTOMER_IO_API_KEY;
export const STRIPE_API_VERSION = "2024-04-10";
+6 -6
View File
@@ -14,20 +14,20 @@
"test": "dotenv -e ../../.env -- vitest run"
},
"dependencies": {
"@aws-sdk/client-s3": "3.549.0",
"@aws-sdk/s3-presigned-post": "3.549.0",
"@aws-sdk/s3-request-presigner": "3.549.0",
"@aws-sdk/client-s3": "3.556.0",
"@aws-sdk/s3-presigned-post": "3.556.0",
"@aws-sdk/s3-request-presigner": "3.556.0",
"@formbricks/api": "*",
"@formbricks/database": "*",
"@formbricks/types": "*",
"@paralleldrive/cuid2": "^2.2.2",
"@t3-oss/env-nextjs": "^0.9.2",
"aws-crt": "^1.21.1",
"aws-crt": "^1.21.2",
"date-fns": "^3.6.0",
"jsonwebtoken": "^9.0.2",
"markdown-it": "^14.1.0",
"mime-types": "^2.1.35",
"nanoid": "^5.0.6",
"nanoid": "^5.0.7",
"next-auth": "^4.24.7",
"nodemailer": "^6.9.13",
"posthog-node": "^4.0.0",
@@ -41,7 +41,7 @@
"dotenv": "^16.4.5",
"eslint-config-formbricks": "workspace:*",
"ts-node": "^10.9.2",
"vitest": "^1.4.0",
"vitest": "^1.5.0",
"vitest-mock-extended": "^1.3.1"
}
}
+1 -1
View File
@@ -9,6 +9,6 @@
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.13"
"prettier-plugin-tailwindcss": "^0.5.14"
}
}
+5 -5
View File
@@ -36,7 +36,7 @@
"clean": "rimraf .turbo node_modules dist"
},
"devDependencies": {
"@calcom/embed-snippet": "1.1.3",
"@calcom/embed-snippet": "1.2.0",
"@formbricks/lib": "workspace:*",
"@formbricks/tsconfig": "workspace:*",
"@formbricks/types": "workspace:*",
@@ -44,15 +44,15 @@
"autoprefixer": "^10.4.19",
"concurrently": "8.2.2",
"eslint-config-formbricks": "workspace:*",
"isomorphic-dompurify": "^2.6.0",
"isomorphic-dompurify": "^2.7.0",
"postcss": "^8.4.38",
"preact": "^10.20.1",
"preact": "^10.20.2",
"react-date-picker": "^10.6.0",
"serve": "14.2.1",
"tailwindcss": "^3.4.3",
"terser": "^5.30.3",
"vite": "^5.2.8",
"vite-plugin-dts": "^3.8.1",
"vite": "^5.2.9",
"vite-plugin-dts": "^3.8.3",
"vite-tsconfig-paths": "^4.3.2"
}
}
+3 -3
View File
@@ -7,9 +7,9 @@
"clean": "rimraf node_modules dist turbo"
},
"devDependencies": {
"@types/node": "20.12.4",
"@types/react": "18.2.74",
"@types/react-dom": "18.2.24",
"@types/node": "20.12.7",
"@types/react": "18.2.79",
"@types/react-dom": "18.2.25",
"typescript": "5.3.3"
}
}
+11 -11
View File
@@ -19,13 +19,13 @@
"@formbricks/database": "workspace:*",
"@formbricks/lib": "workspace:*",
"@formbricks/surveys": "workspace:*",
"@lexical/code": "^0.14.3",
"@lexical/link": "^0.14.3",
"@lexical/list": "^0.14.3",
"@lexical/markdown": "^0.14.3",
"@lexical/react": "^0.14.3",
"@lexical/rich-text": "^0.14.3",
"@lexical/table": "^0.14.3",
"@lexical/code": "^0.14.5",
"@lexical/link": "^0.14.5",
"@lexical/list": "^0.14.5",
"@lexical/markdown": "^0.14.5",
"@lexical/react": "^0.14.5",
"@lexical/rich-text": "^0.14.5",
"@lexical/table": "^0.14.5",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-dialog": "^1.0.5",
@@ -37,16 +37,16 @@
"@radix-ui/react-slider": "^1.1.2",
"@radix-ui/react-switch": "^1.0.3",
"@radix-ui/react-tooltip": "^1.0.7",
"boring-avatars": "^1.10.1",
"boring-avatars": "^1.10.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"cmdk": "^1.0.0",
"lexical": "^0.14.3",
"lucide-react": "^0.365.0",
"lexical": "^0.14.5",
"lucide-react": "^0.368.0",
"mime": "^4.0.1",
"react-colorful": "^5.6.1",
"react-confetti": "^6.1.0",
"react-day-picker": "^8.10.0",
"react-day-picker": "^8.10.1",
"react-hot-toast": "^2.4.1",
"react-radio-group": "^3.0.3",
"react-use": "^17.5.0"
+1070 -1467
View File
File diff suppressed because it is too large Load Diff