Skip to content

Commit

Permalink
0.5.14
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce Hauman committed Oct 2, 2017
1 parent 396cb4e commit 2dc9d0f
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 12 deletions.
39 changes: 39 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,42 @@
## 0.5.14 Faster loading for complex dependency trees

Figwheel inherited a topo sort algorithm from the CLJS compiler. It
turned out that this graph sorting algorithm missed a very important
optimization, which is fixed in this release. If you have project that
has a lot of namespaces and have experienced slower load times when
you change a file that is deeper in your dependency chain, you should
notice a big improvement when using this release.

Added JavaScript environment hooks for tools like `re-natal` to
customize the websocket implementation and the script loading behavior.

* improved topo-sort algorithm
* CLJS compile option: the `:entries` key is no longer required in the
`:modules` configs
* new `:repl-eval-timeout` allows you to increase or lower the
Figwheel REPL eval timeout as a top level config setting
* added `goog.global.FIGWHEEL_WEBSOCKET_CLASS` to allow one to
override or supply a websocket implementation for the figwheel
client
* added `goog.global.FIGWHEEL_IMPORT_SCRIPT` to allow one to override
or supply a function to the figwheel client, that is responsible for
loading a namespace into the JavaScript runtime.
* added two new namespaces that can be supplied the ClojureScript
compiler's `:preloads` option.

The two namespaces are only different in that one set's up figwheel
while the other both sets up and starts figwheel. These are
currently meant to clean up how the figwheel client is injected into
the build. The next release of Figwheel will do away with generating
a small ClojureScript file to inject the Figwheel client into build.
- `figwheel.connect` which will take a configuration from
`:external-tooling` > `:figwheel/config` and supply a
`figwheel.connect/start` function which contains the supplied
config options. This function is exported so that it can be easily
called from JavaScript.
- `figwheel.preload` which simply calls the above `figwheel.connect/start`
function

## 0.5.13 Small updates

* remove the use of a deprecated Google Closure library function
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ Then include `lein-figwheel` in the `:plugins`
section of your project.clj.

```clojure
[lein-figwheel "0.5.13"]
[lein-figwheel "0.5.14"]
```

#### Configure your builds
Expand Down Expand Up @@ -572,7 +572,7 @@ Figwheel has a Clojure
that makes it easy to start, stop and control Figwheel from Clojure.

In order for the following examples to work, you will need to have
`[figwheel-sidecar "0.5.13"]` in your dependencies.
`[figwheel-sidecar "0.5.14"]` in your dependencies.

To start Figwheel from a script, you will need to require the
`figwheel-sidecar.repl-api` and provide your build configuration to
Expand Down
4 changes: 2 additions & 2 deletions example/project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

:plugins [[lein-ring "0.8.13" :exclusions [org.clojure/clojure]]
#_[lein-cljsbuild "1.1.2"]
[lein-figwheel "0.5.14-SNAPSHOT"]
[lein-figwheel "0.5.14"]
#_[lein-npm "0.4.0"]]

:node-dependencies [[source-map-support "0.2.8"]
Expand Down Expand Up @@ -116,7 +116,7 @@
}}}}

:profiles { :dev { :dependencies [[com.cemerick/piggieback "0.2.1"]
[figwheel-sidecar "0.5.14-SNAPSHOT"]
[figwheel-sidecar "0.5.14"]
[org.clojure/tools.namespace "0.2.11"]
[org.clojure/tools.nrepl "0.2.12"]
[leiningen-core "2.6.1"]]
Expand Down
2 changes: 1 addition & 1 deletion plugin/project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject lein-figwheel "0.5.14-SNAPSHOT"
(defproject lein-figwheel "0.5.14"
:description "ClojureScript Autobuilder/Server which pushes changed files to the browser. This is the lein plugin."
:url "https://github.com/bhauman/lein-figwheel"
:license {:name "Eclipse Public License - v 1.0"
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/leiningen/figwheel.clj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[leiningen.figwheel.fuzzy :as fuz]
[simple-lein-profile-merge.core :as lm]))

(def _figwheel-version_ "0.5.14-SNAPSHOT")
(def _figwheel-version_ "0.5.14")

(defn make-subproject [project paths-to-add]
(with-meta
Expand Down
4 changes: 2 additions & 2 deletions sidecar/project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject figwheel-sidecar "0.5.14-SNAPSHOT"
(defproject figwheel-sidecar "0.5.14"
:description "ClojureScript Autobuilder/Server which pushes changed files to the browser."
:url "https://github.com/bhauman/lein-figwheel"
:license {:name "Eclipse Public License - v 1.0"
Expand All @@ -23,7 +23,7 @@
[org.clojure/tools.reader
org.clojure/clojure]]
[clj-stacktrace "0.2.8"]
[figwheel "0.5.14-SNAPSHOT"
[figwheel "0.5.14"
:exclusions [org.clojure/tools.reader]]
[hawk "0.2.11" :exclusions [org.clojure/clojure]]

Expand Down
2 changes: 1 addition & 1 deletion sidecar/resources/compiled-utils/figwheel-helper-deploy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sidecar/src/figwheel_sidecar/config.clj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#_(remove-ns 'figwheel-sidecar.config)

(def _figwheel-version_ "0.5.14-SNAPSHOT")
(def _figwheel-version_ "0.5.14")

;; file stamping pattern

Expand Down
2 changes: 1 addition & 1 deletion support/project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject figwheel "0.5.14-SNAPSHOT"
(defproject figwheel "0.5.14"
:description "This project contains the client side code for Figwheel."
:url "https://github.com/bhauman/lein-figwheel"
:license {:name "Eclipse Public License - v 1.0"
Expand Down
2 changes: 1 addition & 1 deletion support/src/figwheel/client.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
[cljs.core.async.macros :refer [go go-loop]])
(:import [goog]))

(def _figwheel-version_ "0.5.14-SNAPSHOT")
(def _figwheel-version_ "0.5.14")

(def js-stringify
(if (and (exists? js/JSON) (some? js/JSON.stringify))
Expand Down

0 comments on commit 2dc9d0f

Please sign in to comment.