use ~ syntax in composer.json dependencies

would also be good to have a tag for this.