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

Merged
merged 1 commit into from
Aug 7, 2024
Merged

Version Packages #3423

merged 1 commit into from
Aug 7, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 7, 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/[email protected]

Patch Changes

@effect/[email protected]

Patch Changes

@effect/[email protected]

Patch Changes

@effect/[email protected]

Patch Changes

@effect/[email protected]

Patch Changes

@effect/[email protected]

Patch Changes

@effect/[email protected]

Patch Changes

@effect/[email protected]

Patch Changes

@effect/[email protected]

Patch Changes

  • #3409 056b710 Thanks @sukovanej! - Add BunHttpServer.layerTest.

    import { HttpClientRequest, HttpRouter, HttpServer } from "@effect/platform";
    import { BunHttpServer } from "@effect/platform-bun";
    import { expect, it } from "bun:test";
    import { Effect } from "effect";
    
    it("test", () =>
      Effect.gen(function* (_) {
        yield* HttpServer.serveEffect(HttpRouter.empty);
        const response = yield* HttpClientRequest.get("/non-existing");
        expect(response.status).toEqual(404);
      }).pipe(
        Effect.provide(BunHttpServer.layerTest),
        Effect.scoped,
        Effect.runPromise,
      ));
  • Updated dependencies [056b710]:

@effect/[email protected]

Patch Changes

  • #3409 056b710 Thanks @sukovanej! - Add NodeHttpServer.layerTest.

    import { HttpClientRequest, HttpRouter, HttpServer } from "@effect/platform";
    import { NodeHttpServer } from "@effect/platform-node";
    import { expect, it } from "@effect/vitest";
    import { Effect } from "effect";
    
    it.scoped("test", () =>
      Effect.gen(function* () {
        yield* HttpServer.serveEffect(HttpRouter.empty);
        const response = yield* HttpClientRequest.get("/");
        expect(response.status, 404);
      }).pipe(Effect.provide(NodeHttpServer.layerTest)),
    );
  • Updated dependencies [056b710]:

@effect/[email protected]

Patch Changes

@effect/[email protected]

Patch Changes

@effect/[email protected]

Patch Changes

@effect/[email protected]

Patch Changes

@effect/[email protected]

Patch Changes

@effect/[email protected]

Patch Changes

@effect/[email protected]

Patch Changes

@effect/[email protected]

Patch Changes

@effect/[email protected]

Patch Changes

@effect/[email protected]

Patch Changes

@effect/[email protected]

Patch Changes

@effect/[email protected]

Patch Changes

@effect/[email protected]

Patch Changes

@effect/[email protected]

Patch Changes

@effect/[email protected]

Patch Changes

  • #3416 8cc1517 Thanks @sukovanej! - Interrupt an effect when a test finishes. This ensures allocated resources
    will be correctly released even if the test times out.

    import { it } from "@effect/vitest";
    import { Console, Effect, Layer } from "effect";
    
    class Database extends Effect.Tag("Database")<Database, {}>() {
      static readonly test = Layer.scoped(
        Database,
        Effect.acquireRelease(
          Effect.as(Console.log("database setup"), Database.of({})),
          () => Console.log("database teardown"),
        ),
      );
    }
    
    it.live(
      "testing with closable resources",
      () =>
        Effect.gen(function* () {
          const database = yield* Database;
          // performing some time consuming operations
          yield* Effect.sleep("500 millis");
        }).pipe(Effect.provide(Database.test)),
      { timeout: 100 },
    );

@github-actions github-actions bot force-pushed the changeset-release/main branch from fdffc22 to 5e622a5 Compare August 7, 2024 23:55
@tim-smart tim-smart merged commit 826d4fa into main Aug 7, 2024
@tim-smart tim-smart deleted the changeset-release/main branch August 7, 2024 23:56
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