@apollo/client-integration-nextjs
Version:
<div align="center"> <img src="https://raw.githubusercontent.com/apollographql/apollo-client-integrations/main/banner.jpg" width="500" alt="Apollo Client + Next.js App Router" /> </div>
113 lines (112 loc) • 3.77 kB
JSON
{
"name": "@apollo/client-integration-nextjs",
"version": "0.14.3",
"repository": {
"url": "git+https://github.com/apollographql/apollo-client-integrations.git"
},
"keywords": [
"apollo",
"nextjs",
"apollo-client",
"graphql",
"ssr",
"rsc",
"app-router",
"app"
],
"type": "module",
"imports": {
"#bundled": {
"require": {
"types": "./dist/combined.d.cts",
"react-server": "./dist/index.rsc.cjs",
"browser": "./dist/index.browser.cjs",
"node": "./dist/index.ssr.cjs"
},
"import": {
"types": "./dist/combined.d.ts",
"react-server": "./dist/index.rsc.js",
"browser": "./dist/index.browser.js",
"node": "./dist/index.ssr.js"
}
}
},
"exports": {
".": {
"require": {
"types": "./dist/combined.d.cts",
"react-server": "./dist/index.rsc.cjs",
"edge-light": "./dist/index.ssr.cjs",
"browser": "./dist/index.browser.cjs",
"node": "./dist/index.ssr.cjs"
},
"import": {
"types": "./dist/combined.d.ts",
"react-server": "./dist/index.rsc.js",
"edge-light": "./dist/index.ssr.js",
"browser": "./dist/index.browser.js",
"node": "./dist/index.ssr.js"
}
},
"./package.json": "./package.json"
},
"typings": "./dist/combined.d.ts",
"author": "packages@apollographql.com",
"license": "MIT",
"files": [
"dist/",
"package.json",
"LICENSE.md",
"README.md"
],
"scripts": {
"build": "rimraf dist; tsup",
"test": "concurrently -c auto \"yarn:test:*(!base) $@\"",
"test:base": "TSX_TSCONFIG_PATH=./tsconfig.tests.json node --import tsx/esm --no-warnings --test \"$@\" src/**/*.test.(ts|tsx)",
"test:ssr": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --conditions=node\" yarn run test:base",
"test:browser": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --conditions=browser\" yarn run test:base",
"test:rsc": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --conditions=react-server\" yarn run test:base",
"prepack": "yarn build",
"prepublishOnly": "yarn pack -o attw.tgz && attw attw.tgz && rm attw.tgz && yarn run test",
"test-bundle": "yarn test-bundle:attw && yarn test-bundle:package && yarn test-bundle:publint && yarn test-bundle:shape",
"test-bundle:attw": "attw --pack .",
"test-bundle:package": "yarn workspace monorepo verify-package-json $PWD/package.json",
"test-bundle:publint": "publint --strict",
"test-bundle:shape": "yarn workspace monorepo verify-package-shape $PWD/package-shape.json",
"bundle-info": "yarn test-bundle --format json | jq '.analysis.entrypoints|to_entries|map({key:.key,value:.value.resolutions|to_entries|map({key:.key,value:.value.resolution.fileName })|from_entries})|from_entries'",
"lint": "eslint --ext .ts,.tsx ."
},
"devDependencies": {
"@apollo/client": "^4.0.0",
"@apollo/client-react-streaming": "workspace:*",
"@arethetypeswrong/cli": "0.15.3",
"@internal/test-utils": "workspace:^",
"@microsoft/api-extractor": "7.43.2",
"@tsconfig/recommended": "1.0.6",
"@types/node": "20.12.11",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"concurrently": "8.2.2",
"esbuild": "^0.24.2",
"eslint": "8.57.0",
"graphql": "^16.10.0",
"next": "^16.0.8",
"publint": "0.2.7",
"react": "^19.2.1",
"react-dom": "^19.0.0",
"react-error-boundary": "^5.0.0",
"rimraf": "5.0.5",
"rxjs": "^7.8.2",
"tsup": "8.0.2",
"typescript": "^5.7.3"
},
"peerDependencies": {
"@apollo/client": "^4.0.0",
"next": "^15.2.3 || ^16.0.0",
"react": "^19",
"rxjs": "^7.3.0"
},
"dependencies": {
"@apollo/client-react-streaming": "0.14.3"
}
}