Bump version

This commit is contained in:
Michiel Borkent 2022-08-31 17:32:52 +02:00
parent 2cb9e7de68
commit a049c8eddb
11 changed files with 27 additions and 24 deletions

View file

@ -1,9 +1,12 @@
# Changelog # Changelog
## v0.2.9 ## 0.3.9
- Add support for promesa
## v0.2.8 - Add `scittle.promesa.js` plugin. This gives access to the [promesa](https://cljdoc.org/d/funcool/promesa/8.0.450/doc/user-guide) library.
- Add `scittle.pprint.js` plugin. This gives access to [cljs.pprint](https://cljs.github.io/api/cljs.pprint/).
- Improve error messages
## v0.3.9
- Upgrade to SCI 0.3.1 - Upgrade to SCI 0.3.1
- Upgrade to Reagent 1.1.0 - Upgrade to Reagent 1.1.0

10
bb.edn
View file

@ -50,14 +50,11 @@
(shell "git push --atomic origin main" (shell "git push --atomic origin main"
(str "v" (:version (json/parse-string (slurp "package.json") true)))))} (str "v" (:version (json/parse-string (slurp "package.json") true)))))}
npm-publish {:doc "Updates Github pages with new release build." npm-publish {:doc "Updates NPM ibrary"
:task (do (run 'dist) :task (do (run 'dist)
(run 'bump-version) (run 'bump-version)
(shell "npm publish"))} (shell "npm publish"))}
gh-pages {:doc "Updates Github pages with new release build."
:task (shell "script/release.clj")}
replace-version {:doc "Ported from bash one-liners. Expects two versions. TODO: port to Clojure." replace-version {:doc "Ported from bash one-liners. Expects two versions. TODO: port to Clojure."
:task :task
(let [[prev next] *command-line-args*] (let [[prev next] *command-line-args*]
@ -65,4 +62,7 @@
(format "rg %s --files-with-matches | xargs sed -i '' 's/%s/%s/g'" (format "rg %s --files-with-matches | xargs sed -i '' 's/%s/%s/g'"
prev prev next)] prev prev next)]
{:inherit true}) {:inherit true})
p/check))}}} p/check))}
gh-pages {:doc "Updates Github pages with new release build."
:task (shell "script/release.clj")}}}

View file

@ -91,13 +91,13 @@ To create a new release:
To upgrade examples: To upgrade examples:
``` ```
rg '0.0.1' --files-with-matches | xargs sed -i '' 's/0.0.2.8.1.0/g' rg '0.0.1' --files-with-matches | xargs sed -i '' 's/0.0.3.9.1.0/g'
bb release bb release
cd gh-pages cd gh-pages
git checkout -b v0.2.8 git checkout -b v0.3.9
git push --set-upstream origin v0.2.8 git push --set-upstream origin v0.3.9
git checkout gh-pages git checkout gh-pages
cd .. cd ..
``` ```
Then make a new release on Github with the `v0.2.8` tag. Then make a new release on Github with the `v0.3.9` tag.

View file

@ -21,7 +21,7 @@ the normal routine:
``` html ``` html
<script>var SCITTLE_NREPL_WEBSOCKET_PORT = 1340;</script> <script>var SCITTLE_NREPL_WEBSOCKET_PORT = 1340;</script>
<script src="https://cdn.jsdelivr.net/npm/scittle@0.2.8/dist/scittle.nrepl.js" type="application/javascript"></script> <script src="https://cdn.jsdelivr.net/npm/scittle@0.3.9/dist/scittle.nrepl.js" type="application/javascript"></script>
``` ```
Also include the CLJS file that you want to evaluate with nREPL: Also include the CLJS file that you want to evaluate with nREPL:

View file

@ -1,9 +1,9 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<script src="https://cdn.jsdelivr.net/npm/scittle@0.2.8/dist/scittle.js" type="application/javascript"></script> <script src="https://cdn.jsdelivr.net/npm/scittle@0.3.9/dist/scittle.js" type="application/javascript"></script>
<script>var SCITTLE_NREPL_WEBSOCKET_PORT = 1340;</script> <script>var SCITTLE_NREPL_WEBSOCKET_PORT = 1340;</script>
<script src="https://cdn.jsdelivr.net/npm/scittle@0.2.8/dist/scittle.nrepl.js" type="application/javascript"></script> <script src="https://cdn.jsdelivr.net/npm/scittle@0.3.9/dist/scittle.nrepl.js" type="application/javascript"></script>
<script type="application/x-scittle" src="playground.cljs"></script> <script type="application/x-scittle" src="playground.cljs"></script>
</head> </head>
<body> <body>

4
package-lock.json generated
View file

@ -8,7 +8,7 @@
"react": "17.0.1", "react": "17.0.1",
"react-dom": "17.0.1" "react-dom": "17.0.1"
}, },
"version": "0.2.8" "version": "0.3.9"
}, },
"node_modules/js-tokens": { "node_modules/js-tokens": {
"version": "4.0.0", "version": "4.0.0",
@ -129,5 +129,5 @@
} }
} }
}, },
"version": "0.2.8" "version": "0.3.9"
} }

View file

@ -1,6 +1,6 @@
{ {
"name": "scittle", "name": "scittle",
"version": "0.2.8", "version": "0.3.9",
"files": [ "files": [
"dist" "dist"
], ],

View file

@ -1,7 +1,7 @@
<html> <html>
<head> <head>
<script src="https://cdn.jsdelivr.net/npm/scittle@0.2.8/dist/scittle.js" type="application/javascript"></script> <script src="https://cdn.jsdelivr.net/npm/scittle@0.3.9/dist/scittle.js" type="application/javascript"></script>
<script src="https://cdn.jsdelivr.net/npm/scittle@0.2.8/dist/scittle.cljs-ajax.js" type="application/javascript"></script> <script src="https://cdn.jsdelivr.net/npm/scittle@0.3.9/dist/scittle.cljs-ajax.js" type="application/javascript"></script>
<script type="application/x-scittle"> <script type="application/x-scittle">
(require '[ajax.core :refer [GET]]) (require '[ajax.core :refer [GET]])

View file

@ -1,6 +1,6 @@
<html> <html>
<head> <head>
<script src="https://cdn.jsdelivr.net/npm/scittle@0.2.8/dist/scittle.js" type="application/javascript"></script> <script src="https://cdn.jsdelivr.net/npm/scittle@0.3.9/dist/scittle.js" type="application/javascript"></script>
<script type="application/x-scittle"> <script type="application/x-scittle">
(defn my-alert [] (defn my-alert []
(js/alert "You clicked!")) (js/alert "You clicked!"))

View file

@ -1,9 +1,9 @@
<html> <html>
<head> <head>
<script src="https://cdn.jsdelivr.net/npm/scittle@0.2.8/dist/scittle.js" type="application/javascript"></script> <script src="https://cdn.jsdelivr.net/npm/scittle@0.3.9/dist/scittle.js" type="application/javascript"></script>
<script crossorigin src="https://unpkg.com/react@17/umd/react.production.min.js"></script> <script crossorigin src="https://unpkg.com/react@17/umd/react.production.min.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js"></script> <script crossorigin src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/scittle@0.2.8/dist/scittle.reagent.js" type="application/javascript"></script> <script src="https://cdn.jsdelivr.net/npm/scittle@0.3.9/dist/scittle.reagent.js" type="application/javascript"></script>
<script type="application/x-scittle"> <script type="application/x-scittle">
(require '[reagent.core :as r] (require '[reagent.core :as r]
'[reagent.dom :as rdom]) '[reagent.dom :as rdom])

View file

@ -74,7 +74,7 @@
To embed scittle in your website, it is recommended to use the links To embed scittle in your website, it is recommended to use the links
published to published to
the <a href="https://github.com/babashka/scittle/releases/tag/v0.2.8">releases the <a href="https://github.com/babashka/scittle/releases/tag/v0.3.9">releases
page</a>. page</a>.
Include <tt>scittle.js</tt> and write a <tt>script</tt> tag Include <tt>scittle.js</tt> and write a <tt>script</tt> tag