Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-export wasm-bindgen, js-sys, and event types from web-sys #642

Merged

Conversation

lukechu10
Copy link
Member

Supersedes #568

This adds a re-export in sycamore-web of wasm-bindgen, js-sys, and only the event types from web-sys which are used from within Sycamore.

The reason why we don't re-export the entirety of web-sys is because all of the APIs are behind feature flags so it is very likely that the downstream user of Sycamore will need to add web-sys as a dependency anyways.

blainehansen and others added 6 commits January 30, 2023 13:49
web-sys relies very haevily of feature flags to determine which parts of the API is compiled. Sycamore itself enables a subset of these flags but in many cases, the downstream user will need to add web-sys anyways should they wish to use an API not enabled by Sycamore.
@lukechu10 lukechu10 added C-enhancement Category: new feature or improvement to existing feature A-ergonomics Area: API ergonomics labels Oct 20, 2023
@lukechu10 lukechu10 enabled auto-merge (squash) October 20, 2023 15:45
@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (bc25aae) 61.19% compared to head (71ba06a) 61.19%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #642   +/-   ##
=======================================
  Coverage   61.19%   61.19%           
=======================================
  Files          55       55           
  Lines        9022     9022           
=======================================
  Hits         5521     5521           
  Misses       3501     3501           
Files Coverage Δ
packages/sycamore-web/src/lib.rs 20.00% <ø> (ø)

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

@lukechu10 lukechu10 merged commit e49c74c into sycamore-rs:master Oct 20, 2023
11 of 12 checks passed
@lukechu10 lukechu10 deleted the blainehansen-convenience-reexports branch October 20, 2023 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ergonomics Area: API ergonomics C-enhancement Category: new feature or improvement to existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants