Skip to content

Commit 0151c09

Browse files
Anton LillebyAnton Lilleby
authored andcommitted
docs: update connection string topic
1 parent db3b187 commit 0151c09

File tree

7 files changed

+16
-10
lines changed

7 files changed

+16
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# vue3-app-configuration
22

3-
Vue 3 plugin that provides an easy way to manage feature flags in your Vue 3 application using Azure App Configuration. This plugin allows you to use feature flags and toggle different environments.
3+
Vue 3 plugin that provides an easy way to manage feature flags in your Vue 3 application through Azure App Configuration. This plugin allows you to use feature flags and toggle between different environments.
44

55
## Installation
66

@@ -27,7 +27,7 @@ app.use(
2727
app.mount("#app");
2828
```
2929

30-
Replace 'your-azure-configuration-readonly-connection-string' with your actual connection string. You can use this guide for refence [Feature Flags in Vue with Azure App Configuration](https://www.tvaidyan.com/2022/07/14/feature-flags-in-vue-with-azure-app-configuration).
30+
Replace 'your-azure-configuration-readonly-connection-string' with your actual connection string. For help with setting up a connection string and using feature flags in Azure, check out this guide: [Feature Flags in Vue with Azure App Configuration](https://www.tvaidyan.com/2022/07/14/feature-flags-in-vue-with-azure-app-configuration).
3131

3232
## Using in Vue Components
3333

dist/index.js

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

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import {
2626
isFeatureFlag,
2727
parseFeatureFlag
2828
} from "@azure/app-configuration";
29-
import { ref, inject } from "vue";
29+
import { inject, ref } from "vue";
3030
var FeatureFlagsManagerKey = Symbol("FeatureFlagsManager");
3131
var featureFlagsManager = (connectionString) => {
3232
let client = null;
@@ -86,7 +86,9 @@ var useFeatureFlags = () => {
8686
FeatureFlagsManagerKey
8787
);
8888
if (!featureFlagsManager2) {
89-
throw new Error("FeatureFlagsManager is not provided");
89+
throw new Error(
90+
"[App Configuration Plugin] FeatureFlagsManager is not provided."
91+
);
9092
}
9193
return featureFlagsManager2;
9294
};

dist/index.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue3-app-configuration",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "A Vue 3 plugin for integrating Azure App Configuration, including feature flags management.",
55
"main": "./dist/index.js",
66
"module": "./dist/index.mjs",

src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
isFeatureFlag,
55
parseFeatureFlag,
66
} from "@azure/app-configuration";
7-
import { ref, type App, type InjectionKey, type Ref, inject } from "vue";
7+
import { inject, ref, type App, type InjectionKey, type Ref } from "vue";
88

99
type TypeGetFeatureFlag = (name: string, label?: string) => Promise<boolean>;
1010
type TypeGetFeatureFlagRef = (name: string, label?: string) => Ref<boolean>;
@@ -87,7 +87,9 @@ export const useFeatureFlags = () => {
8787
FeatureFlagsManagerKey
8888
) as IFeatureFlagsManager;
8989
if (!featureFlagsManager) {
90-
throw new Error("FeatureFlagsManager is not provided");
90+
throw new Error(
91+
"[App Configuration Plugin] FeatureFlagsManager is not provided."
92+
);
9193
}
9294
return featureFlagsManager;
9395
};

0 commit comments

Comments
 (0)