From 2e67e8ed6e51f04a6034ef9ea36f89629545ead6 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Tue, 30 Aug 2022 15:17:00 +0200 Subject: [PATCH] v0.1.11 --- CHANGELOG.md | 4 ++++ project.clj | 2 +- src/babashka/fs.cljc | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d0f2a13..0895727 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,12 @@ For a list of breaking changes, check [here](#breaking-changes). ## Unreleased +## v0.1.11 + - [#65](https://github.com/babashka/fs/issues/65): Explicitly support `:win-exts` option on `which` function ([@lread](https://github.com/lread)) - [clj-kondo#1782](https://github.com/clj-kondo/clj-kondo/issues/1782): `exists?` should never throw on illegal input path. +- Remove `^:const` to not cache OS-specific constants, so AOT-ed code can be + re-used in multiple OS-es. ## v0.1.6 diff --git a/project.clj b/project.clj index 026eaa0..43a1790 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject babashka/fs "0.1.6" +(defproject babashka/fs "0.1.11" :description "Babashka file system utilities." :url "https://github.com/babashka/fs" :scm {:name "git" diff --git a/src/babashka/fs.cljc b/src/babashka/fs.cljc index 6f84da0..bec8946 100644 --- a/src/babashka/fs.cljc +++ b/src/babashka/fs.cljc @@ -235,8 +235,8 @@ (with-open [stream (directory-stream dir glob-or-accept)] (vec stream))))) -(def ^:const file-separator File/separator) -(def ^:const path-separator File/pathSeparator) +(def file-separator File/separator) +(def path-separator File/pathSeparator) (def ^:private win? (-> (System/getProperty "os.name")