Skip to content

Conversation

@juleswritescode
Copy link
Collaborator

No description provided.

@juleswritescode juleswritescode changed the title feat: feat: prepare for renaming to postgres-language-server Oct 19, 2025
Copy link
Collaborator

@psteinroe psteinroe left a comment

Choose a reason for hiding this comment

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

maybe we can get rid of the constants and do it dynamically? we dont have to commit to certain versions then…

);

const url = newNameAvailable
? `https://github.com/supabase-community/postgres_lsp/releases/download/${version}/${CONSTANTS.newPlatformSpecificReleasedAssetName}`
Copy link
Collaborator

Choose a reason for hiding this comment

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

the repo name is postgres-language-server

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 yes, you're right. (JFYI the old link also works)

const url = `https://github.com/supabase-community/postgres_lsp/releases/download/${version}/${CONSTANTS.platformSpecificReleasedAssetName}`;
const newNameAvailable = semver.gte(
version,
EARLIEST_CROSS_PUBLISHING_RELEASE
Copy link
Collaborator

Choose a reason for hiding this comment

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

can't we run a HEAD request and really just try if the new binary is there, else use the old one? not a huge fan of the constant

@juleswritescode
Copy link
Collaborator Author

can't we run a HEAD request and really just try if the new binary is there, else use the old one? not a huge fan of the constant

great idea! I made it a bit simpler.

We'll now check if the new binary is available and if so add a little "please use the other binary name" to the existing "your postgrestools version is outdated" message.

Note: Users that are on the most recent version will only get this message in about 3 versions.

I'll test this once the new assets are released on npm etc. and then I'll release it 👍🏻

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.

3 participants