Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Updated Next.
Mike Cao5d1f2a6f2d72
diff --git a/package.json b/package.jsonindex 590c9174e..7549b0972 100644--- a/package.json+++ b/package.json@@ -112,7 +112,7 @@"lucide-react": "^0.540.0","maxmind": "^4.3.28","md5": "^2.3.0",- "next": "15.4.7",+ "next": "15.5.0","node-fetch": "^3.2.8","npm-run-all": "^4.1.5","papaparse": "^5.5.3",@@ -132,7 +132,7 @@"thenby": "^1.3.4","uuid": "^11.1.0","zod": "^3.25.76",- "zustand": "^5.0.6"+ "zustand": "^5.0.8"},"devDependencies": {"@formatjs/cli": "^4.2.29",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 7fb9a26eb..0cfda2745 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -135,8 +135,8 @@ importers:specifier: ^2.3.0version: 2.3.0next:- specifier: 15.4.7- version: 15.4.7(@babel/[email protected])([email protected])([email protected]([email protected]))([email protected])+ specifier: 15.5.0+ version: 15.5.0(@babel/[email protected])([email protected])([email protected]([email protected]))([email protected])node-fetch:specifier: ^3.2.8version: 3.3.2@@ -195,8 +195,8 @@ importers:specifier: ^3.25.76version: 3.25.76zustand:- specifier: ^5.0.6- version: 5.0.7(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))+ specifier: ^5.0.8+ version: 5.0.8(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))devDependencies:'@formatjs/cli':specifier: ^4.2.29@@ -1382,56 +1382,56 @@ packages:resolution: {integrity: sha512-SXQY/nCiSOSAZWNls/DQxrICldUR7PHSMUw2J2/ZejH1dk12Vwd3+SzSihHrRW9PNcErZkC2g3seM7bWZlvBRg==}engines: {node: '>=18.0.0'}- '@next/[email protected]':- resolution: {integrity: sha512-PrBIpO8oljZGTOe9HH0miix1w5MUiGJ/q83Jge03mHEE0E3pyqzAy2+l5G6aJDbXoobmxPJTVhbCuwlLtjSHwg==}+ '@next/[email protected]':+ resolution: {integrity: sha512-sDaprBAfzCQiOgo2pO+LhnV0Wt2wBgartjrr+dpcTORYVnnXD0gwhHhiiyIih9hQbq+JnbqH4odgcFWhqCGidw==}'@next/[email protected]':resolution: {integrity: sha512-ouaB+l8Cr/uzGxoGHUvd01OnfFTM8qM81Crw1AG0xoWDRN0DKLXyTWVe0FdAOHVBpGuXB87aufdRmrwzZDArIw==}- '@next/[email protected]':- resolution: {integrity: sha512-2Dkb+VUTp9kHHkSqtws4fDl2Oxms29HcZBwFIda1X7Ztudzy7M6XF9HDS2dq85TmdN47VpuhjE+i6wgnIboVzQ==}+ '@next/[email protected]':+ resolution: {integrity: sha512-v7Jj9iqC6enxIRBIScD/o0lH7QKvSxq2LM8UTyqJi+S2w2QzhMYjven4vgu/RzgsdtdbpkyCxBTzHl/gN5rTRg==}engines: {node: '>= 10'}cpu: [arm64]os: [darwin]- '@next/[email protected]':- resolution: {integrity: sha512-qaMnEozKdWezlmh1OGDVFueFv2z9lWTcLvt7e39QA3YOvZHNpN2rLs/IQLwZaUiw2jSvxW07LxMCWtOqsWFNQg==}+ '@next/[email protected]':+ resolution: {integrity: sha512-s2Nk6ec+pmYmAb/utawuURy7uvyYKDk+TRE5aqLRsdnj3AhwC9IKUBmhfnLmY/+P+DnwqpeXEFIKe9tlG0p6CA==}engines: {node: '>= 10'}cpu: [x64]os: [darwin]- '@next/[email protected]':- resolution: {integrity: sha512-ny7lODPE7a15Qms8LZiN9wjNWIeI+iAZOFDOnv2pcHStncUr7cr9lD5XF81mdhrBXLUP9yT9RzlmSWKIazWoDw==}+ '@next/[email protected]':+ resolution: {integrity: sha512-mGlPJMZReU4yP5fSHjOxiTYvZmwPSWn/eF/dcg21pwfmiUCKS1amFvf1F1RkLHPIMPfocxLViNWFvkvDB14Isg==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]- '@next/[email protected]':- resolution: {integrity: sha512-4SaCjlFR/2hGJqZLLWycccy1t+wBrE/vyJWnYaZJhUVHccpGLG5q0C+Xkw4iRzUIkE+/dr90MJRUym3s1+vO8A==}+ '@next/[email protected]':+ resolution: {integrity: sha512-biWqIOE17OW/6S34t1X8K/3vb1+svp5ji5QQT/IKR+VfM3B7GvlCwmz5XtlEan2ukOUf9tj2vJJBffaGH4fGRw==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]- '@next/[email protected]':- resolution: {integrity: sha512-2uNXjxvONyRidg00VwvlTYDwC9EgCGNzPAPYbttIATZRxmOZ3hllk/YYESzHZb65eyZfBR5g9xgCZjRAl9YYGg==}+ '@next/[email protected]':+ resolution: {integrity: sha512-zPisT+obYypM/l6EZ0yRkK3LEuoZqHaSoYKj+5jiD9ESHwdr6QhnabnNxYkdy34uCigNlWIaCbjFmQ8FY5AlxA==}engines: {node: '>= 10'}cpu: [x64]os: [linux]- '@next/[email protected]':- resolution: {integrity: sha512-ceNbPjsFgLscYNGKSu4I6LYaadq2B8tcK116nVuInpHHdAWLWSwVK6CHNvCi0wVS9+TTArIFKJGsEyVD1H+4Kg==}+ '@next/[email protected]':+ resolution: {integrity: sha512-+t3+7GoU9IYmk+N+FHKBNFdahaReoAktdOpXHFIPOU1ixxtdge26NgQEEkJkCw2dHT9UwwK5zw4mAsURw4E8jA==}engines: {node: '>= 10'}cpu: [x64]os: [linux]- '@next/[email protected]':- resolution: {integrity: sha512-pZyxmY1iHlZJ04LUL7Css8bNvsYAMYOY9JRwFA3HZgpaNKsJSowD09Vg2R9734GxAcLJc2KDQHSCR91uD6/AAw==}+ '@next/[email protected]':+ resolution: {integrity: sha512-d8MrXKh0A+c9DLiy1BUFwtg3Hu90Lucj3k6iKTUdPOv42Ve2UiIG8HYi3UAb8kFVluXxEfdpCoPPCSODk5fDcw==}engines: {node: '>= 10'}cpu: [arm64]os: [win32]- '@next/[email protected]':- resolution: {integrity: sha512-HjuwPJ7BeRzgl3KrjKqD2iDng0eQIpIReyhpF5r4yeAHFwWRuAhfW92rWv/r3qeQHEwHsLRzFDvMqRjyM5DI6A==}+ '@next/[email protected]':+ resolution: {integrity: sha512-Fe1tGHxOWEyQjmygWkkXSwhFcTJuimrNu52JEuwItrKJVV4iRjbWp9I7zZjwqtiNnQmxoEvoisn8wueFLrNpvQ==}engines: {node: '>= 10'}cpu: [x64]os: [win32]@@ -3005,6 +3005,9 @@ packages:resolution: {integrity: sha512-EV/laoX7Wq2J9TQlyIXRxTJqIw4sxfXS4OYgudGxBYRuTv0q7AM6yMEpU/Vo1I94thg9U6EZ2NfZx9GJq83u7w==}+ resolution: {integrity: sha512-ImpN5gLEY8gWeqfLUyEF4b7mYWcYoR2Si1VhnrbM4JizRFmfGaAQ12PhNykq6nvI4XvKLrsp8Xde74D5phJOSw==}+resolution: {integrity: sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==}@@ -5177,8 +5180,8 @@ packages:resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==}- resolution: {integrity: sha512-OcqRugwF7n7mC8OSYjvsZhhG1AYSvulor1EIUsIkbbEbf1qoE5EbH36Swj8WhF4cHqmDgkiam3z1c1W0J1Wifg==}+ resolution: {integrity: sha512-N1lp9Hatw3a9XLt0307lGB4uTKsXDhyOKQo7uYMzX4i0nF/c27grcGXkLdb7VcT8QPYLBa8ouIyEoUQJ2OyeNQ==}engines: {node: ^18.18.0 || ^19.8.0 || >= 20.0.0}hasBin: truepeerDependencies:@@ -7088,8 +7091,8 @@ packages:resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}- resolution: {integrity: sha512-Ot6uqHDW/O2VdYsKLLU8GQu8sCOM1LcoE8RwvLv9uuRT9s6SOHCKs0ZEOhxg+I1Ld+A1Q5lwx+UlKXXUoCZITg==}+ resolution: {integrity: sha512-gyPKpIaxY9XcO2vSMrLbiER7QMAMGOQZVRdJ6Zi782jkbzZygq5GI9nG8g+sMgitRtndwaBSl7uiqC49o1SSiw==}engines: {node: '>=12.20.0'}peerDependencies:'@types/react': '>=18.0.0'@@ -8178,34 +8181,34 @@ snapshots:'@netlify/[email protected]': {}- '@next/[email protected]': {}+ '@next/[email protected]': {}'@next/[email protected]':dependencies:glob: 10.3.10- '@next/[email protected]':+ '@next/[email protected]':optional: true- '@next/[email protected]':+ '@next/[email protected]':optional: true- '@next/[email protected]':+ '@next/[email protected]':optional: true- '@next/[email protected]':+ '@next/[email protected]':optional: true- '@next/[email protected]':+ '@next/[email protected]':optional: true- '@next/[email protected]':+ '@next/[email protected]':optional: true- '@next/[email protected]':+ '@next/[email protected]':optional: true- '@next/[email protected]':+ '@next/[email protected]':optional: true'@nodelib/[email protected]':@@ -9856,14 +9859,14 @@ snapshots:glob: 10.4.5highlight.js: 11.11.1lucide-react: 0.511.0([email protected])- next: 15.4.7(@babel/[email protected])([email protected])([email protected]([email protected]))([email protected])+ next: 15.5.0(@babel/[email protected])([email protected])([email protected]([email protected]))([email protected])react: 19.1.1react-dom: 19.1.1([email protected])react-hook-form: 7.62.0([email protected])react-icons: 5.5.0([email protected])thenby: 1.3.4- zustand: 5.0.7(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))+ zustand: 5.0.8(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))transitivePeerDependencies:- '@babel/core'- '@opentelemetry/api'@@ -10374,12 +10377,14 @@ snapshots:dependencies:browserslist: 4.25.2- caniuse-lite: 1.0.30001735+ caniuse-lite: 1.0.30001736lodash.memoize: 4.1.2lodash.uniq: 4.5.0+ [email protected]: {}+@@ -12959,24 +12964,24 @@ snapshots:- [email protected](@babel/[email protected])([email protected])([email protected]([email protected]))([email protected]):+ [email protected](@babel/[email protected])([email protected])([email protected]([email protected]))([email protected]):dependencies:- '@next/env': 15.4.7+ '@next/env': 15.5.0'@swc/helpers': 0.5.15- caniuse-lite: 1.0.30001735+ caniuse-lite: 1.0.30001736postcss: 8.4.31react: 19.1.1react-dom: 19.1.1([email protected])styled-jsx: 5.1.6(@babel/[email protected])([email protected])optionalDependencies:- '@next/swc-darwin-arm64': 15.4.7- '@next/swc-darwin-x64': 15.4.7- '@next/swc-linux-arm64-gnu': 15.4.7- '@next/swc-linux-arm64-musl': 15.4.7- '@next/swc-linux-x64-gnu': 15.4.7- '@next/swc-linux-x64-musl': 15.4.7- '@next/swc-win32-arm64-msvc': 15.4.7- '@next/swc-win32-x64-msvc': 15.4.7+ '@next/swc-darwin-arm64': 15.5.0+ '@next/swc-darwin-x64': 15.5.0+ '@next/swc-linux-arm64-gnu': 15.5.0+ '@next/swc-linux-arm64-musl': 15.5.0+ '@next/swc-linux-x64-gnu': 15.5.0+ '@next/swc-linux-x64-musl': 15.5.0+ '@next/swc-win32-arm64-msvc': 15.5.0+ '@next/swc-win32-x64-msvc': 15.5.0babel-plugin-react-compiler: 19.1.0-rc.2sharp: 0.34.3transitivePeerDependencies:@@ -15124,7 +15129,7 @@ snapshots:- [email protected](@types/[email protected])([email protected])([email protected])([email protected]([email protected])):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected]([email protected])):optionalDependencies:'@types/react': 19.1.10immer: 9.0.21diff --git a/src/app/(main)/websites/[websiteId]/WebsiteHeader.tsx b/src/app/(main)/websites/[websiteId]/WebsiteHeader.tsxindex 357d9a5cd..0aa57a2c7 100644--- a/src/app/(main)/websites/[websiteId]/WebsiteHeader.tsx+++ b/src/app/(main)/websites/[websiteId]/WebsiteHeader.tsx@@ -1,11 +1,10 @@import { Button, Icon, Text, Row, DialogTrigger, Dialog, Modal } from '@umami/react-zen';import { PageHeader } from '@/components/common/PageHeader';-import { useWebsite } from '@/components/hooks/useWebsite';import { Share, Edit } from '@/components/icons';import { Favicon } from '@/components/common/Favicon';import { ActiveUsers } from '@/components/metrics/ActiveUsers';import { WebsiteShareForm } from '@/app/(main)/websites/[websiteId]/settings/WebsiteShareForm';-import { useMessages, useNavigation } from '@/components/hooks';+import { useMessages, useNavigation, useWebsite } from '@/components/hooks';import { LinkButton } from '@/components/common/LinkButton';export function WebsiteHeader() {diff --git a/src/app/(main)/websites/[websiteId]/WebsiteTabs.tsx b/src/app/(main)/websites/[websiteId]/WebsiteTabs.tsxindex c569b73c4..e69b80df7 100644--- a/src/app/(main)/websites/[websiteId]/WebsiteTabs.tsx+++ b/src/app/(main)/websites/[websiteId]/WebsiteTabs.tsx@@ -1,6 +1,5 @@import { Tabs, TabList, Tab, Icon, Text, Row } from '@umami/react-zen';-import { useWebsite } from '@/components/hooks/useWebsite';-import { useMessages, useNavigation } from '@/components/hooks';+import { useMessages, useNavigation, useWebsite } from '@/components/hooks';import { Clock, Eye, Lightning, User, ChartPie } from '@/components/icons';export function WebsiteTabs() {