Small breaking change: moved 'document' factory methods