There were no restrictions on immigration prior to the ones I outlined. At the time 14A was passed, there were no illegal aliens.
The interpretation of the “subject to the jurisdiction” clause of 14A accepted by the Supremes in 1898 was that it referred to those excluded from jus solis by common law. Which basically were diplomats and their families and members of invading armies.
Wong did not specifically address children of illegal aliens, as Wong was the child of legal residents. Until quite recent decades there weren’t enough illegal aliens in the country for the citizenship of their children to be a big deal.
I am not going to look it up, I never do, but the idea that there were no restrictions on citizenship or aliens before 1865 is simply not true.
There were also alien and sedition acts passed either in the late 1700s or early 1800s. Lots of controversy but I know they were passed. Also know people were prosecuted.
We are talking about citizenship. That was not just handed out to anyone who came to the country.