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

Bump the effect group across 1 directory with 4 updates #586

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 16, 2024

Bumps the effect group with 4 updates in the / directory: @effect/platform, @effect/platform-node, @effect/schema and effect.

Updates @effect/platform from 0.58.20 to 0.65.1

Release notes

Sourced from @​effect/platform's releases.

@​effect/platform@​0.65.1

Patch Changes

@​effect/platform-node@​0.60.0

Minor Changes

  • #3541 7041393 Thanks @​tim-smart! - refactor /platform HttpClient

    HttpClient.fetch removed

    The HttpClient.fetch client implementation has been removed. Instead, you can access a HttpClient using the corresponding Context.Tag.

    import { FetchHttpClient, HttpClient } from "@effect/platform"
    import { Effect } from "effect"
    Effect.gen(function* () {
    const client = yield* HttpClient.HttpClient
    // make a get request
    yield* client.get("https://jsonplaceholder.typicode.com/todos/1")
    }).pipe(
    Effect.scoped,
    // the fetch client has been moved to the FetchHttpClient module
    Effect.provide(FetchHttpClient.layer)
    )

    HttpClient interface now uses methods

    Instead of being a function that returns the response, the HttpClient interface now uses methods to make requests.

    Some shorthand methods have been added to the HttpClient interface to make less complex requests easier.

    import {
      FetchHttpClient,
      HttpClient,
      HttpClientRequest
    } from "@effect/platform"
    import { Effect } from "effect"
    Effect.gen(function* () {
    const client = yield* HttpClient.HttpClient

... (truncated)

Changelog

Sourced from @​effect/platform's changelog.

0.65.1

Patch Changes

0.65.0

Minor Changes

  • #3541 7041393 Thanks @​tim-smart! - refactor /platform HttpClient

    HttpClient.fetch removed

    The HttpClient.fetch client implementation has been removed. Instead, you can access a HttpClient using the corresponding Context.Tag.

    import { FetchHttpClient, HttpClient } from "@effect/platform"
    import { Effect } from "effect"
    Effect.gen(function* () {
    const client = yield* HttpClient.HttpClient
    // make a get request
    yield* client.get("https://jsonplaceholder.typicode.com/todos/1")
    }).pipe(
    Effect.scoped,
    // the fetch client has been moved to the FetchHttpClient module
    Effect.provide(FetchHttpClient.layer)
    )

    HttpClient interface now uses methods

    Instead of being a function that returns the response, the HttpClient interface now uses methods to make requests.

    Some shorthand methods have been added to the HttpClient interface to make less complex requests easier.

    import {
      FetchHttpClient,
      HttpClient,
      HttpClientRequest
    } from "@effect/platform"
    import { Effect } from "effect"
    Effect.gen(function* () {

... (truncated)

Commits

Updates @effect/platform-node from 0.53.19 to 0.60.1

Release notes

Sourced from @​effect/platform-node's releases.

@​effect/platform-node@​0.60.1

Patch Changes

  • Updated dependencies [e44c5f2]:
    • @​effect/platform@​0.65.1
    • @​effect/platform-node-shared@​0.15.1

@​effect/platform-node@​0.60.0

Minor Changes

  • #3541 7041393 Thanks @​tim-smart! - refactor /platform HttpClient

    HttpClient.fetch removed

    The HttpClient.fetch client implementation has been removed. Instead, you can access a HttpClient using the corresponding Context.Tag.

    import { FetchHttpClient, HttpClient } from "@effect/platform"
    import { Effect } from "effect"
    Effect.gen(function* () {
    const client = yield* HttpClient.HttpClient
    // make a get request
    yield* client.get("https://jsonplaceholder.typicode.com/todos/1")
    }).pipe(
    Effect.scoped,
    // the fetch client has been moved to the FetchHttpClient module
    Effect.provide(FetchHttpClient.layer)
    )

    HttpClient interface now uses methods

    Instead of being a function that returns the response, the HttpClient interface now uses methods to make requests.

    Some shorthand methods have been added to the HttpClient interface to make less complex requests easier.

    import {
      FetchHttpClient,
      HttpClient,
      HttpClientRequest
    } from "@effect/platform"
    import { Effect } from "effect"
    Effect.gen(function* () {

... (truncated)

Changelog

Sourced from @​effect/platform-node's changelog.

0.60.1

Patch Changes

  • Updated dependencies [e44c5f2]:
    • @​effect/platform@​0.65.1
    • @​effect/platform-node-shared@​0.15.1

0.60.0

Minor Changes

  • #3541 7041393 Thanks @​tim-smart! - refactor /platform HttpClient

    HttpClient.fetch removed

    The HttpClient.fetch client implementation has been removed. Instead, you can access a HttpClient using the corresponding Context.Tag.

    import { FetchHttpClient, HttpClient } from "@effect/platform"
    import { Effect } from "effect"
    Effect.gen(function* () {
    const client = yield* HttpClient.HttpClient
    // make a get request
    yield* client.get("https://jsonplaceholder.typicode.com/todos/1")
    }).pipe(
    Effect.scoped,
    // the fetch client has been moved to the FetchHttpClient module
    Effect.provide(FetchHttpClient.layer)
    )

    HttpClient interface now uses methods

    Instead of being a function that returns the response, the HttpClient interface now uses methods to make requests.

    Some shorthand methods have been added to the HttpClient interface to make less complex requests easier.

    import {
      FetchHttpClient,
      HttpClient,
      HttpClientRequest
    } from "@effect/platform"
    import { Effect } from "effect"

... (truncated)

Commits

Updates @effect/schema from 0.68.17 to 0.73.0

Release notes

Sourced from @​effect/schema's releases.

@​effect/schema@​0.73.0

Minor Changes

  • #3589 7fdf9d9 Thanks @​gcanti! - Updates the constraints for members within a union from the more restrictive Schema.Any to the more inclusive Schema.All, closes #3587.

    Affected APIs include:

    • Schema.Union
    • Schema.UndefinedOr
    • Schema.NullOr
    • Schema.NullishOr
    • Schema.optional
    • AST.Union.make now retains duplicate members and no longer eliminates the neverKeyword.

Patch Changes

@​effect/schema@​0.72.4

Patch Changes

Changelog

Sourced from @​effect/schema's changelog.

0.73.0

Minor Changes

  • #3589 7fdf9d9 Thanks @​gcanti! - Updates the constraints for members within a union from the more restrictive Schema.Any to the more inclusive Schema.All, closes #3587.

    Affected APIs include:

    • Schema.Union
    • Schema.UndefinedOr
    • Schema.NullOr
    • Schema.NullishOr
    • Schema.optional
    • AST.Union.make now retains duplicate members and no longer eliminates the neverKeyword.

Patch Changes

0.72.4

Patch Changes

0.72.3

Patch Changes

0.72.2

Patch Changes

0.72.1

Patch Changes

0.72.0

Patch Changes

... (truncated)

Commits

Updates effect from 3.4.7 to 3.8.0

Release notes

Sourced from effect's releases.

[email protected]

Minor Changes

  • #3541 fcfa6ee Thanks @​Schniz! - add Logger.withLeveledConsole

    In browsers and different platforms, console.error renders differently than console.info. This helps to distinguish between different levels of logging. Logger.withLeveledConsole takes any logger and calls the respective Console method based on the log level. For instance, Effect.logError will call Console.error and Effect.logInfo will call Console.info.

    To use it, you can replace the default logger with a Logger.withLeveledConsole logger:

    import { Logger, Effect } from "effect"
    const loggerLayer = Logger.withLeveledConsole(Logger.stringLogger)
    Effect.gen(function* () {
    yield* Effect.logError("an error")
    yield* Effect.logInfo("an info")
    }).pipe(Effect.provide(loggerLayer))

  • #3541 bb9931b Thanks @​KhraksMamtsov! - Made Ref, SynchronizedRed and SubscriptionRef a subtype of Effect

  • #3541 5798f76 Thanks @​tim-smart! - add Semaphore.withPermitsIfAvailable

    You can now use Semaphore.withPermitsIfAvailable to run an Effect only if the Semaphore has enough permits available. This is useful when you want to run an Effect only if you can acquire a permit without blocking.

    It will return an Option.Some with the result of the Effect if the permits were available, or None if they were not.

    import { Effect } from "effect"
    Effect.gen(function* () {
    const semaphore = yield* Effect.makeSemaphore(1)
    semaphore.withPermitsIfAvailable(1)(Effect.void)
    })

  • #3541 5f0bfa1 Thanks @​KhraksMamtsov! - The Deferred<A> is now a subtype of Effect<A>. This change simplifies handling of deferred values, removing the need for explicit call Deffer.await.

    import { Effect, Deferred } from "effect"
    Effect.gen(function* () {
    const deferred = yield* Deferred.make<string>()
    const before = yield* Deferred.await(deferred)
    const after = yield* deferred

... (truncated)

Changelog

Sourced from effect's changelog.

3.8.0

Minor Changes

  • #3541 fcfa6ee Thanks @​Schniz! - add Logger.withLeveledConsole

    In browsers and different platforms, console.error renders differently than console.info. This helps to distinguish between different levels of logging. Logger.withLeveledConsole takes any logger and calls the respective Console method based on the log level. For instance, Effect.logError will call Console.error and Effect.logInfo will call Console.info.

    To use it, you can replace the default logger with a Logger.withLeveledConsole logger:

    import { Logger, Effect } from "effect"
    const loggerLayer = Logger.withLeveledConsole(Logger.stringLogger)
    Effect.gen(function* () {
    yield* Effect.logError("an error")
    yield* Effect.logInfo("an info")
    }).pipe(Effect.provide(loggerLayer))

  • #3541 bb9931b Thanks @​KhraksMamtsov! - Made Ref, SynchronizedRed and SubscriptionRef a subtype of Effect

  • #3541 5798f76 Thanks @​tim-smart! - add Semaphore.withPermitsIfAvailable

    You can now use Semaphore.withPermitsIfAvailable to run an Effect only if the Semaphore has enough permits available. This is useful when you want to run an Effect only if you can acquire a permit without blocking.

    It will return an Option.Some with the result of the Effect if the permits were available, or None if they were not.

    import { Effect } from "effect"
    Effect.gen(function* () {
    const semaphore = yield* Effect.makeSemaphore(1)
    semaphore.withPermitsIfAvailable(1)(Effect.void)
    })

  • #3541 5f0bfa1 Thanks @​KhraksMamtsov! - The Deferred<A> is now a subtype of Effect<A>. This change simplifies handling of deferred values, removing the need for explicit call Deffer.await.

    import { Effect, Deferred } from "effect"
    Effect.gen(function* () {
    const deferred = yield* Deferred.make<string>()
    const before = yield* Deferred.await(deferred)

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the effect group with 4 updates in the / directory: [@effect/platform](https://github.com/Effect-TS/effect/tree/HEAD/packages/platform), [@effect/platform-node](https://github.com/Effect-TS/effect/tree/HEAD/packages/platform-node), [@effect/schema](https://github.com/Effect-TS/effect/tree/HEAD/packages/schema) and [effect](https://github.com/Effect-TS/effect/tree/HEAD/packages/effect).


Updates `@effect/platform` from 0.58.20 to 0.65.1
- [Release notes](https://github.com/Effect-TS/effect/releases)
- [Changelog](https://github.com/Effect-TS/effect/blob/main/packages/platform/CHANGELOG.md)
- [Commits](https://github.com/Effect-TS/effect/commits/@effect/[email protected]/packages/platform)

Updates `@effect/platform-node` from 0.53.19 to 0.60.1
- [Release notes](https://github.com/Effect-TS/effect/releases)
- [Changelog](https://github.com/Effect-TS/effect/blob/main/packages/platform-node/CHANGELOG.md)
- [Commits](https://github.com/Effect-TS/effect/commits/@effect/[email protected]/packages/platform-node)

Updates `@effect/schema` from 0.68.17 to 0.73.0
- [Release notes](https://github.com/Effect-TS/effect/releases)
- [Changelog](https://github.com/Effect-TS/effect/blob/main/packages/schema/CHANGELOG.md)
- [Commits](https://github.com/Effect-TS/effect/commits/@effect/[email protected]/packages/schema)

Updates `effect` from 3.4.7 to 3.8.0
- [Release notes](https://github.com/Effect-TS/effect/releases)
- [Changelog](https://github.com/Effect-TS/effect/blob/main/packages/effect/CHANGELOG.md)
- [Commits](https://github.com/Effect-TS/effect/commits/[email protected]/packages/effect)

---
updated-dependencies:
- dependency-name: "@effect/platform"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: effect
- dependency-name: "@effect/platform-node"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: effect
- dependency-name: "@effect/schema"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: effect
- dependency-name: effect
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: effect
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Sep 16, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 18, 2024

Superseded by #591.

@dependabot dependabot bot closed this Sep 18, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/effect-f88d48d02f branch September 18, 2024 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants