Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename packages #219

Closed
wants to merge 6 commits into from
Closed

Rename packages #219

wants to merge 6 commits into from

Conversation

paul-sachs
Copy link
Collaborator

@paul-sachs paul-sachs commented Oct 16, 2023

Renaming connect-query to connect-react-query and protoc-gen-connect-query to protoc-gen-connect-react-query. This makes it clear that these packages still very much depend on running in a react environment.

These changes will be published as v1

Copy link
Member

@timostamm timostamm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we're missing a couple of bits, see comments below. Should the extension for generated files remain _connectquery.ts?

examples/react/basic/package.json Outdated Show resolved Hide resolved
@@ -1,5 +1,5 @@
{
"name": "@connectrpc/protoc-gen-connect-query",
"name": "@connectrpc/protoc-gen-connect-react-query",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we rename the npm binary as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right, yeah, good catch.

@paul-sachs
Copy link
Collaborator Author

Should the extension for generated files remain _connectquery.ts?

That's a good question. I think it stands to reason that it should be _connectreactquery.ts, even it makes me hurt a little inside.

@paul-sachs
Copy link
Collaborator Author

@timostamm how do you feel about using _cq_react.ts as a file ending instead of _connectreactquery.ts postfixes? I kinda like keeping the postfix short since we're already prefixed with the service and the method.

@paul-sachs
Copy link
Collaborator Author

paul-sachs commented Dec 8, 2023

Closing this until we can discuss what renaming would cost us, regarding users migrating to new packages.

@paul-sachs paul-sachs closed this Dec 8, 2023
@paul-sachs paul-sachs deleted the psachs/rename-packages branch December 15, 2023 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants