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

Merged
merged 1 commit into from
Jun 20, 2024
Merged

Version Packages #3034

merged 1 commit into from
Jun 20, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jun 20, 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@3.4.0

Minor Changes

  • #2938 c0ce180 Thanks @LaureRC! - Make Option.liftPredicate dual

  • #2938 61707b6 Thanks @LaureRC! - Add Effect.liftPredicate

    Effect.liftPredicate transforms a Predicate function into an Effect returning the input value if the predicate returns true or failing with specified error if the predicate fails.

    import { Effect } from "effect";
    
    const isPositive = (n: number): boolean => n > 0;
    
    // succeeds with `1`
    Effect.liftPredicate(1, isPositive, (n) => `${n} is not positive`);
    
    // fails with `"0 is not positive"`
    Effect.liftPredicate(0, isPositive, (n) => `${n} is not positive`);
  • #2938 9c1b5b3 Thanks @tim-smart! - add EventListener type to Stream to avoid use of dom lib

  • #2938 a35faf8 Thanks @gcanti! - Add lastNonEmpty function to Chunk module, closes From Discord: Request for Chunk.lastNonEmpty Method in Code Library #2946

  • #2938 ff73c0c Thanks @dilame! - feat(Stream): implement Success, Error, Context type accessors

  • #2938 984d516 Thanks @tim-smart! - add Micro module

    A lightweight alternative to Effect, for when bundle size really matters.

    At a minimum, Micro adds 5kb gzipped to your bundle, and scales with the amount
    of features you use.

  • #2938 8c3b8a2 Thanks @gcanti! - add ManagedRuntime type utils (Context, and Error)

  • #2938 017e2f9 Thanks @LaureRC! - Add Either.liftPredicate

  • #2938 91bf8a2 Thanks @msensys! - Add Tuple.at api, to retrieve an element at a specified index from a tuple.

    import { Tuple } from "effect";
    
    assert.deepStrictEqual(Tuple.at([1, "hello", true], 1), "hello");
  • #2938 c6a4a26 Thanks @datner! - add ensure util for Array, used to normalize A | ReadonlyArray<A>

    import { ensure } from "effect/Array";
    
    // lets say you are not 100% sure if it's a member or a collection
    declare const someValue: { foo: string } | Array<{ foo: string }>;
    
    // $ExpectType ({ foo: string })[]
    const normalized = ensure(someValue);

@effect/platform@0.58.0

Minor Changes

  • #2938 63dd0c3 Thanks @tim-smart! - restructure platform http to use flattened modules

    Instead of using the previous re-exports, you now use the modules directly.

    Before:

    import { HttpClient } from "@effect/platform";
    
    HttpClient.request.get("/").pipe(HttpClient.client.fetchOk);

    After:

    import { HttpClient, HttpClientRequest } from "@effect/platform";
    
    HttpClientRequest.get("/").pipe(HttpClient.fetchOk);

Patch Changes

@effect/platform-browser@0.37.0

Minor Changes

  • #2938 63dd0c3 Thanks @tim-smart! - restructure platform http to use flattened modules

    Instead of using the previous re-exports, you now use the modules directly.

    Before:

    import { HttpClient } from "@effect/platform";
    
    HttpClient.request.get("/").pipe(HttpClient.client.fetchOk);

    After:

    import { HttpClient, HttpClientRequest } from "@effect/platform";
    
    HttpClientRequest.get("/").pipe(HttpClient.fetchOk);

Patch Changes

@effect/platform-bun@0.37.0

Minor Changes

  • #2938 63dd0c3 Thanks @tim-smart! - restructure platform http to use flattened modules

    Instead of using the previous re-exports, you now use the modules directly.

    Before:

    import { HttpClient } from "@effect/platform";
    
    HttpClient.request.get("/").pipe(HttpClient.client.fetchOk);

    After:

    import { HttpClient, HttpClientRequest } from "@effect/platform";
    
    HttpClientRequest.get("/").pipe(HttpClient.fetchOk);

Patch Changes

@effect/platform-node@0.52.0

Minor Changes

  • #2938 63dd0c3 Thanks @tim-smart! - restructure platform http to use flattened modules

    Instead of using the previous re-exports, you now use the modules directly.

    Before:

    import { HttpClient } from "@effect/platform";
    
    HttpClient.request.get("/").pipe(HttpClient.client.fetchOk);

    After:

    import { HttpClient, HttpClientRequest } from "@effect/platform";
    
    HttpClientRequest.get("/").pipe(HttpClient.fetchOk);

Patch Changes

@effect/platform-node-shared@0.7.0

Minor Changes

  • #2938 63dd0c3 Thanks @tim-smart! - restructure platform http to use flattened modules

    Instead of using the previous re-exports, you now use the modules directly.

    Before:

    import { HttpClient } from "@effect/platform";
    
    HttpClient.request.get("/").pipe(HttpClient.client.fetchOk);

    After:

    import { HttpClient, HttpClientRequest } from "@effect/platform";
    
    HttpClientRequest.get("/").pipe(HttpClient.fetchOk);

Patch Changes

@effect/rpc@0.31.0

Minor Changes

  • #2938 63dd0c3 Thanks @tim-smart! - restructure platform http to use flattened modules

    Instead of using the previous re-exports, you now use the modules directly.

    Before:

    import { HttpClient } from "@effect/platform";
    
    HttpClient.request.get("/").pipe(HttpClient.client.fetchOk);

    After:

    import { HttpClient, HttpClientRequest } from "@effect/platform";
    
    HttpClientRequest.get("/").pipe(HttpClient.fetchOk);

Patch Changes

@effect/rpc-http@0.29.0

Minor Changes

  • #2938 63dd0c3 Thanks @tim-smart! - restructure platform http to use flattened modules

    Instead of using the previous re-exports, you now use the modules directly.

    Before:

    import { HttpClient } from "@effect/platform";
    
    HttpClient.request.get("/").pipe(HttpClient.client.fetchOk);

    After:

    import { HttpClient, HttpClientRequest } from "@effect/platform";
    
    HttpClientRequest.get("/").pipe(HttpClient.fetchOk);

Patch Changes

@effect/sql@0.4.0

Minor Changes

Patch Changes

@effect/sql-drizzle@0.2.0

Minor Changes

Patch Changes

@effect/sql-mssql@0.4.0

Minor Changes

Patch Changes

@effect/sql-mysql2@0.4.0

Minor Changes

Patch Changes

@effect/sql-pg@0.4.0

Minor Changes

Patch Changes

@effect/sql-sqlite-bun@0.4.0

Minor Changes

Patch Changes

@effect/sql-sqlite-node@0.4.0

Minor Changes

Patch Changes

@effect/sql-sqlite-react-native@0.6.0

Minor Changes

Patch Changes

@effect/sql-sqlite-wasm@0.3.0

Minor Changes

Patch Changes

@effect/cli@0.36.53

Patch Changes

@effect/cluster@0.0.5

Patch Changes

@effect/cluster-browser@0.0.5

Patch Changes

@effect/cluster-node@0.0.5

Patch Changes

@effect/cluster-workflow@0.0.5

Patch Changes

@effect/experimental@0.16.34

Patch Changes

@effect/opentelemetry@0.34.23

Patch Changes

@effect/printer@0.33.32

Patch Changes

@effect/printer-ansi@0.33.32

Patch Changes

@effect/schema@0.68.4

Patch Changes

@effect/typeclass@0.24.32

Patch Changes

@effect/vitest@0.5.16

Patch Changes

@tim-smart
Copy link
Member

/snapshot

Copy link
Contributor Author

github-actions bot commented Jun 20, 2024

Good news @tim-smart, your snapshot has been published!

pnpm add @effect/cli@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/cluster@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/cluster-browser@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/cluster-node@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/cluster-workflow@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add effect@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/experimental@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/opentelemetry@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/platform@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/platform-browser@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/platform-bun@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/platform-node@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/platform-node-shared@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/printer@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/printer-ansi@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/rpc@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/rpc-http@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/schema@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/sql@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/sql-drizzle@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/sql-mssql@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/sql-mysql2@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/sql-pg@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/sql-sqlite-bun@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/sql-sqlite-node@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/sql-sqlite-react-native@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/sql-sqlite-wasm@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/typeclass@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b
pnpm add @effect/vitest@0.0.0-snapshot-d33d8b050b8e3c87dcde9587083e6c1cf733f72b

You can review the build log here.

@tim-smart tim-smart merged commit 01075fb into main Jun 20, 2024
@tim-smart tim-smart deleted the changeset-release/main branch June 20, 2024 23:53
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.

From Discord: Request for Chunk.lastNonEmpty Method in Code Library
1 participant