fix: read browser locale and is debug on first event

`shared.ts` currently reads the default browser locale and is debug on import, which causes
issueswhen imported in a server component. This moves the reads for those to whenever the first
event issent and those values are actually required, which is typically on the client.

fix #7
This commit is contained in:
Noah Richardson 2024-07-19 09:37:35 -04:00
parent e4250b9352
commit 95f9710547
8 changed files with 40 additions and 14 deletions

View file

@ -1,3 +1,7 @@
## 0.3.4
- Move browser locale and is debug reads from import to first event to better support SSR
## 0.3.3
- Rename `apiPath` to `apiUrl`

View file

@ -1,6 +1,6 @@
{
"name": "@aptabase/react",
"version": "0.3.3",
"version": "0.3.4",
"type": "module",
"description": "React SDK for Aptabase: Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps",
"main": "./dist/index.cjs",