Merge branch 'develop/4.0' into 'master'
As mentioned here, some very useful changes were lost from develop/4.0. This branch introduces these changes into master.
They're breaking changes, so a major version update is required.
We can alternatively branch off master into develop/6.0 and merge these changes there but I fear the same loss may happen again this way.
Checking in on this PR since this project seems unattended atm. Maybe I can propose a smaller PR to be merged? I was originally interested in #230 in particular so it might be good to start there. If there's no interest I'll just close this PR and stick with my forked master.
Additionally: I'd happily sponsor this project if offered through GitHub Sponsors. Please consider enabling it for this repo :)
Closing in favor of #305