ANN: ClojureScript 1.9.542, spec changes & REPL enhancement

444 views
Skip to first unread message

David Nolen

unread,
May 12, 2017, 4:31:31 PM5/12/17
to clojure, clojur...@googlegroups.com
ClojureScript, the Clojure compiler that emits JavaScript source code.


Leiningen dependency information:

[org.clojure/clojurescript "1.9.542"]

This release is primarily about staying in sync with the latest changes to spec. It
also includes a small but significant enhancement to REPLs to allow handling multiple forms.

As always, feedback welcome!

## 1.9.542

### Enhancements
* CLJS-1572: REPL doesn't give error for expressions with too many right parentheses

### Changes
* cljs.spec -> cljs.spec.alpha
* CLJS-2013 - Add MapEntry type
* CLJS-2015: Self-host: `defmacro` should return the Var
* CLJS-2017: Upgrade Closure Compiler to latest April 2017 release

### Fixes
* CLJS-485: RegExp flags are being dropped by string/replace
* CLJS-1518: Case macro expansion evaluates expression twice
* CLJS-2024: Self-host: `find-ns-obj` broken for namespaces with 'a' as the first segment
* CLJS-2028: `realized?` throws on LazyTransformer
* CLJS-2010: refer-clojure :rename throws on valid invocations
* CLJS-2007: Whitespace optimizations should respect :main option.

Tatu Tarvainen

unread,
May 14, 2017, 3:09:55 AM5/14/17
to ClojureScript, clo...@googlegroups.com

> * CLJS-2013 - Add MapEntry type

This change seems to break plumatic schema, after upgrading I'm getting warnings:

WARNING: ->MapEntry already refers to: cljs.core/->MapEntry being replaced by: schema.core/->MapEntry at ... schema/core.cljs

Plumatic also defines a MapEntry record type which clashes with the core one.

David Nolen

unread,
May 15, 2017, 7:32:23 AM5/15/17
to clojur...@googlegroups.com, clojure
That's just a warning. Is there some deeper breakage that you are observing?

David


--
Note that posts from new members are moderated - please be patient with your first post.
---
You received this message because you are subscribed to the Google Groups "ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscribe@googlegroups.com.
To post to this group, send email to clojur...@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.

David Nolen

unread,
May 15, 2017, 10:23:58 AM5/15/17
to clojure, clojur...@googlegroups.com
That runtime error doesn't necessarily seem related to the compile time warning. Would need more information.

On Mon, May 15, 2017 at 10:16 AM, Tatu Tarvainen <tatu.ta...@mac.com> wrote:

My phantom test run crashes with:
TypeError: undefined is not an object (evaluating 'schema.core.MapEntry.prototype')

I'm assuming that is related to this change, but I'll need to investigate more. There's already a merged PR for schema that excludes MapEntry in refer-clojure. I'm hoping that will fix this.


maanantai 15. toukokuuta 2017 14.32.55 UTC+3 David Nolen kirjoitti:
That's just a warning. Is there some deeper breakage that you are observing?

David
On Sun, May 14, 2017 at 3:09 AM, Tatu Tarvainen <anti...@gmail.com> wrote:

> * CLJS-2013 - Add MapEntry type

This change seems to break plumatic schema, after upgrading I'm getting warnings:

WARNING: ->MapEntry already refers to: cljs.core/->MapEntry being replaced by: schema.core/->MapEntry at ... schema/core.cljs

Plumatic also defines a MapEntry record type which clashes with the core one.

--
Note that posts from new members are moderated - please be patient with your first post.
---
You received this message because you are subscribed to the Google Groups "ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojurescrip...@googlegroups.com.

To post to this group, send email to clojur...@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com

Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tatu Tarvainen

unread,
May 16, 2017, 10:59:53 AM5/16/17
to Clojure, clojur...@googlegroups.com

My phantom test run crashes with:
TypeError: undefined is not an object (evaluating 'schema.core.MapEntry.prototype')

I'm assuming that is related to this change, but I'll need to investigate more. There's already a merged PR for schema that excludes MapEntry in refer-clojure. I'm hoping that will fix this.


maanantai 15. toukokuuta 2017 14.32.55 UTC+3 David Nolen kirjoitti:
That's just a warning. Is there some deeper breakage that you are observing?

David
On Sun, May 14, 2017 at 3:09 AM, Tatu Tarvainen <anti...@gmail.com> wrote:

> * CLJS-2013 - Add MapEntry type

This change seems to break plumatic schema, after upgrading I'm getting warnings:

WARNING: ->MapEntry already refers to: cljs.core/->MapEntry being replaced by: schema.core/->MapEntry at ... schema/core.cljs

Plumatic also defines a MapEntry record type which clashes with the core one.

--
Note that posts from new members are moderated - please be patient with your first post.
---
You received this message because you are subscribed to the Google Groups "ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojurescrip...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages