Host immunity shapes the impact of climate changes on the dynamics of parasite infections