Skip to content

Commit 167b883

Browse files
authored
Merge pull request #94 from Flagsmith/chores/remove_bullet_train_references
Remove bullet train references
2 parents 6731945 + 32ad7eb commit 167b883

File tree

15 files changed

+50
-39
lines changed

15 files changed

+50
-39
lines changed

examples/angular/package-lock.json

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

examples/deno/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img width="100%" src="https://raw.githubusercontent.com/Flagsmith/flagsmith/main/static-files/hero.png"/>
22

3-
# Bullet Train Feature Flags with Deno
3+
# Flagsmith Flags with Deno
44

55
This repository contains basic integration with Deno.
66

@@ -17,13 +17,13 @@ mode with nodemon reloading npm install.
1717

1818
```bash
1919
npm i
20-
BULLET_TRAIN="YOUR_ENV" npm run dev
20+
FLAGSMITH="YOUR_ENV" npm run dev
2121
```
2222

2323
## Bundling and running
2424

2525
```bash
26-
BULLET_TRAIN="YOUR_ENV" npm start
26+
FLAGSMITH="YOUR_ENV" npm start
2727
```
2828

2929
Goto http://localhost:8000.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ const flagsmith = Flagsmith({fetch, AsyncStorage: null});
55
export default flagsmith;
66
export const init = async function (){
77
return await flagsmith.init({
8-
environmentID: Deno.env("BULLET_TRAIN"),
9-
api: "https://api.bullet-train.io/api/v1/",
8+
environmentID: Deno.env("FLAGSMITH"),
9+
api: "https://api.flagsmith.com/api/v1/",
1010
onError: (err) => {},
1111
onChange: (err) => {},
1212
cacheFlags: false,

examples/deno/app/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Application, Router} from "https://deno.land/x/oak/mod.ts";
2-
import {init} from './bullet-train.ts';
2+
import {init} from './flagsmith.ts';
33
import router from './router.ts';
44

55
const start = async ()=> {
@@ -11,3 +11,4 @@ const start = async ()=> {
1111
};
1212

1313
start();
14+
``

examples/deno/app/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Router} from "https://deno.land/x/oak/mod.ts";
2-
import flagsmith from './bullet-train.ts';
2+
import flagsmith from './flagsmith.ts';
33

44
const router = new Router();
55
router

examples/deno/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "deno-example",
33
"version": "1.0.0",
4-
"description": "Using Bullet Train with Deno",
4+
"description": "Using Flagsmith with Deno",
55
"scripts": {
66
"build": "deno bundle ./app/index.ts ./out.ts",
77
"dev": "nodemon --exec deno --allow-net --allow-env ./app/index.ts",

examples/react-native/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<img width="100%" src="https://raw.githubusercontent.com/SolidStateGroup/bullet-train-frontend/master/hero.png"/>
1+
<img width="100%" src="https://github.com/Flagsmith/flagsmith/raw/main/static-files/hero.png"/>
22

33
## Flagsmith with React Native
44
This repository contains basic integration with a standard react-native init application.

examples/react/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<img width="100%" src="https://raw.githubusercontent.com/SolidStateGroup/bullet-train-frontend/master/hero.png"/>
1+
<img width="100%" src="https://github.com/Flagsmith/flagsmith/raw/main/static-files/hero.png"/>
22

33
# Flagsmith with React
44

flagsmith/index.d.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1+
// Deprecated
12
export interface IBulletTrainFeature {
23
enabled: boolean
3-
value?: string
4+
value?: string|number|boolean
45
}
56

7+
export interface IFlagsmithFeature extends IBulletTrainFeature {}
8+
69
export interface IFlags {
7-
[key: string]: IBulletTrainFeature
10+
[key: string]: IFlagsmithFeature
811
}
912

1013
export interface ITraits {
1114
[key: string]: string
1215
}
1316

1417
export interface IUserIdentity {
15-
flags: IBulletTrainFeature
18+
flags: IFlagsmithFeature
1619
traits: ITraits
1720
}
1821
export interface IRetrieveInfo {
@@ -33,8 +36,9 @@ declare class IFlagsmith {
3336
* Initialise the sdk against a particular environment
3437
*/
3538
init:(config: {
36-
environmentID: string // your Bullet Train environment id
39+
environmentID: string // your Flagsmith environment id
3740
api?: string // the api you wish to use, important if self hosting
41+
headers?: object // pass custom headers for flagsmith api calls
3842
AsyncStorage?: any // an AsyncStorage implementation
3943
cacheFlags?: boolean // whether to local storage flags, needs AsyncStorage defined
4044
preventFetch?: boolean // whether to prevent fetching flags on init

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": "1.7.2",
3+
"version": "1.7.3",
44
"description": "Feature flagging to support continuous development",
55
"main": "./index.js",
66
"repository": {

0 commit comments

Comments
 (0)