Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

chore(deps): update all patch dependencies #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 18, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@changesets/cli (source) 2.27.3 -> 2.27.5 age adoption passing confidence
@effect/platform (source) 0.55.0 -> 0.55.5 age adoption passing confidence
@effect/platform-node (source) 0.51.0 -> 0.51.5 age adoption passing confidence
@effect/schema (source) 0.67.13 -> 0.67.18 age adoption passing confidence
effect (source) 3.2.5 -> 3.2.8 age adoption passing confidence
pnpm (source) 9.1.1 -> 9.1.4 age adoption passing confidence
tsx 4.11.0 -> 4.11.2 age adoption passing confidence

Release Notes

changesets/changesets (@​changesets/cli)

v2.27.5

Compare Source

Patch Changes

v2.27.4

Compare Source

Patch Changes
Effect-TS/effect (@​effect/platform)

v0.55.5

Compare Source

Patch Changes

v0.55.4

Compare Source

Patch Changes

v0.55.3

Compare Source

Patch Changes

v0.55.2

Compare Source

Patch Changes

v0.55.1

Compare Source

Patch Changes
Effect-TS/effect (@​effect/platform-node)

v0.51.5

Compare Source

Patch Changes

v0.51.4

Compare Source

Patch Changes

v0.51.3

Compare Source

Patch Changes

v0.51.2

Compare Source

Patch Changes

v0.51.1

Compare Source

Patch Changes
Effect-TS/effect (@​effect/schema)

v0.67.18

Compare Source

Patch Changes

v0.67.17

Compare Source

Patch Changes
  • #​2892 d9d22e7 Thanks @​gcanti! - Schema

    • add propertySignature API interface (with a from property)
    • extend optional API interface with a from property
    • extend optionalWithOptions API interface with a from property
  • #​2901 3c080f7 Thanks @​gcanti! - make the AST.TemplateLiteral constructor public

  • #​2901 3c080f7 Thanks @​gcanti! - add support for string literals to Schema.TemplateLiteral and TemplateLiteral API interface.

    Before

    import { Schema } from "@​effect/schema";
    
    // `https://${string}.com` | `https://${string}.net`
    const MyUrl = Schema.TemplateLiteral(
      Schema.Literal("https://"),
      Schema.String,
      Schema.Literal("."),
      Schema.Literal("com", "net"),
    );

    Now

    import { Schema } from "@​effect/schema";
    
    // `https://${string}.com` | `https://${string}.net`
    const MyUrl = Schema.TemplateLiteral(
      "https://",
      Schema.String,
      ".",
      Schema.Literal("com", "net"),
    );
  • #​2905 7d6d875 Thanks @​gcanti! - add support for unions to rename, closes #​2904

  • #​2897 70cda70 Thanks @​gcanti! - Add encodedBoundSchema API.

    The encodedBoundSchema function is similar to encodedSchema but preserves the refinements up to the first transformation point in the
    original schema.

    Function Signature:

    export const encodedBoundSchema = <A, I, R>(schema: Schema<A, I, R>): Schema<I>

    The term "bound" in this context refers to the boundary up to which refinements are preserved when extracting the encoded form of a schema. It essentially marks the limit to which initial validations and structure are maintained before any transformations are applied.

    Example Usage:

    import { Schema } from "@&#8203;effect/schema";
    
    const schema = Schema.Struct({
      foo: Schema.String.pipe(Schema.minLength(3), Schema.compose(Schema.Trim)),
    });
    
    // The resultingEncodedBoundSchema preserves the minLength(3) refinement,
    // ensuring the string length condition is enforced but omits the Trim transformation.
    const resultingEncodedBoundSchema = Schema.encodedBoundSchema(schema);
    
    // resultingEncodedBoundSchema is the same as:
    Schema.Struct({
      foo: Schema.String.pipe(Schema.minLength(3)),
    });

    In the provided example:

    • Initial Schema: The schema for foo includes a refinement to ensure strings have a minimum length of three characters and a transformation to trim the string.
    • Resulting Schema: resultingEncodedBoundSchema maintains the minLength(3) condition, ensuring that this validation persists. However, it excludes the trimming transformation, focusing solely on the length requirement without altering the string's formatting.
  • Updated dependencies [fb91f17]:

v0.67.16

Compare Source

Patch Changes
  • #​2890 5745886 Thanks @​gcanti! - Fix constructor type inference for classes with all optional fields, closes #​2888

    This fix addresses an issue where TypeScript incorrectly inferred the constructor parameter type as an empty object {} when all class fields were optional. Now, the constructor properly recognizes arguments as objects with optional fields (e.g., { abc?: number, xyz?: number }).

  • Updated dependencies [6801fca]:

v0.67.15

Compare Source

Patch Changes

v0.67.14

Compare Source

Patch Changes
  • #​2851 c5846e9 Thanks @​gcanti! - Add tag and TaggedStruct constructors.

    In TypeScript tags help to enhance type discrimination and pattern matching by providing a simple yet powerful way to define and recognize different data types.

    What is a Tag?

    A tag is a literal value added to data structures, commonly used in structs, to distinguish between various object types or variants within tagged unions. This literal acts as a discriminator, making it easier to handle and process different types of data correctly and efficiently.

    Using the tag Constructor

    The tag constructor is specifically designed to create a property signature that holds a specific literal value, serving as the discriminator for object types. Here's how you can define a schema with a tag:

    import { Schema } from "@&#8203;effect/schema";
    
    const User = Schema.Struct({
      _tag: Schema.tag("User"),
      name: Schema.String,
      age: Schema.Number,
    });
    
    assert.deepStrictEqual(User.make({ name: "John", age: 44 }), {
      _tag: "User",
      name: "John",
      age: 44,
    });

    In the example above, Schema.tag("User") attaches a _tag property to the User struct schema, effectively labeling objects of this struct type as "User". This label is automatically applied when using the make method to create new instances, simplifying object creation and ensuring consistent tagging.

    Simplifying Tagged Structs with TaggedStruct

    The TaggedStruct constructor streamlines the process of creating tagged structs by directly integrating the tag into the struct definition. This method provides a clearer and more declarative approach to building data structures with embedded discriminators.

    import { Schema } from "@&#8203;effect/schema";
    
    const User = Schema.TaggedStruct("User", {
      name: Schema.String,
      age: Schema.Number,
    });
    
    // `_tag` is optional
    const userInstance = User.make({ name: "John", age: 44 });
    
    assert.deepStrictEqual(userInstance, {
      _tag: "User",
      name: "John",
      age: 44,
    });

    Multiple Tags

    While a primary tag is often sufficient, TypeScript allows you to define multiple tags for more complex data structuring needs. Here's an example demonstrating the use of multiple tags within a single struct:

    import { Schema } from "@&#8203;effect/schema";
    
    const Product = Schema.TaggedStruct("Product", {
      category: Schema.tag("Electronics"),
      name: Schema.String,
      price: Schema.Number,
    });
    
    // `_tag` and `category` are optional
    const productInstance = Product.make({ name: "Smartphone", price: 999 });
    
    assert.deepStrictEqual(productInstance, {
      _tag: "Product",
      category: "Electronics",
      name: "Smartphone",
      price: 999,
    });

    This example showcases a product schema that not only categorizes each product under a general tag ("Product") but also specifies a category tag ("Electronics"), enhancing the clarity and specificity of the data model.

Effect-TS/effect (effect)

v3.2.8

Compare Source

Patch Changes

v3.2.7

Compare Source

Patch Changes

v3.2.6

Compare Source

Patch Changes
pnpm/pnpm (pnpm)

v9.1.4

Compare Source

v9.1.3

Compare Source

v9.1.2

Compare Source

Patch Changes

  • Reduced memory usage during peer dependencies resolution #​8084.
  • Details in the pnpm licenses output are not misplaced anymore #​8071.

Platinum Sponsors

Gold Sponsors

Our Silver Sponsors

privatenumber/tsx (tsx)

v4.11.2

Compare Source

v4.11.1

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot changed the title chore(deps): update pnpm to v8.15.5 chore(deps): update all patch dependencies Mar 18, 2024
@renovate renovate bot force-pushed the renovate/all-patch branch 6 times, most recently from 1fb822d to 525c84f Compare March 20, 2024 16:19
@renovate renovate bot changed the title chore(deps): update all patch dependencies chore(deps): update pnpm to v8.15.5 Mar 20, 2024
@renovate renovate bot force-pushed the renovate/all-patch branch 2 times, most recently from 22615e4 to d41c42c Compare March 20, 2024 22:08
@renovate renovate bot changed the title chore(deps): update pnpm to v8.15.5 chore(deps): update all patch dependencies Mar 20, 2024
@renovate renovate bot force-pushed the renovate/all-patch branch 2 times, most recently from ef40270 to 4027bcd Compare March 21, 2024 03:54
@renovate renovate bot changed the title chore(deps): update all patch dependencies chore(deps): update pnpm to v8.15.5 Mar 21, 2024
@renovate renovate bot force-pushed the renovate/all-patch branch 2 times, most recently from e267d29 to 4b46ab4 Compare March 22, 2024 03:52
@renovate renovate bot changed the title chore(deps): update pnpm to v8.15.5 chore(deps): update all patch dependencies Mar 22, 2024
@renovate renovate bot changed the title chore(deps): update all patch dependencies chore(deps): update pnpm to v8.15.5 Mar 22, 2024
@renovate renovate bot force-pushed the renovate/all-patch branch 2 times, most recently from 41264da to 26a46e2 Compare March 24, 2024 23:02
@renovate renovate bot changed the title chore(deps): update pnpm to v8.15.5 chore(deps): update all patch dependencies Mar 24, 2024
@renovate renovate bot changed the title chore(deps): update all patch dependencies chore(deps): update pnpm to v8.15.5 Mar 25, 2024
@renovate renovate bot force-pushed the renovate/all-patch branch 2 times, most recently from ee32f0c to 6a21e80 Compare March 26, 2024 02:17
@renovate renovate bot changed the title chore(deps): update pnpm to v8.15.5 chore(deps): update all patch dependencies Mar 26, 2024
@renovate renovate bot changed the title chore(deps): update all patch dependencies chore(deps): update pnpm to v8.15.5 Mar 26, 2024
@renovate renovate bot changed the title chore(deps): update pnpm to v8.15.5 chore(deps): update all patch dependencies Mar 27, 2024
@renovate renovate bot changed the title chore(deps): update all patch dependencies - autoclosed chore(deps): update all patch dependencies May 18, 2024
@renovate renovate bot reopened this May 18, 2024
@renovate renovate bot restored the renovate/all-patch branch May 18, 2024 09:51
@renovate renovate bot changed the title chore(deps): update all patch dependencies chore(deps): update dependency tsx to v4.10.5 May 18, 2024
@renovate renovate bot changed the title chore(deps): update dependency tsx to v4.10.5 chore(deps): update all patch dependencies May 20, 2024
@renovate renovate bot force-pushed the renovate/all-patch branch 2 times, most recently from 7567473 to 055cc81 Compare May 22, 2024 00:17
@renovate renovate bot changed the title chore(deps): update all patch dependencies chore(deps): update pnpm to v9.1.2 May 22, 2024
@renovate renovate bot force-pushed the renovate/all-patch branch 2 times, most recently from fdb80b5 to 927b1df Compare May 22, 2024 11:35
@renovate renovate bot changed the title chore(deps): update pnpm to v9.1.2 chore(deps): update all patch dependencies May 22, 2024
@renovate renovate bot force-pushed the renovate/all-patch branch 3 times, most recently from 1f23b66 to 4c9fc37 Compare May 24, 2024 13:36
@renovate renovate bot changed the title chore(deps): update all patch dependencies chore(deps): update pnpm to v9.1.2 May 24, 2024
@renovate renovate bot force-pushed the renovate/all-patch branch 2 times, most recently from 01a4945 to 70376c5 Compare May 27, 2024 11:20
@renovate renovate bot changed the title chore(deps): update pnpm to v9.1.2 chore(deps): update all patch dependencies May 27, 2024
@renovate renovate bot force-pushed the renovate/all-patch branch 8 times, most recently from dd610c6 to 486885b Compare June 3, 2024 22:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants