Skip to content

Conversation

JordanMartinez
Copy link
Contributor

Description of the change

Backlinking to purescript/purescript#4244

Migrates FFI to ES modules


Checklist:

  • Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "- Made a change (#0000)")
  • Linked any existing issues or proposals that this pull request should close
  • Updated or added relevant documentation
  • Added a test for the contribution (if applicable)

@JordanMartinez JordanMartinez added type: breaking change A change that requires a major version bump. purs-0.15 A reminder to address this issue or merge this PR before we release PureScript v0.15.0 labels Mar 22, 2022
@JordanMartinez
Copy link
Contributor Author

🏓 @thomashoneyman

@thomashoneyman
Copy link
Contributor

I don’t know how to fix this test. JSDOM seems to have issues with XPath (from reading through their bug tracker). Maybe we disable it for now and open an issue unless perhaps @bbarker knows what’s going wrong

@JordanMartinez
Copy link
Contributor Author

This issue happened last time we were updating things for v0.14.0. I can't recall how we resolved it then, but we may have just merged it.

@thomashoneyman
Copy link
Contributor

JSDOM was introduced to help with that:
ada7d6e

Personally I don’t feel like it’s a good use of time to try and fix this unless it’s quick and direct. I’d rather wrap around if we have time. We can disable tests in the meantime

`global` isn't assigned until all modules are imprted
By wrapping it in an async/await block,
we defer importing Test.Main
until after XPathResult hsa been defined
@thomashoneyman thomashoneyman merged commit b9d25c6 into purescript-web:master Mar 23, 2022
@thomashoneyman thomashoneyman deleted the es-modules-libraries branch March 23, 2022 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
purs-0.15 A reminder to address this issue or merge this PR before we release PureScript v0.15.0 type: breaking change A change that requires a major version bump.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants