Effect CommunityEC
Effect Community2y ago
3 replies
Dimitris

Removal of `Schema.trim` and `Schema.lowercase` in `@effect/schema/Schema`

I updated @effect/schema/Schema and noticed that this no longer works
export const emailSchema = Schema.string.pipe(
  Schema.trim,
  Schema.lowercase,
  Schema.pattern(emailRegex, {
    message: () => 'Email address is invalid',
  }),
  Schema.brand(EmailBrand)
);


Schema.trim & Schema.lowercase are now removed. I'm not sure how to utilize Schema.Trim though
Was this page helpful?