# earthdatalogin 0.0.5

* `edl_download()`, `edl_search()`, and `edl_netrc()` no longer overwrite
  stored credentials. Previously, calling these without arguments rewrote the
  `.netrc` file with the bundled default credentials, clobbering credentials a
  user had already set and causing 401 errors. Now the netrc is only
  (re)written when credentials are supplied explicitly or when no earthdata
  netrc exists yet (#27, #13).

* `edl_extract_urls()` (and `edl_search(parse_results = TRUE)`) now handle
  granules with multiple data assets, e.g. one GeoTIFF per band. Previously
  these errored with "Result must be length 1" (#15).

* `collections_fetch()` is deprecated in favor of `rstac::collections_fetch()`,
  which now provides this functionality upstream (#17).

# earthdatalogin 0.0.4

* Tests no longer attempt network access on CRAN. The `netcdf access` test now
  skips on CRAN and when offline, and the `get_nasa_stac_url()` error-path test
  is mocked so it runs without network access. This resolves the CRAN check
  ERRORs introduced when the protected NetCDF download ran on CRAN machines.

# earthdatalogin 0.0.3

* Bugfix for edl_s3_token() (#21), which now requires cookies

* Adds support for listing NASA STAC catalogs with `list_nasa_stacs()` and
  retrieving specific catalog URLs with `get_nasa_stac_url()` (#19).

* adds experimental support for CMR search with `edl_search()`. Does not support 
  all use cases, STAC-based search is still recommended.

* Adds `collections_fetch()` for working with the results of a `collections()`
  query using the [rstac](https://brazil-data-cube.github.io/rstac/) package. The 
  NASA STAC API by default only return 10 collections for a given catalogue; 
  this function allows you to retrieve them all (#11).
  
* Adds `edl_stac_urls()` for retrieving urls from an `rstac` items list.

* bugfix for default_auth() behavior if credentials are not supplied.

# earthdatalogin 0.0.2

* Adds support for netrc-based authentication. `edl_set_token()` works only
  outside of `us-west-2`, `edl_s3_token()` works only inside `us-west-2`,
  netrc works anywhere.  Additionally, netrc-based auth does not to be 
  deactivated when accessing non-earthdatalogin URLs.  
  
  - `edl_netrc()` sets up netrc-based access.
  - `edl_unset_netrc()` reverses this, but should rarely be needed.
  
  Using other authentication methods in interactive mode will now prompt
  users to switch to `edl_netrc()` as the default.  `edl_download()` will 
  also use netrc auth by default for greater portability.
  
* `gdal_cloud_config()` sets recommended settings for GDAL cloud configuration, 
  see <https://gdalcubes.github.io/source/concepts/config.html#recommended-settings-for-cloud-access>.
  By default, `edl_netrc()` will automatically configure this as well.

* Because the `gdalcubes` package does not read environmental variables set by 
  `edl_netrc()` and other authentication methods, a new helper function,
  `with_gdalcubes()` will set the gdal configuration for the gdalcubes package.
  
* Documentation is also updated. 


# earthdatalogin 0.0.1

* Initial CRAN submission.
