Another option (Although much more complicated) would be to make the used data attributes configurable in the script.
Maximum flexibility for the end-user but a bit of a PITA for library developers.
Maximum flexibility for the end-user but a bit of a PITA for library developers.