@featurevisor/types 0.60.0 → 0.62.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/.eslintcache +1 -1
- package/CHANGELOG.md +19 -0
- package/lib/index.d.ts +20 -4
- package/package.json +2 -2
- package/src/index.ts +24 -4
package/.eslintcache
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"/home/runner/work/featurevisor/featurevisor/packages/types/src/index.ts":"1"},{"size":
|
|
1
|
+
[{"/home/runner/work/featurevisor/featurevisor/packages/types/src/index.ts":"1"},{"size":9356,"mtime":1700413419239,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","suppressedMessages":"6","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1fqckjn","/home/runner/work/featurevisor/featurevisor/packages/types/src/index.ts",[],[]]
|
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.62.0](https://github.com/featurevisor/featurevisor/compare/v0.61.0...v0.62.0) (2023-11-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* get history info from datasource ([#213](https://github.com/featurevisor/featurevisor/issues/213)) ([6107a6b](https://github.com/featurevisor/featurevisor/commit/6107a6bee14708114413e4e59cb7ebeb061a79bd))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [0.61.0](https://github.com/featurevisor/featurevisor/compare/v0.60.1...v0.61.0) (2023-11-14)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @featurevisor/types
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [0.60.0](https://github.com/featurevisor/featurevisor/compare/v0.59.3...v0.60.0) (2023-11-07)
|
|
7
26
|
|
|
8
27
|
|
package/lib/index.d.ts
CHANGED
|
@@ -256,18 +256,20 @@ export type Test = TestSegment | TestFeature;
|
|
|
256
256
|
/**
|
|
257
257
|
* Site index and history
|
|
258
258
|
*/
|
|
259
|
+
export type EntityType = "attribute" | "segment" | "feature" | "group" | "test";
|
|
260
|
+
export type CommitHash = string;
|
|
259
261
|
export interface HistoryEntity {
|
|
260
|
-
type:
|
|
262
|
+
type: EntityType;
|
|
261
263
|
key: string;
|
|
262
264
|
}
|
|
263
265
|
export interface HistoryEntry {
|
|
264
|
-
commit:
|
|
266
|
+
commit: CommitHash;
|
|
265
267
|
author: string;
|
|
266
268
|
timestamp: string;
|
|
267
269
|
entities: HistoryEntity[];
|
|
268
270
|
}
|
|
269
271
|
export interface LastModified {
|
|
270
|
-
commit:
|
|
272
|
+
commit: CommitHash;
|
|
271
273
|
timestamp: string;
|
|
272
274
|
author: string;
|
|
273
275
|
}
|
|
@@ -276,7 +278,7 @@ export interface SearchIndex {
|
|
|
276
278
|
feature: string;
|
|
277
279
|
segment: string;
|
|
278
280
|
attribute: string;
|
|
279
|
-
commit:
|
|
281
|
+
commit: CommitHash;
|
|
280
282
|
};
|
|
281
283
|
entities: {
|
|
282
284
|
attributes: (Attribute & {
|
|
@@ -293,3 +295,17 @@ export interface SearchIndex {
|
|
|
293
295
|
})[];
|
|
294
296
|
};
|
|
295
297
|
}
|
|
298
|
+
export interface EntityDiff {
|
|
299
|
+
type: EntityType;
|
|
300
|
+
key: string;
|
|
301
|
+
created?: boolean;
|
|
302
|
+
deleted?: boolean;
|
|
303
|
+
updated?: boolean;
|
|
304
|
+
content?: string;
|
|
305
|
+
}
|
|
306
|
+
export interface Commit {
|
|
307
|
+
hash: CommitHash;
|
|
308
|
+
author: string;
|
|
309
|
+
timestamp: string;
|
|
310
|
+
entities: EntityDiff[];
|
|
311
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@featurevisor/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.62.0",
|
|
4
4
|
"description": "Common Typescript types for Featurevisor",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"url": "https://github.com/featurevisor/featurevisor/issues"
|
|
45
45
|
},
|
|
46
46
|
"license": "MIT",
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "64ff2edd5bbc0deedfc69aa2ada36b36e5e0c13a"
|
|
48
48
|
}
|
package/src/index.ts
CHANGED
|
@@ -384,20 +384,24 @@ export type Test = TestSegment | TestFeature;
|
|
|
384
384
|
/**
|
|
385
385
|
* Site index and history
|
|
386
386
|
*/
|
|
387
|
+
export type EntityType = "attribute" | "segment" | "feature" | "group" | "test";
|
|
388
|
+
|
|
389
|
+
export type CommitHash = string;
|
|
390
|
+
|
|
387
391
|
export interface HistoryEntity {
|
|
388
|
-
type:
|
|
392
|
+
type: EntityType;
|
|
389
393
|
key: string;
|
|
390
394
|
}
|
|
391
395
|
|
|
392
396
|
export interface HistoryEntry {
|
|
393
|
-
commit:
|
|
397
|
+
commit: CommitHash;
|
|
394
398
|
author: string;
|
|
395
399
|
timestamp: string;
|
|
396
400
|
entities: HistoryEntity[];
|
|
397
401
|
}
|
|
398
402
|
|
|
399
403
|
export interface LastModified {
|
|
400
|
-
commit:
|
|
404
|
+
commit: CommitHash;
|
|
401
405
|
timestamp: string;
|
|
402
406
|
author: string;
|
|
403
407
|
}
|
|
@@ -407,7 +411,7 @@ export interface SearchIndex {
|
|
|
407
411
|
feature: string;
|
|
408
412
|
segment: string;
|
|
409
413
|
attribute: string;
|
|
410
|
-
commit:
|
|
414
|
+
commit: CommitHash;
|
|
411
415
|
};
|
|
412
416
|
entities: {
|
|
413
417
|
attributes: (Attribute & {
|
|
@@ -424,3 +428,19 @@ export interface SearchIndex {
|
|
|
424
428
|
})[];
|
|
425
429
|
};
|
|
426
430
|
}
|
|
431
|
+
|
|
432
|
+
export interface EntityDiff {
|
|
433
|
+
type: EntityType;
|
|
434
|
+
key: string;
|
|
435
|
+
created?: boolean;
|
|
436
|
+
deleted?: boolean;
|
|
437
|
+
updated?: boolean;
|
|
438
|
+
content?: string;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export interface Commit {
|
|
442
|
+
hash: CommitHash;
|
|
443
|
+
author: string;
|
|
444
|
+
timestamp: string;
|
|
445
|
+
entities: EntityDiff[];
|
|
446
|
+
}
|