In 7.1.0, the _transform handler would return early when options.states is set and file.s3.state was not found in options.states.
In the latest version, there isn't a check to see if states is passed in. So it ends up being an empty array that's used to create an allowedStates that is also now empty. There should be a check to see if allowedStates has values included with the allowedStates.has(file.s3.state) check before deciding to return early.