Skip to content

Commit e0b1aab

Browse files
Merge pull request #465 from apollographql/main
Create a new pull request by comparing changes across two branches.
2 parents bac6bce + 0a0298f commit e0b1aab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/codemods/ac2-to-ac3/imports.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ export default function transformer(file, api) {
1515
renameOrCreateApolloClientImport();
1616

1717
moveSpecifiersToApolloClient("react-apollo");
18+
moveSpecifiersToApolloClient("@apollo/react-common");
1819
moveSpecifiersToApolloClient("@apollo/react-hooks");
20+
moveSpecifiersToApolloClient("apollo-cache");
1921
moveSpecifiersToApolloClient("apollo-cache-inmemory");
2022
moveSpecifiersToApolloClient("apollo-link");
2123
moveSpecifiersToApolloClient("apollo-link-http");
@@ -28,6 +30,7 @@ export default function transformer(file, api) {
2830
renameImport("@apollo/react-hoc", "@apollo/client/react/hoc");
2931
renameImport("@apollo/react-ssr", "@apollo/client/react/ssr");
3032
renameImport("@apollo/react-testing", "@apollo/client/testing");
33+
renameImport("apollo-utilities", "@apollo/client/utilities");
3134

3235
renameDefaultSpecifier(getImport("apollo-link-schema"), "SchemaLink");
3336
[

0 commit comments

Comments
 (0)