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

Merged
merged 1 commit into from
Mar 24, 2024
Merged

Version Packages #2388

merged 1 commit into from
Mar 24, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Mar 22, 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/vitest@0.2.0

Minor Changes

  • #2394 b6ee13b Thanks @mikearnaldi! - Fix helper signatures removing support for passing effects as discriminating between effects and functions is not safe

    Re-export vitest with patched "it"

Patch Changes

@effect/cli@0.35.18

Patch Changes

effect@2.4.12

Patch Changes

@effect/experimental@0.14.1

Patch Changes

@effect/opentelemetry@0.31.22

Patch Changes

@effect/platform@0.48.16

Patch Changes

  • #2387 75a8d16 Thanks @tim-smart! - add Cookies module to /platform http

    To add cookies to a http response:

    import * as Http from "@effect/platform/HttpServer";
    
    Http.response.empty().pipe(
      Http.response.setCookies([
        ["name", "value"],
        ["foo", "bar", { httpOnly: true }],
      ]),
    );

    You can also use cookies with the http client:

    import * as Http from "@effect/platform/HttpClient";
    import { Effect, Ref } from "effect";
    
    Effect.gen(function* (_) {
      const ref = yield* _(Ref.make(Http.cookies.empty));
      const defaultClient = yield* _(Http.client.Client);
      const clientWithCookies = defaultClient.pipe(
        Http.client.withCookiesRef(ref),
        Http.client.filterStatusOk,
      );
    
      // cookies will be stored in the ref and sent in any subsequent requests
      yield* _(
        Http.request.get("https://www.google.com/"),
        clientWithCookies,
        Effect.scoped,
      );
    });
  • #2385 3307729 Thanks @tim-smart! - update typescript to 5.4

  • Updated dependencies [9392de6, 3307729, 9392de6, 3307729, d17a427]:

    • @effect/schema@0.64.12
    • effect@2.4.12

@effect/platform-browser@0.31.16

Patch Changes

  • #2387 75a8d16 Thanks @tim-smart! - add Cookies module to /platform http

    To add cookies to a http response:

    import * as Http from "@effect/platform/HttpServer";
    
    Http.response.empty().pipe(
      Http.response.setCookies([
        ["name", "value"],
        ["foo", "bar", { httpOnly: true }],
      ]),
    );

    You can also use cookies with the http client:

    import * as Http from "@effect/platform/HttpClient";
    import { Effect, Ref } from "effect";
    
    Effect.gen(function* (_) {
      const ref = yield* _(Ref.make(Http.cookies.empty));
      const defaultClient = yield* _(Http.client.Client);
      const clientWithCookies = defaultClient.pipe(
        Http.client.withCookiesRef(ref),
        Http.client.filterStatusOk,
      );
    
      // cookies will be stored in the ref and sent in any subsequent requests
      yield* _(
        Http.request.get("https://www.google.com/"),
        clientWithCookies,
        Effect.scoped,
      );
    });
  • #2385 3307729 Thanks @tim-smart! - update typescript to 5.4

  • Updated dependencies [75a8d16, 3307729]:

    • @effect/platform@0.48.16
    • effect@2.4.12

@effect/platform-bun@0.32.29

Patch Changes

  • #2387 75a8d16 Thanks @tim-smart! - add Cookies module to /platform http

    To add cookies to a http response:

    import * as Http from "@effect/platform/HttpServer";
    
    Http.response.empty().pipe(
      Http.response.setCookies([
        ["name", "value"],
        ["foo", "bar", { httpOnly: true }],
      ]),
    );

    You can also use cookies with the http client:

    import * as Http from "@effect/platform/HttpClient";
    import { Effect, Ref } from "effect";
    
    Effect.gen(function* (_) {
      const ref = yield* _(Ref.make(Http.cookies.empty));
      const defaultClient = yield* _(Http.client.Client);
      const clientWithCookies = defaultClient.pipe(
        Http.client.withCookiesRef(ref),
        Http.client.filterStatusOk,
      );
    
      // cookies will be stored in the ref and sent in any subsequent requests
      yield* _(
        Http.request.get("https://www.google.com/"),
        clientWithCookies,
        Effect.scoped,
      );
    });
  • #2385 3307729 Thanks @tim-smart! - update typescript to 5.4

  • Updated dependencies [75a8d16, 3307729]:

    • @effect/platform-node-shared@0.3.16
    • @effect/platform@0.48.16
    • effect@2.4.12

@effect/platform-node@0.45.18

Patch Changes

  • #2387 75a8d16 Thanks @tim-smart! - add Cookies module to /platform http

    To add cookies to a http response:

    import * as Http from "@effect/platform/HttpServer";
    
    Http.response.empty().pipe(
      Http.response.setCookies([
        ["name", "value"],
        ["foo", "bar", { httpOnly: true }],
      ]),
    );

    You can also use cookies with the http client:

    import * as Http from "@effect/platform/HttpClient";
    import { Effect, Ref } from "effect";
    
    Effect.gen(function* (_) {
      const ref = yield* _(Ref.make(Http.cookies.empty));
      const defaultClient = yield* _(Http.client.Client);
      const clientWithCookies = defaultClient.pipe(
        Http.client.withCookiesRef(ref),
        Http.client.filterStatusOk,
      );
    
      // cookies will be stored in the ref and sent in any subsequent requests
      yield* _(
        Http.request.get("https://www.google.com/"),
        clientWithCookies,
        Effect.scoped,
      );
    });
  • #2385 3307729 Thanks @tim-smart! - update typescript to 5.4

  • Updated dependencies [75a8d16, 3307729]:

    • @effect/platform-node-shared@0.3.16
    • @effect/platform@0.48.16
    • effect@2.4.12

@effect/platform-node-shared@0.3.16

Patch Changes

  • #2387 75a8d16 Thanks @tim-smart! - add Cookies module to /platform http

    To add cookies to a http response:

    import * as Http from "@effect/platform/HttpServer";
    
    Http.response.empty().pipe(
      Http.response.setCookies([
        ["name", "value"],
        ["foo", "bar", { httpOnly: true }],
      ]),
    );

    You can also use cookies with the http client:

    import * as Http from "@effect/platform/HttpClient";
    import { Effect, Ref } from "effect";
    
    Effect.gen(function* (_) {
      const ref = yield* _(Ref.make(Http.cookies.empty));
      const defaultClient = yield* _(Http.client.Client);
      const clientWithCookies = defaultClient.pipe(
        Http.client.withCookiesRef(ref),
        Http.client.filterStatusOk,
      );
    
      // cookies will be stored in the ref and sent in any subsequent requests
      yield* _(
        Http.request.get("https://www.google.com/"),
        clientWithCookies,
        Effect.scoped,
      );
    });
  • #2385 3307729 Thanks @tim-smart! - update typescript to 5.4

  • Updated dependencies [75a8d16, 3307729]:

    • @effect/platform@0.48.16
    • effect@2.4.12

@effect/printer@0.31.21

Patch Changes

@effect/printer-ansi@0.32.21

Patch Changes

  • #2385 3307729 Thanks @tim-smart! - update typescript to 5.4

  • Updated dependencies [3307729]:

    • effect@2.4.12
    • @effect/printer@0.31.21
    • @effect/typeclass@0.23.12

@effect/rpc@0.28.16

Patch Changes

@effect/rpc-http@0.26.37

Patch Changes

@effect/schema@0.64.12

Patch Changes

  • #2359 9392de6 Thanks @tim-smart! - preserve defect information in Cause.Die

  • #2385 3307729 Thanks @tim-smart! - align runtime tuple behaviour to ts 5.4:

    from

    // ts 5.3
    type A = readonly [string, ...number[], boolean];
    type B = Required<A>; // readonly [string, ...(number | boolean)[], number | boolean]

    to

    // ts 5.4
    type A = readonly [string, ...number[], boolean];
    type B = Required<A>; // readonly [string, ...number[], boolean]
  • #2359 9392de6 Thanks @tim-smart! - use provided message in Schema.TaggedError .toString

  • #2385 3307729 Thanks @tim-smart! - update typescript to 5.4

  • #2396 d17a427 Thanks @sukovanej! - Fix extend with nested union.

  • Updated dependencies [3307729]:

    • effect@2.4.12

@effect/typeclass@0.23.12

Patch Changes

@github-actions github-actions bot force-pushed the changeset-release/main branch 3 times, most recently from 13c5965 to dc5fde0 Compare March 24, 2024 07:23
@tim-smart tim-smart merged commit 0a92b7f into main Mar 24, 2024
@tim-smart tim-smart deleted the changeset-release/main branch March 24, 2024 22:27
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
Development

Successfully merging this pull request may close these issues.

1 participant