Skip to content

Commit

Permalink
notes
Browse files Browse the repository at this point in the history
  • Loading branch information
eed3si9n committed Jun 30, 2017
1 parent 34c28cf commit 665929f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Migration.md

This file was deleted.

31 changes: 31 additions & 0 deletions notes/1.0.0.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
### Features, fixes, changes with compatibility implications

- IO uses the package name `sbt.io`, but it will be imported under `sbt` in sbt/sbt.
- `Path.relativizeFile(baseFile, file)` is renamed to `IO.relativizeFile(baseFile, file)`.
- `PathFinder.x_!(mapper)` moved to `def pair` on `PathFinder`.
- `PathFinder`'s `***` method is moved to `allPaths` method.

### Improvements

- `Path.directory` and `Path.contentOf` are donated from sbt-native-packager #38 by @muuki88.
- `WatchService` that abstracts `PollingWatchService` and Java NIO. #47 by @Duhemm on behalf of The Scala Center.
- Adds variants of `IO.copyFile` and `IO.copyDirectory` that accept `sbt.io.CopyOptions()`. See below for details.

### CopyOptions

sbt IO 1.0 add variant of `IO.copyFile` and `IO.copyDirectory` that accept `sbt.io.CopyOptions()`.
`CopyOptions()` is an example of pseudo case class similar to the builder pattern.

```scala
import sbt.io.{ IO, CopyOptions }

IO.copyDirectory(source, target)

// The above is same as the following
IO.copyDirectory(source, target, CopyOptions()
.withOverwrite(false)
.withPreserveLastModified(true)
.withPreserveExecutable(true))
```

sbt/io#53 by @dwijnand

0 comments on commit 665929f

Please sign in to comment.