From 066760e2a1461b77547937b090177fd57e012622 Mon Sep 17 00:00:00 2001 From: devunt <337728+devunt@users.noreply.github.com> Date: Thu, 18 Jul 2024 04:38:02 +0000 Subject: [PATCH] =?UTF-8?q?=EC=A0=95=EA=B8=B0=20=EB=94=94=ED=8E=9C?= =?UTF-8?q?=EB=8D=98=EC=8B=9C=20=EC=97=85=EA=B7=B8=EB=A0=88=EC=9D=B4?= =?UTF-8?q?=EB=93=9C=20(#2811)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/bedrock/package.json | 16 +- apps/company/package.json | 20 +- apps/help/package.json | 20 +- apps/literoom/package.json | 18 +- apps/mobile/package.json | 2 +- apps/website/package.json | 88 +- .../website/src/lib/server/graphql/builder.ts | 18 +- apps/website/src/lib/server/graphql/utils.ts | 2 +- apps/website/src/lib/server/utils/space.ts | 2 +- .../(default)/CommentNotification.svelte | 2 +- .../EmojiReactionNotification.svelte | 2 +- .../me/cabinets/comments/CommentedPost.svelte | 2 +- package.json | 14 +- packages/adapter-docker/package.json | 10 +- packages/glitch/package.json | 18 +- packages/lib/package.json | 8 +- packages/lintconfig/package.json | 16 +- packages/pulumi/package.json | 10 +- packages/rac/package.json | 8 +- pnpm-lock.yaml | 6794 ++++++++--------- 20 files changed, 3497 insertions(+), 3573 deletions(-) diff --git a/apps/bedrock/package.json b/apps/bedrock/package.json index 3cb11bcffd..bf786ea34b 100644 --- a/apps/bedrock/package.json +++ b/apps/bedrock/package.json @@ -4,16 +4,16 @@ "private": true, "type": "module", "devDependencies": { - "@pulumi/aws": "^6.41.0", - "@pulumi/kubernetes": "^4.13.1", - "@pulumi/pulumi": "^3.120.0", - "@pulumi/random": "^4.16.2", - "@pulumi/tailscale": "^0.16.0", - "@pulumi/tls": "^5.0.3", - "@types/node": "^20.14.5", + "@pulumi/aws": "^6.45.0", + "@pulumi/kubernetes": "^4.15.0", + "@pulumi/pulumi": "^3.124.0", + "@pulumi/random": "^4.16.3", + "@pulumi/tailscale": "^0.16.1", + "@pulumi/tls": "^5.0.4", + "@types/node": "^20.14.11", "@withglyph/pulumi": "workspace:^", "@withglyph/tsconfig": "workspace:^", "fast-glob": "^3.3.2", - "tsx": "^4.15.6" + "tsx": "^4.16.2" } } diff --git a/apps/company/package.json b/apps/company/package.json index 960426ba30..9f36559ffd 100644 --- a/apps/company/package.json +++ b/apps/company/package.json @@ -14,24 +14,24 @@ "lint:typecheck": "tsc" }, "dependencies": { - "@sveltejs/kit": "^2.5.17", + "@sveltejs/kit": "^2.5.18", "@withglyph/adapter-docker": "workspace:^", "@withglyph/lib": "workspace:^", "svelte": "^4.2.18" }, "devDependencies": { - "@pandacss/dev": "^0.41.0", - "@pulumi/pulumi": "^3.120.0", + "@pandacss/dev": "^0.42.0", + "@pulumi/pulumi": "^3.124.0", "@sveltejs/vite-plugin-svelte": "^3.1.1", - "@types/node": "^20.14.5", + "@types/node": "^20.14.11", "@withglyph/pulumi": "workspace:^", "@withglyph/tsconfig": "workspace:^", - "postcss": "^8.4.38", + "postcss": "^8.4.39", "postcss-load-config": "^5.1.0", - "svelte-check": "^3.8.1", - "svelte-preprocess": "^6.0.1", - "tsx": "^4.15.6", - "typescript": "^5.4.5", - "vite": "^5.3.1" + "svelte-check": "^3.8.4", + "svelte-preprocess": "^6.0.2", + "tsx": "^4.16.2", + "typescript": "^5.5.3", + "vite": "^5.3.4" } } diff --git a/apps/help/package.json b/apps/help/package.json index 5ef66cad8d..1158375d05 100644 --- a/apps/help/package.json +++ b/apps/help/package.json @@ -14,7 +14,7 @@ "lint:typecheck": "tsc" }, "dependencies": { - "@sveltejs/kit": "^2.5.17", + "@sveltejs/kit": "^2.5.18", "@withglyph/adapter-docker": "workspace:^", "@withglyph/lib": "workspace:^", "mdsvex": "^0.11.2", @@ -22,19 +22,19 @@ "svelte": "^4.2.18" }, "devDependencies": { - "@pandacss/dev": "^0.41.0", - "@pulumi/pulumi": "^3.120.0", + "@pandacss/dev": "^0.42.0", + "@pulumi/pulumi": "^3.124.0", "@sveltejs/vite-plugin-svelte": "^3.1.1", - "@types/node": "^20.14.5", + "@types/node": "^20.14.11", "@withglyph/pulumi": "workspace:^", "@withglyph/tsconfig": "workspace:^", - "postcss": "^8.4.38", + "postcss": "^8.4.39", "postcss-load-config": "^5.1.0", - "svelte-check": "^3.8.1", - "svelte-preprocess": "^6.0.1", - "tsx": "^4.15.6", - "typescript": "^5.4.5", - "vite": "^5.3.1", + "svelte-check": "^3.8.4", + "svelte-preprocess": "^6.0.2", + "tsx": "^4.16.2", + "typescript": "^5.5.3", + "vite": "^5.3.4", "vite-plugin-dynamic-import": "^1.5.0" } } diff --git a/apps/literoom/package.json b/apps/literoom/package.json index 9e9222a055..d17d218e0f 100644 --- a/apps/literoom/package.json +++ b/apps/literoom/package.json @@ -11,20 +11,20 @@ "lint:typecheck": "tsc" }, "dependencies": { - "@aws-sdk/client-s3": "^3.600.0", - "aws-lambda-ric": "^3.1.0", + "@aws-sdk/client-s3": "^3.614.0", + "aws-lambda-ric": "^3.2.0", "sharp": "^0.33.4" }, "devDependencies": { - "@pulumi/aws": "^6.41.0", - "@pulumi/aws-native": "^0.108.4", - "@pulumi/pulumi": "^3.120.0", - "@types/node": "^20.14.5", + "@pulumi/aws": "^6.45.0", + "@pulumi/aws-native": "^0.111.0", + "@pulumi/pulumi": "^3.124.0", + "@types/node": "^20.14.11", "@withglyph/lib": "workspace:^", "@withglyph/pulumi": "workspace:^", "@withglyph/tsconfig": "workspace:^", - "tsup": "^8.1.0", - "tsx": "^4.15.6", - "typescript": "^5.4.5" + "tsup": "^8.1.2", + "tsx": "^4.16.2", + "typescript": "^5.5.3" } } diff --git a/apps/mobile/package.json b/apps/mobile/package.json index ee8c1bef8f..2f27cf400d 100644 --- a/apps/mobile/package.json +++ b/apps/mobile/package.json @@ -17,7 +17,7 @@ "watch": "dart run build_runner watch --delete-conflicting-outputs" }, "devDependencies": { - "@iconify/json": "^2.2.220", + "@iconify/json": "^2.2.228", "@iconify/tools": "^4.0.4", "change-case-all": "^2.1.0", "emojibase-data": "^15.3.2", diff --git a/apps/website/package.json b/apps/website/package.json index 0802fe25a9..5795cccd28 100644 --- a/apps/website/package.json +++ b/apps/website/package.json @@ -17,11 +17,11 @@ "test": "playwright test" }, "dependencies": { - "@apple/app-store-server-library": "^1.3.0", - "@aws-sdk/client-s3": "^3.600.0", - "@aws-sdk/client-ses": "^3.600.0", - "@aws-sdk/s3-request-presigner": "^3.600.0", - "@datadog/browser-rum": "^5.21.0", + "@apple/app-store-server-library": "^1.4.0", + "@aws-sdk/client-s3": "^3.614.0", + "@aws-sdk/client-ses": "^3.614.0", + "@aws-sdk/s3-request-presigner": "^3.614.0", + "@datadog/browser-rum": "^5.22.0", "@elastic/elasticsearch": "^8.14.0", "@emoji-mart/data": "^1.2.1", "@envelop/core": "^5.0.1", @@ -29,24 +29,24 @@ "@envelop/opentelemetry": "^6.3.1", "@felte/core": "^1.4.3", "@felte/validator-zod": "^1.0.17", - "@floating-ui/dom": "^1.6.5", + "@floating-ui/dom": "^1.6.7", "@graphql-yoga/typed-event-target": "^3.0.0", "@opentelemetry/api": "^1.9.0", "@paralleldrive/cuid2": "^2.2.2", - "@pothos/core": "^3.41.1", - "@pothos/plugin-dataloader": "^3.18.1", - "@pothos/plugin-scope-auth": "^3.22.0", - "@pothos/plugin-simple-objects": "^3.7.0", - "@pothos/plugin-tracing": "^0.5.8", - "@pothos/plugin-validation": "^3.10.1", - "@pothos/tracing-opentelemetry": "^0.6.9", + "@pothos/core": "^4.0.2", + "@pothos/plugin-dataloader": "^4.0.2", + "@pothos/plugin-scope-auth": "^4.0.2", + "@pothos/plugin-simple-objects": "^4.0.3", + "@pothos/plugin-tracing": "^1.0.2", + "@pothos/plugin-zod": "^4.0.2", + "@pothos/tracing-opentelemetry": "^1.0.2", "@resvg/resvg-js": "^2.6.2", - "@sentry/sveltekit": "^8.10.0", + "@sentry/sveltekit": "^8.18.0", "@sindresorhus/string-hash": "^2.0.0", - "@sveltejs/kit": "^2.5.17", - "@tiptap/core": "^2.4.0", - "@tiptap/html": "^2.4.0", - "@tiptap/pm": "^2.4.0", + "@sveltejs/kit": "^2.5.18", + "@tiptap/core": "^2.5.4", + "@tiptap/html": "^2.5.4", + "@tiptap/pm": "^2.5.4", "@types/sortablejs": "^1.15.8", "@urql/core": "^5.0.4", "@urql/exchange-graphcache": "^6.5.1", @@ -63,46 +63,46 @@ "dataloader": "^2.2.2", "dayjs": "^1.11.11", "driver.js": "^1.3.1", - "drizzle-orm": "^0.31.2", + "drizzle-orm": "^0.32.0", "emoji-mart": "^5.6.0", "fast-json-stable-stringify": "^2.1.0", "felte": "^1.2.14", - "firebase-admin": "^12.1.1", + "firebase-admin": "^12.2.0", "google-auth-library": "^9.11.0", - "googleapis": "^140.0.0", + "googleapis": "^140.0.1", "got": "^14.4.1", - "graphql": "^16.8.2", + "graphql": "^16.9.0", "graphql-scalars": "^1.23.0", - "graphql-yoga": "^5.4.0", + "graphql-yoga": "^5.6.0", "iconv-lite": "^0.6.3", "ioredis": "^5.4.1", "itty-router": "^5.0.17", - "jose": "^5.4.1", + "jose": "^5.6.3", "js-base64": "^3.7.7", - "ky": "^1.3.0", + "ky": "^1.4.0", "linkifyjs": "^4.1.3", - "mixpanel-browser": "^2.52.0", + "mixpanel-browser": "^2.53.0", "mrmime": "^2.0.0", "nanoid": "^5.0.7", "numeral": "^2.0.6", "object-traversal": "^1.0.1", "open": "^10.1.0", - "pino": "^9.2.0", + "pino": "^9.3.1", "postgres": "^3.4.4", "query-string": "^9.0.0", "rabbitmq-client": "^4.6.0", "radash": "^12.1.0", "randomcolor": "^0.6.2", - "satori": "^0.10.13", + "satori": "^0.10.14", "sharp": "^0.33.4", - "shiki": "^1.7.0", + "shiki": "^1.10.3", "sortablejs": "^1.15.2", "svelte": "^4.2.18", - "swiper": "^11.1.4", + "swiper": "^11.1.5", "thumbhash": "^0.1.1", "ts-pattern": "^5.2.0", "twemoji": "^14.0.2", - "twitter-api-v2": "^1.17.1", + "twitter-api-v2": "^1.17.2", "uqr": "^0.1.2", "xmlbuilder2": "^3.1.1", "y-indexeddb": "^9.0.12", @@ -112,29 +112,29 @@ "zod": "^3.23.8" }, "devDependencies": { - "@iconify/json": "^2.2.220", - "@pandacss/dev": "^0.41.0", - "@playwright/test": "^1.44.1", - "@pulumi/pulumi": "^3.120.0", + "@iconify/json": "^2.2.228", + "@pandacss/dev": "^0.42.0", + "@playwright/test": "^1.45.2", + "@pulumi/pulumi": "^3.124.0", "@sveltejs/vite-plugin-svelte": "^3.1.1", "@types/body-scroll-lock": "^3.1.2", "@types/color": "^3.0.6", - "@types/mixpanel-browser": "^2.49.0", - "@types/node": "^20.14.5", + "@types/mixpanel-browser": "^2.49.1", + "@types/node": "^20.14.11", "@types/numeral": "^2.0.5", "@types/randomcolor": "^0.5.9", "@withglyph/pulumi": "workspace:^", "@withglyph/tsconfig": "workspace:^", "arg": "^5.0.2", "autoprefixer": "^10.4.19", - "drizzle-kit": "^0.22.7", - "postcss": "^8.4.38", + "drizzle-kit": "^0.23.0", + "postcss": "^8.4.39", "postcss-load-config": "^5.1.0", - "svelte-check": "^3.8.1", - "svelte-preprocess": "^6.0.1", - "tsx": "^4.15.6", - "typescript": "^5.4.5", + "svelte-check": "^3.8.4", + "svelte-preprocess": "^6.0.2", + "tsx": "^4.16.2", + "typescript": "^5.5.3", "unplugin-icons": "^0.19.0", - "vite": "^5.3.1" + "vite": "^5.3.4" } } diff --git a/apps/website/src/lib/server/graphql/builder.ts b/apps/website/src/lib/server/graphql/builder.ts index 35d34b7fa4..c98762b5aa 100644 --- a/apps/website/src/lib/server/graphql/builder.ts +++ b/apps/website/src/lib/server/graphql/builder.ts @@ -2,7 +2,7 @@ import SchemaBuilder from '@pothos/core'; import DataLoaderPlugin from '@pothos/plugin-dataloader'; import ScopeAuthPlugin from '@pothos/plugin-scope-auth'; import SimpleObjectsPlugin from '@pothos/plugin-simple-objects'; -import ValidationPlugin from '@pothos/plugin-validation'; +import ZodPlugin from '@pothos/plugin-zod'; import RACPlugin from '@withglyph/rac'; import dayjs from 'dayjs'; import { GraphQLJSON, GraphQLVoid } from 'graphql-scalars'; @@ -26,6 +26,7 @@ export const builder = new SchemaBuilder<{ }; Context: Context; DefaultInputFieldRequiredness: true; + DefaultFieldNullability: false; Scalars: { DateTime: { Input: dayjs.Dayjs; Output: dayjs.Dayjs }; ID: { Input: string; Output: string }; @@ -35,17 +36,18 @@ export const builder = new SchemaBuilder<{ Void: { Input: never; Output: void }; }; }>({ - authScopes: (context) => ({ - admin: context.session?.role === 'ADMIN', - user: !!context.session, - }), defaultInputFieldRequiredness: true, - plugins: [ScopeAuthPlugin, RACPlugin, DataLoaderPlugin, SimpleObjectsPlugin, ValidationPlugin], - scopeAuthOptions: { + defaultFieldNullability: false, + plugins: [ScopeAuthPlugin, RACPlugin, DataLoaderPlugin, SimpleObjectsPlugin, ZodPlugin], + scopeAuth: { + authScopes: (context) => ({ + admin: context.session?.role === 'ADMIN', + user: !!context.session, + }), treatErrorsAsUnauthorized: true, unauthorizedError: (_, __, ___, result) => new PermissionDeniedError(result), }, - validationOptions: { + zod: { validationError: (error) => new IntentionalError(error.issues[0].message), }, racPluginOptions: { diff --git a/apps/website/src/lib/server/graphql/utils.ts b/apps/website/src/lib/server/graphql/utils.ts index 2b1e08152e..be8d20d6f1 100644 --- a/apps/website/src/lib/server/graphql/utils.ts +++ b/apps/website/src/lib/server/graphql/utils.ts @@ -13,7 +13,7 @@ type SchemaTypes = typeof builder extends PothosSchemaTypes.SchemaBuilder( table: TableWithIdColumn, -): DataLoaderOptions => ({ +): DataLoaderOptions => ({ load: (ids) => database.select().from(table).where(inArray(table.id, ids)).orderBy(asc(table.id)), toKey: (parent) => parent.id, sort: true, diff --git a/apps/website/src/lib/server/utils/space.ts b/apps/website/src/lib/server/utils/space.ts index c2d551df3a..08a72ef442 100644 --- a/apps/website/src/lib/server/utils/space.ts +++ b/apps/website/src/lib/server/utils/space.ts @@ -92,7 +92,7 @@ type GetSpaceProfileParams = export const getSpaceProfile = async (params: GetSpaceProfileParams) => { // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - const userId = 'context' in params ? params.userId ?? params.context.session!.userId : params.userId; + const userId = 'context' in params ? (params.userId ?? params.context.session!.userId) : params.userId; const { profileId } = (await getSpaceMemberV2(params)) ?? (await makeMasquerade({ spaceId: params.spaceId, userId })); diff --git a/apps/website/src/routes/(default)/CommentNotification.svelte b/apps/website/src/routes/(default)/CommentNotification.svelte index 49b8c40db9..ca1bf902ce 100644 --- a/apps/website/src/routes/(default)/CommentNotification.svelte +++ b/apps/website/src/routes/(default)/CommentNotification.svelte @@ -86,7 +86,7 @@ {$commentNotification.post.publishedRevision?.title && $commentNotification.post.publishedRevision?.title.length > 10 ? `${$commentNotification.post.publishedRevision?.title.slice(0, 10)}...` - : $commentNotification.post.publishedRevision?.title ?? '(제목 없음)'}에 댓글을 달았어요 + : ($commentNotification.post.publishedRevision?.title ?? '(제목 없음)')}에 댓글을 달았어요