vest 5.0.0-dev-781e21 → 5.0.0-dev-ec989a

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.
Files changed (71) hide show
  1. package/LICENSE +2 -2
  2. package/README.md +2 -57
  3. package/dist/cjs/classnames.development.js +37 -17
  4. package/dist/cjs/classnames.production.js +1 -1
  5. package/dist/cjs/enforce/compose.development.js +1 -54
  6. package/dist/cjs/enforce/compose.production.js +1 -1
  7. package/dist/cjs/enforce/compounds.development.js +18 -84
  8. package/dist/cjs/enforce/compounds.production.js +1 -1
  9. package/dist/cjs/enforce/schema.development.js +18 -84
  10. package/dist/cjs/enforce/schema.production.js +1 -1
  11. package/dist/cjs/parser.development.js +30 -11
  12. package/dist/cjs/parser.production.js +1 -1
  13. package/dist/cjs/promisify.development.js +21 -9
  14. package/dist/cjs/promisify.production.js +1 -1
  15. package/dist/cjs/vest.development.js +1324 -1294
  16. package/dist/cjs/vest.production.js +1 -1
  17. package/dist/es/classnames.development.js +39 -19
  18. package/dist/es/classnames.production.js +1 -1
  19. package/dist/es/enforce/compose.development.js +1 -58
  20. package/dist/es/enforce/compose.production.js +1 -1
  21. package/dist/es/enforce/compounds.development.js +2 -90
  22. package/dist/es/enforce/compounds.production.js +1 -1
  23. package/dist/es/enforce/schema.development.js +2 -88
  24. package/dist/es/enforce/schema.production.js +1 -1
  25. package/dist/es/parser.development.js +31 -10
  26. package/dist/es/parser.production.js +1 -1
  27. package/dist/es/promisify.development.js +22 -10
  28. package/dist/es/promisify.production.js +1 -1
  29. package/dist/es/vest.development.js +1321 -1286
  30. package/dist/es/vest.production.js +1 -1
  31. package/dist/umd/classnames.development.js +40 -20
  32. package/dist/umd/classnames.production.js +1 -1
  33. package/dist/umd/enforce/compose.development.js +6 -60
  34. package/dist/umd/enforce/compose.production.js +1 -1
  35. package/dist/umd/enforce/compounds.development.js +29 -94
  36. package/dist/umd/enforce/compounds.production.js +1 -1
  37. package/dist/umd/enforce/schema.development.js +29 -94
  38. package/dist/umd/enforce/schema.production.js +1 -1
  39. package/dist/umd/parser.development.js +33 -14
  40. package/dist/umd/parser.production.js +1 -1
  41. package/dist/umd/promisify.development.js +24 -12
  42. package/dist/umd/promisify.production.js +1 -1
  43. package/dist/umd/vest.development.js +1327 -1298
  44. package/dist/umd/vest.production.js +1 -1
  45. package/package.json +144 -147
  46. package/testUtils/TVestMock.ts +7 -0
  47. package/testUtils/__tests__/partition.test.ts +4 -4
  48. package/testUtils/asVestTest.ts +9 -0
  49. package/testUtils/mockThrowError.ts +4 -2
  50. package/testUtils/suiteDummy.ts +4 -1
  51. package/testUtils/testDummy.ts +12 -10
  52. package/testUtils/testPromise.ts +3 -0
  53. package/types/classnames.d.ts +141 -12
  54. package/types/classnames.d.ts.map +1 -0
  55. package/types/enforce/compose.d.ts +2 -126
  56. package/types/enforce/compose.d.ts.map +1 -0
  57. package/types/enforce/compounds.d.ts +2 -136
  58. package/types/enforce/compounds.d.ts.map +1 -0
  59. package/types/enforce/schema.d.ts +2 -144
  60. package/types/enforce/schema.d.ts.map +1 -0
  61. package/types/parser.d.ts +147 -18
  62. package/types/parser.d.ts.map +1 -0
  63. package/types/promisify.d.ts +139 -43
  64. package/types/promisify.d.ts.map +1 -0
  65. package/types/vest.d.ts +257 -242
  66. package/types/vest.d.ts.map +1 -0
  67. package/CHANGELOG.md +0 -87
  68. package/testUtils/expandStateRef.ts +0 -8
  69. package/testUtils/runCreateRef.ts +0 -10
  70. package/testUtils/testObjects.ts +0 -6
  71. package/tsconfig.json +0 -8
package/CHANGELOG.md DELETED
@@ -1,87 +0,0 @@
1
- # vest - Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
-
7
- ## 3.2.7 - 2021-07-17
8
-
9
- ### Fixed and improved
10
-
11
- - .github/PULL_REQUEST_TEMPLATE.md
12
- - aec6cd6 chore: cleanup unused code (ealush)
13
- - 0103b38 lint: handling lint of all packages (ealush)
14
- - .gitignore
15
- - 03cf487 patch(n4s): add ruleReturn default values (ealush)
16
- - 76e8c98 fix(n4s): make enforce compound runners fall back to correct response (ealush)
17
- - ff91bd2 fix(n4s): make enforce chaining work (ealush)
18
- - c3fd912 chore: some lint fixes (ealush)
19
- - f6321cf add cli options support (ealush)
20
- - 49b6b84 Vest 4 Infra Setup (ealush)
21
- - ba6c296 patch: remove unused optional references from the state (ealush)
22
-
23
- ## 3.2.6 - 2021-07-17
24
-
25
- ### Fixed and improved
26
-
27
- - .github/PULL_REQUEST_TEMPLATE.md
28
- - aec6cd6 chore: cleanup unused code (ealush)
29
- - 0103b38 lint: handling lint of all packages (ealush)
30
- - .gitignore
31
- - 03cf487 patch(n4s): add ruleReturn default values (ealush)
32
- - 76e8c98 fix(n4s): make enforce compound runners fall back to correct response (ealush)
33
- - ff91bd2 fix(n4s): make enforce chaining work (ealush)
34
- - c3fd912 chore: some lint fixes (ealush)
35
- - f6321cf add cli options support (ealush)
36
- - 49b6b84 Vest 4 Infra Setup (ealush)
37
- - ba6c296 patch: remove unused optional references from the state (ealush)
38
-
39
- ## 3.2.5 - 2021-07-17
40
-
41
- ### Fixed and improved
42
-
43
- - .github/PULL_REQUEST_TEMPLATE.md
44
- - aec6cd6 chore: cleanup unused code (ealush)
45
- - 0103b38 lint: handling lint of all packages (ealush)
46
- - .gitignore
47
- - 03cf487 patch(n4s): add ruleReturn default values (ealush)
48
- - 76e8c98 fix(n4s): make enforce compound runners fall back to correct response (ealush)
49
- - ff91bd2 fix(n4s): make enforce chaining work (ealush)
50
- - c3fd912 chore: some lint fixes (ealush)
51
- - f6321cf add cli options support (ealush)
52
- - 49b6b84 Vest 4 Infra Setup (ealush)
53
- - ba6c296 patch: remove unused optional references from the state (ealush)
54
-
55
- ## 1.0.31 - 2021-07-02
56
-
57
- ### Fixed and improved
58
-
59
- - e6ea7d6 support global replaces (undefined)
60
- - 34e0414 improved conditions (undefined)
61
- - 26c28c6 all tests pass (undefined)
62
- - 33f4e46 release (undefined)
63
- - 6fe40c7 better bundle (undefined)
64
- - c2cfb65 better typing (undefined)
65
- - c6387ab before ts settings (undefined)
66
- - c0e9708 generate correct d.ts file (undefined)
67
- - packages/vest/types/vest.development.d.ts
68
- - 8e01b8e x (undefined)
69
- - afb3960 x (undefined)
70
- - e0a8463 add changelog support (undefined)
71
- - cc46c38 current (undefined)
72
- - 4a2073f patch(vest): changes (ealush)
73
- - c0a1705 patch(vest): changes (ealush)
74
- - 240386c better create generic (ealush)
75
- - b6db1c6 transform any to unknowns (ealush)
76
- - f2c20a7 add done integration tests (ealush)
77
- - ba56e33 produce methods (ealush)
78
- - 0638243 better produce integration tests (ealush)
79
- - 4098a11 getFailures as integration tests (ealush)
80
- - f56cf7f pd (ealush)
81
- - 2ea440e pd (ealush)
82
- - b3032ef relocate draftresult (ealush)
83
- - 962141f test getFailuresByGroup (ealush)
84
- - e163c56 test getFailures (ealush)
85
- - a92b6df test collectFailureMessages (ealush)
86
- - 81aad51 fix most tests (ealush)
87
- - c149e90 simplify collectFailureMessages (ealush)
@@ -1,8 +0,0 @@
1
- export default function expandStateRef(stateRef) {
2
- const state = {};
3
- for (const key in stateRef) {
4
- const [value] = stateRef[key]();
5
- state[key] = value;
6
- }
7
- return state;
8
- }
@@ -1,10 +0,0 @@
1
- import { createState } from 'vast';
2
-
3
- import createStateRef from 'createStateRef';
4
-
5
- export default (
6
- state?: ReturnType<typeof createState>
7
- ): ReturnType<typeof createStateRef> =>
8
- createStateRef(state ? state : createState(), {
9
- suiteId: '1000',
10
- });
@@ -1,6 +0,0 @@
1
- import VestTest from 'VestTest';
2
- import { useSetTests } from 'stateHooks';
3
-
4
- export function addTestObject(addedTests: VestTest[] | VestTest): void {
5
- useSetTests(tests => tests.concat(addedTests));
6
- }
package/tsconfig.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "declarationMap": true,
5
- "declarationDir": "./types",
6
- "outDir": "./dist"
7
- }
8
- }