Version 0.5.0

This commit is contained in:
Dan Holmsand 2015-03-11 19:06:46 +01:00
parent e716850154
commit 5530917f3b
6 changed files with 13 additions and 11 deletions

View File

@ -1,7 +1,9 @@
# Changelog
## Upcoming
## 0.5.0
- React updated to 0.12.2
- Reagent no longer bundles React. Instead it uses cljsjs/react as a dependency. This means that you should no longer specify React in `:preamble` in your project.clj.
@ -24,7 +26,7 @@ components in Reagent ones.
- Arguments to components are now compared using simple `=`, instead of the old, rather complicated heuristics. **NOTE**: This means all arguments to a component function must be comparable with `=` (which means that they cannot be for example infinite `seq`s).
- React updated to 0.12. Reagent now creates all React components using `React.createElement`.
- Reagent now creates all React components using `React.createElement` (required for React 0.12).
- `render-component` is now render, and `render-component-to-string` is `render-to-string`, in order to match React 0.12 (but the old names still work).

View File

@ -19,11 +19,11 @@ This will setup a new Reagent project with some reasonable defaults, see here fo
To use Reagent in an existing project you add this to your dependencies in `project.clj`:
[reagent "0.5.0-alpha3"]
[reagent "0.5.0"]
This is all you need to do if you want the standard version of React. If you want the version of React with addons, you'd use something like this instead:
[reagent "0.5.0-alpha3" :exclusions [cljsjs/react]]
[reagent "0.5.0" :exclusions [cljsjs/react]]
[cljsjs/react-with-addons "0.12.2-4"]
If you want to use your own build of React (or React from a CDN), you have to use `:exclusions` variant of the dependency, and also provide a file named "cljsjs/react.cljs", containing just `(ns cljsjs.react)`, in your project.

View File

@ -1,7 +1,7 @@
(defproject geometry-reagent "0.5.0-alpha3"
(defproject geometry-reagent "0.5.0"
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-2816"]
[reagent "0.5.0-alpha3"]
[reagent "0.5.0"]
[figwheel "0.2.3-SNAPSHOT"]]
:plugins [[lein-cljsbuild "1.0.4"]

View File

@ -1,8 +1,8 @@
(defproject simple-reagent "0.5.0-alpha3"
(defproject simple-reagent "0.5.0"
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-2816"]
[reagent "0.5.0-alpha3"]
[reagent "0.5.0"]
[figwheel "0.2.3-SNAPSHOT"]]
:plugins [[lein-cljsbuild "1.0.4"]

View File

@ -1,7 +1,7 @@
(defproject todomvc-reagent "0.5.0-alpha3"
(defproject todomvc-reagent "0.5.0"
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-2816"]
[reagent "0.5.0-alpha3"]
[reagent "0.5.0"]
[figwheel "0.2.3-SNAPSHOT"]]
:plugins [[lein-cljsbuild "1.0.4"]

View File

@ -1,4 +1,4 @@
(defproject reagent "0.5.0-SNAPSHOT"
(defproject reagent "0.5.0"
:url "http://github.com/reagent-project/reagent"
:license {:name "MIT"}
:description "A simple ClojureScript interface to React"