From 5530917f3b8e6e48e0da2651a9a71e5a4579ff0e Mon Sep 17 00:00:00 2001 From: Dan Holmsand Date: Wed, 11 Mar 2015 19:06:46 +0100 Subject: [PATCH] Version 0.5.0 --- CHANGELOG.md | 6 ++++-- README.md | 4 ++-- examples/geometry/project.clj | 4 ++-- examples/simple/project.clj | 4 ++-- examples/todomvc/project.clj | 4 ++-- project.clj | 2 +- 6 files changed, 13 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a451059..2743139 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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). diff --git a/README.md b/README.md index 371fabb..4f07266 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/examples/geometry/project.clj b/examples/geometry/project.clj index 6adf2f0..105d1df 100644 --- a/examples/geometry/project.clj +++ b/examples/geometry/project.clj @@ -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"] diff --git a/examples/simple/project.clj b/examples/simple/project.clj index fba3660..e11e465 100644 --- a/examples/simple/project.clj +++ b/examples/simple/project.clj @@ -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"] diff --git a/examples/todomvc/project.clj b/examples/todomvc/project.clj index 57c8749..e275b3f 100644 --- a/examples/todomvc/project.clj +++ b/examples/todomvc/project.clj @@ -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"] diff --git a/project.clj b/project.clj index 34ab464..bee11a5 100644 --- a/project.clj +++ b/project.clj @@ -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"