Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
update effect (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored Oct 10, 2023
1 parent 3f03f99 commit 1fb1002
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 14 deletions.
5 changes: 5 additions & 0 deletions .changeset/fair-cougars-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/schema": minor
---

update effect
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dist/
.direnv/

# files
/src/tsconfig.json
/dist
/internal
/AST
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
},
"packageManager": "[email protected]",
"peerDependencies": {
"effect": "2.0.0-next.47",
"effect": "2.0.0-next.48",
"fast-check": "^3.13.1"
},
"devDependencies": {
Expand All @@ -67,7 +67,7 @@
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
"@definitelytyped/dtslint": "^0.0.178",
"@effect/build-utils": "^0.1.6",
"@effect/build-utils": "^0.1.9",
"@effect/docgen": "^0.1.8",
"@effect/eslint-plugin": "^0.1.2",
"@effect/language-service": "^0.0.21",
Expand All @@ -82,7 +82,7 @@
"ajv": "^8.12.0",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"benchmark": "^2.1.4",
"effect": "2.0.0-next.47",
"effect": "2.0.0-next.48",
"eslint": "^8.50.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-codegen": "0.17.0",
Expand Down
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions scripts/clean.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as Fs from "node:fs";

(JSON.parse(Fs.readFileSync("package.json")).files ?? [])
.filter((_) => _ !== "src")
.concat(["src/tsconfig.json"])
.forEach((file) => {
Fs.rm(file, { recursive: true, force: true }, () => {});
});
2 changes: 1 addition & 1 deletion src/Parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ const go = (ast: AST.AST, isDecoding: boolean): Parser<any, any> => {
case "BooleanKeyword":
return fromRefinement(ast, Predicate.isBoolean)
case "BigIntKeyword":
return fromRefinement(ast, Predicate.isBigint)
return fromRefinement(ast, Predicate.isBigInt)
case "SymbolKeyword":
return fromRefinement(ast, Predicate.isSymbol)
case "ObjectKeyword":
Expand Down
4 changes: 2 additions & 2 deletions src/Schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @since 1.0.0
*/

import * as Bigint from "effect/Bigint"
import * as BigInt_ from "effect/BigInt"
import * as Brand from "effect/Brand"
import * as Chunk from "effect/Chunk"
import * as Data from "effect/Data"
Expand Down Expand Up @@ -2473,7 +2473,7 @@ export const clampBigint =
transform(
self,
self.pipe(to, betweenBigint(min, max)),
(self) => Bigint.clamp(self, min, max),
(self) => BigInt_.clamp(self, min, max),
identity
)

Expand Down

0 comments on commit 1fb1002

Please sign in to comment.