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

Version Packages #3162

Merged
merged 1 commit into from
Jul 4, 2024
Merged

Version Packages #3162

merged 1 commit into from
Jul 4, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jul 4, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@effect/cli@0.37.1

Patch Changes

  • Updated dependencies [15967cf, 2328e17, a5737d6]:
    • @effect/schema@0.68.17
    • effect@3.4.7
    • @effect/platform@0.58.20
    • @effect/printer@0.33.39
    • @effect/printer-ansi@0.33.39

@effect/cluster@0.0.25

Patch Changes

  • Updated dependencies [15967cf, 2328e17, a5737d6]:
    • @effect/schema@0.68.17
    • effect@3.4.7
    • @effect/sql@0.4.20

@effect/cluster-browser@0.0.25

Patch Changes

  • Updated dependencies [15967cf, 2328e17, a5737d6]:
    • @effect/schema@0.68.17
    • effect@3.4.7
    • @effect/platform@0.58.20
    • @effect/platform-node@0.53.19

@effect/cluster-node@0.0.25

Patch Changes

  • Updated dependencies [15967cf, 2328e17, a5737d6]:
    • @effect/schema@0.68.17
    • effect@3.4.7
    • @effect/platform@0.58.20
    • @effect/platform-node@0.53.19
    • @effect/rpc@0.31.20

@effect/cluster-workflow@0.0.25

Patch Changes

  • Updated dependencies [15967cf, 2328e17, a5737d6]:
    • @effect/schema@0.68.17
    • effect@3.4.7
    • @effect/platform-node@0.53.19

effect@3.4.7

Patch Changes

  • #3161 a5737d6 Thanks @tim-smart! - ensure PubSub.publishAll does not increase size while there are no subscribers

@effect/experimental@0.17.22

Patch Changes

  • Updated dependencies [15967cf, 2328e17, a5737d6]:
    • @effect/schema@0.68.17
    • effect@3.4.7
    • @effect/platform@0.58.20
    • @effect/platform-node@0.53.19

@effect/opentelemetry@0.34.30

Patch Changes

  • Updated dependencies [a5737d6]:
    • effect@3.4.7

@effect/platform@0.58.20

Patch Changes

@effect/platform-browser@0.37.20

Patch Changes

  • Updated dependencies [a5737d6]:
    • effect@3.4.7
    • @effect/platform@0.58.20

@effect/platform-bun@0.38.19

Patch Changes

  • Updated dependencies [a5737d6]:
    • effect@3.4.7
    • @effect/platform@0.58.20
    • @effect/platform-node-shared@0.8.19

@effect/platform-node@0.53.19

Patch Changes

  • Updated dependencies [a5737d6]:
    • effect@3.4.7
    • @effect/platform@0.58.20
    • @effect/platform-node-shared@0.8.19

@effect/platform-node-shared@0.8.19

Patch Changes

  • Updated dependencies [a5737d6]:
    • effect@3.4.7
    • @effect/platform@0.58.20

@effect/printer@0.33.39

Patch Changes

  • Updated dependencies [a5737d6]:
    • effect@3.4.7
    • @effect/typeclass@0.24.39

@effect/printer-ansi@0.33.39

Patch Changes

  • Updated dependencies [a5737d6]:
    • effect@3.4.7
    • @effect/printer@0.33.39
    • @effect/typeclass@0.24.39

@effect/rpc@0.31.20

Patch Changes

  • Updated dependencies [15967cf, 2328e17, a5737d6]:
    • @effect/schema@0.68.17
    • effect@3.4.7
    • @effect/platform@0.58.20

@effect/rpc-http@0.29.20

Patch Changes

  • Updated dependencies [15967cf, 2328e17, a5737d6]:
    • @effect/schema@0.68.17
    • effect@3.4.7
    • @effect/platform@0.58.20
    • @effect/rpc@0.31.20

@effect/schema@0.68.17

Patch Changes

  • #3166 15967cf Thanks @gcanti! - Add filterEffect API, closes From Discord: Issue with Schema annotations and context in TypeScript #3165

    The filterEffect function enhances the filter functionality by allowing the integration of effects, thus enabling asynchronous or dynamic validation scenarios. This is particularly useful when validations need to perform operations that require side effects, such as network requests or database queries.

    Example: Validating Usernames Asynchronously

    import { Schema } from "@effect/schema";
    import { Effect } from "effect";
    
    async function validateUsername(username: string) {
      return Promise.resolve(username === "gcanti");
    }
    
    const ValidUsername = Schema.String.pipe(
      Schema.filterEffect((username) =>
        Effect.promise(() =>
          validateUsername(username).then((valid) => valid || "Invalid username"),
        ),
      ),
    ).annotations({ identifier: "ValidUsername" });
    
    Effect.runPromise(Schema.decodeUnknown(ValidUsername)("xxx")).then(
      console.log,
    );
    /*
    ParseError: ValidUsername
    └─ Transformation process failure
       └─ Invalid username
    */
  • #3163 2328e17 Thanks @gcanti! - Add pick and omit static functions to Struct interface, closes From Discord: Schema.omit() Overlooks Schema.fromKey Properties: Intentional Behavior? #3152.

    pick

    The pick static function available in each struct schema can be used to create a new Struct by selecting particular properties from an existing Struct.

    import { Schema } from "@effect/schema";
    
    const MyStruct = Schema.Struct({
      a: Schema.String,
      b: Schema.Number,
      c: Schema.Boolean,
    });
    
    // Schema.Struct<{ a: typeof Schema.String; c: typeof Schema.Boolean; }>
    const PickedSchema = MyStruct.pick("a", "c");

    omit

    The omit static function available in each struct schema can be used to create a new Struct by excluding particular properties from an existing Struct.

    import { Schema } from "@effect/schema";
    
    const MyStruct = Schema.Struct({
      a: Schema.String,
      b: Schema.Number,
      c: Schema.Boolean,
    });
    
    // Schema.Struct<{ a: typeof Schema.String; c: typeof Schema.Boolean; }>
    const PickedSchema = MyStruct.omit("b");
  • Updated dependencies [a5737d6]:

    • effect@3.4.7

@effect/sql@0.4.20

Patch Changes

  • Updated dependencies [15967cf, 2328e17, a5737d6]:
    • @effect/schema@0.68.17
    • effect@3.4.7
    • @effect/platform@0.58.20

@effect/sql-drizzle@0.2.20

Patch Changes

  • Updated dependencies [a5737d6]:
    • effect@3.4.7
    • @effect/sql@0.4.20

@effect/sql-mssql@0.4.20

Patch Changes

  • Updated dependencies [a5737d6]:
    • effect@3.4.7
    • @effect/platform@0.58.20
    • @effect/sql@0.4.20

@effect/sql-mysql2@0.4.20

Patch Changes

  • Updated dependencies [a5737d6]:
    • effect@3.4.7
    • @effect/platform@0.58.20
    • @effect/sql@0.4.20

@effect/sql-pg@0.4.20

Patch Changes

  • Updated dependencies [a5737d6]:
    • effect@3.4.7
    • @effect/platform@0.58.20
    • @effect/sql@0.4.20

@effect/sql-sqlite-bun@0.4.20

Patch Changes

  • Updated dependencies [a5737d6]:
    • effect@3.4.7
    • @effect/platform@0.58.20
    • @effect/sql@0.4.20

@effect/sql-sqlite-node@0.4.20

Patch Changes

  • Updated dependencies [a5737d6]:
    • effect@3.4.7
    • @effect/platform@0.58.20
    • @effect/sql@0.4.20

@effect/sql-sqlite-react-native@0.6.20

Patch Changes

  • Updated dependencies [a5737d6]:
    • effect@3.4.7
    • @effect/sql@0.4.20

@effect/sql-sqlite-wasm@0.3.20

Patch Changes

  • Updated dependencies [a5737d6]:
    • effect@3.4.7
    • @effect/sql@0.4.20

@effect/typeclass@0.24.39

Patch Changes

  • Updated dependencies [a5737d6]:
    • effect@3.4.7

@effect/vitest@0.6.1

Patch Changes

  • Updated dependencies [a5737d6]:
    • effect@3.4.7

@gcanti gcanti merged commit ad51cbe into main Jul 4, 2024
@gcanti gcanti deleted the changeset-release/main branch July 4, 2024 10:24
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
1 participant