@@ -10,7 +10,8 @@ Badge](https://img.shields.io/codacy/grade/6c56da2df56d4dceb69fd38239640205)](ht
10
10
[ ![ version] ( https://img.shields.io/npm/v/kuvio )] ( https://www.npmjs.com/package/kuvio )
11
11
12
12
` kuvio ` is a tool to construct composable string patterns, from which you can
13
- derive things like regular expressions or [ fast-check] [ ] ` Arbitrary ` s.
13
+ derive things like regular expressions or [ fast-check] [ ] ` Arbitrary ` s. As of
14
+ v1.4.0, it requires no dependencies.
14
15
15
16
` kuvio ` is specifically for string-like patterns. If you want to extend this
16
17
concept to more complicated data types, check out [ schemata-ts] [ ] ! ` kuvio ` was
@@ -35,7 +36,7 @@ const lineNumber = k.exactly(4)(k.digit)
35
36
36
37
// Create pattern functions
37
38
const parenthesize = (p : k .Pattern ) => k .subgroup (
38
- k .sequence (k .char (' (' ), p , k .char (' )' )
39
+ k .sequence (k .char (' (' ), p , k .char (' )' ))
39
40
)
40
41
41
42
// Compose patterns to make more complex patterns
@@ -57,11 +58,11 @@ help keep `fast-check` out of your production code, `kuvio` does not include
57
58
` fast-check ` in the main export. If you want to use the ` Arbitrary ` functions,
58
59
you'll need to import them separately from ` kuvio/arbitrary ` .
59
60
60
- If you are needlessly paranoid about ` fast - check ` possibly getting bundled in
61
- your application, ` kuvio ` also exports a version of the ` Arbitrary ` functions
62
- that take the ` fast - check ` library as an argument. You can import these from
63
- ` kuvio / arbitrary - deferred ` . However, this is going to be less efficient and
64
- convenient to use, so probably don't worry about it .
61
+ ` kuvio ` also exports a version of the ` Arbitrary ` functions that take the
62
+ ` fast-check ` library as an argument, to prevent any possible accidental
63
+ inclusion of ` fast-check ` in production code. This _ shouldn't _ be an issue, but
64
+ there are many bundlers and we cannot test them all. You can import these from
65
+ ` kuvio/arbitrary-deferred ` .
65
66
66
67
[ fast-check ] : https://github.com/dubzzz/fast-check
67
68
[ schemata-ts ] : https://github.com/jacob-alford/schemata-ts
0 commit comments