cheeaun,
@cheeaun@mastodon.social avatar

Kinda mind-blown. When @neet 's masto.js migrated to JS Proxy API (https://github.com/neet/masto.js/releases/tag/v6.0.0), I was like "cool, this make so much sense".

But never thought that I would be coding it this way, and it works ✨ Don't have to wait for next/newer versions of masto.js when there are API endpoints/parameter/method changes. It lacks types but fine for me.

#MastoDev

estebanborai,
@estebanborai@hachyderm.io avatar

@cheeaun @neet Nice font!

cheeaun,
@cheeaun@mastodon.social avatar
silverpill,
@silverpill@mitra.social avatar

@cheeaun @neet

>supports('@pixelfed/trending')

Oh interesting, how it works? Is feature detection included in masto.js library?

cheeaun,
@cheeaun@mastodon.social avatar

@silverpill oh, that's a function I wrote around detecting the platform from the version string, mapped to specific features supported. It's more like browser UA string detection instead of feature detection.

silverpill,
@silverpill@mitra.social avatar

@cheeaun There is a FEP which describes feature detection mechanism, but I don't know how many server developers intend to implement it: https://codeberg.org/fediverse/fep/src/branch/main/fep/9fde/fep-9fde.md (by @nikclayton)

cheeaun,
@cheeaun@mastodon.social avatar

@silverpill @nikclayton oh I'm aware of it. While waiting for that, the function I wrote is a hopefully-forward-compatible wrapper in disguise 🙈

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • Leos
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • everett
  • InstantRegret
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • modclub
  • kavyap
  • GTA5RPClips
  • cubers
  • JUstTest
  • osvaldo12
  • tacticalgear
  • Durango
  • khanakhh
  • ngwrru68w68
  • provamag3
  • anitta
  • tester
  • cisconetworking
  • ethstaker
  • megavids
  • normalnudes
  • lostlight
  • All magazines