coursier v2.0.7 Release Notes

Release Date: 2020-11-16 // over 3 years ago
  • Optimization

    Memo-ize classes that can be created at a high rate

    coursier.core.{Dependency, Module, Publication} are now memo-ized (using weak references). This can lower the amount of duplicate instances of these objects, and lower GC pressure.

    โž• Added in #1900, thanks to @jtjeferreira.

    ๐Ÿ›  Fixes

    Un-escape characters in file URLs

    When using local repositories with special characters in their paths, such as spaces, escaped characters were not properly handled, which created spurious not-found errors.


Previous changes from v2.0.6

  • ๐Ÿ›  Fixes

    Persisted checksums written outside of the coursier cache

    ๐Ÿš€ Persisted checksums were added in 2.0.5. These could mistakenly be written outside of the coursier cache, under ~/.ivy2/local for example. This release fixes that.

    ๐Ÿ›  Fixed in #1909, thanks to @oyvindberg.

    Changing artifacts in cs get command

    The cs get command allows to download things via the coursier cache:

    $ cs get https://repo1.maven.org/maven2/io/get-coursier/coursier-cli_2.12/maven-metadata.xml
    ~/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/get-coursier/coursier-cli_2.12/maven-metadata.xml
    

    ๐Ÿš€ If a URL it is passed ends with ?changing=true, cs get should assume the artifact is changing (and may check for updates if the last check is older than the TTL). This release includes a fix for that. Prior to it, these were not assumed to be changing, so were not checked for updates.

    ๐Ÿ›  Fixed in #1907, thanks to @martijnhoekstra.