Skip to content

Commit 3d67992

Browse files
authored
chore: bumps sdk version for major release (#64)
* bumps sdk version for major release * updates readme and playground * fix lint
1 parent 0876570 commit 3d67992

5 files changed

Lines changed: 13 additions & 11 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,15 @@ export default function App() {
2929
{/* Your app code */}
3030
<Formbricks
3131
appUrl="https://app.formbricks.com"
32-
environmentId="your-environment-id"
32+
workspaceId="your-workspace-id"
3333
/>
3434
</View>
3535
);
3636
}
3737
```
3838

39-
Replace your-environment-id with your actual environment ID. You can find your environment ID in the **Connections instructions** in the Formbricks **Configuration** pages.
39+
Replace your-workspace-id with your actual workspace ID. You can find your workspace ID in the **Connections instructions** in the Formbricks **Configuration** pages.
40+
41+
> **Note:** The `environmentId` prop is still supported as a backward-compatible alias for `workspaceId`, but it is deprecated and will be removed in a future major release. New integrations should use `workspaceId`.
4042
4143
For more detailed guides for different frameworks, check out our [Framework Guides](https://formbricks.com/docs/getting-started/framework-guides).

apps/playground/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
EXPO_PUBLIC_APP_URL=http://192.168.0.197:3000
2-
EXPO_PUBLIC_FORMBRICKS_ENVIRONMENT_ID=cm5p0cs7r000819182b32j0a1
2+
EXPO_PUBLIC_FORMBRICKS_WORKSPACE_ID=cm5p0cs7r000819182b32j0a1

apps/playground/src/app.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import { Button, LogBox, StyleSheet, Text, View } from "react-native";
1313
LogBox.ignoreAllLogs();
1414

1515
export default function App(): JSX.Element {
16-
if (!process.env.EXPO_PUBLIC_FORMBRICKS_ENVIRONMENT_ID) {
17-
throw new Error("EXPO_PUBLIC_FORMBRICKS_ENVIRONMENT_ID is required");
16+
if (!process.env.EXPO_PUBLIC_FORMBRICKS_WORKSPACE_ID) {
17+
throw new Error("EXPO_PUBLIC_FORMBRICKS_WORKSPACE_ID is required");
1818
}
1919

2020
if (!process.env.EXPO_PUBLIC_APP_URL) {
@@ -104,9 +104,7 @@ export default function App(): JSX.Element {
104104

105105
<Formbricks
106106
appUrl={process.env.EXPO_PUBLIC_APP_URL as string}
107-
environmentId={
108-
process.env.EXPO_PUBLIC_FORMBRICKS_ENVIRONMENT_ID as string
109-
}
107+
workspaceId={process.env.EXPO_PUBLIC_FORMBRICKS_WORKSPACE_ID as string}
110108
/>
111109
</View>
112110
);

packages/react-native/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,15 @@ export default function App() {
2929
{/* Your app code */}
3030
<Formbricks
3131
appUrl="https://app.formbricks.com"
32-
environmentId="your-environment-id"
32+
workspaceId="your-workspace-id"
3333
/>
3434
</View>
3535
);
3636
}
3737
```
3838

39-
Replace your-environment-id with your actual environment ID. You can find your environment ID in the **Connections instructions** in the Formbricks **Configuration** pages.
39+
Replace your-workspace-id with your actual workspace ID. You can find your workspace ID in the **Connections instructions** in the Formbricks **Configuration** pages.
40+
41+
> **Note:** The `environmentId` prop is still supported as a backward-compatible alias for `workspaceId`, but it is deprecated and will be removed in a future major release. New integrations should use `workspaceId`.
4042
4143
For more detailed guides for different frameworks, check out our [Framework Guides](https://formbricks.com/docs/getting-started/framework-guides).

packages/react-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@formbricks/react-native",
3-
"version": "2.4.0",
3+
"version": "3.0.0",
44
"license": "MIT",
55
"description": "Formbricks React Native SDK allows you to connect your app to Formbricks, display surveys and trigger events.",
66
"homepage": "https://formbricks.com",

0 commit comments

Comments
 (0)