thi-ng / umbrella

⛱ Broadly scoped ecosystem & mono-repository of 199 TypeScript projects (and ~180 examples) for general purpose, functional, data driven development
https://thi.ng
Apache License 2.0
3.41k stars 151 forks source link

Use hash from global $fx object #426

Closed jffaust closed 1 year ago

jffaust commented 1 year ago

The latest version of the fxhash snippet (now called project SDK) no longer exposes a global fxhash variable. Instead, we should use $fx.hash (See Usage section in documentation).

I added a check to support the new recommended method and kept the old one for backward compatibility.

Once this is merged, I'd be happy to send a PR to update the tpl-umbrella-fxhash project to use the new SDK (looks to be quite outdated, as the snippet in the index.html does not support fxparams).

jffaust commented 1 year ago

@postspectacular can you take a look at my PR? I'd love to be able to quickly fix this 😄

postspectacular commented 1 year ago

thanks @jffaust - I wasn't aware they've changed it meanwhile (even though I was aware of the new $fx object and submitted a PR to their repo myself months ago...). Will release asap (tomorrow AM, late here...)

postspectacular commented 1 year ago

@jffaust You're lucky - already releasing right now, but it will take ~10 mins until all done... let me know how it goes, please...

Ps. No biggie, but also still had to add the TS ambient declaration for the new $fx object: 171b717d8