Skip to content

Commit 910569c

Browse files
committed
chore: finally all code was renamed/migrated
1 parent e4eceac commit 910569c

4 files changed

Lines changed: 7 additions & 16 deletions

File tree

packages/openfeature-node-provider/example/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ app.get("/", (_req, res) => {
4242

4343
app.get("/todos", async (req, res) => {
4444
// Return todos if the feature is enabled for the user
45-
// We use the `getFeatures` method to check if the user has the "show-todo" feature enabled.
45+
// We use the `getBooleanValue` method to check if the user has the "show-todo" feature enabled.
4646
// Note that "show-todo" is a feature that we defined in the `Flags` interface in the `reflag.ts` file.
4747
// and that the indexing for feature name below is type-checked at compile time.
4848
const ofClient = OpenFeature.getClient();

packages/vue-sdk/src/ReflagProvider.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { ProviderSymbol } from "./hooks";
88
import { ProviderContextType, ReflagProps } from "./types";
99
import { SDK_VERSION } from "./version";
1010
11-
const featuresLoading = ref(true);
11+
const flagsLoading = ref(true);
1212
const updatedCount = ref<number>(0);
1313
1414
// any optional prop which has boolean as part of the type, will default to false
@@ -27,12 +27,12 @@ function updateClient() {
2727
logger: props.debug ? console : undefined,
2828
sdkVersion: SDK_VERSION,
2929
});
30-
featuresLoading.value = true;
30+
flagsLoading.value = true;
3131
cnext
3232
.initialize()
3333
.catch((e) => cnext.logger.error("failed to initialize client", e))
3434
.finally(() => {
35-
featuresLoading.value = false;
35+
flagsLoading.value = false;
3636
});
3737
3838
return cnext;
@@ -58,7 +58,7 @@ watch(
5858
const clientRef = shallowRef<ReflagClient>(updateClient());
5959
6060
const context = {
61-
isLoading: featuresLoading,
61+
isLoading: flagsLoading,
6262
updatedCount: updatedCount,
6363
client: clientRef,
6464
provider: true,

packages/vue-sdk/src/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { computed, inject, InjectionKey, onBeforeUnmount, ref } from "vue";
22

33
import { RequestFeedbackData, UnassignedFeedback } from "@reflag/browser-sdk";
44

5-
import { ProviderContextType } from "./types";
5+
import { Flag, ProviderContextType, RequestFlagFeedbackOptions } from "./types";
66

77
export const ProviderSymbol: InjectionKey<ProviderContextType> =
88
Symbol("ReflagProvider");

packages/vue-sdk/src/index.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,7 @@ export type { ReflagProps, RequestFlagFeedbackOptions } from "./types";
2525

2626
export { ReflagProvider };
2727

28-
export type {
29-
CheckEvent,
30-
CompanyContext,
31-
EmptyFlagRemoteConfig,
32-
Flag,
33-
Flags,
34-
FlagType,
35-
TrackEvent,
36-
UserContext,
37-
};
28+
export type { CheckEvent, CompanyContext, TrackEvent, UserContext };
3829

3930
export default {
4031
install(app: App, _options?: ReflagProps) {

0 commit comments

Comments
 (0)