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

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/chilled-toys-share.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/curvy-cats-smoke.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/curvy-clouds-battle.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dry-badgers-boil.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hot-dogs-mix.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rich-pumas-protect.md

This file was deleted.

29 changes: 0 additions & 29 deletions .changeset/shiny-carpets-hunt.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/short-garlics-vanish.md

This file was deleted.

25 changes: 0 additions & 25 deletions .changeset/stream-race.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/witty-kings-lie.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/young-pugs-grow.md

This file was deleted.

77 changes: 44 additions & 33 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @effect/cli

## 0.42.0

### Patch Changes

- Updated dependencies [[`db89601`](https://github.com/Effect-TS/effect/commit/db89601ee9c1050c4e762b7bd7ec65a6a2799dfe), [`2f456cc`](https://github.com/Effect-TS/effect/commit/2f456cce5012b9fcb6b4e039190d527813b75b92), [`8745e41`](https://github.com/Effect-TS/effect/commit/8745e41ed96e3765dc6048efc2a9afbe05c8a1e9), [`e557838`](https://github.com/Effect-TS/effect/commit/e55783886b046d3c5f33447f455f9ccf2fa75922), [`d6e7e40`](https://github.com/Effect-TS/effect/commit/d6e7e40b1e2ad0c59aa02f07344d28601b14ebdc), [`8356321`](https://github.com/Effect-TS/effect/commit/8356321598da04bd77c1001f45a4e447bec5591d), [`192f2eb`](https://github.com/Effect-TS/effect/commit/192f2ebb2c4ddbf4bfd8baedd32140b2376868f4), [`718cb70`](https://github.com/Effect-TS/effect/commit/718cb70038629a6d58d02e407760e341f7c94474), [`e9d0310`](https://github.com/Effect-TS/effect/commit/e9d03107acbf204d9304f3e8aea0816b7d3c7dfb), [`6bf28f7`](https://github.com/Effect-TS/effect/commit/6bf28f7e3b1e5e0608ff567205fea0581d11666f)]:
- effect@3.7.0
- @effect/platform@0.63.0
- @effect/printer@0.35.0
- @effect/printer-ansi@0.35.0
- @effect/schema@0.72.0

## 0.41.5

### Patch Changes
Expand Down Expand Up @@ -389,18 +400,18 @@
handlers: {
readonly render: (
state: State,
action: Action<State, Output>,
) => Effect<string, never, Environment>;
action: Action<State, Output>
) => Effect<string, never, Environment>
readonly process: (
input: UserInput,
state: State,
) => Effect<Action<State, Output>, never, Environment>;
state: State
) => Effect<Action<State, Output>, never, Environment>
readonly clear: (
state: State,
action: Action<State, Output>,
) => Effect<string, never, Environment>;
},
) => Prompt<Output> = InternalPrompt.custom;
action: Action<State, Output>
) => Effect<string, never, Environment>
}
) => Prompt<Output> = InternalPrompt.custom
```

The initial state of a `Prompt` can either be a pure value or an `Effect`. This
Expand Down Expand Up @@ -1133,8 +1144,8 @@
For all the data types.

```ts
Effect.unit; // => Effect.void
Stream.unit; // => Stream.void
Effect.unit // => Effect.void
Stream.unit // => Stream.void

// etc
```
Expand Down Expand Up @@ -1501,9 +1512,9 @@
Along the same line of the other changes this allows to shorten the most common types such as:

```ts
import { Either } from "effect";
import { Either } from "effect"

const right: Either.Either<string> = Either.right("ok");
const right: Either.Either<string> = Either.right("ok")
```

### Patch Changes
Expand Down Expand Up @@ -1661,49 +1672,49 @@
- [#2006](https://github.com/Effect-TS/effect/pull/2006) [`9a2d1c1`](https://github.com/Effect-TS/effect/commit/9a2d1c1468ea0789b34767ad683da074f061ea9c) Thanks [@github-actions](https://github.com/apps/github-actions)! - With this change we now require a string key to be provided for all tags and renames the dear old `Tag` to `GenericTag`, so when previously you could do:

```ts
import { Effect, Context } from "effect";
import { Effect, Context } from "effect"
interface Service {
readonly _: unique symbol;
readonly _: unique symbol
}
const Service = Context.Tag<
Service,
{
number: Effect.Effect<never, never, number>;
number: Effect.Effect<never, never, number>
}
>();
>()
```

you are now mandated to do:

```ts
import { Effect, Context } from "effect";
import { Effect, Context } from "effect"
interface Service {
readonly _: unique symbol;
readonly _: unique symbol
}
const Service = Context.GenericTag<
Service,
{
number: Effect.Effect<never, never, number>;
number: Effect.Effect<never, never, number>
}
>("Service");
>("Service")
```

This makes by default all tags globals and ensures better debuggaility when unexpected errors arise.

Furthermore we introduce a new way of constructing tags that should be considered the new default:

```ts
import { Effect, Context } from "effect";
import { Effect, Context } from "effect"
class Service extends Context.Tag("Service")<
Service,
{
number: Effect.Effect<never, never, number>;
number: Effect.Effect<never, never, number>
}
>() {}

const program = Effect.flatMap(Service, ({ number }) => number).pipe(
Effect.flatMap((_) => Effect.log(`number: ${_}`)),
);
Effect.flatMap((_) => Effect.log(`number: ${_}`))
)
```

this will use "Service" as the key and will create automatically an opaque identifier (the class) to be used at the type level, it does something similar to the above in a single shot.
Expand All @@ -1727,35 +1738,35 @@
At the type level instead the functions return `Readonly` variants, so for example we have:

```ts
import { Data } from "effect";
import { Data } from "effect"

const obj = Data.struct({
a: 0,
b: 1,
});
b: 1
})
```

will have the `obj` typed as:

```ts
declare const obj: {
readonly a: number;
readonly b: number;
};
readonly a: number
readonly b: number
}
```

- [#2006](https://github.com/Effect-TS/effect/pull/2006) [`9a2d1c1`](https://github.com/Effect-TS/effect/commit/9a2d1c1468ea0789b34767ad683da074f061ea9c) Thanks [@github-actions](https://github.com/apps/github-actions)! - This change enables `Effect.serviceConstants` and `Effect.serviceMembers` to access any constant in the service, not only the effects, namely it is now possible to do:

```ts
import { Effect, Context } from "effect";
import { Effect, Context } from "effect"

class NumberRepo extends Context.TagClass("NumberRepo")<
NumberRepo,
{
readonly numbers: Array<number>;
readonly numbers: Array<number>
}
>() {
static numbers = Effect.serviceConstants(NumberRepo).numbers;
static numbers = Effect.serviceConstants(NumberRepo).numbers
}
```

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@effect/cli",
"version": "0.41.5",
"version": "0.42.0",
"type": "module",
"license": "MIT",
"description": "A library for building command-line interfaces with Effect",
Expand Down
9 changes: 9 additions & 0 deletions packages/cluster-browser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @effect/cluster

## 0.5.0

### Patch Changes

- Updated dependencies [[`db89601`](https://github.com/Effect-TS/effect/commit/db89601ee9c1050c4e762b7bd7ec65a6a2799dfe), [`2f456cc`](https://github.com/Effect-TS/effect/commit/2f456cce5012b9fcb6b4e039190d527813b75b92), [`8745e41`](https://github.com/Effect-TS/effect/commit/8745e41ed96e3765dc6048efc2a9afbe05c8a1e9), [`e557838`](https://github.com/Effect-TS/effect/commit/e55783886b046d3c5f33447f455f9ccf2fa75922), [`d6e7e40`](https://github.com/Effect-TS/effect/commit/d6e7e40b1e2ad0c59aa02f07344d28601b14ebdc), [`8356321`](https://github.com/Effect-TS/effect/commit/8356321598da04bd77c1001f45a4e447bec5591d), [`192f2eb`](https://github.com/Effect-TS/effect/commit/192f2ebb2c4ddbf4bfd8baedd32140b2376868f4), [`718cb70`](https://github.com/Effect-TS/effect/commit/718cb70038629a6d58d02e407760e341f7c94474), [`e9d0310`](https://github.com/Effect-TS/effect/commit/e9d03107acbf204d9304f3e8aea0816b7d3c7dfb), [`6bf28f7`](https://github.com/Effect-TS/effect/commit/6bf28f7e3b1e5e0608ff567205fea0581d11666f)]:
- effect@3.7.0
- @effect/rpc@0.37.0
- @effect/schema@0.72.0

## 0.4.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cluster-browser/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@effect/cluster-browser",
"type": "module",
"version": "0.4.5",
"version": "0.5.0",
"description": "Unified interfaces for common cluster-browser-specific services",
"publishConfig": {
"access": "public",
Expand Down
10 changes: 10 additions & 0 deletions packages/cluster-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @effect/cluster

## 0.6.0

### Patch Changes

- Updated dependencies [[`db89601`](https://github.com/Effect-TS/effect/commit/db89601ee9c1050c4e762b7bd7ec65a6a2799dfe), [`2f456cc`](https://github.com/Effect-TS/effect/commit/2f456cce5012b9fcb6b4e039190d527813b75b92), [`8745e41`](https://github.com/Effect-TS/effect/commit/8745e41ed96e3765dc6048efc2a9afbe05c8a1e9), [`e557838`](https://github.com/Effect-TS/effect/commit/e55783886b046d3c5f33447f455f9ccf2fa75922), [`d6e7e40`](https://github.com/Effect-TS/effect/commit/d6e7e40b1e2ad0c59aa02f07344d28601b14ebdc), [`8356321`](https://github.com/Effect-TS/effect/commit/8356321598da04bd77c1001f45a4e447bec5591d), [`192f2eb`](https://github.com/Effect-TS/effect/commit/192f2ebb2c4ddbf4bfd8baedd32140b2376868f4), [`718cb70`](https://github.com/Effect-TS/effect/commit/718cb70038629a6d58d02e407760e341f7c94474), [`e9d0310`](https://github.com/Effect-TS/effect/commit/e9d03107acbf204d9304f3e8aea0816b7d3c7dfb), [`6bf28f7`](https://github.com/Effect-TS/effect/commit/6bf28f7e3b1e5e0608ff567205fea0581d11666f)]:
- effect@3.7.0
- @effect/cluster@0.6.0
- @effect/rpc@0.37.0
- @effect/schema@0.72.0

## 0.5.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cluster-node/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@effect/cluster-node",
"type": "module",
"version": "0.5.7",
"version": "0.6.0",
"description": "Unified interfaces for common cluster-node-specific services",
"publishConfig": {
"access": "public",
Expand Down
10 changes: 10 additions & 0 deletions packages/cluster-workflow/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @effect/cluster

## 0.5.0

### Patch Changes

- Updated dependencies [[`db89601`](https://github.com/Effect-TS/effect/commit/db89601ee9c1050c4e762b7bd7ec65a6a2799dfe), [`2f456cc`](https://github.com/Effect-TS/effect/commit/2f456cce5012b9fcb6b4e039190d527813b75b92), [`8745e41`](https://github.com/Effect-TS/effect/commit/8745e41ed96e3765dc6048efc2a9afbe05c8a1e9), [`e557838`](https://github.com/Effect-TS/effect/commit/e55783886b046d3c5f33447f455f9ccf2fa75922), [`d6e7e40`](https://github.com/Effect-TS/effect/commit/d6e7e40b1e2ad0c59aa02f07344d28601b14ebdc), [`8356321`](https://github.com/Effect-TS/effect/commit/8356321598da04bd77c1001f45a4e447bec5591d), [`192f2eb`](https://github.com/Effect-TS/effect/commit/192f2ebb2c4ddbf4bfd8baedd32140b2376868f4), [`718cb70`](https://github.com/Effect-TS/effect/commit/718cb70038629a6d58d02e407760e341f7c94474), [`e9d0310`](https://github.com/Effect-TS/effect/commit/e9d03107acbf204d9304f3e8aea0816b7d3c7dfb), [`6bf28f7`](https://github.com/Effect-TS/effect/commit/6bf28f7e3b1e5e0608ff567205fea0581d11666f)]:
- effect@3.7.0
- @effect/cluster@0.6.0
- @effect/schema@0.72.0
- @effect/sql@0.10.0

## 0.4.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cluster-workflow/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@effect/cluster-workflow",
"type": "module",
"version": "0.4.7",
"version": "0.5.0",
"description": "A workflow runtime using effect-cluster",
"publishConfig": {
"access": "public",
Expand Down
9 changes: 9 additions & 0 deletions packages/cluster/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @effect/cluster

## 0.6.0

### Patch Changes

- Updated dependencies [[`db89601`](https://github.com/Effect-TS/effect/commit/db89601ee9c1050c4e762b7bd7ec65a6a2799dfe), [`2f456cc`](https://github.com/Effect-TS/effect/commit/2f456cce5012b9fcb6b4e039190d527813b75b92), [`8745e41`](https://github.com/Effect-TS/effect/commit/8745e41ed96e3765dc6048efc2a9afbe05c8a1e9), [`e557838`](https://github.com/Effect-TS/effect/commit/e55783886b046d3c5f33447f455f9ccf2fa75922), [`d6e7e40`](https://github.com/Effect-TS/effect/commit/d6e7e40b1e2ad0c59aa02f07344d28601b14ebdc), [`8356321`](https://github.com/Effect-TS/effect/commit/8356321598da04bd77c1001f45a4e447bec5591d), [`192f2eb`](https://github.com/Effect-TS/effect/commit/192f2ebb2c4ddbf4bfd8baedd32140b2376868f4), [`718cb70`](https://github.com/Effect-TS/effect/commit/718cb70038629a6d58d02e407760e341f7c94474), [`e9d0310`](https://github.com/Effect-TS/effect/commit/e9d03107acbf204d9304f3e8aea0816b7d3c7dfb), [`6bf28f7`](https://github.com/Effect-TS/effect/commit/6bf28f7e3b1e5e0608ff567205fea0581d11666f)]:
- effect@3.7.0
- @effect/schema@0.72.0
- @effect/sql@0.10.0

## 0.5.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cluster/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@effect/cluster",
"type": "module",
"version": "0.5.7",
"version": "0.6.0",
"description": "Unified interfaces for common cluster-specific services",
"publishConfig": {
"access": "public",
Expand Down
Loading