koute / stdweb

A standard library for the client-side Web
Apache License 2.0
3.44k stars 177 forks source link

Road to `0.5.0` #179

Open koute opened 6 years ago

koute commented 6 years ago

[ ] - (breaking change) Switch to upstream TryInto/TryFrom. (This will require removing some blanket impl (e.g. for TryFrom< Value > for Option< T >) and some concrete impls (e.g. From< Array > for Vec< Value > needs to be removed due to Rust's coherence rules); it will also require converting some TryFrom impls into TryInto impls (again - due to coherence rules) and modifying some trait bounds (e.g. in JsSerialize impl for closures from TryFrom into TryInto)) [ ] - (possibly breaking change?) Move webcore into a separate crate. [ ] - (breaking change) IPointerEvent::{pressure, tangential_pressure} should return f32. [ ] - (breaking change) Add MouseButton::Eraser variant. (Rename it to Button6 maybe?) [ ] - (breaking change) Wrap subscription-like types with autodrop wrapper (EventListenerHandle, etc.) [ ] - (should be non-breaking but might be) Switch from a WeakMap to a Map? [ ] - Add support for converting to/from f32. [ ] - (breaking change) Get rid of get_ prefixes from the getters.

(... possibly more ...)

Diggsey commented 6 years ago

Please consider dropping the "stable ID" guarantee for 0.5.0 - we can provide an explicit "stable ID" api for users who need it, and it will remove the core dependency on WeakMap.

Pauan commented 6 years ago

The following APIs are not actually web APIs, they are instead JavaScript APIs:

Therefore they should be moved into core.

I believe the above list is thorough, but I might have missed a couple APIs.

vitiral commented 6 years ago

@Pauan I think you can add SecurityError to that list.

Pauan commented 6 years ago

@vitiral But SecurityError is a DOM error, right? Am I missing something?

nic-hartley commented 5 years ago

Bump -- any ETA on this at all? Especially the first one; it's mildly annoying to keep around extra copies of the same trait, now that it's been standardized.

koute commented 5 years ago

@nic-hartley I have this work started on a private branch, but it's currently on the backburner.

nic-hartley commented 5 years ago

@koute Anything you'd like help with? I've been using stdweb (and cargo web) lately; I'm happy to contribute back.