@featurevisor/vue 0.43.0 → 0.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.45.0](https://github.com/fahad19/featurevisor/compare/v0.44.2...v0.45.0) (2023-08-20)
7
+
8
+
9
+ ### Features
10
+
11
+ * React provider component prop renamed from sdk to instance ([#129](https://github.com/fahad19/featurevisor/issues/129)) ([9e8015c](https://github.com/fahad19/featurevisor/commit/9e8015c14a0924d25b75f06fd2a6e6ef6c5eee7a))
12
+
13
+
14
+
15
+
16
+
17
+ # [0.44.0](https://github.com/fahad19/featurevisor/compare/v0.43.0...v0.44.0) (2023-08-07)
18
+
19
+ **Note:** Version bump only for package @featurevisor/vue
20
+
21
+
22
+
23
+
24
+
6
25
  # [0.43.0](https://github.com/fahad19/featurevisor/compare/v0.42.1...v0.43.0) (2023-08-05)
7
26
 
8
27
  **Note:** Version bump only for package @featurevisor/vue
package/README.md CHANGED
@@ -4,73 +4,12 @@ Vue.js functions for Featurevisor.
4
4
 
5
5
  Visit [https://featurevisor.com/docs/vue](https://featurevisor.com/docs/vue) for more information.
6
6
 
7
- - [Installation](#installation)
8
- - [API](#api)
9
- - [`setupApp`](#setupapp)
10
- - [`useStatus`](#usestatus)
11
- - [`useVariation`](#usevariation)
12
- - [`useVariable`](#usevariable)
13
- - [`activateFeature`](#activatefeature)
14
- - [`useSdk`](#usesdk)
15
-
16
7
  ## Installation
17
8
 
18
9
  ```
19
10
  $ npm install --save @featurevisor/vue
20
11
  ```
21
12
 
22
- ## API
23
-
24
- ### `setupApp`
25
-
26
- Set up Featurevisor SDK instance in your Vue.js application:
27
-
28
- ```js
29
- import { createApp } from "vue";
30
- import { createInstance } from "@featurevisor/sdk";
31
- import { setupApp } from "@featurevisor/vue";
32
-
33
- const sdk = createInstance({
34
- // ...
35
- });
36
-
37
- const app = createApp({
38
- /* root component options */
39
- });
40
-
41
- setupApp(app, sdk);
42
- ```
43
-
44
- ### `useStatus`
45
-
46
- > useStatus(): { isReady: boolean }
47
-
48
- Function for checking if Featurevisor SDK is ready.
49
-
50
- ### `useVariation`
51
-
52
- > useVariation(featureKey, context = {}): VariationValue | undefined
53
-
54
- Function for getting variation value.
55
-
56
- ### `useVariable`
57
-
58
- > useVariable(featureKey, variableKey, context = {}): VariableValue | undefined
59
-
60
- Function for getting variable value.
61
-
62
- ### `activateFeature`
63
-
64
- > activateFeature(featureKey, context = {}): VariationValue | undefined
65
-
66
- Function for activating feature.
67
-
68
- ### `useSdk`
69
-
70
- > useSdk(): FeaturevisorInstance
71
-
72
- Function for getting Featurevisor SDK instance.
73
-
74
13
  ## License <!-- omit in toc -->
75
14
 
76
15
  MIT © [Fahad Heylaal](https://fahad19.com)
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1691270149059" clover="3.2.0">
3
- <project timestamp="1691270149059" name="All files">
2
+ <coverage generated="1692543101773" clover="3.2.0">
3
+ <project timestamp="1692543101773" name="All files">
4
4
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1" elements="4" coveredelements="4" complexity="0" loc="3" ncloc="3" packages="1" files="1" classes="1"/>
5
5
  <file name="setupApp.ts" path="/home/runner/work/featurevisor/featurevisor/packages/vue/src/setupApp.ts">
6
6
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
@@ -101,7 +101,7 @@
101
101
  <div class='footer quiet pad2 space-top1 center small'>
102
102
  Code coverage generated by
103
103
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
104
- at 2023-08-05T21:15:49.054Z
104
+ at 2023-08-20T14:51:41.768Z
105
105
  </div>
106
106
  <script src="prettify.js"></script>
107
107
  <script>
@@ -94,7 +94,7 @@ export function setupApp(app: App, sdk: FeaturevisorInstance) {
94
94
  <div class='footer quiet pad2 space-top1 center small'>
95
95
  Code coverage generated by
96
96
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
97
- at 2023-08-05T21:15:49.054Z
97
+ at 2023-08-20T14:51:41.768Z
98
98
  </div>
99
99
  <script src="prettify.js"></script>
100
100
  <script>
package/dist/index.js.gz CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@featurevisor/vue",
3
- "version": "0.43.0",
3
+ "version": "0.45.0",
4
4
  "description": "Vue.js package for Featurevisor",
5
5
  "main": "dist/index.js",
6
6
  "module": "lib/index.js",
@@ -42,8 +42,8 @@
42
42
  "url": "https://github.com/fahad19/featurevisor/issues"
43
43
  },
44
44
  "dependencies": {
45
- "@featurevisor/sdk": "^0.43.0",
46
- "@featurevisor/types": "^0.43.0",
45
+ "@featurevisor/sdk": "^0.45.0",
46
+ "@featurevisor/types": "^0.45.0",
47
47
  "vue": "^3.3.4"
48
48
  },
49
49
  "license": "MIT",
@@ -51,5 +51,5 @@
51
51
  "@vue/cli-plugin-unit-jest": "^5.0.8",
52
52
  "@vue/test-utils": "^2.4.0"
53
53
  },
54
- "gitHead": "2f4487fdd0ab9cf88d0726e10e3d6b0a23b22fef"
54
+ "gitHead": "802c1adc976aed9c8e0ec449a93068fa1c5fe64c"
55
55
  }