UNPKG

@ai-sdk/rsc

Version:

[React Server Components](https://react.dev/reference/rsc/server-components) for the [AI SDK](https://ai-sdk.dev/docs):

95 lines 2.68 kB
{ "name": "@ai-sdk/rsc", "version": "1.0.109", "license": "Apache-2.0", "sideEffects": false, "main": "./dist/rsc-client.mjs", "module": "./dist/rsc-client.mjs", "types": "./dist/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "types": "./dist/index.d.ts", "react-server": "./dist/rsc-server.mjs", "module": "./dist/rsc-client.mjs", "import": "./dist/rsc-client.mjs" } }, "files": [ "dist/**/*", "CHANGELOG.md" ], "dependencies": { "jsondiffpatch": "0.7.3", "ai": "5.0.108", "@ai-sdk/provider": "2.0.0", "@ai-sdk/provider-utils": "3.0.18" }, "devDependencies": { "@testing-library/jest-dom": "^6.6.3", "@testing-library/user-event": "^14.5.2", "@testing-library/react": "^16.0.1", "@types/node": "20.17.24", "@types/react": "^18", "@types/react-dom": "^18", "@vitejs/plugin-react": "4.3.3", "react-dom": "^18", "react": "^18", "react-server-dom-webpack": "18.3.0-canary-eb33bd747-20240312", "eslint": "8.57.1", "jsdom": "^24.0.0", "msw": "2.6.4", "tsup": "^7.2.0", "typescript": "5.8.3", "zod": "3.25.76", "@vercel/ai-tsconfig": "0.0.0", "eslint-config-vercel-ai": "0.0.0" }, "peerDependencies": { "react": "^18 || ^19 || ^19.0.0-rc", "zod": "^3.25.76 || ^4.1.8" }, "peerDependenciesMeta": { "zod": { "optional": true } }, "engines": { "node": ">=18" }, "publishConfig": { "access": "public" }, "homepage": "https://ai-sdk.dev/docs", "repository": { "type": "git", "url": "git+https://github.com/vercel/ai.git" }, "bugs": { "url": "https://github.com/vercel/ai/issues" }, "keywords": [ "ai", "react", "rsc", "server-components" ], "scripts": { "build": "tsup --tsconfig tsconfig.build.json", "build:watch": "pnpm build --watch", "clean": "del-cli dist", "lint": "eslint \"./**/*.ts*\"", "type-check": "tsc --noEmit", "prettier-check": "prettier --check \"./**/*.ts*\"", "test:watch": "vitest --config vitest.config.js", "test": "pnpm test:node && pnpm test:ui && pnpm test:e2e && pnpm test:edge", "test:e2e": "playwright test", "test:edge": "vitest --config vitest.edge.config.js --run", "test:edge:watch": "vitest --config vitest.edge.config.js", "test:node": "vitest --config vitest.node.config.js --run", "test:node:watch": "vitest --config vitest.node.config.js", "test:ui": "pnpm test:ui:react", "test:ui:react": "vitest --config vitest.ui.react.config.js --run", "test:ui:react:watch": "vitest --config vitest.ui.react.config.js" } }