From 9e1feb81af87f5d79269cddef9df007408496788 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Thu, 21 Aug 2025 15:03:34 +0200 Subject: [PATCH 01/12] version --- doc/dev.md | 10 ++++---- doc/links.md | 38 ++++++++++++++-------------- doc/nrepl/README.md | 2 +- doc/nrepl/index.html | 4 +-- resources/public/codemirror.html | 8 +++--- resources/public/html/cljs-ajax.html | 4 +-- resources/public/html/export.html | 2 +- resources/public/html/reagent.html | 4 +-- resources/public/index.html | 2 +- 9 files changed, 37 insertions(+), 37 deletions(-) diff --git a/doc/dev.md b/doc/dev.md index c4447b6..b3c9924 100644 --- a/doc/dev.md +++ b/doc/dev.md @@ -90,20 +90,20 @@ To create a new NPM release: - Prepare version `package.json`, except patch (if anything should change here) - Run `bb npm-publish`: this will compile, bump patch version, create tag and and push to npm and Github -- `bb replace-version 0.6.16 0.7.26` +- `bb replace-version 0.6.16 0.7.27` - Create Github release with updated links from `doc/links.md` - `bb gh-pages` - + - - + + - + diff --git a/doc/links.md b/doc/links.md index 9943b02..ce5f490 100644 --- a/doc/links.md +++ b/doc/links.md @@ -1,20 +1,20 @@ -https://cdn.jsdelivr.net/npm/scittle@0.7.26/dist/scittle.js -https://cdn.jsdelivr.net/npm/scittle@0.7.26/dist/scittle.js-interop.js -https://cdn.jsdelivr.net/npm/scittle@0.7.26/dist/scittle.cljs-ajax.js -https://cdn.jsdelivr.net/npm/scittle@0.7.26/dist/scittle.reagent.js -https://cdn.jsdelivr.net/npm/scittle@0.7.26/dist/scittle.re-frame.js -https://cdn.jsdelivr.net/npm/scittle@0.7.26/dist/scittle.replicant.js -https://cdn.jsdelivr.net/npm/scittle@0.7.26/dist/scittle.promesa.js -https://cdn.jsdelivr.net/npm/scittle@0.7.26/dist/scittle.pprint.js -https://cdn.jsdelivr.net/npm/scittle@0.7.26/dist/scittle.nrepl.js +https://cdn.jsdelivr.net/npm/scittle@0.7.27/dist/scittle.js +https://cdn.jsdelivr.net/npm/scittle@0.7.27/dist/scittle.js-interop.js +https://cdn.jsdelivr.net/npm/scittle@0.7.27/dist/scittle.cljs-ajax.js +https://cdn.jsdelivr.net/npm/scittle@0.7.27/dist/scittle.reagent.js +https://cdn.jsdelivr.net/npm/scittle@0.7.27/dist/scittle.re-frame.js +https://cdn.jsdelivr.net/npm/scittle@0.7.27/dist/scittle.replicant.js +https://cdn.jsdelivr.net/npm/scittle@0.7.27/dist/scittle.promesa.js +https://cdn.jsdelivr.net/npm/scittle@0.7.27/dist/scittle.pprint.js +https://cdn.jsdelivr.net/npm/scittle@0.7.27/dist/scittle.nrepl.js -https://cdn.jsdelivr.net/npm/scittle@0.7.26/dist/dev/scittle.js -https://cdn.jsdelivr.net/npm/scittle@0.7.26/dist/dev/scittle.js-interop.js -https://cdn.jsdelivr.net/npm/scittle@0.7.26/dist/dev/scittle.cljs-ajax.js -https://cdn.jsdelivr.net/npm/scittle@0.7.26/dist/dev/scittle.reagent.js -https://cdn.jsdelivr.net/npm/scittle@0.7.26/dist/dev/scittle.re-frame.js -https://cdn.jsdelivr.net/npm/scittle@0.7.26/dist/dev/scittle.replicant.js -https://cdn.jsdelivr.net/npm/scittle@0.7.26/dist/dev/scittle.promesa.js -https://cdn.jsdelivr.net/npm/scittle@0.7.26/dist/dev/scittle.pprint.js -https://cdn.jsdelivr.net/npm/scittle@0.7.26/dist/dev/scittle.nrepl.js -https://cdn.jsdelivr.net/npm/scittle@0.7.26/dist/dev/scittle.cljs-devtools.js +https://cdn.jsdelivr.net/npm/scittle@0.7.27/dist/dev/scittle.js +https://cdn.jsdelivr.net/npm/scittle@0.7.27/dist/dev/scittle.js-interop.js +https://cdn.jsdelivr.net/npm/scittle@0.7.27/dist/dev/scittle.cljs-ajax.js +https://cdn.jsdelivr.net/npm/scittle@0.7.27/dist/dev/scittle.reagent.js +https://cdn.jsdelivr.net/npm/scittle@0.7.27/dist/dev/scittle.re-frame.js +https://cdn.jsdelivr.net/npm/scittle@0.7.27/dist/dev/scittle.replicant.js +https://cdn.jsdelivr.net/npm/scittle@0.7.27/dist/dev/scittle.promesa.js +https://cdn.jsdelivr.net/npm/scittle@0.7.27/dist/dev/scittle.pprint.js +https://cdn.jsdelivr.net/npm/scittle@0.7.27/dist/dev/scittle.nrepl.js +https://cdn.jsdelivr.net/npm/scittle@0.7.27/dist/dev/scittle.cljs-devtools.js diff --git a/doc/nrepl/README.md b/doc/nrepl/README.md index f3dbe26..4414aa9 100644 --- a/doc/nrepl/README.md +++ b/doc/nrepl/README.md @@ -21,7 +21,7 @@ the normal routine: ``` html - + ``` Also include the CLJS file that you want to evaluate with nREPL: diff --git a/doc/nrepl/index.html b/doc/nrepl/index.html index 82a903b..7a8e80e 100644 --- a/doc/nrepl/index.html +++ b/doc/nrepl/index.html @@ -1,9 +1,9 @@ - + - + diff --git a/resources/public/codemirror.html b/resources/public/codemirror.html index 417c977..b936266 100644 --- a/resources/public/codemirror.html +++ b/resources/public/codemirror.html @@ -1,13 +1,13 @@ - + - - - + + + - + + + + - + + + - + ``` Also include the CLJS file that you want to evaluate with nREPL: diff --git a/doc/nrepl/index.html b/doc/nrepl/index.html index 7a8e80e..5890a47 100644 --- a/doc/nrepl/index.html +++ b/doc/nrepl/index.html @@ -1,9 +1,9 @@ - + - + diff --git a/resources/public/codemirror.html b/resources/public/codemirror.html index b936266..800624b 100644 --- a/resources/public/codemirror.html +++ b/resources/public/codemirror.html @@ -1,13 +1,13 @@ - + - - - + + + - + + + + - + +``` + ### CIDER Choose `cider-connect-cljs`, select port `1339`, followed by the `nbb` REPL diff --git a/src/scittle/nrepl.cljs b/src/scittle/nrepl.cljs index 08cb7bb..ec4c38c 100644 --- a/src/scittle/nrepl.cljs +++ b/src/scittle/nrepl.cljs @@ -8,7 +8,9 @@ (when-let [ws-port (.-SCITTLE_NREPL_WEBSOCKET_PORT js/window)] (set! (.-ws_nrepl js/window) - (new js/WebSocket (ws-url (.-hostname (.-location js/window)) ws-port "_nrepl")))) + (new js/WebSocket (ws-url (or (.-SCITTLE_NREPL_WEBSOCKET_HOST js/window) + (.-hostname (.-location js/window))) + ws-port "_nrepl")))) (when-let [ws (nrepl-server/nrepl-websocket)] (set! (.-onmessage ws) From f72c1c163aeddcb3451becad3c19d6482751f404 Mon Sep 17 00:00:00 2001 From: FrankS Date: Tue, 9 Dec 2025 13:11:25 -0800 Subject: [PATCH 12/12] Expose cljs.core/Cons in SCI config (#142) This allows (instance? cljs.core/Cons x) to work in Scittle code. The Cons type exists in the compiled ClojureScript runtime but was not exposed by name in SCI's symbol table. Libraries like Trove need this for type checking in their const-form? function. --- src/scittle/core.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scittle/core.cljs b/src/scittle/core.cljs index 6a7ac60..c603d9c 100644 --- a/src/scittle/core.cljs +++ b/src/scittle/core.cljs @@ -44,7 +44,8 @@ 'NaN? (sci/copy-var NaN? cljns) 'infinite? (sci/copy-var infinite? cljns) 'iteration (sci/copy-var iteration cljns) - 'abs (sci/copy-var abs cljns)} + 'abs (sci/copy-var abs cljns) + 'Cons cljs.core/Cons} 'goog.object {'set gobject/set 'get gobject/get} 'goog.string {'format gstring/format