@apollo/client-react-streaming
Version:
This package provides building blocks to create framework-level integration of Apollo Client with React's streaming SSR. See the [@apollo/client-integration-nextjs](https://github.com/apollographql/apollo-client-integrations/tree/main/packages/nextjs) pac
177 lines (176 loc) • 5.95 kB
JSON
{
"name": "@apollo/client-react-streaming",
"version": "0.14.3",
"repository": {
"url": "git+https://github.com/apollographql/apollo-client-integrations.git"
},
"keywords": [
"apollo",
"apollo-client",
"graphql",
"ssr",
"rsc",
"streaming"
],
"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"
}
},
"#bundled/manual-transport": {
"require": {
"types": "./dist/manual-transport.ssr.d.cts",
"react-server": "./dist/empty.cjs",
"browser": "./dist/manual-transport.browser.cjs",
"node": "./dist/manual-transport.ssr.cjs"
},
"import": {
"types": "./dist/manual-transport.ssr.d.ts",
"react-server": "./dist/empty.js",
"browser": "./dist/manual-transport.browser.js",
"node": "./dist/manual-transport.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"
}
},
"./manual-transport": {
"require": {
"types": "./dist/manual-transport.ssr.d.cts",
"react-server": "./dist/empty.cjs",
"edge-light": "./dist/manual-transport.ssr.cjs",
"browser": "./dist/manual-transport.browser.cjs",
"node": "./dist/manual-transport.ssr.cjs"
},
"import": {
"types": "./dist/manual-transport.ssr.d.ts",
"react-server": "./dist/empty.js",
"edge-light": "./dist/manual-transport.ssr.js",
"browser": "./dist/manual-transport.browser.js",
"node": "./dist/manual-transport.ssr.js"
}
},
"./stream-utils": {
"require": {
"types": "./dist/stream-utils.combined.d.cts",
"react-server": "./dist/stream-utils.cjs",
"edge-light": "./dist/stream-utils.ssr.cjs",
"browser": "./dist/stream-utils.cjs",
"node": "./dist/stream-utils.ssr.cjs"
},
"import": {
"types": "./dist/stream-utils.combined.d.ts",
"react-server": "./dist/stream-utils.js",
"edge-light": "./dist/stream-utils.ssr.js",
"browser": "./dist/stream-utils.js",
"node": "./dist/stream-utils.ssr.js"
}
},
"./package.json": "./package.json"
},
"typesVersions": {
"*": {
"manual-transport": [
"./dist/manual-transport.ssr.d.ts"
],
"stream-utils": [
"./dist/stream-utils.combined.d.ts"
]
}
},
"typings": "./dist/combined.d.ts",
"author": "packages@apollographql.com",
"license": "MIT",
"files": [
"dist/",
"!*.test.*",
"!*.d.ts.map",
"!*.d.cts.map",
"package.json",
"LICENSE.md",
"README.md"
],
"scripts": {
"build": "rimraf dist .built; tsup && tsc --emitDeclarationOnly --declaration",
"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 src"
},
"devDependencies": {
"@apollo/client": "^4.0.0",
"@arethetypeswrong/cli": "0.15.3",
"@internal/test-utils": "workspace:^",
"@microsoft/api-extractor": "7.43.2",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.1.0",
"@total-typescript/shoehorn": "0.1.2",
"@tsconfig/recommended": "1.0.6",
"@types/node": "20.12.11",
"@types/react": "^19.0.0",
"@types/react-dom": "*",
"concurrently": "8.2.2",
"esbuild": "^0.24.2",
"eslint": "8.57.0",
"global-jsdom": "24.0.0",
"graphql": "^16.10.0",
"jsdom": "24.0.0",
"publint": "0.2.7",
"react": "^19.2.1",
"react-dom": "*",
"react-error-boundary": "4.0.13",
"react-server-dom-webpack": "^19.2.1",
"rimraf": "5.0.5",
"rxjs": "^7.8.2",
"tsup": "8.0.2",
"tsx": "4.7.1",
"typescript": "^5.7.3"
},
"peerDependencies": {
"@apollo/client": "^4.0.0",
"graphql": "^16 || >=17.0.0-alpha.2",
"react": "^19",
"react-dom": "^19",
"rxjs": "^7.3.0"
},
"dependencies": {
"@types/react-dom": "^19.0.0",
"@wry/equality": "^0.5.6"
}
}