Skip to content

Commit 4d37c78

Browse files
authored
Merge pull request #9 from skeate/no-dependencies
Remove required dependencies
2 parents f29c270 + 8e3dd3e commit 4d37c78

35 files changed

+664
-320
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ Badge](https://img.shields.io/codacy/grade/6c56da2df56d4dceb69fd38239640205)](ht
1010
[![version](https://img.shields.io/npm/v/kuvio)](https://www.npmjs.com/package/kuvio)
1111

1212
`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.
1415

1516
`kuvio` is specifically for string-like patterns. If you want to extend this
1617
concept to more complicated data types, check out [schemata-ts][]! `kuvio` was
@@ -35,7 +36,7 @@ const lineNumber = k.exactly(4)(k.digit)
3536

3637
// Create pattern functions
3738
const parenthesize = (p: k.Pattern) => k.subgroup(
38-
k.sequence(k.char('('), p, k.char(')')
39+
k.sequence(k.char('('), p, k.char(')'))
3940
)
4041

4142
// Compose patterns to make more complex patterns
@@ -57,11 +58,11 @@ help keep `fast-check` out of your production code, `kuvio` does not include
5758
`fast-check` in the main export. If you want to use the `Arbitrary` functions,
5859
you'll need to import them separately from `kuvio/arbitrary`.
5960

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`.
6566

6667
[fast-check]: https://github.com/dubzzz/fast-check
6768
[schemata-ts]: https://github.com/jacob-alford/schemata-ts

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@
5050
],
5151
"author": "Jonathan Skeate",
5252
"license": "MIT",
53-
"dependencies": {
54-
"@simspace/matchers": "^0.0.4",
55-
"fp-ts": "^2.13.1"
56-
},
5753
"devDependencies": {
5854
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
5955
"@types/jest": "^29.5.1",

pnpm-lock.yaml

Lines changed: 36 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)