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 #2739

Merged
merged 1 commit into from
May 14, 2024
Merged

Version Packages #2739

merged 1 commit into from
May 14, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented May 13, 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.36.24

Patch Changes

  • Updated dependencies [89a3afb, 992c8e2]:
    • @effect/schema@0.67.2
    • @effect/platform@0.53.5

@effect/experimental@0.16.5

Patch Changes

  • Updated dependencies [89a3afb, 992c8e2]:
    • @effect/schema@0.67.2
    • @effect/platform@0.53.5
    • @effect/platform-node@0.49.5

@effect/platform@0.53.5

Patch Changes

@effect/platform-browser@0.33.20

Patch Changes

  • Updated dependencies []:
    • @effect/platform@0.53.5

@effect/platform-bun@0.34.11

Patch Changes

  • Updated dependencies []:
    • @effect/platform@0.53.5
    • @effect/platform-node-shared@0.4.24

@effect/platform-node@0.49.5

Patch Changes

  • Updated dependencies []:
    • @effect/platform@0.53.5
    • @effect/platform-node-shared@0.4.24

@effect/platform-node-shared@0.4.24

Patch Changes

  • Updated dependencies []:
    • @effect/platform@0.53.5

@effect/rpc@0.30.24

Patch Changes

  • Updated dependencies [89a3afb, 992c8e2]:
    • @effect/schema@0.67.2
    • @effect/platform@0.53.5

@effect/rpc-http@0.28.24

Patch Changes

  • Updated dependencies [89a3afb, 992c8e2]:
    • @effect/schema@0.67.2
    • @effect/platform@0.53.5
    • @effect/rpc@0.30.24

@effect/schema@0.67.2

Patch Changes

  • #2738 89a3afb Thanks @gcanti! - add cause in errors thrown by asserts, closes From Discord: Handling Missing 'cause' in @effect/schema Exceptions #2729

  • #2741 992c8e2 Thanks @gcanti! - Schema.optional: the default option now allows setting a default value for both the decoding phase and the default constructor. Previously, it only set the decoding default. Closes From Discord: Issue with Optional Props in TypeScript Constructor Using '@effect/schema/Schema' #2740.

    Example

    import { Schema } from "@effect/schema";
    
    const Product = Schema.Struct({
      name: Schema.String,
      price: Schema.NumberFromString,
      quantity: Schema.optional(Schema.NumberFromString, { default: () => 1 }),
    });
    
    // Applying defaults in the decoding phase
    console.log(
      Schema.decodeUnknownSync(Product)({ name: "Laptop", price: "999" }),
    ); // { name: 'Laptop', price: 999, quantity: 1 }
    console.log(
      Schema.decodeUnknownSync(Product)({
        name: "Laptop",
        price: "999",
        quantity: "2",
      }),
    ); // { name: 'Laptop', price: 999, quantity: 2 }
    
    // Applying defaults in the constructor
    console.log(Product.make({ name: "Laptop", price: 999 })); // { name: 'Laptop', price: 999, quantity: 1 }
    console.log(Product.make({ name: "Laptop", price: 999, quantity: 2 })); // { name: 'Laptop', price: 999, quantity: 2 }

@effect/sql@0.2.7

Patch Changes

  • Updated dependencies [89a3afb, 992c8e2]:
    • @effect/schema@0.67.2
    • @effect/platform@0.53.5

@effect/sql-mssql@0.2.7

Patch Changes

  • Updated dependencies []:
    • @effect/platform@0.53.5
    • @effect/sql@0.2.7

@effect/sql-mysql2@0.2.7

Patch Changes

  • Updated dependencies []:
    • @effect/platform@0.53.5
    • @effect/sql@0.2.7

@effect/sql-pg@0.2.7

Patch Changes

  • Updated dependencies []:
    • @effect/platform@0.53.5
    • @effect/sql@0.2.7

@effect/sql-sqlite-bun@0.2.7

Patch Changes

  • Updated dependencies []:
    • @effect/platform@0.53.5
    • @effect/sql@0.2.7

@effect/sql-sqlite-node@0.2.7

Patch Changes

  • Updated dependencies []:
    • @effect/platform@0.53.5
    • @effect/sql@0.2.7

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

Patch Changes

  • Updated dependencies []:
    • @effect/sql@0.2.7

@effect/sql-sqlite-wasm@0.2.7

Patch Changes

  • Updated dependencies []:
    • @effect/sql@0.2.7

@gcanti gcanti merged commit fb8f1b0 into main May 14, 2024
@gcanti gcanti deleted the changeset-release/main branch May 14, 2024 06:46
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