Skip to content

fix: use named import for js-yaml to support v5 - #6

Merged
reatlat merged 1 commit into
mainfrom
fix/js-yaml-v5-named-import
Aug 2, 2026
Merged

reatlat merged 1 commit into
mainfrom
fix/js-yaml-v5-named-import

Conversation

@freshjuice-bot

@freshjuice-bot freshjuice-bot Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

What: config/dataExtensions.js imports js-yaml with a default import. js-yaml v5 removed the default export, so the dependabot bump to 5.2.2 (PR #4) fails the build with "The requested module 'js-yaml' does not provide an export named 'default'". This switches to the named load import, which works on both 4.x and 5.x.

Verified locally on Node 24.18.1: build passes with js-yaml 5.2.2 installed and with the current 4.x version. No version bump here, just the import fix, so PR #4 becomes mergeable once this lands.

@reatlat

Proposed by the automated FreshJuice repo scan, run by Juicy (FreshJuice Bot app).

js-yaml v5 removed the default export. The default import in
config/dataExtensions.js breaks on v5, and the dependabot bump to
5.2.2 fails the build. The named load import works on both 4.x and 5.x.
@reatlat
reatlat merged commit ea5461d into main Aug 2, 2026
1 check passed
@freshjuice-bot
freshjuice-bot Bot deleted the fix/js-yaml-v5-named-import branch August 3, 2026 00:03
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