@featurevisor/types 0.35.0 → 0.37.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.37.0](https://github.com/fahad19/featurevisor/compare/v0.36.0...v0.37.0) (2023-07-14)
7
+
8
+
9
+ ### Features
10
+
11
+ * renamed Attributes (object) to Context ([#101](https://github.com/fahad19/featurevisor/issues/101)) ([c392ad5](https://github.com/fahad19/featurevisor/commit/c392ad5f1b6100167aa5637b131f08036a7f5a55))
12
+
13
+
14
+
15
+
16
+
17
+ # [0.36.0](https://github.com/fahad19/featurevisor/compare/v0.35.0...v0.36.0) (2023-07-13)
18
+
19
+ **Note:** Version bump only for package @featurevisor/types
20
+
21
+
22
+
23
+
24
+
6
25
  # [0.35.0](https://github.com/fahad19/featurevisor/compare/v0.34.0...v0.35.0) (2023-07-13)
7
26
 
8
27
  **Note:** Version bump only for package @featurevisor/types
package/lib/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export type AttributeKey = string;
2
2
  export type AttributeValue = string | number | boolean | Date | null | undefined;
3
- export interface Attributes {
3
+ export interface Context {
4
4
  [key: AttributeKey]: AttributeValue;
5
5
  }
6
6
  export interface Attribute {
@@ -216,7 +216,7 @@ export interface ExistingState {
216
216
  export interface FeatureAssertion {
217
217
  description?: string;
218
218
  at: Weight;
219
- attributes: Attributes;
219
+ context: Context;
220
220
  expectedVariation?: VariationValue;
221
221
  expectedVariables?: {
222
222
  [key: VariableKey]: VariableValue;
@@ -228,7 +228,7 @@ export interface TestFeature {
228
228
  }
229
229
  export interface SegmentAssertion {
230
230
  description?: string;
231
- attributes: Attributes;
231
+ context: Context;
232
232
  expected: boolean;
233
233
  }
234
234
  export interface TestSegment {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@featurevisor/types",
3
- "version": "0.35.0",
3
+ "version": "0.37.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": "1c8bb99f1dce49b87a95c7e1903bc0308fc7db4d"
44
+ "gitHead": "1944f2ea8e86d07c7031720cd0b407bea547d0cb"
45
45
  }
package/src/index.ts CHANGED
@@ -2,7 +2,7 @@ export type AttributeKey = string;
2
2
 
3
3
  export type AttributeValue = string | number | boolean | Date | null | undefined;
4
4
 
5
- export interface Attributes {
5
+ export interface Context {
6
6
  [key: AttributeKey]: AttributeValue;
7
7
  }
8
8
 
@@ -331,7 +331,7 @@ export interface ExistingState {
331
331
  export interface FeatureAssertion {
332
332
  description?: string;
333
333
  at: Weight; // bucket weight: 0 to 100
334
- attributes: Attributes;
334
+ context: Context;
335
335
  expectedVariation?: VariationValue;
336
336
  expectedVariables?: {
337
337
  [key: VariableKey]: VariableValue;
@@ -345,7 +345,7 @@ export interface TestFeature {
345
345
 
346
346
  export interface SegmentAssertion {
347
347
  description?: string;
348
- attributes: Attributes;
348
+ context: Context;
349
349
  expected: boolean;
350
350
  }
351
351