Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema: switch from positional arguments to a … #2074

Merged
merged 42 commits into from
Feb 8, 2024
Merged

Conversation

gcanti
Copy link
Contributor

@gcanti gcanti commented Feb 7, 2024

…single options argument

Type

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

Example:

Before:

import * as S from "@effect/schema/Schema";

S.exitFromSelf(S.string, S.number);
S.exit(S.string, S.number);

Now:

import * as S from "@effect/schema/Schema";

S.exitFromSelf({ failure: S.string, success: S.number });
S.exit({ failure: S.string, success: S.number });

Related

https://discord.com/channels/795981131316985866/1199693848906059796/1200001280660230205

sukovanej and others added 30 commits February 7, 2024 17:59
…e string identifier for all tags (#2028)

Co-authored-by: Tim <hello@timsmart.co>
…r from `Class<R, E, A>` to `Class<A, E = never, R = never>` (#2045)
…ut L, out Z>` to `Sink<out A, in In = unknown, out L = never, out E = never, out R = never>` (#2073)
Copy link

changeset-bot bot commented Feb 7, 2024

🦋 Changeset detected

Latest commit: cb7e0e8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@effect/schema Minor
@effect/cli Major
@effect/experimental Major
@effect/platform-browser Major
@effect/platform-bun Major
@effect/platform-node-shared Major
@effect/platform-node Major
@effect/platform Major
@effect/rpc-http-node Major
@effect/rpc-http Major
@effect/rpc-nextjs Major
@effect/rpc-workers Major
@effect/rpc Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@gcanti gcanti marked this pull request as ready for review February 8, 2024 07:57
@gcanti gcanti merged commit 169d74f into next-minor Feb 8, 2024
12 checks passed
@gcanti gcanti deleted the chore/schema branch February 8, 2024 08:00
@github-actions github-actions bot mentioned this pull request Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

5 participants