Skip to content

Commit a5346e5

Browse files
committed
v0.9.0
1 parent 95a01ed commit a5346e5

File tree

5 files changed

+8530
-19
lines changed

5 files changed

+8530
-19
lines changed

CHANGES.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
0.9.0 (in development)
2-
======================
1+
0.9.0 / 2014-11-11
2+
==================
33

44
Breaking Changes
55
----------------

README.rst

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,16 @@ newforms |travis_status|
77

88
An isomorphic JavaScript form-handling library for `React`_.
99

10-
(Old `Django`_ hands may recognise "newforms" as the former name of its
11-
`form-handling library`_ - newforms started out as a direct port of
12-
``django.forms`` to JavaScript)
13-
14-
.. _`React`: http://facebook.github.io/react/
15-
.. _`Django`: http://www.djangoproject.com
16-
.. _`form-handling library`: http://docs.djangoproject.com/en/dev/topics/forms/
10+
(Formerly a direct port of the `Django`_ framework's ``django.forms`` library)
1711

1812
Getting newforms
1913
================
2014

2115
Node.js
16+
17+
Newforms can be used on the server, or bundled for the client using an
18+
npm-compatible packaging system such as `Browserify`_ or `webpack`_.
19+
2220
::
2321

2422
npm install newforms
@@ -27,15 +25,25 @@ Node.js
2725
2826
var forms = require('newforms')
2927
28+
By default, newforms will be in development mode. To use it in production
29+
mode, set the environment variable ``NODE_ENV`` to ``'production'`` when
30+
bundling. To completely remove all development mode code, use a minifier
31+
that performs dead-code elimination, such as `UglifyJS`_.
32+
3033
Browser bundles
31-
Browser bundles include all dependencies except React.
34+
Browser bundles expose newforms as a global ``forms`` variable and expect to
35+
find a global ``React`` variable to work with.
3236

33-
They expose newforms as a global ``forms`` variable and expect to find a
34-
global ``React`` variable to work with.
37+
`newforms 0.9.0 (development version)`_
3538

36-
Release bundles are available from:
39+
Uncompressed, with warnings about potential mistakes.
3740

38-
* https://github.com/insin/newforms/tree/react/dist
41+
`newforms 0.9.0 (production version)`_
42+
43+
Compressed version for production.
44+
45+
.. _`newforms 0.9.0 (development version)`: https://github.com/insin/newforms/raw/react/dist/newforms-0.9.0.js
46+
.. _`newforms 0.9.0 (production version)`: https://github.com/insin/newforms/raw/react/dist/newforms-0.9.0.min.js
3947

4048
`Documentation @ ReadTheDocs`_
4149
==============================
@@ -49,8 +57,6 @@ Browser bundles
4957
Quick Guide
5058
===========
5159

52-
**Note: this guide reflects the API in the current development version -- 0.9**
53-
5460
A quick introduction to defining and using newforms Form objects.
5561

5662
Design your form
@@ -175,3 +181,9 @@ add a ``clean()`` method to the Form definition::
175181

176182
MIT Licensed
177183
============
184+
185+
.. _`Browserify`: http://browserify.org/
186+
.. _`Django`: http://www.djangoproject.com
187+
.. _`React`: http://facebook.github.io/react/
188+
.. _`UglifyJS`: https://github.com/mishoo/UglifyJS2
189+
.. _`webpack`: http://webpack.github.io/

0 commit comments

Comments
 (0)