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

Read rawBuffer for BitArray body instead of buffer #15

Merged
merged 1 commit into from
Mar 29, 2025

Conversation

ghivert
Copy link
Contributor

@ghivert ghivert commented Mar 21, 2025

Hi!

Currently, when on Gleam 1.9 and higher, reading .buffer on BitArray displays a warning.
That PR comes to fix that, but ensures a compatibility with old Gleam versions, so everyone can safely upgrade to next versions of gleam_fetch, no matter which version of Gleam they're running on.

As a matter of information, code has been tested on Gleam 1.9.1 and Gleam 1.6.0.

As I wasn't aware if the change should be in the Changelog or not, I did not update it (because it's a silent change for users).

Copy link
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

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

Thanks! We could remove the runtime check and mandate Gleam >= 1.9?

@ghivert ghivert force-pushed the fix/bit-array-body branch from 95b2ef7 to ad7e0fd Compare March 24, 2025 08:41
@ghivert ghivert force-pushed the fix/bit-array-body branch from ad7e0fd to e12b1b5 Compare March 24, 2025 08:59
@ghivert ghivert requested a review from lpil March 24, 2025 09:00
@ghivert
Copy link
Contributor Author

ghivert commented Mar 24, 2025

Sure, that's done! I wasn't 100% sure on how you wanted to handle backwards-compatibility, but maintaining only the latest version of Gleam seems perfect to me! 🙂

Copy link
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

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

Thank you!!

@lpil lpil merged commit f0f393d into gleam-lang:main Mar 29, 2025
1 check passed
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