Skip to content

Commit

Permalink
Version Packages (#2105)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Feb 12, 2024
1 parent 0f83515 commit 6c0b1b1
Show file tree
Hide file tree
Showing 36 changed files with 218 additions and 110 deletions.
8 changes: 0 additions & 8 deletions .changeset/dry-buses-beg.md

This file was deleted.

34 changes: 0 additions & 34 deletions .changeset/gentle-suits-sparkle.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/orange-timers-nail.md

This file was deleted.

42 changes: 0 additions & 42 deletions .changeset/silly-yaks-allow.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tender-apples-grin.md

This file was deleted.

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

## 0.33.4

### Patch Changes

- Updated dependencies [[`efd41d8`](https://github.com/Effect-TS/effect/commit/efd41d8131c3d90867608969ef7c4eef490eb5e6), [`0f83515`](https://github.com/Effect-TS/effect/commit/0f83515a9c01d13c7c15a3f026e02d22c3c6bb7f), [`0f83515`](https://github.com/Effect-TS/effect/commit/0f83515a9c01d13c7c15a3f026e02d22c3c6bb7f)]:
- [email protected]
- @effect/platform@0.44.4
- @effect/printer@0.31.3
- @effect/printer-ansi@0.32.3
- @effect/schema@0.62.3

## 0.33.3

### Patch Changes
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.33.3",
"version": "0.33.4",
"type": "module",
"license": "MIT",
"description": "Functional programming in TypeScript",
Expand Down
75 changes: 75 additions & 0 deletions packages/effect/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,80 @@
# effect

## 2.3.3

### Patch Changes

- [#2090](https://github.com/Effect-TS/effect/pull/2090) [`efd41d8`](https://github.com/Effect-TS/effect/commit/efd41d8131c3d90867608969ef7c4eef490eb5e6) Thanks [@hsubra89](https://github.com/hsubra89)! - Update `RateLimiter` to support passing in a custom `cost` per effect. This is really useful for API(s) that have a "credit cost" per endpoint.

Usage Example :

```ts
import { Effect, RateLimiter } from "effect";
import { compose } from "effect/Function";

const program = Effect.scoped(
Effect.gen(function* ($) {
// Create a rate limiter that has an hourly limit of 1000 credits
const rateLimiter = yield* $(RateLimiter.make(1000, "1 hours"));
// Query API costs 1 credit per call ( 1 is the default cost )
const queryAPIRL = compose(rateLimiter, RateLimiter.withCost(1));
// Mutation API costs 5 credits per call
const mutationAPIRL = compose(rateLimiter, RateLimiter.withCost(5));
// ...
// Use the pre-defined rate limiters
yield* $(queryAPIRL(Effect.log("Sample Query")));
yield* $(mutationAPIRL(Effect.log("Sample Mutation")));

// Or set a cost on-the-fly
yield* $(
rateLimiter(Effect.log("Another query with a different cost")).pipe(
RateLimiter.withCost(3),
),
);
}),
);
```

- [#2097](https://github.com/Effect-TS/effect/pull/2097) [`0f83515`](https://github.com/Effect-TS/effect/commit/0f83515a9c01d13c7c15a3f026e02d22c3c6bb7f) Thanks [@IMax153](https://github.com/IMax153)! - Updates the `RateLimiter.make` constructor to take an object of `RateLimiter.Options`, which allows for specifying the rate-limiting algorithm to utilize:

You can choose from either the `token-bucket` or the `fixed-window` algorithms for rate-limiting.

```ts
export declare namespace RateLimiter {
export interface Options {
/**
* The maximum number of requests that should be allowed.
*/
readonly limit: number;
/**
* The interval to utilize for rate-limiting requests. The semantics of the
* specified `interval` vary depending on the chosen `algorithm`:
*
* `token-bucket`: The maximum number of requests will be spread out over
* the provided interval if no tokens are available.
*
* For example, for a `RateLimiter` using the `token-bucket` algorithm with
* a `limit` of `10` and an `interval` of `1 seconds`, `1` request can be
* made every `100 millis`.
*
* `fixed-window`: The maximum number of requests will be reset during each
* interval. For example, for a `RateLimiter` using the `fixed-window`
* algorithm with a `limit` of `10` and an `interval` of `1 seconds`, a
* maximum of `10` requests can be made each second.
*/
readonly interval: DurationInput;
/**
* The algorithm to utilize for rate-limiting requests.
*
* Defaults to `token-bucket`.
*/
readonly algorithm?: "fixed-window" | "token-bucket";
}
}
```

- [#2097](https://github.com/Effect-TS/effect/pull/2097) [`0f83515`](https://github.com/Effect-TS/effect/commit/0f83515a9c01d13c7c15a3f026e02d22c3c6bb7f) Thanks [@IMax153](https://github.com/IMax153)! - return the resulting available permits from Semaphore.release

## 2.3.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/effect/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "effect",
"version": "2.3.2",
"version": "2.3.3",
"type": "module",
"license": "MIT",
"description": "Functional programming in TypeScript",
Expand Down
2 changes: 1 addition & 1 deletion packages/effect/src/internal/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const moduleVersion = "2.3.2"
export const moduleVersion = "2.3.3"
12 changes: 12 additions & 0 deletions packages/experimental/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @effect/experimental

## 0.9.4

### Patch Changes

- [#2106](https://github.com/Effect-TS/effect/pull/2106) [`b7d9a55`](https://github.com/Effect-TS/effect/commit/b7d9a55ebb3db5c1d64a2c75c5b1f12ebe1faf39) Thanks [@tim-smart](https://github.com/tim-smart)! - don't require tags for Persistence keys

- Updated dependencies [[`efd41d8`](https://github.com/Effect-TS/effect/commit/efd41d8131c3d90867608969ef7c4eef490eb5e6), [`0f83515`](https://github.com/Effect-TS/effect/commit/0f83515a9c01d13c7c15a3f026e02d22c3c6bb7f), [`0f83515`](https://github.com/Effect-TS/effect/commit/0f83515a9c01d13c7c15a3f026e02d22c3c6bb7f)]:
- [email protected]
- @effect/platform@0.44.4
- @effect/platform-node@0.43.4
- @effect/schema@0.62.3

## 0.9.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/experimental/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@effect/experimental",
"version": "0.9.3",
"version": "0.9.4",
"type": "module",
"license": "MIT",
"description": "Functional programming in TypeScript",
Expand Down
7 changes: 7 additions & 0 deletions packages/opentelemetry/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @effect/opentelemetry

## 0.31.3

### Patch Changes

- Updated dependencies [[`efd41d8`](https://github.com/Effect-TS/effect/commit/efd41d8131c3d90867608969ef7c4eef490eb5e6), [`0f83515`](https://github.com/Effect-TS/effect/commit/0f83515a9c01d13c7c15a3f026e02d22c3c6bb7f), [`0f83515`](https://github.com/Effect-TS/effect/commit/0f83515a9c01d13c7c15a3f026e02d22c3c6bb7f)]:
- [email protected]

## 0.31.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/opentelemetry/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@effect/opentelemetry",
"version": "0.31.2",
"version": "0.31.3",
"type": "module",
"license": "MIT",
"description": "Functional programming in TypeScript",
Expand Down
8 changes: 8 additions & 0 deletions packages/platform-browser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @effect/platform-browser

## 0.29.4

### Patch Changes

- Updated dependencies [[`efd41d8`](https://github.com/Effect-TS/effect/commit/efd41d8131c3d90867608969ef7c4eef490eb5e6), [`0f83515`](https://github.com/Effect-TS/effect/commit/0f83515a9c01d13c7c15a3f026e02d22c3c6bb7f), [`0f83515`](https://github.com/Effect-TS/effect/commit/0f83515a9c01d13c7c15a3f026e02d22c3c6bb7f)]:
- [email protected]
- @effect/platform@0.44.4

## 0.29.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-browser/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@effect/platform-browser",
"type": "module",
"version": "0.29.3",
"version": "0.29.4",
"license": "MIT",
"description": "Unified interfaces for common platform-specific services",
"homepage": "https://effect.website",
Expand Down
9 changes: 9 additions & 0 deletions packages/platform-bun/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @effect/platform-bun

## 0.31.4

### Patch Changes

- Updated dependencies [[`efd41d8`](https://github.com/Effect-TS/effect/commit/efd41d8131c3d90867608969ef7c4eef490eb5e6), [`0f83515`](https://github.com/Effect-TS/effect/commit/0f83515a9c01d13c7c15a3f026e02d22c3c6bb7f), [`0f83515`](https://github.com/Effect-TS/effect/commit/0f83515a9c01d13c7c15a3f026e02d22c3c6bb7f)]:
- [email protected]
- @effect/platform@0.44.4
- @effect/platform-node-shared@0.1.4

## 0.31.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-bun/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@effect/platform-bun",
"type": "module",
"version": "0.31.3",
"version": "0.31.4",
"license": "MIT",
"description": "Unified interfaces for common platform-specific services",
"homepage": "https://effect.website",
Expand Down
8 changes: 8 additions & 0 deletions packages/platform-node-shared/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @effect/platform-node-shared

## 0.1.4

### Patch Changes

- Updated dependencies [[`efd41d8`](https://github.com/Effect-TS/effect/commit/efd41d8131c3d90867608969ef7c4eef490eb5e6), [`0f83515`](https://github.com/Effect-TS/effect/commit/0f83515a9c01d13c7c15a3f026e02d22c3c6bb7f), [`0f83515`](https://github.com/Effect-TS/effect/commit/0f83515a9c01d13c7c15a3f026e02d22c3c6bb7f)]:
- [email protected]
- @effect/platform@0.44.4

## 0.1.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-node-shared/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@effect/platform-node-shared",
"type": "module",
"version": "0.1.3",
"version": "0.1.4",
"license": "MIT",
"description": "Unified interfaces for common platform-specific services",
"homepage": "https://effect.website",
Expand Down
9 changes: 9 additions & 0 deletions packages/platform-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @effect/platform-node

## 0.43.4

### Patch Changes

- Updated dependencies [[`efd41d8`](https://github.com/Effect-TS/effect/commit/efd41d8131c3d90867608969ef7c4eef490eb5e6), [`0f83515`](https://github.com/Effect-TS/effect/commit/0f83515a9c01d13c7c15a3f026e02d22c3c6bb7f), [`0f83515`](https://github.com/Effect-TS/effect/commit/0f83515a9c01d13c7c15a3f026e02d22c3c6bb7f)]:
- [email protected]
- @effect/platform@0.44.4
- @effect/platform-node-shared@0.1.4

## 0.43.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-node/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@effect/platform-node",
"type": "module",
"version": "0.43.3",
"version": "0.43.4",
"license": "MIT",
"description": "Unified interfaces for common platform-specific services",
"homepage": "https://effect.website",
Expand Down
8 changes: 8 additions & 0 deletions packages/platform/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @effect/platform

## 0.44.4

### Patch Changes

- Updated dependencies [[`efd41d8`](https://github.com/Effect-TS/effect/commit/efd41d8131c3d90867608969ef7c4eef490eb5e6), [`0f83515`](https://github.com/Effect-TS/effect/commit/0f83515a9c01d13c7c15a3f026e02d22c3c6bb7f), [`0f83515`](https://github.com/Effect-TS/effect/commit/0f83515a9c01d13c7c15a3f026e02d22c3c6bb7f)]:
- [email protected]
- @effect/schema@0.62.3

## 0.44.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/platform/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@effect/platform",
"type": "module",
"version": "0.44.3",
"version": "0.44.4",
"license": "MIT",
"description": "Unified interfaces for common platform-specific services",
"homepage": "https://effect.website",
Expand Down
9 changes: 9 additions & 0 deletions packages/printer-ansi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @effect/printer-ansi

## 0.32.3

### Patch Changes

- Updated dependencies [[`efd41d8`](https://github.com/Effect-TS/effect/commit/efd41d8131c3d90867608969ef7c4eef490eb5e6), [`0f83515`](https://github.com/Effect-TS/effect/commit/0f83515a9c01d13c7c15a3f026e02d22c3c6bb7f), [`0f83515`](https://github.com/Effect-TS/effect/commit/0f83515a9c01d13c7c15a3f026e02d22c3c6bb7f)]:
- [email protected]
- @effect/printer@0.31.3
- @effect/typeclass@0.22.18

## 0.32.2

### Patch Changes
Expand Down
Loading

0 comments on commit 6c0b1b1

Please sign in to comment.