Releases: com-lihaoyi/os-lib
Releases · com-lihaoyi/os-lib
0.11.1
Merged Pull Requests
Full Changelog: 0.11.0...0.11.1
0.11.0
Merged Pull Requests
- Update acyclic to 0.3.13 by @scala-steward in #304
- Fix expecty macro by @pawelsadlo in #307
- Update jna to 5.15.0 by @scala-steward in #309
- Update acyclic to 0.3.15 by @scala-steward in #313
zip
andunzip
API by @lihaoyi in #317
Full Changelog: 0.10.7...0.11.0
0.10.7
Merged Pull Requests
- Allow even more dynamic instrumentation of
pwd
viaos.dynamicPwdFunction
by @lihaoyi in #299 - Allow multiple segments in Stringliterals by @pawelsadlo in #297
- Update error messages to allow better error messages for invalid path segments by @lihaoyi in #301
- Make use of concise literal paths everywhere by @lihaoyi in #302
- Update mima comparison versions by @lihaoyi in #303
New Contributors
- @pawelsadlo made their first contribution in #297
Full Changelog: 0.10.6...0.10.7
0.10.7-M2
Allow multiple segments in Stringliterals (#297) This PR adds support for multi-segment literal strings. for example ```scala val path = root / "foo/bar" val qux = "qux" val path = root / "foo/bar" / "baz" / qux val path = root / "foo/bar" / "baz/qux" ``` it also parses `..` segments from literal as `os.up` enabling syntax like: ```scala val path = root / "foo" / ".." / "bar" // equivalent to `root / "foo" / os.up / "bar"` val path = root / "foo" / "../bar" // equivalent to `root / "foo" / os.up / "bar"` ``` non-canonical paths used in literals result in compile-time errors, suggesting usage of canonical paths or removing path segment, eg. ```scala val path = root / "foo/./bar" //suggests "foo/bar" val path = root / "foo//bar" //suggests "foo/bar" val path = root / "//foo//bar/./baz" //suggests "foo/bar/baz" val path = root / "" //suggests removing the segment val path = root / "." //suggests removing the segment val path = root / "/" //suggests removing the segment val path = root / "//" //suggests removing the segment val path = root / "/./" //suggests removing the segment ``` Note: Its not usable in os-Lib itself, due to the fact that it would lead to macro expansion in the same compilation unit as its definition. @lihaoyi there is a little bit of hacking involved: 1. There is a default implicit conversion not being a macro to be used within os library, without this we would have to add a submodule and split the whole project, I'm not even sure if its doable. 4. Needed to turn off acyclic in `Path` and particular `Macro` files (also needed to mock `acyclic.skipped` in case of `scala 3`). 5. Needed to provide another implicit conversion in `ViewBoundImplicit` trait because macros turn out to be not avaliable as implicit views, this is needed for `ArrayPathChunk` and `SeqPathChunk` to work.
0.10.7-M1
Allow even more dynamic instrumentation of `pwd` via `os.dynamicPwdFu…
0.10.6
Merged Pull Requests
Full Changelog: 0.10.5...0.10.6
0.10.5
Merged Pull Requests
- Update Mill from 0.11.11 to 0.11.12 by @scala-steward in #293
- Update utest from 0.8.3 to 0.8.4 by @scala-steward in #291
- Introduce
os.SubProcess.env
DynamicVariable
to override defaultenv
by @lolgab in #295
Full Changelog: 0.10.4...0.10.5
0.10.4
Merged Pull Requests
- Update Mill from 0.11.8 to 0.11.9 by @scala-steward in #285
- Move test projects into
os/test/
folder by @lihaoyi in #289 - Added proper SIGTERM/SIGKILL handling for sub-processes by @j-mie6 in #286
- Update scalafmt version from 3.8.2 to 3.8.3 by @scala-steward in #288
- Update Mill to 0.11.11 by @lefou in #290
- Add lightweight syntax for
os.proc().call()
andos.proc().spawn()
by @lihaoyi in #292
New Contributors
Full Changelog: 0.10.3...0.10.4
0.10.3
Merged Pull Requests
- Enable already-passing native tests by @lihaoyi in #273
- Update mill-mima from 0.1.0 to 0.1.1 by @scala-steward in #275
- Update geny from 1.1.0 to 1.1.1 by @scala-steward in #279
- Update scalafmt from 3.8.1 to 3.8.2 by @scala-steward in #280
- Update Mill to 0.11.8 by @lefou in #281
- Add API to redirect
os.Inherit
ed streams globally to be consistent with std streams redirections by @lihaoyi in #283
Full Changelog: 0.10.2...0.10.3
0.10.2
Merged Pull Requests
- Update Mill from 0.11.7-29-f2e220 to 0.11.7-86-18d144 by @scala-steward in #268
- Re-enable explicit TOC rendering in readme by @lefou in #269
- Readme: put more versions into sub-section by @lefou in #181
- Update sourcecode from 0.4.1 to 0.4.2 by @scala-steward in #271
- Update Mill from 0.11.7-86-18d144 to 0.11.7-107-9ec9bc by @scala-steward in #270
- Support
os.proc
on Scala Native by @lihaoyi in #257
Full Changelog: 0.10.1...0.10.2