{"_id":"@apollo/client-codemod-migrate-3-to-4","_rev":"16-f95158165e22802755af252021bedcc0","name":"@apollo/client-codemod-migrate-3-to-4","dist-tags":{"next":"1.0.0-rc.3","rc":"1.0.0-rc.3","latest":"1.0.2"},"versions":{"1.0.0-rc.0":{"name":"@apollo/client-codemod-migrate-3-to-4","version":"1.0.0-rc.0","keywords":["apollo","client","graphql","codemod"],"author":{"name":"packages@apollographql.com"},"license":"MIT","_id":"@apollo/client-codemod-migrate-3-to-4@1.0.0-rc.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://www.apollographql.com/docs/react/","bugs":{"url":"https://github.com/apollographql/apollo-client/issues"},"bin":{"apollo-client-codemod-migrate-3-to-4":"dist/cli.js"},"dist":{"shasum":"003ec26366c9477bceffcdeab319bf7fc6792b8a","tarball":"https://registry.npmjs.org/@apollo/client-codemod-migrate-3-to-4/-/client-codemod-migrate-3-to-4-1.0.0-rc.0.tgz","fileCount":11,"integrity":"sha512-POO8Kh6A+5/M+ZdUWw0DhHGwt0mmacC9JBq/WdIwsHR5bnqOsbnu0hO+cMLXfJw+XR3H57+nFL99aUHXw2Vi8Q==","signatures":[{"sig":"MEUCIGzi/rcyx42ph9Uh+gyxGoPYuFVv4l4oHjvAdIRwwQ5hAiEAi3oZGx1UbBd0bekckv3yR/uZuotYX+uLMQtfaBz7Eyw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@apollo%2fclient-codemod-migrate-3-to-4@1.0.0-rc.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":28386},"type":"module","exports":{".":"./dist/index.js","./imports":"./dist/imports.js"},"gitHead":"0e686a1f474c99fcfdac8e36dc561746e0907944","scripts":{"test":"vitest run","build":"tsc -p tsconfig.build.json","clean":"rimraf dist","prepack":"npm run build","publint":"publint run --strict .","prebuild":"npm run clean","test:watch":"vitest watch"},"_npmUser":{"name":"apollo-bot","actor":{"name":"apollo-bot","type":"user","email":"npm@apollographql.com"},"email":"npm@apollographql.com"},"repository":{"url":"git+https://github.com/apollographql/apollo-client.git","type":"git","directory":"codegen"},"_npmVersion":"11.4.2","description":"Apollo Client Codemod to migrate from version 3 to version 4","directories":{},"sideEffects":false,"_nodeVersion":"24.3.0","dependencies":{"jscodeshift":"17.3.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.0.1","typescript":"^5.2.2","@types/node":"20.9.0","@types/jscodeshift":"^17.3.0"},"_npmOperationalInternal":{"tmp":"tmp/client-codemod-migrate-3-to-4_1.0.0-rc.0_1751048389984_0.30241183996436294","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-rc.1":{"name":"@apollo/client-codemod-migrate-3-to-4","version":"1.0.0-rc.1","keywords":["apollo","client","graphql","codemod"],"author":{"name":"packages@apollographql.com"},"license":"MIT","_id":"@apollo/client-codemod-migrate-3-to-4@1.0.0-rc.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://www.apollographql.com/docs/react/","bugs":{"url":"https://github.com/apollographql/apollo-client/issues"},"bin":{"apollo-client-codemod-migrate-3-to-4":"dist/cli.js"},"dist":{"shasum":"579467f699c171be07e8de0dc05276140ddecbfc","tarball":"https://registry.npmjs.org/@apollo/client-codemod-migrate-3-to-4/-/client-codemod-migrate-3-to-4-1.0.0-rc.1.tgz","fileCount":11,"integrity":"sha512-I0FFZLI5tUnKnL/rWTNO22FGLfk/FZaD5xhIKBrCsEInJz4jVOIPRJsgqKYXuqD5vBlMkyIcAqXgb/uh7r+JEQ==","signatures":[{"sig":"MEUCIFsHmeDrroJ95ZtF05szflKwS9FC+q5K09GiJaEjMjiaAiEAxs0OsgmnZZimdHL8DFqo9Wmkzpg6PK+8p7zux1aNnmM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@apollo%2fclient-codemod-migrate-3-to-4@1.0.0-rc.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":28147},"type":"module","exports":{".":"./dist/index.js","./imports":"./dist/imports.js"},"gitHead":"8c8734a6a3e3d2068da8195fc2a2c9657d036275","scripts":{"test":"vitest run","build":"tsc -p tsconfig.build.json","clean":"rimraf dist","prepack":"npm run build","publint":"publint run --strict .","prebuild":"npm run clean","test:watch":"vitest watch"},"_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"repository":{"url":"git+https://github.com/apollographql/apollo-client.git","type":"git","directory":"codegen"},"_npmVersion":"11.4.2","description":"Apollo Client Codemod to migrate from version 3 to version 4","directories":{},"sideEffects":false,"_nodeVersion":"24.4.1","dependencies":{"jscodeshift":"17.3.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.0.1","typescript":"^5.2.2","@types/node":"20.9.0","@types/jscodeshift":"^17.3.0"},"_npmOperationalInternal":{"tmp":"tmp/client-codemod-migrate-3-to-4_1.0.0-rc.1_1752872096093_0.5040836943284981","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-rc.2":{"name":"@apollo/client-codemod-migrate-3-to-4","version":"1.0.0-rc.2","keywords":["apollo","client","graphql","codemod"],"author":{"name":"packages@apollographql.com"},"license":"MIT","_id":"@apollo/client-codemod-migrate-3-to-4@1.0.0-rc.2","maintainers":[{"name":"benjamn","email":"ben@benjamn.com"},{"name":"jerelmiller","email":"jerelmiller@gmail.com"},{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://www.apollographql.com/docs/react/","bugs":{"url":"https://github.com/apollographql/apollo-client/issues"},"bin":{"apollo-client-codemod-migrate-3-to-4":"dist/cli.js"},"dist":{"shasum":"ab47c1d35bff78dd2d59b60f544d13df2b8d7cb1","tarball":"https://registry.npmjs.org/@apollo/client-codemod-migrate-3-to-4/-/client-codemod-migrate-3-to-4-1.0.0-rc.2.tgz","fileCount":62,"integrity":"sha512-9SnhmrxrEWZXTq1z5lJns/5MPEAK7A17ZXbHwN+lRqmuK4AwCvgfQbm4e9NhBxxSL10ylAeNINN6dtuljBkuAg==","signatures":[{"sig":"MEQCIDDxnNom7H1urftvLqp2l/WsD1hP0TfQTbH1X6CPVZSiAiABpWjDSz+hmfEyL9RafylRJDgvgmFW7b6TRV7fKbSNFQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@apollo%2fclient-codemod-migrate-3-to-4@1.0.0-rc.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":150521},"type":"module","exports":{".":"./dist/index.js","./imports":"./dist/imports.js"},"gitHead":"d8431ca2e72d8c8d74d956816764faee50913b93","scripts":{"test":"NODE_OPTIONS='--import ./src/devLoader.js' vitest run","build":"tsc -p tsconfig.build.json","clean":"rimraf dist","prepack":"npm run build","publint":"publint run --strict .","prebuild":"npm run clean","local:cli":"node --import ./src/devLoader.js src/cli.ts","test:watch":"NODE_OPTIONS='--import ./src/devLoader.js' vitest watch"},"_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"repository":{"url":"git+https://github.com/apollographql/apollo-client.git","type":"git","directory":"codegen"},"_npmVersion":"11.5.1","description":"Apollo Client Codemod to migrate from version 3 to version 4","directories":{},"sideEffects":false,"_nodeVersion":"24.6.0","dependencies":{"jscodeshift":"17.3.0"},"_hasShrinkwrap":false,"devDependencies":{"diff":"^8.0.2","vitest":"^1.0.1","typescript":"^5.2.2","@types/node":"20.9.0","@types/jscodeshift":"^17.3.0"},"_npmOperationalInternal":{"tmp":"tmp/client-codemod-migrate-3-to-4_1.0.0-rc.2_1755247069372_0.34063554017887565","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-rc.3":{"name":"@apollo/client-codemod-migrate-3-to-4","version":"1.0.0-rc.3","keywords":["apollo","client","graphql","codemod"],"author":{"name":"packages@apollographql.com"},"license":"MIT","_id":"@apollo/client-codemod-migrate-3-to-4@1.0.0-rc.3","maintainers":[{"name":"benjamn","email":"ben@benjamn.com"},{"name":"jerelmiller","email":"jerelmiller@gmail.com"},{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://www.apollographql.com/docs/react/","bugs":{"url":"https://github.com/apollographql/apollo-client/issues"},"bin":{"apollo-client-codemod-migrate-3-to-4":"dist/cli.js"},"dist":{"shasum":"964f44e4da694b3677f0793db51b444307992051","tarball":"https://registry.npmjs.org/@apollo/client-codemod-migrate-3-to-4/-/client-codemod-migrate-3-to-4-1.0.0-rc.3.tgz","fileCount":77,"integrity":"sha512-o9lHSLTmII+kLMTjYHgeOL8I7Jz1dwmzijFuTTDrimB1SwSg7Cs93xJ1SnwqEAl3rfxW/EDMttSKjEHuHe1Hkw==","signatures":[{"sig":"MEQCICmzcplTa0B0BoApbJKMtiVtO8nxex4y4CLH0B33A0rcAiAFlcur65IAgo41c1C+u8iLfO93UXfgaDtR9QNGyJzQJw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@apollo%2fclient-codemod-migrate-3-to-4@1.0.0-rc.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":192998},"type":"module","exports":{".":"./dist/index.js","./imports":"./dist/imports.js"},"gitHead":"776ac593c8ab3a692293382ca312fc162e0a31f2","scripts":{"test":"NODE_OPTIONS='--import ./src/devLoader.js' vitest run","build":"tsc -p tsconfig.build.json","clean":"rimraf dist","prepack":"npm run build","publint":"publint run --strict .","prebuild":"npm run clean","local:cli":"node --import ./src/devLoader.js src/cli.ts","test:watch":"NODE_OPTIONS='--import ./src/devLoader.js' vitest watch"},"_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"repository":{"url":"git+https://github.com/apollographql/apollo-client.git","type":"git","directory":"codegen"},"_npmVersion":"11.5.1","description":"Apollo Client Codemod to migrate from version 3 to version 4","directories":{},"sideEffects":false,"_nodeVersion":"24.6.0","dependencies":{"jscodeshift":"17.3.0"},"_hasShrinkwrap":false,"devDependencies":{"diff":"^8.0.2","vitest":"^1.0.1","typescript":"^5.2.2","@types/node":"20.9.0","@types/jscodeshift":"^17.3.0"},"_npmOperationalInternal":{"tmp":"tmp/client-codemod-migrate-3-to-4_1.0.0-rc.3_1755724668009_0.5160922355438158","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@apollo/client-codemod-migrate-3-to-4","version":"1.0.0","keywords":["apollo","client","graphql","codemod"],"author":{"name":"packages@apollographql.com"},"license":"MIT","_id":"@apollo/client-codemod-migrate-3-to-4@1.0.0","maintainers":[{"name":"benjamn","email":"ben@benjamn.com"},{"name":"jerelmiller","email":"jerelmiller@gmail.com"},{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://www.apollographql.com/docs/react/","bugs":{"url":"https://github.com/apollographql/apollo-client/issues"},"bin":{"apollo-client-codemod-migrate-3-to-4":"dist/cli.js"},"dist":{"shasum":"4b9a7a243d4aaf68008709c0d8bb0be9539d9687","tarball":"https://registry.npmjs.org/@apollo/client-codemod-migrate-3-to-4/-/client-codemod-migrate-3-to-4-1.0.0.tgz","fileCount":77,"integrity":"sha512-W5zdvjeYxQOO3ZOJ+wy6MOuqsA8I+RJxgYJMXS25uDqa1vq5mKp/p+EhUNiC3EIHBmqKvRBOXZQnk/PdEs6N8A==","signatures":[{"sig":"MEYCIQCkxOcXQhgO7o3eLSCWISLYI6PjlLXUcgmdGCqJCJrWHAIhANVK5K+PL7qEMZqaMNTBXJC56uvztAKjynk0vShxFQJK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@apollo%2fclient-codemod-migrate-3-to-4@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":195940},"type":"module","exports":{".":"./dist/index.js","./imports":"./dist/imports.js"},"gitHead":"c6ec3eb7a1f81857f2aff0f5a45dbcfa079e1ef4","scripts":{"test":"NODE_OPTIONS='--import ./src/devLoader.js' vitest run","build":"tsc -p tsconfig.build.json","clean":"rimraf dist","prepack":"npm run build","publint":"publint run --strict .","prebuild":"npm run clean","local:cli":"node --import ./src/devLoader.js src/cli.ts","test:watch":"NODE_OPTIONS='--import ./src/devLoader.js' vitest watch"},"_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"repository":{"url":"git+https://github.com/apollographql/apollo-client.git","type":"git","directory":"codegen"},"_npmVersion":"11.5.1","description":"Apollo Client Codemod to migrate from version 3 to version 4","directories":{},"sideEffects":false,"_nodeVersion":"24.6.0","dependencies":{"jscodeshift":"17.3.0"},"_hasShrinkwrap":false,"devDependencies":{"diff":"^8.0.2","vitest":"^1.0.1","typescript":"^5.2.2","@types/node":"20.9.0","@types/jscodeshift":"^17.3.0"},"_npmOperationalInternal":{"tmp":"tmp/client-codemod-migrate-3-to-4_1.0.0_1755799825933_0.025891654675102238","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@apollo/client-codemod-migrate-3-to-4","version":"1.0.1","keywords":["apollo","client","graphql","codemod"],"author":{"name":"packages@apollographql.com"},"license":"MIT","_id":"@apollo/client-codemod-migrate-3-to-4@1.0.1","maintainers":[{"name":"benjamn","email":"ben@benjamn.com"},{"name":"jerelmiller","email":"jerelmiller@gmail.com"},{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://www.apollographql.com/docs/react/","bugs":{"url":"https://github.com/apollographql/apollo-client/issues"},"bin":{"apollo-client-codemod-migrate-3-to-4":"dist/cli.js"},"dist":{"shasum":"fcf4228da1b2ebe64d3faa481832a48172d07476","tarball":"https://registry.npmjs.org/@apollo/client-codemod-migrate-3-to-4/-/client-codemod-migrate-3-to-4-1.0.1.tgz","fileCount":77,"integrity":"sha512-gdYo8/MgDJpRzk/AoIB4rRACzgm/SLcMsb7qo44uREhA0PKk6DFFTYLzazt6OPOLSs4xtCEBXRI2EHzg9O1RQQ==","signatures":[{"sig":"MEYCIQCThI5Iw2x186Md7A1oPsF+CWMG2eHS5bAGSO5kfJhwyAIhAP/8FMndb11+G9wl/+q/oHhp0dQsy0B/IPHCpS3arYfS","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@apollo%2fclient-codemod-migrate-3-to-4@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":196606},"type":"module","exports":{".":"./dist/index.js","./imports":"./dist/imports.js"},"gitHead":"42f7e80c50d391976576d218ed900d48336f9b58","scripts":{"test":"NODE_OPTIONS='--import ./src/devLoader.js' vitest run","build":"tsc -p tsconfig.build.json","clean":"rimraf dist","prepack":"npm run build","publint":"publint run --strict .","prebuild":"npm run clean","local:cli":"node --import ./src/devLoader.js src/cli.ts","test:watch":"NODE_OPTIONS='--import ./src/devLoader.js' vitest watch"},"_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"repository":{"url":"git+https://github.com/apollographql/apollo-client.git","type":"git","directory":"codegen"},"_npmVersion":"11.5.1","description":"Apollo Client Codemod to migrate from version 3 to version 4","directories":{},"sideEffects":false,"_nodeVersion":"24.6.0","dependencies":{"jscodeshift":"17.3.0"},"_hasShrinkwrap":false,"devDependencies":{"diff":"^8.0.2","vitest":"^1.0.1","typescript":"^5.2.2","@types/node":"20.9.0","@types/jscodeshift":"^17.3.0"},"_npmOperationalInternal":{"tmp":"tmp/client-codemod-migrate-3-to-4_1.0.1_1756147585945_0.5309596283433391","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@apollo/client-codemod-migrate-3-to-4","version":"1.0.2","keywords":["apollo","client","graphql","codemod"],"author":{"name":"packages@apollographql.com"},"license":"MIT","_id":"@apollo/client-codemod-migrate-3-to-4@1.0.2","maintainers":[{"name":"benjamn","email":"ben@benjamn.com"},{"name":"jerelmiller","email":"jerelmiller@gmail.com"},{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://www.apollographql.com/docs/react/","bugs":{"url":"https://github.com/apollographql/apollo-client/issues"},"bin":{"apollo-client-codemod-migrate-3-to-4":"dist/cli.js"},"dist":{"shasum":"5bb58171c9846d953e978b4565f8a662ad1ae725","tarball":"https://registry.npmjs.org/@apollo/client-codemod-migrate-3-to-4/-/client-codemod-migrate-3-to-4-1.0.2.tgz","fileCount":77,"integrity":"sha512-KSNq5TpjOYg1r8SqXQGRG5ontVJGQhIIE6L9S7lZsFiUDFSUu97eRv4dKMa6Ncb0KJxmz8sJKPyq0eQEua0ijQ==","signatures":[{"sig":"MEYCIQD4GQogNbb1S6cZSBCcVt0EH7gwN+ATFzD00Jm8kfg7egIhALV8wJUZXJywKwgsX/WMGcXkzzLRKQyEruo9oRKCAKTg","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@apollo%2fclient-codemod-migrate-3-to-4@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":196665},"type":"module","exports":{".":"./dist/index.js","./imports":"./dist/imports.js"},"gitHead":"94ed29cebd5438eee341c5a01e7e9aaa42eea9a8","scripts":{"test":"NODE_OPTIONS='--import ./src/devLoader.js' vitest run","build":"tsc -p tsconfig.build.json","clean":"rimraf dist","prepack":"npm run build","publint":"publint run --strict .","prebuild":"npm run clean","local:cli":"node --import ./src/devLoader.js src/cli.ts","test:watch":"NODE_OPTIONS='--import ./src/devLoader.js' vitest watch"},"_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"repository":{"url":"git+https://github.com/apollographql/apollo-client.git","type":"git","directory":"codegen"},"_npmVersion":"11.5.1","description":"Apollo Client Codemod to migrate from version 3 to version 4","directories":{},"sideEffects":false,"_nodeVersion":"24.6.0","dependencies":{"jscodeshift":"17.3.0"},"_hasShrinkwrap":false,"devDependencies":{"diff":"^8.0.2","vitest":"^1.0.1","typescript":"^5.2.2","@types/node":"20.9.0","@types/jscodeshift":"^17.3.0"},"_npmOperationalInternal":{"tmp":"tmp/client-codemod-migrate-3-to-4_1.0.2_1756312918552_0.1661816884996703","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-06-27T18:19:49.841Z","modified":"2026-01-22T17:29:51.154Z","1.0.0-rc.0":"2025-06-27T18:19:50.150Z","1.0.0-rc.1":"2025-07-18T20:54:56.285Z","1.0.0-rc.2":"2025-08-15T08:37:49.575Z","1.0.0-rc.3":"2025-08-20T21:17:48.323Z","1.0.0":"2025-08-21T18:10:26.146Z","1.0.1":"2025-08-25T18:46:26.172Z","1.0.2":"2025-08-27T16:41:58.733Z"},"bugs":{"url":"https://github.com/apollographql/apollo-client/issues"},"author":{"name":"packages@apollographql.com"},"license":"MIT","homepage":"https://www.apollographql.com/docs/react/","keywords":["apollo","client","graphql","codemod"],"repository":{"url":"git+https://github.com/apollographql/apollo-client.git","type":"git","directory":"codegen"},"description":"Apollo Client Codemod to migrate from version 3 to version 4","maintainers":[{"email":"mail@lenzw.de","name":"phryneas"},{"email":"jerelmiller@gmail.com","name":"jerelmiller"},{"email":"npm@apollographql.com","name":"apollo-bot"},{"email":"npmjs@jro.cc","name":"abernix"}],"readme":"## Using this codemod\n\nYou can run this codemod with the following command:\n\n```bash\nnpx @apollo/client-codemod-migrate-3-to-4 --parser ts file1.ts file2.ts\n```\n\nif you want to only run a specific codemod:\n\n```bash\nnpx @apollo/client-codemod-migrate-3-to-4 --parser ts file1.ts file2.ts  --codemod imports\n```\n\n### Available codemods:\n\nIn the order they will be applied per default if you don't manually specify a codemod:\n\n- `legacyEntryPoints`: Moves imports from old legacy entry points like `@apollo/client/main.cjs` or `@apollo/client/react/react.cjs` to the new entry points like `@apollo/client` or `@apollo/client/react`.\n- `imports`: Moves imports that have been moved or renamed in Apollo Client 4. Also moves types into namespace imports where applicable.\n- `links`: Moves `split`, `from`, `concat` and `empty` onto the `ApolloLink` namespace, changes funtion link invocations like `createHttpLink(...)` to their class equivalents like (`new HttpLink(...)`).\n  Does not change `setContext((operation, prevContext) => {})` to `new ContextLink((prevContext, operation) => {})` - this requires manual intervention, as the order of callback arguments is flipped and this is not reliable codemoddable.\n- `removals`: Points all imports of values or types that have been removed in Apollo Client 4 to the `@apollo/client/v4-migration` entry point. That entry point contains context for each removal, oftentimes with migration instructions.\n- `clientSetup`: Applies the following steps from the migration guide to your Apollo Client setup code\n  - Moves `uri`, `headers` and `credentials` to the `link` option and creates a new `HttpLink` instance\n  - Moves `name` and `version` into a `clientAwareness` option\n  - Adds a `localState` option with a new `LocalState` instance, moves `resolvers`, and removes `typeDefs` and `fragmentMatcher` options\n  - Changes the `connectToDevTools` option to `devtools.enabled`\n  - Renames `disableNetworkFetches` to `prioritizeCacheValues`\n  - If `dataMasking` is enabled, adds a template for global type augmentation to re-enable data masking types\n  - Adds the `incrementalHandler` option and adds a template for global type augmentation to accordingly type network responses in custom links\n  - Removes the `TCacheShape` type argument from all `ApolloClient` usages (types and constructor calls)\n\n### Usage against TypeScript/TSX\n\nThere is some syntax overlap between TypeScript and TypeScript-JSX files, so you might need to run the Codemod against both file extensions sepearately to avoid errors:\n\n```sh\nnpx @apollo/client-codemod-migrate-3-to-4 --parser ts --ignore-pattern=\"*.{tsx,d.ts}\" file1.ts file2.ts\nnpx @apollo/client-codemod-migrate-3-to-4 --parser tsx --ignore-pattern=\"*.ts\" file1.ts file2.ts\n```\n\n### Using the Codemod from a specific PR\n\n```sh\nnpx https://pkg.pr.new/apollographql/apollo-client/@apollo/client-codemod-migrate-3-to-4@12733 --parser ts file1.ts file2.ts\n```\n","readmeFilename":"README.md"}