Sign up for our special edition newsletter to get a daily update on the coronavirus pandemic.

ALBANY — Facing the threat of a lawsuit from New York, Rhode Island Gov. Gina Raimondo repealed a controversial executive order penalizing New Yorkers for traveling into the state mandating that they self-quarantine for 14 days amidst the coronavirus outbreak.

The new order was revised and signed late Saturday night to say “any person coming to Rhode Island from another state for a non-work-related purpose must immediately self-quarantine for 14 days.”

The restriction does not apply to public health, public safety, or healthcare workers.

“I spoke to the governor of Rhode Island yesterday, and we had a conversation. I don’t think the order was called for, I don’t believe it was legal,” Gov. Andrew Cuomo told reporters during an Albany press briefing.

“I don’t believe it was neighborly. I understood the point but I think there were different ways to do it,” he added.

Saturday evening Cuomo called Rhode Island’s order “unconstitutional” and a “reactionary policy” he was willing to sue over.

But Riamondo’s office defended the initial move Sunday, citing New York’s high COVID-19 case count.

“The Governor’s top priority is keeping Rhode Islanders safe. New York is a hotspot of this epidemic, and as a matter of public safety, it was critical to ensure travelers from New York are self-quarantining to avoid unnecessary spread,” Josh Block, Riamondo’s press secretary told The Post.

“That said, the Governor has said all along that she is taking a data-driven approach, and this situation is constantly evolving. As other cities and states across the country are now seeing a spike in cases, she signed a new Executive Order yesterday expanding the quarantine requirement to all out-of-state travelers.”

Meanwhile the Centers for Disease Control and Prevention issued a travel advisory Saturday urging those from New York, New Jersey and Connecticut to cancel all “non-essential travel.”

“This is not a lockdown. It is a travel advisory to be implemented by the states,” Cuomo said.

“I support what the president did, because it affirms what we’ve been doing,” he insisted.

New York has the most recorded coronavirus cases in the United States, with the total number of positive cases statewide reaching 59,513, and 965 deaths.