Apollo CLI v3
WIP PR for CLI v3 (and majors for other related packages as well).
The primary purpose of these versions is to get these packages on to current versions of node and graphql. I don't intend to be adding any features, this is mostly for project health and compatibility. Particularly the lack of graphql 16 support is a specific pain point for users which I intend to address.
Please read! This project is probably no longer interesting to you. We fully intend to sunset it once we have a viable replacement in place for each of the features.
- If you are using codegen, we highly recommend migrating to
graphql-code-generator. It's proven to be a superior tool to the codegen offering here. We use it ourselves at Apollo and have had a great experience with it. If codegen is the only reason you're using theapolloCLI, consider this the kick you needed to abandon this tool! - For interactions with Apollo Studio, the
roverCLI is the successor to this project. @EverlastingBugstopper and others have put a lot of love into that tool and it shows. Please use it instead! I am aware there may be command(s) which haven't made it over there yet, and for that reason this CLI continues to exist. - I hope to do away with
apollo-env. If thefetchy bits are interesting to you for some reason, it will be helpful for me to hear about that on this PR. The rest is (was?) just node polyfills which shouldn't be applicable anymore. - ...more to come
TODO:
- [ ] Update CHANGELOG.md* with your change (include reference to issue & this PR)
- [ ] Make sure all of the significant new logic is covered by tests
- [ ] Rebase your changes on master so that they can be merged easily
- [ ] Make sure all tests and linter rules pass
*Make sure changelog entries note which project(s) has been affected. See older entries for examples on what this looks like.
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
🦋 Changeset detected
Latest commit: 3c9f8061e38dde325255dba399b87c19b5447e70
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 9 packages
| Name | Type |
|---|---|
| apollo | Major |
| apollo-codegen-core | Major |
| apollo-codegen-flow | Major |
| apollo-codegen-scala | Major |
| apollo-codegen-swift | Major |
| apollo-codegen-typescript | Major |
| apollo-graphql | Major |
| apollo-language-server | Major |
| @apollographql/apollo-tools | Major |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
@trevor-scheer what are the alternatives for codegen with swift? Afaik graphql-code-generator doesn't support that use case.
@danilobuerger we're releasing brand new Swift based codegen functionality shortly, with Apollo iOS 1.0.
Is this still being worked on ?
@PowerKiKi unfortunately it is not. I know this project is not in a good state, but I don't believe Apollo intends to prioritize any additional work on this repo.
At this point, if you absolutely still need functionality from this repository (which isn't offered by rover) I'd recommend forking it and making the necessary changes. As you can tell by this (almost certainly bitrotted) PR, this isn't a trivial task though certainly doable and there's plenty of help from TypeScript. This PR is probably a good jumping off point but I hardly recall the contents and it's quite dated at this point.