Skip to content

Conversation

@kpmcdowellmo
Copy link

Hello Andrea 👋,

About 2 years ago, I submitted a PR to upgrade to uhtml4. At the time you suggested we hold off because uhtml/hydro was in progress.

Since then uhtml5 has released with some cool new features, and it seems like the direction has changed, so I figured now might be the time to see about bringing it in here.

This PR attempts to do the following:

  • Upgrade to uhtml5
  • Updates dependencies (moves coveralls to coveralls-next (re: GH Issue)
  • Adds unit test for formAssociated static to get code coverage to 100%
  • Refactors unit test to remove cjs imports and use dynamic esm import equivalent
  • Adds additional exports for new signals from uhtml5

Coverage and build size after changes:

image

It looks like uhtml5 drops cjs support, which makes sense since that is the direction everything is going/has gone. I didn't see that mentioned explicitly in the uhtml5 docs, but it seems like since v4 the cjs build has been dropped, so I apologize in advance if I misread the intention there.

Please let me know if there's any improvements I can make here, or if this isn't the direction you had in mind.

Thanks!

Keven McDowelland others added 4 commits January 26, 2024 10:27
- Updated dependencies that were outdated. Major version upgrades include rollup and ascjs. - Updated uhtml to v4.4.7. - Added DocumentFragment to globalThis for tests.
- Looks to update uce to use uhtml5. - Uhtml5 looks to drop cjs support. ESM is the thing nowadays, so this looks to align with that - Adds unit test for formAssociated static to achieve 100% coverage - Moves coveralls to coveralls-next re: nickmerwin/node-coveralls#331
- Exports new signal utilities, etc from uhtml 5 from uce
Sign up for freeto 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.

1 participant

@kpmcdowellmo