Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
update effect (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored Dec 6, 2023
1 parent 8ca0220 commit ad220dd
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 20 deletions.
5 changes: 5 additions & 0 deletions .changeset/shaggy-brooms-grin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/schema": minor
---

update effect
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"coverage": "vitest run --coverage"
},
"peerDependencies": {
"effect": "2.0.0-next.58",
"effect": "2.0.0-next.59",
"fast-check": "^3.13.2"
},
"devDependencies": {
Expand All @@ -71,7 +71,7 @@
"ajv": "^8.12.0",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"benchmark": "^2.1.4",
"effect": "2.0.0-next.58",
"effect": "2.0.0-next.59",
"eslint": "^8.54.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-codegen": "^0.21.0",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3868,7 +3868,7 @@ export const greaterThanBigDecimal = <A extends BigDecimal.BigDecimal>(
self.pipe(
filter((a): a is A => BigDecimal.greaterThan(a, min), {
typeId: { id: GreaterThanBigDecimalTypeId, params: { min } },
description: `a BigDecimal greater than ${min}`,
description: `a BigDecimal greater than ${BigDecimal.format(min)}`,
...options
})
)
Expand Down
2 changes: 1 addition & 1 deletion test/BigDecimal/betweenBigDecimal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe("BigDecimal/between", () => {
await Util.expectParseFailure(
schema,
"2",
`Expected a BigDecimal between -1 and 1, actual 2`
`Expected a BigDecimal between -1 and 1, actual BigDecimal(2)`
)
await Util.expectParseSuccess(schema, "0", BigDecimal.make(0n, 0))
await Util.expectParseSuccess(
Expand Down
4 changes: 2 additions & 2 deletions test/BigDecimal/greaterThanBigDecimal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ describe("BigDecimal/greaterThanBigDecimal", () => {
await Util.expectParseFailure(
schema,
"0",
"Expected a BigDecimal greater than 10, actual 0"
"Expected a BigDecimal greater than 10, actual BigDecimal(0)"
)
await Util.expectParseFailure(
schema,
"10",
"Expected a BigDecimal greater than 10, actual 10"
"Expected a BigDecimal greater than 10, actual BigDecimal(10)"
)
})

Expand Down
2 changes: 1 addition & 1 deletion test/BigDecimal/greaterThanOrEqualToBigDecimal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe("BigDecimal/greaterThanOrEqualToBigDecimal", () => {
await Util.expectParseFailure(
schema,
"0",
"Expected a BigDecimal greater than or equal to 10, actual 0"
"Expected a BigDecimal greater than or equal to 10, actual BigDecimal(0)"
)
await Util.expectParseSuccess(
schema,
Expand Down
4 changes: 2 additions & 2 deletions test/BigDecimal/lessThanBigDecimal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ describe("BigDecimal/lessThanBigDecimal", () => {
await Util.expectParseFailure(
schema,
"5",
"Expected a BigDecimal less than 5, actual 5"
"Expected a BigDecimal less than 5, actual BigDecimal(5)"
)
await Util.expectParseFailure(
schema,
"6",
"Expected a BigDecimal less than 5, actual 6"
"Expected a BigDecimal less than 5, actual BigDecimal(6)"
)
})

Expand Down
2 changes: 1 addition & 1 deletion test/BigDecimal/lessThanOrEqualToBigDecimal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe("BigDecimal/lessThanOrEqualToBigDecimal", () => {
await Util.expectParseFailure(
schema,
"6",
"Expected a BigDecimal less than or equal to 5, actual 6"
"Expected a BigDecimal less than or equal to 5, actual BigDecimal(6)"
)
})

Expand Down
4 changes: 2 additions & 2 deletions test/BigDecimal/negativeBigDecimal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ describe("BigDecimal/negativeBigDecimal", () => {
await Util.expectParseFailure(
schema,
BigDecimal.make(0n, 0),
"Expected a negative BigDecimal, actual 0"
"Expected a negative BigDecimal, actual BigDecimal(0)"
)
await Util.expectParseFailure(
schema,
BigDecimal.make(2n, 0),
"Expected a negative BigDecimal, actual 2"
"Expected a negative BigDecimal, actual BigDecimal(2)"
)
await Util.expectParseSuccess(
schema,
Expand Down
2 changes: 1 addition & 1 deletion test/BigDecimal/nonNegativeBigDecimal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe("BigDecimal/nonNegativeBigDecimal", () => {
await Util.expectParseFailure(
schema,
BigDecimal.make(-2n, 0),
"Expected a non-negative BigDecimal, actual -2"
"Expected a non-negative BigDecimal, actual BigDecimal(-2)"
)
await Util.expectParseSuccess(
schema,
Expand Down
2 changes: 1 addition & 1 deletion test/BigDecimal/nonPositiveBigDecimal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe("BigDecimal/nonPositiveBigDecimal", () => {
await Util.expectParseFailure(
schema,
BigDecimal.make(2n, 0),
"Expected a non-positive BigDecimal, actual 2"
"Expected a non-positive BigDecimal, actual BigDecimal(2)"
)
await Util.expectParseSuccess(
schema,
Expand Down
4 changes: 2 additions & 2 deletions test/BigDecimal/positiveBigDecimal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ describe("BigDecimal/positiveBigDecimal", () => {
await Util.expectParseFailure(
schema,
BigDecimal.make(0n, 0),
"Expected a positive BigDecimal, actual 0"
"Expected a positive BigDecimal, actual BigDecimal(0)"
)
await Util.expectParseFailure(
schema,
BigDecimal.make(-2n, 0),
"Expected a positive BigDecimal, actual -2"
"Expected a positive BigDecimal, actual BigDecimal(-2)"
)
await Util.expectParseSuccess(
schema,
Expand Down

0 comments on commit ad220dd

Please sign in to comment.