Skip to content

Conversation

@LaurensRietveld
Copy link
Contributor

Description

This fixes #879 . Fixed this by breaking the circular chain, ensuring that we don't import the ./index.js file in other files.
I did not include tests, as this depends on the node version, and whether the package runs in ESM mode

Checklist:

@github-actions
Copy link

github-actions bot commented Dec 8, 2023

This PR is stale because is has been open for 90 days with no activity.

@github-actions github-actions bot added the stale label Dec 8, 2023
@LaurensRietveld
Copy link
Contributor Author

not stale, this is still an issue, and this PR still fixes it

@cjbarth
Copy link
Collaborator

cjbarth commented Dec 8, 2023

The bot is just doing its job. We haven't forgotten about this. We're trying to work through getting node-saml released with the updated version of xml-crypto before we tackle this. Thank you for pinging this to keep it alive.

@github-actions github-actions bot removed the stale label Dec 9, 2023
@kamronbatman
Copy link

kamronbatman commented Feb 6, 2024

xml-crypto v6 came out, does that have the fix? (I am not sure what fix you are waiting for, so I am sorry for the ignorance).

@cjbarth
Copy link
Collaborator

cjbarth commented Feb 6, 2024

Yea, that contains part of the fix. I'm working on getting it into node-saml. Once that comes out, then we're on to this one. Should be soon; just waiting on some PRs to be signed off on.

@codecov
Copy link

codecov bot commented Mar 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.42%. Comparing base (430d94e) to head (595c6cc).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #880   +/-   ##
=======================================
  Coverage   64.42%   64.42%           
=======================================
  Files           4        4           
  Lines         149      149           
  Branches       37       37           
=======================================
  Hits           96       96           
  Misses         30       30           
  Partials       23       23           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cjbarth
Copy link
Collaborator

cjbarth commented Mar 6, 2024

@LaurensRietveld , this PR is the next in line to get landed. Can you think of anyway to test this to make sure that the problem doesn't re-appear?

@LaurensRietveld
Copy link
Contributor Author

@LaurensRietveld , this PR is the next in line to get landed. Can you think of anyway to test this to make sure that the problem doesn't re-appear?

Good to hear!

I thought about testing this properly, but think that's intricate: my problem only occurs when 1) there is a circular dependency, and 2) when importing node-saml from an ESM module.
Automating this is tricky.

@cjbarth cjbarth merged commit a06ff72 into node-saml:master Mar 26, 2024
@cjbarth cjbarth added the bug label Mar 26, 2024
AlbertPangilinan pushed a commit to Foxquilt/foxden-saml-passport that referenced this pull request Sep 24, 2025
Eric-G-Ji pushed a commit to Foxquilt/foxden-saml-passport that referenced this pull request Sep 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Importing passport-saml fails on node v20.6.0

3 participants