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

fix(deps): update effect #879

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

fix(deps): update effect #879

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 18, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@effect/platform (source) 0.59.1 -> 0.72.0 age adoption passing confidence
@effect/platform-node (source) 0.54.2 -> 0.68.0 age adoption passing confidence
effect (source) 3.5.5 -> 3.12.0 age adoption passing confidence

Release Notes

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

v0.72.0

Compare Source

Minor Changes
  • #​4068 ef64c6f Thanks @​tim-smart! - remove generics from HttpClient tag service

    Instead you can now use HttpClient.With<E, R> to specify the error and
    requirement types.

Patch Changes

v0.71.7

Compare Source

Patch Changes

v0.71.6

Compare Source

Patch Changes

v0.71.5

Compare Source

Patch Changes

v0.71.4

Compare Source

Patch Changes

v0.71.3

Compare Source

Patch Changes

v0.71.2

Compare Source

Patch Changes
  • #​4138 cec0b4d Thanks @​gcanti! - JSONSchema: handle the nullable keyword for OpenAPI target, closes #​4075.

    Before

    import { OpenApiJsonSchema } from "@&#8203;effect/platform"
    import { Schema } from "effect"
    
    const schema = Schema.NullOr(Schema.String)
    
    console.log(JSON.stringify(OpenApiJsonSchema.make(schema), null, 2))
    /*
    {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "enum": [
            null
          ]
        }
      ]
    }
    */

    After

    import { OpenApiJsonSchema } from "@&#8203;effect/platform"
    import { Schema } from "effect"
    
    const schema = Schema.NullOr(Schema.String)
    
    console.log(JSON.stringify(OpenApiJsonSchema.make(schema), null, 2))
    /*
    {
      "type": "string",
      "nullable": true
    }
    */
  • #​4128 8d978c5 Thanks @​gcanti! - JSONSchema: add type for homogeneous enum schemas, closes #​4127

    Before

    import { JSONSchema, Schema } from "effect"
    
    const schema = Schema.Literal("a", "b")
    
    console.log(JSON.stringify(JSONSchema.make(schema), null, 2))
    /*
    {
      "$schema": "http://json-schema.org/draft-07/schema#",
      "enum": [
        "a",
        "b"
      ]
    }
    */

    After

    import { JSONSchema, Schema } from "effect"
    
    const schema = Schema.Literal("a", "b")
    
    console.log(JSON.stringify(JSONSchema.make(schema), null, 2))
    /*
    {
      "$schema": "http://json-schema.org/draft-07/schema#",
      "type": "string",
      "enum": [
        "a",
        "b"
      ]
    }
    */
  • #​4138 cec0b4d Thanks @​gcanti! - JSONSchema: use { "type": "null" } to represent the null literal

    Before

    import { JSONSchema, Schema } from "effect"
    
    const schema = Schema.NullOr(Schema.String)
    
    console.log(JSON.stringify(JSONSchema.make(schema), null, 2))
    /*
    {
      "$schema": "http://json-schema.org/draft-07/schema#",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "enum": [
            null
          ]
        }
      ]
    }
    */

    After

    import { JSONSchema, Schema } from "effect"
    
    const schema = Schema.NullOr(Schema.String)
    
    console.log(JSON.stringify(JSONSchema.make(schema), null, 2))
    /*
    {
      "$schema": "http://json-schema.org/draft-07/schema#",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
    */
  • Updated dependencies [2408616, cec0b4d, cec0b4d, 8d978c5, cec0b4d, cec0b4d]:

v0.71.1

Compare Source

Patch Changes
  • #​4132 1d3df5b Thanks @​tim-smart! - allow passing Context to HttpApp web handlers

    This allows you to pass request-scoped data to your handlers.

    import { Context, Effect } from "effect"
    import { HttpApp, HttpServerResponse } from "@&#8203;effect/platform"
    
    class Env extends Context.Reference<Env>()("Env", {
      defaultValue: () => ({ foo: "bar" })
    }) {}
    
    const handler = HttpApp.toWebHandler(
      Effect.gen(function* () {
        const env = yield* Env
        return yield* HttpServerResponse.json(env)
      })
    )
    
    const response = await handler(
      new Request("http://localhost:3000/"),
      Env.context({ foo: "baz" })
    )
    
    assert.deepStrictEqual(await response.json(), {
      foo: "baz"
    })

v0.71.0

Compare Source

Minor Changes
  • #​4129 c99a0f3 Thanks @​tim-smart! - replace HttpApi.empty with HttpApi.make(identifier)

    This ensures if you have multiple HttpApi instances, the HttpApiGroup's are
    implemented correctly.

    import { HttpApi } from "@&#8203;effect/platform"
    
    // Before
    class Api extends HttpApi.empty.add(...) {}
    
    // After
    class Api extends HttpApi.make("api").add(...) {}
Patch Changes

v0.70.7

Compare Source

Patch Changes
  • #​4111 22905cf Thanks @​gcanti! - JSONSchema: merge refinement fragments instead of just overwriting them.

    Before

    import { JSONSchema, Schema } from "effect"
    
    export const schema = Schema.String.pipe(
      Schema.startsWith("a"), // <= overwritten!
      Schema.endsWith("c")
    )
    
    console.log(JSON.stringify(JSONSchema.make(schema), null, 2))
    /*
    {
      "$schema": "http://json-schema.org/draft-07/schema#",
      "type": "string",
      "description": "a string ending with \"c\"",
      "pattern": "^.*c$" // <= overwritten!
    }
    */

    After

    import { JSONSchema, Schema } from "effect"
    
    export const schema = Schema.String.pipe(
      Schema.startsWith("a"), // <= preserved!
      Schema.endsWith("c")
    )
    
    console.log(JSON.stringify(JSONSchema.make(schema), null, 2))
    /*
    {
      "type": "string",
      "description": "a string ending with \"c\"",
      "pattern": "^.*c$",
      "allOf": [
        {
          "pattern": "^a" // <= preserved!
        }
      ],
      "$schema": "http://json-schema.org/draft-07/schema#"
    }
    */
  • #​4019 9f5a6f7 Thanks @​gcanti! - OpenApiJsonSchema: Use the experimental JSONSchema.fromAST API for implementation.

  • Updated dependencies [9f5a6f7, 22905cf, 9f5a6f7, 1e59e4f, 8d914e5, 03bb00f, 9f5a6f7, 14e1149, 9f5a6f7, 9f5a6f7]:

v0.70.6

Compare Source

Patch Changes

v0.70.5

Compare Source

Patch Changes

v0.70.4

Compare Source

Patch Changes

v0.70.3

Compare Source

Patch Changes
  • #​4065 7044730 Thanks @​KhraksMamtsov! - Ensure the uniqueness of the parameters at the type level

    import { HttpApiEndpoint, HttpApiSchema } from "@&#8203;effect/platform"
    import { Schema } from "effect"
    
    HttpApiEndpoint.get(
      "test"
    )`/${HttpApiSchema.param("id", Schema.NumberFromString)}/${
      // @&#8203;ts-expect-error: Argument of type 'Param<"id", typeof NumberFromString>' is not assignable to parameter of type '"Duplicate param :id"'
      HttpApiSchema.param("id", Schema.NumberFromString)
    }`

v0.70.2

Compare Source

Patch Changes

v0.70.1

Compare Source

Patch Changes

v0.70.0

Compare Source

Minor Changes
Patch Changes

v0.69.31

Compare Source

Patch Changes

v0.69.30

Compare Source

Patch Changes

v0.69.29

Compare Source

Patch Changes

v0.69.28

Compare Source

Patch Changes

v0.69.27

Compare Source

Patch Changes

v0.69.26

Patch Changes
  • #​3977 c963886 Thanks @​KhraksMamtsov! - HttpApiClient.group & HttpApiClient.endpoint have been added
    This makes it possible to create HttpApiClient for some part of the HttpApi
    This eliminates the need to provide all the dependencies for the entire HttpApi - but only those necessary for its specific part to work
  • Updated dependencies [42c4ce6]:

v0.69.25

Patch Changes
  • #​3968 320557a Thanks @​KhraksMamtsov! - OpenApi.Transform annotation has been added

    This customization point allows you to transform the generated specification in an arbitrary way

    class Api extends HttpApi.empty
      .annotateContext(OpenApi.annotations({
        title: "API",
        summary: "test api summary",
        transform: (openApiSpec) => ({
          ...openApiSpec,
          tags: [...openApiSpec.tags ?? [], {
            name: "Tag from OpenApi.Transform annotation"
          }]
        })
      }))
  • #​3962 7b93dd6 Thanks @​KhraksMamtsov! - fix HttpApiGroup.addError signature

  • Updated dependencies [4dca30c, 1d99867, 6dae414, 6b0d737, d8356aa]:

v0.69.24

Compare Source

Patch Changes
  • #​3939 3cc6514 Thanks @​KhraksMamtsov! - Added the ability to annotate the HttpApi with additional schemas
    Which will be taken into account when generating components.schemas section of OpenApi schema

    import { Schema } from "effect"
    import { HttpApi } from "@&#8203;effect/platform"
    
    HttpApi.empty.annotate(HttpApi.AdditionalSchemas, [
      Schema.Struct({
        contentType: Schema.String,
        length: Schema.Int
      }).annotations({
        identifier: "ComponentsSchema"
      })
    ])
    /**
     {
      "openapi": "3.0.3",
      ...
      "components": {
        "schemas": {
          "ComponentsSchema": {...},
          ...
      },
      ...
      }
     */

v0.69.23

Compare Source

Patch Changes

v0.69.22

Compare Source

Patch Changes

v0.69.21

Compare Source

Patch Changes

v0.69.20

Compare Source

Patch Changes

v0.69.19

Compare Source

Patch Changes

v0.69.18

Compare Source

Patch Changes

v0.69.17

Compare Source

Patch Changes

v0.69.16

Compare Source

Patch Changes

v0.69.15

Compare Source

Patch Changes

v0.69.14

Compare Source

Patch Changes

v0.69.13

Compare Source

Patch Changes

v0.69.12

Compare Source

Patch Changes

v0.69.11

Compare Source

Patch Changes

v0.69.10

Compare Source

Patch Changes

v0.69.9

Compare Source

Patch Changes
  • #​3842 2367708 Thanks @​gcanti! - add support for Schema.OptionFromUndefinedOr in JSON Schema generation, closes #​3839

    Before

    import { JSONSchema, Schema } from "effect"
    
    const schema = Schema.Struct({
      a: Schema.OptionFromUndefinedOr(Schema.Number)
    })
    
    console.log(JSON.stringify(JSONSchema.make(schema), null, 2))
    /*
    throws:
    Error: Missing annotation
    at path: ["a"]
    details: Generating a JSON Schema for this schema requires a "jsonSchema" annotation
    schema (UndefinedKeyword): undefined
    */

    After

    import { JSONSchema, Schema } from "effect"
    
    const schema = Schema.Struct({
      a: Schema.OptionFromUndefinedOr(Schema.Number)
    })
    
    console.log(JSON.stringify(JSONSchema.make(schema), null, 2))
    /*
    Output:
    {
      "$schema": "http://json-schema.org/draft-07/schema#",
      "type": "object",
      "required": [],
      "properties": {
        "a": {
          "type": "number"
        }
      },
      "additionalProperties": false
    }
    */
  • Updated dependencies [2367708]:

v0.69.8

Compare Source

Patch Changes

v0.69.7

Compare Source

Patch Changes

v0.69.6

Compare Source

Patch Changes

v0.69.5

Compare Source

Patch Changes

v0.69.4

Compare Source

Patch Changes

v0.69.3

Compare Source

Patch Changes

v0.69.2

Compare Source

Patch Changes

v0.69.1

Compare Source

Patch Changes

v0.69.0

Compare Source

Minor Changes
  • #​3764 6d9de6b Thanks @​tim-smart! - HttpApi second revision

    • HttpApi, HttpApiGroup & HttpApiEndpoint now use a chainable api instead
      of a pipeable api.
    • HttpApiMiddleware module has been added, with a updated way of defining
      security middleware.
    • You can now add multiple success schemas
    • A url search parameter schema has been added
    • Error schemas now support HttpApiSchema encoding apis
    • toWebHandler has been simplified

    For more information, see the README.

  • #​3764 5821ce3 Thanks @​patroza! - feat: implement Redactable. Used by Headers to not log sensitive information

Patch Changes

v0.68.6

Compare Source

Patch Changes

v0.68.5

Compare Source

Patch Changes

v0.68.4

Compare Source

Patch Changes

v0.68.3

Compare Source

Patch Changes

v0.68.2

Compare Source

Patch Changes

v0.68.1

Compare Source

Patch Changes

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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/effect branch 5 times, most recently from 96d41f6 to e83e51f Compare July 30, 2024 04:47
@renovate renovate bot force-pushed the renovate/effect branch 4 times, most recently from 01c1c20 to 331d3cc Compare August 5, 2024 04:03
@renovate renovate bot force-pushed the renovate/effect branch 6 times, most recently from 1909dcd to 2381c40 Compare August 12, 2024 21:17
@renovate renovate bot force-pushed the renovate/effect branch 3 times, most recently from 95e0d5a to 5f79125 Compare August 21, 2024 03:11
@renovate renovate bot force-pushed the renovate/effect branch 3 times, most recently from 8463bbc to 5555ee6 Compare August 30, 2024 10:56
@renovate renovate bot force-pushed the renovate/effect branch 5 times, most recently from 1ec0839 to 6c72279 Compare September 7, 2024 13:58
@renovate renovate bot force-pushed the renovate/effect branch 4 times, most recently from 7ee0cfe to 8329ab0 Compare September 17, 2024 23:10
@renovate renovate bot force-pushed the renovate/effect branch 4 times, most recently from 8afe5d7 to cf0749a Compare November 11, 2024 13:28
@renovate renovate bot force-pushed the renovate/effect branch 3 times, most recently from 9740ebe to ceea039 Compare November 15, 2024 13:14
@renovate renovate bot force-pushed the renovate/effect branch 4 times, most recently from 440ac18 to 29371ff Compare November 28, 2024 00:02
@renovate renovate bot force-pushed the renovate/effect branch 8 times, most recently from 6df93f1 to 0d4706d Compare December 5, 2024 18:02
@renovate renovate bot force-pushed the renovate/effect branch 6 times, most recently from 78aafda to 989c5e8 Compare December 16, 2024 01:21
@renovate renovate bot force-pushed the renovate/effect branch 3 times, most recently from 4843727 to 19b9af9 Compare December 19, 2024 20:31
@renovate renovate bot force-pushed the renovate/effect branch from 19b9af9 to 5fb5e91 Compare December 23, 2024 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants