diff --git a/.changeset/beige-fireants-join.md b/.changeset/beige-fireants-join.md deleted file mode 100644 index 2ddb82aec..000000000 --- a/.changeset/beige-fireants-join.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": minor ---- - -rename encodeOrThrow -> encode diff --git a/.changeset/breezy-turtles-judge.md b/.changeset/breezy-turtles-judge.md deleted file mode 100644 index 12486f95e..000000000 --- a/.changeset/breezy-turtles-judge.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": minor ---- - -AST: rename typeAlis to Declaration diff --git a/.changeset/cold-foxes-cough.md b/.changeset/cold-foxes-cough.md deleted file mode 100644 index 61a599adc..000000000 --- a/.changeset/cold-foxes-cough.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": minor ---- - -rename `transformOrFail` to `transformEither` diff --git a/.changeset/flat-eels-rush.md b/.changeset/flat-eels-rush.md deleted file mode 100644 index b273e607d..000000000 --- a/.changeset/flat-eels-rush.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": minor ---- - -rename encode -> encodeEither diff --git a/.changeset/fresh-lies-joke.md b/.changeset/fresh-lies-joke.md deleted file mode 100644 index 5160cbbe4..000000000 --- a/.changeset/fresh-lies-joke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": minor ---- - -AST: change Refinement definition form predicate to decode diff --git a/.changeset/green-dolphins-attend.md b/.changeset/green-dolphins-attend.md deleted file mode 100644 index 9b56e2fdf..000000000 --- a/.changeset/green-dolphins-attend.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": patch ---- - -add validate, validateOption, validateEither diff --git a/.changeset/kind-foxes-visit.md b/.changeset/kind-foxes-visit.md deleted file mode 100644 index 95e23624e..000000000 --- a/.changeset/kind-foxes-visit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": minor ---- - -move /formatter/Tree up and rename to TreeFormatter diff --git a/.changeset/late-apes-compete.md b/.changeset/late-apes-compete.md deleted file mode 100644 index ad6ed1fc4..000000000 --- a/.changeset/late-apes-compete.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": minor ---- - -remove /annotation/Hook module diff --git a/.changeset/loud-flowers-clap.md b/.changeset/loud-flowers-clap.md deleted file mode 100644 index 6eb274cc5..000000000 --- a/.changeset/loud-flowers-clap.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": minor ---- - -refactor instanceOf as Declaration diff --git a/.changeset/mighty-hounds-love.md b/.changeset/mighty-hounds-love.md deleted file mode 100644 index eba7e0da1..000000000 --- a/.changeset/mighty-hounds-love.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": minor ---- - -rename decodeOrThrow -> decode diff --git a/.changeset/nasty-chairs-change.md b/.changeset/nasty-chairs-change.md deleted file mode 100644 index c5ee58968..000000000 --- a/.changeset/nasty-chairs-change.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": minor ---- - -AST: refactor typeAlias adding decode diff --git a/.changeset/polite-kangaroos-call.md b/.changeset/polite-kangaroos-call.md deleted file mode 100644 index 263477f42..000000000 --- a/.changeset/polite-kangaroos-call.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": minor ---- - -rename getOption -> decodeOption diff --git a/.changeset/quick-penguins-tickle.md b/.changeset/quick-penguins-tickle.md deleted file mode 100644 index 8fa547542..000000000 --- a/.changeset/quick-penguins-tickle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": minor ---- - -remove /data folder diff --git a/.changeset/silver-boxes-grow.md b/.changeset/silver-boxes-grow.md deleted file mode 100644 index 50ff1e00b..000000000 --- a/.changeset/silver-boxes-grow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": minor ---- - -remove /annotation/AST module diff --git a/.changeset/tall-ladybugs-lie.md b/.changeset/tall-ladybugs-lie.md deleted file mode 100644 index d0a34dfff..000000000 --- a/.changeset/tall-ladybugs-lie.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": minor ---- - -remove /index module diff --git a/.changeset/thick-jobs-applaud.md b/.changeset/thick-jobs-applaud.md deleted file mode 100644 index 70a8b356d..000000000 --- a/.changeset/thick-jobs-applaud.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": minor ---- - -rename decode -> decodeEither diff --git a/.changeset/thin-houses-hang.md b/.changeset/thin-houses-hang.md deleted file mode 100644 index ab71ee857..000000000 --- a/.changeset/thin-houses-hang.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": patch ---- - -add encodeOption diff --git a/.changeset/warm-foxes-applaud.md b/.changeset/warm-foxes-applaud.md deleted file mode 100644 index 275f4a0fc..000000000 --- a/.changeset/warm-foxes-applaud.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": minor ---- - -formatErrors/ should collapse trees that have a branching factor of 1 diff --git a/.changeset/yellow-ghosts-own.md b/.changeset/yellow-ghosts-own.md deleted file mode 100644 index 01e495023..000000000 --- a/.changeset/yellow-ghosts-own.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": minor ---- - -simplify Arbitrary implementation diff --git a/CHANGELOG.md b/CHANGELOG.md index 3882bdd31..724a90d82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,49 @@ # @effect/schema +## 0.2.0 + +### Minor Changes + +- [#144](https://github.com/Effect-TS/schema/pull/144) [`df9ea09`](https://github.com/Effect-TS/schema/commit/df9ea093623640a0e06cdd0147e8e7522ee05110) Thanks [@gcanti](https://github.com/gcanti)! - rename encodeOrThrow -> encode + +- [#144](https://github.com/Effect-TS/schema/pull/144) [`df9ea09`](https://github.com/Effect-TS/schema/commit/df9ea093623640a0e06cdd0147e8e7522ee05110) Thanks [@gcanti](https://github.com/gcanti)! - AST: rename typeAlis to Declaration + +- [#144](https://github.com/Effect-TS/schema/pull/144) [`df9ea09`](https://github.com/Effect-TS/schema/commit/df9ea093623640a0e06cdd0147e8e7522ee05110) Thanks [@gcanti](https://github.com/gcanti)! - rename `transformOrFail` to `transformEither` + +- [#144](https://github.com/Effect-TS/schema/pull/144) [`df9ea09`](https://github.com/Effect-TS/schema/commit/df9ea093623640a0e06cdd0147e8e7522ee05110) Thanks [@gcanti](https://github.com/gcanti)! - rename encode -> encodeEither + +- [#144](https://github.com/Effect-TS/schema/pull/144) [`df9ea09`](https://github.com/Effect-TS/schema/commit/df9ea093623640a0e06cdd0147e8e7522ee05110) Thanks [@gcanti](https://github.com/gcanti)! - AST: change Refinement definition form predicate to decode + +- [#144](https://github.com/Effect-TS/schema/pull/144) [`df9ea09`](https://github.com/Effect-TS/schema/commit/df9ea093623640a0e06cdd0147e8e7522ee05110) Thanks [@gcanti](https://github.com/gcanti)! - move /formatter/Tree up and rename to TreeFormatter + +- [#144](https://github.com/Effect-TS/schema/pull/144) [`df9ea09`](https://github.com/Effect-TS/schema/commit/df9ea093623640a0e06cdd0147e8e7522ee05110) Thanks [@gcanti](https://github.com/gcanti)! - remove /annotation/Hook module + +- [#144](https://github.com/Effect-TS/schema/pull/144) [`df9ea09`](https://github.com/Effect-TS/schema/commit/df9ea093623640a0e06cdd0147e8e7522ee05110) Thanks [@gcanti](https://github.com/gcanti)! - refactor instanceOf as Declaration + +- [#144](https://github.com/Effect-TS/schema/pull/144) [`df9ea09`](https://github.com/Effect-TS/schema/commit/df9ea093623640a0e06cdd0147e8e7522ee05110) Thanks [@gcanti](https://github.com/gcanti)! - rename decodeOrThrow -> decode + +- [#144](https://github.com/Effect-TS/schema/pull/144) [`df9ea09`](https://github.com/Effect-TS/schema/commit/df9ea093623640a0e06cdd0147e8e7522ee05110) Thanks [@gcanti](https://github.com/gcanti)! - AST: refactor typeAlias adding decode + +- [#144](https://github.com/Effect-TS/schema/pull/144) [`df9ea09`](https://github.com/Effect-TS/schema/commit/df9ea093623640a0e06cdd0147e8e7522ee05110) Thanks [@gcanti](https://github.com/gcanti)! - rename getOption -> decodeOption + +- [#144](https://github.com/Effect-TS/schema/pull/144) [`df9ea09`](https://github.com/Effect-TS/schema/commit/df9ea093623640a0e06cdd0147e8e7522ee05110) Thanks [@gcanti](https://github.com/gcanti)! - remove /data folder + +- [#144](https://github.com/Effect-TS/schema/pull/144) [`df9ea09`](https://github.com/Effect-TS/schema/commit/df9ea093623640a0e06cdd0147e8e7522ee05110) Thanks [@gcanti](https://github.com/gcanti)! - remove /annotation/AST module + +- [#144](https://github.com/Effect-TS/schema/pull/144) [`df9ea09`](https://github.com/Effect-TS/schema/commit/df9ea093623640a0e06cdd0147e8e7522ee05110) Thanks [@gcanti](https://github.com/gcanti)! - remove /index module + +- [#144](https://github.com/Effect-TS/schema/pull/144) [`df9ea09`](https://github.com/Effect-TS/schema/commit/df9ea093623640a0e06cdd0147e8e7522ee05110) Thanks [@gcanti](https://github.com/gcanti)! - rename decode -> decodeEither + +- [#144](https://github.com/Effect-TS/schema/pull/144) [`df9ea09`](https://github.com/Effect-TS/schema/commit/df9ea093623640a0e06cdd0147e8e7522ee05110) Thanks [@gcanti](https://github.com/gcanti)! - formatErrors/ should collapse trees that have a branching factor of 1 + +- [#144](https://github.com/Effect-TS/schema/pull/144) [`df9ea09`](https://github.com/Effect-TS/schema/commit/df9ea093623640a0e06cdd0147e8e7522ee05110) Thanks [@gcanti](https://github.com/gcanti)! - simplify Arbitrary implementation + +### Patch Changes + +- [#144](https://github.com/Effect-TS/schema/pull/144) [`df9ea09`](https://github.com/Effect-TS/schema/commit/df9ea093623640a0e06cdd0147e8e7522ee05110) Thanks [@gcanti](https://github.com/gcanti)! - add validate, validateOption, validateEither + +- [#144](https://github.com/Effect-TS/schema/pull/144) [`df9ea09`](https://github.com/Effect-TS/schema/commit/df9ea093623640a0e06cdd0147e8e7522ee05110) Thanks [@gcanti](https://github.com/gcanti)! - add encodeOption + ## 0.1.0 ### Minor Changes diff --git a/package.json b/package.json index 55ad6c342..682c8813e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@effect/schema", - "version": "0.1.0", + "version": "0.2.0", "publishConfig": { "access": "public", "directory": "dist" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 263b53876..4ec1efbbb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -52,7 +52,6 @@ specifiers: ultra-runner: ^3.10.5 vite: ^4.1.4 vitest: 0.29.2 -publishDirectory: dist dependencies: '@effect/data': 0.4.1 @@ -7124,3 +7123,5 @@ packages: tslint: 5.20.1_typescript@4.9.5 typescript: 4.9.5 dev: true + +publishDirectory: dist