Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
fubhy committed Dec 21, 2023
1 parent a7bc62b commit c23f26e
Show file tree
Hide file tree
Showing 14 changed files with 252 additions and 264 deletions.
9 changes: 9 additions & 0 deletions .changeset/honest-phones-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@effect/rpc-http-node": minor
"@effect/rpc-workers": minor
"@effect/rpc-nextjs": minor
"@effect/rpc-http": minor
"@effect/rpc": minor
---

Updated dependencies
54 changes: 16 additions & 38 deletions docs/rpc/Error.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,8 @@ Added in v1.0.0
export declare const RpcDecodeFailure: SchemaC<
RpcDecodeFailure,
RpcDecodeFailure,
{
readonly errors: readonly [
ParseResult.ParseIssue,
...ParseResult.ParseIssue[],
];
}
>;
{ readonly errors: readonly [ParseResult.ParseIssue, ...ParseResult.ParseIssue[]] }
>
```
Added in v1.0.0
Expand All @@ -57,13 +52,8 @@ Added in v1.0.0
export declare const RpcEncodeFailure: SchemaC<
RpcEncodeFailure,
RpcEncodeFailure,
{
readonly errors: readonly [
ParseResult.ParseIssue,
...ParseResult.ParseIssue[],
];
}
>;
{ readonly errors: readonly [ParseResult.ParseIssue, ...ParseResult.ParseIssue[]] }
>
```
Added in v1.0.0
Expand All @@ -73,11 +63,7 @@ Added in v1.0.0
**Signature**
```ts
export declare const RpcNotFound: SchemaC<
RpcNotFound,
RpcNotFound,
{ readonly method: string }
>;
export declare const RpcNotFound: SchemaC<RpcNotFound, RpcNotFound, { readonly method: string }>
```
Added in v1.0.0
Expand All @@ -87,11 +73,7 @@ Added in v1.0.0
**Signature**
```ts
export declare const RpcTransportError: SchemaC<
RpcTransportError,
RpcTransportError,
{ readonly error: unknown }
>;
export declare const RpcTransportError: SchemaC<RpcTransportError, RpcTransportError, { readonly error: unknown }>
```
Added in v1.0.0
Expand All @@ -104,8 +86,8 @@ Added in v1.0.0
```ts
export interface RpcDecodeFailure {
readonly _tag: "RpcDecodeFailure";
readonly errors: ROA.NonEmptyReadonlyArray<ParseResult.ParseIssue>;
readonly _tag: "RpcDecodeFailure"
readonly errors: ROA.NonEmptyReadonlyArray<ParseResult.ParseIssue>
}
```

Expand All @@ -117,8 +99,8 @@ Added in v1.0.0

```ts
export interface RpcEncodeFailure {
readonly _tag: "RpcEncodeFailure";
readonly errors: ROA.NonEmptyReadonlyArray<ParseResult.ParseIssue>;
readonly _tag: "RpcEncodeFailure"
readonly errors: ROA.NonEmptyReadonlyArray<ParseResult.ParseIssue>
}
```

Expand All @@ -129,11 +111,7 @@ Added in v1.0.0
**Signature**

```ts
export type RpcError =
| RpcDecodeFailure
| RpcEncodeFailure
| RpcNotFound
| RpcTransportError;
export type RpcError = RpcDecodeFailure | RpcEncodeFailure | RpcNotFound | RpcTransportError
```
Added in v1.0.0
Expand All @@ -144,8 +122,8 @@ Added in v1.0.0
```ts
export interface RpcNotFound {
readonly _tag: "RpcNotFound";
readonly method: string;
readonly _tag: "RpcNotFound"
readonly method: string
}
```

Expand All @@ -157,8 +135,8 @@ Added in v1.0.0

```ts
export interface RpcTransportError {
readonly _tag: "RpcTransportError";
readonly error: unknown;
readonly _tag: "RpcTransportError"
readonly error: unknown
}
```

Expand All @@ -174,7 +152,7 @@ Added in v1.0.0
export declare const RpcError: Schema.Schema<
RpcEncodeFailure | RpcTransportError | RpcNotFound | RpcDecodeFailure,
RpcEncodeFailure | RpcTransportError | RpcNotFound | RpcDecodeFailure
>;
>
```
Added in v1.0.0
2 changes: 1 addition & 1 deletion docs/workers/Server.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Added in v1.0.0
```ts
export declare const make: <R extends RpcRouter.Base>(
router: R
) => Effect.Effect<Scope | Runner.PlatformRunner | RpcRouter.Services<R>, Error.WorkerError, never>
) => Effect.Effect<Scope | Runner.PlatformRunner | RpcRouter.Services<R>, Error.WorkerError, void>
```
Added in v1.0.0
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
"@effect/docgen": "^0.3.8",
"@effect/eslint-plugin": "^0.1.2",
"@effect/language-service": "^0.1.0",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"@vitest/coverage-v8": "^1.0.4",
"@vitest/web-worker": "^1.0.4",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"@vitest/coverage-v8": "^1.1.0",
"@vitest/web-worker": "^1.1.0",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"eslint": "^8.56.0",
"eslint-import-resolver-typescript": "^3.6.1",
Expand All @@ -45,6 +45,6 @@
"prettier": "^3.1.1",
"typescript": "^5.3.3",
"vite": "^5.0.10",
"vitest": "^1.0.4"
"vitest": "^1.1.0"
}
}
6 changes: 3 additions & 3 deletions packages/http-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
},
"devDependencies": {
"@effect/platform": "^0.38.0",
"@effect/schema": "^0.54.0",
"@effect/schema": "^0.55.0",
"@types/node": "^20.10.5"
},
"peerDependencies": {
"@effect/platform": "^0.35.0",
"effect": "2.0.0-next.60"
"@effect/platform": "^0.38.0",
"effect": "2.0.0-next.61"
}
}
8 changes: 4 additions & 4 deletions packages/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
"devDependencies": {
"@effect/platform": "^0.38.0",
"@effect/platform-node": "^0.38.0",
"@effect/schema": "^0.54.0",
"@effect/schema": "^0.55.0",
"effect": "2.0.0-next.61"
},
"peerDependencies": {
"@effect/platform": "^0.35.0",
"@effect/schema": "^0.53.1",
"effect": "2.0.0-next.60"
"@effect/platform": "^0.38.0",
"@effect/schema": "^0.55.0",
"effect": "2.0.0-next.61"
}
}
6 changes: 3 additions & 3 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
},
"devDependencies": {
"@effect/platform": "^0.38.0",
"@effect/schema": "^0.54.0",
"@effect/schema": "^0.55.0",
"effect": "2.0.0-next.61",
"next": "^14.0.4"
},
"peerDependencies": {
"@effect/platform": "^0.35.0",
"effect": "2.0.0-next.60",
"@effect/platform": "^0.38.0",
"effect": "2.0.0-next.61",
"next": ">=13 <15"
}
}
2 changes: 1 addition & 1 deletion packages/rpc/examples/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const schema = RpcSchema.make({
},

currentTime: {
output: Schema.dateFromString(Schema.string)
output: Schema.DateFromString
}
})

Expand Down
6 changes: 3 additions & 3 deletions packages/rpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
"build-annotate": "babel build --plugins annotate-pure-calls --out-dir build --source-maps"
},
"devDependencies": {
"@effect/schema": "^0.54.0",
"@effect/schema": "^0.55.0",
"effect": "2.0.0-next.61"
},
"peerDependencies": {
"@effect/schema": "^0.53.1",
"effect": "2.0.0-next.60"
"@effect/schema": "^0.55.0",
"effect": "2.0.0-next.61"
}
}
4 changes: 2 additions & 2 deletions packages/rpc/test/Client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ const schema = RS.make({
},

encodeInput: {
input: S.dateFromString(S.string),
output: S.dateFromString(S.string)
input: S.DateFromString,
output: S.DateFromString
},

currentSpanName: {
Expand Down
2 changes: 1 addition & 1 deletion packages/rpc/test/Schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ describe("Schema", () => {
},

currentTime: {
output: S.dateFromString(S.string),
output: S.DateFromString,
error: S.never
}
})
Expand Down
4 changes: 2 additions & 2 deletions packages/rpc/test/Server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ const schema = RS.make({
},

encodeInput: {
input: S.dateFromString(S.string),
output: S.dateFromString(S.string)
input: S.DateFromString,
output: S.DateFromString
},

encodeDate: {
Expand Down
8 changes: 4 additions & 4 deletions packages/workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
"devDependencies": {
"@effect/platform": "^0.38.0",
"@effect/platform-browser": "^0.24.0",
"@effect/schema": "^0.54.0",
"@effect/schema": "^0.55.0",
"effect": "2.0.0-next.61"
},
"peerDependencies": {
"@effect/platform": "^0.35.0",
"@effect/schema": "^0.53.1",
"effect": "2.0.0-next.60"
"@effect/platform": "^0.38.0",
"@effect/schema": "^0.55.0",
"effect": "2.0.0-next.61"
}
}
Loading

0 comments on commit c23f26e

Please sign in to comment.