I have come across two similar definitions of *primary fields* in conformal field theory. Depending on what I am doing each definition has its own usefulness. I expect both definitions to be compatible but I can't seem to be able to show it. By compatible I mean definition 1 $\iff$ definition 2. I will write both definitions in the two-dimensional case and restricting to holomorphic transformations.

Def #1 from D'Francesco et al's CFT: A field $f(z)$ if it transforms as $f(z) \rightarrow g(\omega)=\left( \frac{d\omega}{dz}\right)^{-h}f(z), h\in\mathbb{R}$ under an infinitesimal conformal transformation $z \rightarrow \omega(z)$.

Def #2 from Blumenhagen et al's Intro to CFT: A field $f(z)$ is primary if it transforms as $f(z) \rightarrow g(z)=\left( \frac{d\omega}{dz}\right)^{h}f(\omega), h\in\mathbb{R}$ under an infinitesimal conformal transformation $z \rightarrow \omega(z)$.