Skip to content

Commit

Permalink
upgrade effect
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge committed Oct 23, 2024
1 parent 359d5b1 commit ad5f4a1
Show file tree
Hide file tree
Showing 15 changed files with 61 additions and 79 deletions.
7 changes: 3 additions & 4 deletions examples/backend-adapters/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@
"dev:effect": "NODE_ENV=development PORT=3003 tsx watch src/effect-platform.ts"
},
"dependencies": {
"@effect/platform": "0.68.5",
"@effect/platform-node": "0.63.5",
"@effect/schema": "0.75.4",
"@effect/platform": "0.69.5",
"@effect/platform-node": "0.64.6",
"@elysiajs/cors": "^1.1.1",
"@fastify/cors": "^9.0.1",
"@hono/node-server": "^1.8.2",
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"effect": "3.9.2",
"effect": "3.10.1",
"elysia": "^1.1.16",
"express": "^4.18.2",
"fastify": "^4.26.1",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@actions/github": "^6.0.0",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@effect/vitest": "0.12.1",
"@effect/vitest": "0.13.1",
"@ianvs/prettier-plugin-sort-imports": "^4.2.1",
"@manypkg/cli": "^0.21.3",
"@playwright/test": "1.45.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"dependencies": {
"@uploadthing/mime-types": "workspace:*",
"effect": "3.9.2",
"effect": "3.10.1",
"sqids": "^0.3.0"
},
"devDependencies": {
Expand Down
5 changes: 2 additions & 3 deletions packages/uploadthing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,10 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@effect/platform": "0.68.5",
"@effect/schema": "0.75.4",
"@effect/platform": "0.69.5",
"@uploadthing/mime-types": "workspace:*",
"@uploadthing/shared": "workspace:*",
"effect": "3.9.2"
"effect": "3.10.1"
},
"devDependencies": {
"@remix-run/server-runtime": "^2.12.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/uploadthing/src/internal/config.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { after } from "node:test";
import * as S from "@effect/schema/Schema";
import { it } from "@effect/vitest";
import * as Effect from "effect/Effect";
import * as Exit from "effect/Exit";
import * as Layer from "effect/Layer";
import * as Redacted from "effect/Redacted";
import * as S from "effect/Schema";
import { afterEach, beforeEach, describe, expect } from "vitest";

import { UploadThingError } from "@uploadthing/shared";
Expand Down
2 changes: 1 addition & 1 deletion packages/uploadthing/src/internal/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as S from "@effect/schema/Schema";
import * as Config from "effect/Config";
import * as ConfigProvider from "effect/ConfigProvider";
import * as Effect from "effect/Effect";
import * as S from "effect/Schema";

import {
filterDefinedObjectValues,
Expand Down
2 changes: 1 addition & 1 deletion packages/uploadthing/src/internal/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import {
HttpServerRequest,
HttpServerResponse,
} from "@effect/platform";
import * as S from "@effect/schema/Schema";
import * as Config from "effect/Config";
import * as Context from "effect/Context";
import * as Effect from "effect/Effect";
import * as Match from "effect/Match";
import * as Redacted from "effect/Redacted";
import * as S from "effect/Schema";

import {
fillInputRouteConfig,
Expand Down
2 changes: 1 addition & 1 deletion packages/uploadthing/src/internal/jsonl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as S from "@effect/schema/Schema";
import * as Effect from "effect/Effect";
import * as S from "effect/Schema";
import * as Stream from "effect/Stream";

export const handleJsonLineStream =
Expand Down
2 changes: 1 addition & 1 deletion packages/uploadthing/src/internal/route-config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type * as S from "@effect/schema/Schema";
import * as Data from "effect/Data";
import * as Effect from "effect/Effect";
import type * as S from "effect/Schema";

import type {
ExpandedRouteConfig,
Expand Down
2 changes: 1 addition & 1 deletion packages/uploadthing/src/internal/shared-schemas.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as S from "@effect/schema/Schema";
import * as S from "effect/Schema";

import type { Json } from "@uploadthing/shared";
import { ValidACLs, ValidContentDispositions } from "@uploadthing/shared";
Expand Down
2 changes: 1 addition & 1 deletion packages/uploadthing/src/internal/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Schema } from "@effect/schema/Schema";
import type * as Config from "effect/Config";
import type * as LogLevel from "effect/LogLevel";
import type { Schema } from "effect/Schema";

import type {
ErrorMessage,
Expand Down
2 changes: 1 addition & 1 deletion packages/uploadthing/src/sdk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import {
HttpClientRequest,
HttpClientResponse,
} from "@effect/platform";
import * as S from "@effect/schema/Schema";
import * as Arr from "effect/Array";
import * as Effect from "effect/Effect";
import type * as ManagedRuntime from "effect/ManagedRuntime";
import * as Predicate from "effect/Predicate";
import * as Redacted from "effect/Redacted";
import * as S from "effect/Schema";

import type {
ACL,
Expand Down
2 changes: 1 addition & 1 deletion packages/uploadthing/test/__test-helpers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createHash } from "crypto";
import * as S from "@effect/schema/Schema";
import * as Redacted from "effect/Redacted";
import * as S from "effect/Schema";
import type { StrictRequest } from "msw";
import { http, HttpResponse } from "msw";
import { setupServer } from "msw/node";
Expand Down
2 changes: 1 addition & 1 deletion packages/uploadthing/test/sdk.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-restricted-globals */
import * as S from "@effect/schema/Schema";
import * as S from "effect/Schema";
import {
afterAll,
beforeAll,
Expand Down
104 changes: 44 additions & 60 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ad5f4a1

Please sign in to comment.