Toronto Public Library workers have ratified a four-year collective agreement that includes modest annual wage hikes and some measures to address precarious employment, the union says.

“Our members wanted and needed a collective agreement that addressed the unique needs of our workforce,” Maureen O’Reilly, president of CUPE Local 4948, said in a news release.

“Half of our members are precariously employed, and three-quarters are women, and this agreement is a good — albeit small step in the right direction.”

A deal was reached after a marathon round of bargaining last weekend with a looming strike/lockout deadline.

The Toronto Public Library has 2,000 employees who operate 100 branches across the city.