Skip to content

Commit 99c4870

Browse files
committed
3.8.0 - replace events module, prepare for realtime flags
1 parent 18625d5 commit 99c4870

File tree

10 files changed

+12
-33
lines changed

10 files changed

+12
-33
lines changed

examples/experimental/reactnative/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
"dependencies": {
1313
"@react-native-async-storage/async-storage": "^1.17.0",
1414
"custom-event-polyfill": "^1.0.7",
15-
"flagsmith": "^3.8.0-beta.4",
15+
"flagsmith": "^3.8.0",
1616
"react": "18.0.0",
1717
"react-native": "0.69.4",
1818
"react-native-event-source": "^1.1.0",
19-
"react-native-flagsmith": "^3.8.0-beta.4"
19+
"react-native-flagsmith": "^3.8.0"
2020
},
2121
"devDependencies": {
2222
"@babel/core": "^7.12.9",

examples/nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"flagsmith-es": "3.8.0-beta.4",
12+
"flagsmith-es": "3.8.0",
1313
"lodash-es": "^4.17.21",
1414
"next": "12.1.0",
1515
"next-transpile-modules": "^9.0.0",

examples/nuxt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"dependencies": {
1212
"core-js": "^3.19.3",
13-
"flagsmith": "^3.8.0-beta.4",
13+
"flagsmith": "^3.8.0",
1414
"node-fetch": "^2.5.0",
1515
"nuxt": "^2.15.8",
1616
"vue": "^2.6.14",

examples/reactnative/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"flagsmith": "2.0.0",
1515
"react": "17.0.2",
1616
"react-native": "0.67.4",
17-
"react-native-flagsmith": "3.8.0-beta.4"
17+
"react-native-flagsmith": "3.8.0"
1818
},
1919
"devDependencies": {
2020
"@babel/core": "7.17.8",

flagsmith-es/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flagsmith-es",
3-
"version": "3.8.0-beta.4",
3+
"version": "3.8.0",
44
"description": "Feature flagging to support continuous development. This is an esm equivalent of the standard flagsmith npm module.",
55
"main": "./index.js",
66
"type": "module",

flagsmith/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flagsmith",
3-
"version": "3.8.0-beta.4",
3+
"version": "3.8.0",
44
"description": "Feature flagging to support continuous development",
55
"main": "./index.js",
66
"repository": {

package-lock.json

Lines changed: 0 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

react-native-flagsmith/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-flagsmith",
3-
"version": "3.8.0-beta.4",
3+
"version": "3.8.0",
44
"description": "Feature flagging to support continuous development",
55
"main": "./index.js",
66
"repository": {

types.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ export interface IInitConfig<F extends string = string, T extends string = strin
4343
cacheOptions?: ICacheOptions // A ttl in ms (default to 0 which is infinite) and option to skip hitting the API in flagsmith.init if there's cache available.
4444
defaultFlags?: Partial<IFlags<F>>; // Default flags to provide { font_size: { enabled: true, value: 12 } }
4545
fetch?: any // A Custom fetch implementation. Note: this has to resolve with the same types as standard fetch
46+
realtime?: boolean // Upcoming: not in production - Enable event source realtime flags.
47+
eventSourceUrl?: string // Upcoming: not in production - The event source url to connect realtime flags to, replaces $ENVIRONMENT with your key.
4648
enableAnalytics?: boolean // Enable sending flag analytics for getValue and hasFeature evaluations.
4749
enableDynatrace?: boolean // Enables the Dynatrace RUM integration
4850
enableLogs?: boolean // whether to enable logs

types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ export interface IInitConfig<F extends string = string, T extends string = strin
4343
cacheOptions?: ICacheOptions // A ttl in ms (default to 0 which is infinite) and option to skip hitting the API in flagsmith.init if there's cache available.
4444
defaultFlags?: Partial<IFlags<F>>; // Default flags to provide { font_size: { enabled: true, value: 12 } }
4545
fetch?: any // A Custom fetch implementation. Note: this has to resolve with the same types as standard fetch
46+
realtime?: boolean // Upcoming: not in production - Enable event source realtime flags.
47+
eventSourceUrl?: string // Upcoming: not in production - The event source url to connect realtime flags to, replaces $ENVIRONMENT with your key.
4648
enableAnalytics?: boolean // Enable sending flag analytics for getValue and hasFeature evaluations.
4749
enableDynatrace?: boolean // Enables the Dynatrace RUM integration
4850
enableLogs?: boolean // whether to enable logs

0 commit comments

Comments
 (0)