diff --git a/.changeset/chilled-jars-develop.md b/.changeset/chilled-jars-develop.md deleted file mode 100644 index 97f28688b..000000000 --- a/.changeset/chilled-jars-develop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": minor ---- - -Arbitrary: should throw on declarations without annotations diff --git a/.changeset/dirty-taxis-enjoy.md b/.changeset/dirty-taxis-enjoy.md deleted file mode 100644 index a9d1a12d3..000000000 --- a/.changeset/dirty-taxis-enjoy.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": patch ---- - -Schema: fix declarations (`type` field) diff --git a/.changeset/forty-rats-decide.md b/.changeset/forty-rats-decide.md deleted file mode 100644 index 0a6d39184..000000000 --- a/.changeset/forty-rats-decide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": minor ---- - -Schema: refactor `parseJson` to replace `ParseJson` and `fromJson` diff --git a/.changeset/four-suits-fetch.md b/.changeset/four-suits-fetch.md deleted file mode 100644 index f870b33ee..000000000 --- a/.changeset/four-suits-fetch.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@effect/schema": minor ---- - -Schema: refactor `S.optional` API. - -Upgrade Guide: - -- `S.optional(schema, { exact: true })` replaces the old `S.optional(schema)` -- `S.optional(schema, { exact: true, default: () => A })` replaces the old `S.optional(schema).withDefault(() => A)` -- `S.optional(schema, { exact: true, as: "Option" })` replaces the old `S.optional(schema).toOption()` diff --git a/.changeset/fuzzy-waves-raise.md b/.changeset/fuzzy-waves-raise.md deleted file mode 100644 index 142e3b7dd..000000000 --- a/.changeset/fuzzy-waves-raise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": patch ---- - -Schema: add `nullish` diff --git a/.changeset/silent-paws-move.md b/.changeset/silent-paws-move.md deleted file mode 100644 index c65545ad4..000000000 --- a/.changeset/silent-paws-move.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": patch ---- - -Schema: add `orUndefined` diff --git a/.changeset/six-maps-jog.md b/.changeset/six-maps-jog.md deleted file mode 100644 index c0a332a95..000000000 --- a/.changeset/six-maps-jog.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": minor ---- - -Schema: replace `propertySignature` constructor with `propertySignatureAnnotations` combinator diff --git a/.changeset/ten-queens-know.md b/.changeset/ten-queens-know.md deleted file mode 100644 index 60dc3c5d3..000000000 --- a/.changeset/ten-queens-know.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@effect/schema": minor ---- - -Schema: simplify `split` parameters to only accept `separator` diff --git a/.changeset/wise-bikes-kick.md b/.changeset/wise-bikes-kick.md deleted file mode 100644 index fd404c2b7..000000000 --- a/.changeset/wise-bikes-kick.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -"@effect/schema": minor ---- - -Schema: remove useless combinators - -- `lowercase` -- `uppercase` -- `trim` -- `numberFromString` -- `symbolFromString` -- `bigintFromString` -- `bigintFromNumber` -- `secret` -- `durationFromHrTime` -- `durationFromMillis` -- `durationFromNanos` -- `uint8ArrayFromNumbers` -- `base64` -- `base64url` -- `hex` -- `dateFromString` -- `bigDecimalFromNumber` -- `bigDecimalFromString` -- `not` diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c969e046..839e67dc6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,55 @@ # @effect/schema +## 0.55.0 + +### Minor Changes + +- [#649](https://github.com/Effect-TS/schema/pull/649) [`d80b933`](https://github.com/Effect-TS/schema/commit/d80b933d2e6b1e36f10f01323f2532826c8722c7) Thanks [@gcanti](https://github.com/gcanti)! - Arbitrary: should throw on declarations without annotations + +- [#669](https://github.com/Effect-TS/schema/pull/669) [`294dfad`](https://github.com/Effect-TS/schema/commit/294dfad1076f10da53096925e02821a69fbad60e) Thanks [@gcanti](https://github.com/gcanti)! - Schema: refactor `parseJson` to replace `ParseJson` and `fromJson` + +- [#649](https://github.com/Effect-TS/schema/pull/649) [`d80b933`](https://github.com/Effect-TS/schema/commit/d80b933d2e6b1e36f10f01323f2532826c8722c7) Thanks [@gcanti](https://github.com/gcanti)! - Schema: refactor `S.optional` API. + + Upgrade Guide: + + - `S.optional(schema, { exact: true })` replaces the old `S.optional(schema)` + - `S.optional(schema, { exact: true, default: () => A })` replaces the old `S.optional(schema).withDefault(() => A)` + - `S.optional(schema, { exact: true, as: "Option" })` replaces the old `S.optional(schema).toOption()` + +- [#649](https://github.com/Effect-TS/schema/pull/649) [`d80b933`](https://github.com/Effect-TS/schema/commit/d80b933d2e6b1e36f10f01323f2532826c8722c7) Thanks [@gcanti](https://github.com/gcanti)! - Schema: replace `propertySignature` constructor with `propertySignatureAnnotations` combinator + +- [#669](https://github.com/Effect-TS/schema/pull/669) [`294dfad`](https://github.com/Effect-TS/schema/commit/294dfad1076f10da53096925e02821a69fbad60e) Thanks [@gcanti](https://github.com/gcanti)! - Schema: simplify `split` parameters to only accept `separator` + +- [#669](https://github.com/Effect-TS/schema/pull/669) [`294dfad`](https://github.com/Effect-TS/schema/commit/294dfad1076f10da53096925e02821a69fbad60e) Thanks [@gcanti](https://github.com/gcanti)! - Schema: remove useless combinators + + - `lowercase` + - `uppercase` + - `trim` + - `numberFromString` + - `symbolFromString` + - `bigintFromString` + - `bigintFromNumber` + - `secret` + - `durationFromHrTime` + - `durationFromMillis` + - `durationFromNanos` + - `uint8ArrayFromNumbers` + - `base64` + - `base64url` + - `hex` + - `dateFromString` + - `bigDecimalFromNumber` + - `bigDecimalFromString` + - `not` + +### Patch Changes + +- [#649](https://github.com/Effect-TS/schema/pull/649) [`d80b933`](https://github.com/Effect-TS/schema/commit/d80b933d2e6b1e36f10f01323f2532826c8722c7) Thanks [@gcanti](https://github.com/gcanti)! - Schema: fix declarations (`type` field) + +- [#649](https://github.com/Effect-TS/schema/pull/649) [`d80b933`](https://github.com/Effect-TS/schema/commit/d80b933d2e6b1e36f10f01323f2532826c8722c7) Thanks [@gcanti](https://github.com/gcanti)! - Schema: add `nullish` + +- [#649](https://github.com/Effect-TS/schema/pull/649) [`d80b933`](https://github.com/Effect-TS/schema/commit/d80b933d2e6b1e36f10f01323f2532826c8722c7) Thanks [@gcanti](https://github.com/gcanti)! - Schema: add `orUndefined` + ## 0.54.1 ### Patch Changes diff --git a/package.json b/package.json index 11d7fb6f4..35dd5d461 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@effect/schema", - "version": "0.54.1", + "version": "0.55.0", "type": "module", "packageManager": "pnpm@8.10.0", "publishConfig": {