internal/v4: implement changes/published

As recently added to the specification.

Done. Added a bunch more tests for error conditions that I'd forgotten to do.