@featurevisor/types 0.16.0 → 0.18.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 +22 -0
- package/lib/index.d.ts +9 -0
- package/package.json +2 -2
- package/src/index.ts +11 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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.18.0](https://github.com/fahad19/featurevisor/compare/v0.17.0...v0.18.0) (2023-05-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Initial features ([#66](https://github.com/fahad19/featurevisor/issues/66)) ([ec91d6e](https://github.com/fahad19/featurevisor/commit/ec91d6e383c6795850bbb8e35a734f754378c68f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [0.17.0](https://github.com/fahad19/featurevisor/compare/v0.16.0...v0.17.0) (2023-05-12)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* sticky features ([#65](https://github.com/fahad19/featurevisor/issues/65)) ([eb4ff69](https://github.com/fahad19/featurevisor/commit/eb4ff69dcb3d6f979eb1c9dec3fe4cf1583e1fc9))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [0.16.0](https://github.com/fahad19/featurevisor/compare/v0.15.0...v0.16.0) (2023-04-30)
|
|
7
29
|
|
|
8
30
|
|
package/lib/index.d.ts
CHANGED
|
@@ -144,6 +144,15 @@ export interface DatafileContent {
|
|
|
144
144
|
segments: Segment[];
|
|
145
145
|
features: Feature[];
|
|
146
146
|
}
|
|
147
|
+
export interface StickyFeatures {
|
|
148
|
+
[key: FeatureKey]: {
|
|
149
|
+
variation: VariationValue;
|
|
150
|
+
variables?: {
|
|
151
|
+
[key: VariableKey]: VariableValue;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
export type InitialFeatures = StickyFeatures;
|
|
147
156
|
/**
|
|
148
157
|
* YAML-only type
|
|
149
158
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@featurevisor/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Common Typescript types for Featurevisor",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"url": "https://github.com/fahad19/featurevisor/issues"
|
|
42
42
|
},
|
|
43
43
|
"license": "MIT",
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "9de4cc7d1e0bf04f43d03db047ee7be331109359"
|
|
45
45
|
}
|
package/src/index.ts
CHANGED
|
@@ -238,6 +238,17 @@ export interface DatafileContent {
|
|
|
238
238
|
features: Feature[];
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
+
export interface StickyFeatures {
|
|
242
|
+
[key: FeatureKey]: {
|
|
243
|
+
variation: VariationValue;
|
|
244
|
+
variables?: {
|
|
245
|
+
[key: VariableKey]: VariableValue;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export type InitialFeatures = StickyFeatures;
|
|
251
|
+
|
|
241
252
|
/**
|
|
242
253
|
* YAML-only type
|
|
243
254
|
*/
|