oakmac / standard-clojure-style-js

Standard Clojure Style in JavaScript
ISC License
80 stars 1 forks source link

NS metadata is lost or breaks rewrite completely #113

Closed axelarge closed 1 month ago

axelarge commented 1 month ago

CleanShot 2024-10-09 at 13 56 40@2x CleanShot 2024-10-09 at 13 56 17@2x CleanShot 2024-10-09 at 13 55 32@2x

Just to show that these are all valid:

user=> (ns ^:kw-flag my.ns1)
nil
my.ns1=> (meta *ns*)
{:kw-flag true}

my.ns1=> (ns ^{:meta-map 123} my.ns2)
nil
my.ns2=> (meta *ns*)   
{:meta-map 123}

my.ns2=> (ns my.ns3 {:trailing :map})
nil
my.ns3=> (meta *ns*)
{:trailing :map}
my.ns3=> 
oakmac commented 1 month ago

Related to Issue #55

oakmac commented 1 month ago

Thank you for the report!

Fixed with PR-101

oakmac commented 1 month ago

This fix is available with v0.7.0