Skip to content

Fix FFI compatibility with gleam_stdlib export changes#14

Merged
tynanbe merged 3 commits intotynanbe:mainfrom
jtdowney:fix-stdlib-dict
Feb 19, 2026
Merged

Fix FFI compatibility with gleam_stdlib export changes#14
tynanbe merged 3 commits intotynanbe:mainfrom
jtdowney:fix-stdlib-dict

Conversation

@jtdowney
Copy link
Contributor

The latest stdlib reworked Dicts quite a bit, and the JS FFI in shellout was relying on internals to function. This PR updates the JS FFI to use the API's documented in the externals guide. The error I was getting was:

An unexpected error occurred:

  //js(TypeError: map.get is not a function)

Update JavaScript FFI to use new export naming conventions and fix issue
with accessing Dict in the latest stdlib.
@tynanbe
Copy link
Owner

tynanbe commented Jan 26, 2026

Thanks for your contribution!

I'll look further at this soon, hopefully. I think we'll need to update the stdlib dep req too.

@jtdowney
Copy link
Contributor Author

The dict.get was available in the stdlib version used; I ran this code on the pinned deps. The rest of the changes will require updating the gleam version in CI to something more recent.

@tynanbe
Copy link
Owner

tynanbe commented Jan 26, 2026

Oh right, great point. Thanks.

@tynanbe tynanbe merged commit 535a7ac into tynanbe:main Feb 19, 2026
1 check passed
@tynanbe
Copy link
Owner

tynanbe commented Feb 19, 2026

Thanks again~

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

Comments