Both `~=1.24.0` (compatible release, allows >=1.24.0, <1.25.0) and `>=1.24.0,<2.0.0` are acceptable, though they define slightly different ranges. The `~=` operator is more restrictive (minor version only), while the range specifier allows any version below 2.0.0.