summary refs log tree commit diff stats
path: root/changelog.md
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-04-21 14:53:55 -0700
committerGitHub <noreply@github.com>2020-04-21 23:53:55 +0200
commit7ce0358351d8e241463e744d75e78c4cd810d19f (patch)
tree7ee05b7135d445d4fa87e3ea10c19306e6fdd507 /changelog.md
parentdd24004fabaf315463b89d38ac553b20080fd1cd (diff)
downloadNim-7ce0358351d8e241463e744d75e78c4cd810d19f.tar.gz
fix #13222: make relativePath more robust and flexible (#13451)
* * relativePath(foo) now works
* relativePath(rel, abs) and relativePath(abs, rel) now work (fixes #13222)
* relativePath, absolutePath, getCurrentDir now available in more targets (eg: vm, nodejs etc)
* fix bug: isAbsolutePath now works with -d:js; add tests
* workaround https://github.com/nim-lang/Nim/issues/13469
* remove `relativePath(path)` overload for now
* add back changelog after rebase
Diffstat (limited to 'changelog.md')
-rw-r--r--changelog.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md
index 4db405013..fc409c8aa 100644
--- a/changelog.md
+++ b/changelog.md
@@ -31,6 +31,12 @@
 - The file descriptors created for internal bookkeeping by `ioselector_kqueue`
   and `ioselector_epoll` will no longer be leaked to child processes.
 
+- `relativePath(rel, abs)` and `relativePath(abs, rel)` used to silently give wrong results
+  (see #13222); instead they now use `getCurrentDir` to resolve those cases,
+  and this can now throw in edge cases where `getCurrentDir` throws.
+  `relativePath` also now works for js with `-d:nodejs`.
+
+
 ## Language changes
 - In newruntime it is now allowed to assign discriminator field without restrictions as long as case object doesn't have custom destructor. Discriminator value doesn't have to be a constant either. If you have custom destructor for case object and you do want to freely assign discriminator fields, it is recommended to refactor object into 2 objects like this:
   ```nim