Skip to content

Conversation

@SammyWhamy
Copy link

These changes fix the string-store library by only using specific ranges of valid Unicode characters to encode. The ranges were chosen pretty much arbitrarily, just based on the biggest ranges that add together to 2^16.

This is a breaking change for existing encoded strings, as the characters used to encode are now different.

I removed some lines from the test cases that checked string equality, as right now these are just 'random' codepoints, not 1:1 with the int value.

@SammyWhamy SammyWhamy requested a review from kyranet as a code owner November 7, 2025 00:54
@SammyWhamy SammyWhamy requested a review from kyranet November 21, 2025 17:54
kyranet
kyranet previously approved these changes Nov 23, 2025
@kyranet kyranet requested review from favna and vladfrangu November 24, 2025 23:58
@kyranet
Copy link
Member

kyranet commented Nov 25, 2025

@sapphiredev pack this

@sapphiredev
Copy link

sapphiredev bot commented Nov 25, 2025

Heya @kyranet, I've started to run the deployment workflow on this PR at 7da5c8b. You can monitor the build here!

@sapphiredev
Copy link

sapphiredev bot commented Nov 25, 2025

Hey @kyranet, I've released this to NPM. You can install it for testing like so:

npm install @sapphire/fetch@pr-935

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