In case anyone's curious about California's law on this:
https://leginfo.legislature.ca.gov/faces/codes_displaySectio...
This was changed in 2019. Employers must provide a salary band, but it can be after an initial interview, and is not required in job postings.
The same code prevents employers from directly asking a candidate about their salary history, or relying on salary history to make a hiring decision.
(Employers can ask about a candidate's salary expectation, though. And the law doesn't say anything about benefits or non-salary compensation.)