Skip to content

Commit

Permalink
v7.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
erikras committed Jul 24, 2017
1 parent fb68ed4 commit e9daa39
Show file tree
Hide file tree
Showing 75 changed files with 119 additions and 118 deletions.
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -23,12 +23,12 @@

## Documentation

* [Getting Started](https://redux-form.com/7.0.1/docs/GettingStarted.md/)
* [Examples](https://redux-form.com/7.0.1/examples/)
* [API](https://redux-form.com/7.0.1/docs/api/)
* [FAQ](https://redux-form.com/7.0.1/docs/faq/)
* [Getting Started](https://redux-form.com/7.0.2/docs/GettingStarted.md/)
* [Examples](https://redux-form.com/7.0.2/examples/)
* [API](https://redux-form.com/7.0.2/docs/api/)
* [FAQ](https://redux-form.com/7.0.2/docs/faq/)
* [Release Notes](https://github.com/erikras/redux-form/releases)
* [Older Documentation](https://redux-form.com/7.0.1/docs/DocumentationVersions.md/)
* [Older Documentation](https://redux-form.com/7.0.2/docs/DocumentationVersions.md/)

## 🏖 Code Sandboxes 🏖

Expand Down
1 change: 1 addition & 0 deletions docs/DocumentationVersions.md
@@ -1,5 +1,6 @@
# Documentation Versions

* [7.0.2](https://redux-form.com/7.0.2/)
* [7.0.1](https://redux-form.com/7.0.1/)
* [7.0.0](https://redux-form.com/7.0.0/)
* [6.8.0](https://redux-form.com/6.8.0/)
Expand Down
2 changes: 1 addition & 1 deletion docs/Flow.md
Expand Up @@ -6,7 +6,7 @@ you may import types for all the props provided by `redux-form` to your componen

## Props Types

This will give you the types of the [`props`](http://redux-form.com/7.0.1/docs/api/Props.md/)
This will give you the types of the [`props`](http://redux-form.com/7.0.2/docs/api/Props.md/)
that will be injected into your decorated form component by the
`reduxForm()` higher order component.

Expand Down
14 changes: 7 additions & 7 deletions docs/GettingStarted.md
Expand Up @@ -21,7 +21,7 @@ It's important to understand their responsibilities:

## Data flow

The diagram below represents the simplified data flow. Note that in most cases you don't need to worry about the [action creators](http://redux-form.com/7.0.1/docs/api/ActionCreators.md/) for yourself, as they're already bound to dispatch for certain actions.
The diagram below represents the simplified data flow. Note that in most cases you don't need to worry about the [action creators](http://redux-form.com/7.0.2/docs/api/ActionCreators.md/) for yourself, as they're already bound to dispatch for certain actions.

<div style="text-align: center;">
<img src="https://github.com/erikras/redux-form/raw/master/docs/reduxFormDiagram.png" width="500" style="max-width: 100%;"/>
Expand Down Expand Up @@ -60,7 +60,7 @@ const store = createStore(rootReducer)

Now your store knows how to handle actions coming from the form components.

**NOTE:** The key used to pass the `redux-form` reducer should be named **`form`**. If you need a custom key for some reason see [`getFormState` config](http://redux-form.com/7.0.1/docs/api/ReduxForm.md/#-getformstate-function-optional-) for more details.
**NOTE:** The key used to pass the `redux-form` reducer should be named **`form`**. If you need a custom key for some reason see [`getFormState` config](http://redux-form.com/7.0.2/docs/api/ReduxForm.md/#-getformstate-function-optional-) for more details.

### Step 2 of 4: Form component

Expand Down Expand Up @@ -113,7 +113,7 @@ The `<Field/>` component connects each input to the store. The basic usage goes

It creates an HTML `<input/>` element of type `text`. It also passes additional props such as `value`, `onChange`, `onBlur`, etc. Those are used to track and maintain the input state under the hood.

**NOTE**: `<Field/>` component is much more powerful. Apart from basic input types, it can take a class or a stateless component. When you're ready, go to the [docs](http://redux-form.com/7.0.1/docs/api/Field.md/#usage) to find out more.
**NOTE**: `<Field/>` component is much more powerful. Apart from basic input types, it can take a class or a stateless component. When you're ready, go to the [docs](http://redux-form.com/7.0.2/docs/api/Field.md/#usage) to find out more.

Let's finish up our contact form:

Expand Down Expand Up @@ -173,7 +173,7 @@ class ContactPage extends React.Component {
}
```

You can now take it from here. We recommend to check out the [examples](http://redux-form.com/7.0.1/examples/). The common next steps could also be:
* setting the [initial form values](http://redux-form.com/7.0.1/examples/initializeFromState/),
* implementing the [validation](http://redux-form.com/7.0.1/examples/syncValidation/),
* creating dynamic forms with [arrays of fields](http://redux-form.com/7.0.1/examples/fieldArrays/).
You can now take it from here. We recommend to check out the [examples](http://redux-form.com/7.0.2/examples/). The common next steps could also be:
* setting the [initial form values](http://redux-form.com/7.0.2/examples/initializeFromState/),
* implementing the [validation](http://redux-form.com/7.0.2/examples/syncValidation/),
* creating dynamic forms with [arrays of fields](http://redux-form.com/7.0.2/examples/fieldArrays/).
4 changes: 2 additions & 2 deletions docs/MigrationGuide.md
Expand Up @@ -306,8 +306,8 @@ const upper = value => value && value.toUpperCase()
<Field name="myUppercaseField" component="input" normalize={upper}/>
```

See the [Normalizing Example](https://redux-form.com/7.0.1/examples/normalizing/) and
[Value Lifecycle](https://redux-form.com/7.0.1/docs/ValueLifecycle.md/) for
See the [Normalizing Example](https://redux-form.com/7.0.2/examples/normalizing/) and
[Value Lifecycle](https://redux-form.com/7.0.2/docs/ValueLifecycle.md/) for
more details.

## Listening to other actions
Expand Down
2 changes: 1 addition & 1 deletion docs/api/Fields.md
Expand Up @@ -149,7 +149,7 @@ For example, if your `names` are `[ 'name.first', 'name.last', 'email' ]`, the `
## Props

The props that `Fields` will pass to your component are [the same `input` and `meta` structures
that `Field` generates](https://redux-form.com/7.0.1/docs/api/Field.md/#props), except that
that `Field` generates](https://redux-form.com/7.0.2/docs/api/Field.md/#props), except that
they are broken up into the structure of the fields you gave as `names`.

Any additional props that you pass to `Field` will be included at the root of the props structure
Expand Down
4 changes: 2 additions & 2 deletions docs/api/Form.md
Expand Up @@ -9,8 +9,8 @@ It is only useful if you are:
`onSubmit={this.props.handleSubmit(this.mySubmitFunction)}` to your `<form>`
component
- **AND EITHER:**
- initiating your submission via the [`submit()` Instance API](http://redux-form.com/7.0.1/docs/api/ReduxForm.md/#-submit-promise-) (i.e. calling it directly on a reference to your decorated form component)
- initiating your submission by [dispatching the `submit(form)` action](http://redux-form.com/7.0.1/examples/remoteSubmit/)
- initiating your submission via the [`submit()` Instance API](http://redux-form.com/7.0.2/docs/api/ReduxForm.md/#-submit-promise-) (i.e. calling it directly on a reference to your decorated form component)
- initiating your submission by [dispatching the `submit(form)` action](http://redux-form.com/7.0.2/examples/remoteSubmit/)

If you are passing in your `onSubmit` function as a config parameter or prop, this component will do nothing for you.

Expand Down
4 changes: 2 additions & 2 deletions docs/api/FormValueSelector.md
Expand Up @@ -19,7 +19,7 @@ import { formValueSelector } from 'redux-form'; // ES6
### `form : String` [required]

> The name of the form you are connecting to. Must be the same as the `form` config value you
gave to [`reduxForm()`](https://redux-form.com/7.0.1/docs/api/ReduxForm.md/).
gave to [`reduxForm()`](https://redux-form.com/7.0.2/docs/api/ReduxForm.md/).

### `getFormState : Function` [optional]

Expand Down Expand Up @@ -91,4 +91,4 @@ connect(
## Example

See the
[Selecting Form Values](https://redux-form.com/7.0.1/examples/selectingFormValues/) example.
[Selecting Form Values](https://redux-form.com/7.0.2/examples/selectingFormValues/) example.
2 changes: 1 addition & 1 deletion docs/api/FormValues.md
Expand Up @@ -17,7 +17,7 @@ import { formValues } from 'redux-form'; // ES6

### name

The path to the field, exactly like the `name` parameter of [`<Field/>`](https://redux-form.com/7.0.1/docs/api/Field.md/).
The path to the field, exactly like the `name` parameter of [`<Field/>`](https://redux-form.com/7.0.2/docs/api/Field.md/).

### options: {prop: name, ...}

Expand Down
2 changes: 1 addition & 1 deletion docs/api/Props.md
Expand Up @@ -4,7 +4,7 @@

> The `props` listed on this page are the `props` that `redux-form` generates to give
to your decorated form component. The `props` that _you pass into your wrapped component_ are
listed [here](https://redux-form.com/7.0.1/docs/api/ReduxForm.md/).
listed [here](https://redux-form.com/7.0.2/docs/api/ReduxForm.md/).

> If you are a strict `PropTypes` completionist, `redux-form` exports all of these
[`propTypes`](https://github.com/erikras/redux-form/blob/master/src/propTypes.js),
Expand Down
6 changes: 3 additions & 3 deletions docs/api/ReduxForm.md
Expand Up @@ -35,7 +35,7 @@ Defaults to triggering the async validation when any field is blurred. If you wi
blur validation, but still provide an `asyncValidate` function, you may pass `[]` to this
property, resulting in the async validation only being run before submission.

> See [Asynchronous Blur Validation Example](https://redux-form.com/7.0.1/examples/asyncValidation/)
> See [Asynchronous Blur Validation Example](https://redux-form.com/7.0.2/examples/asyncValidation/)
for more details.

#### `asyncValidate : (values:Object, dispatch:Function, props:Object, blurredField:String) => Promise<undefined, errors:Object>` [optional]
Expand All @@ -46,7 +46,7 @@ returns a Promise that will resolve if the validation is passed, or will reject
object of validation errors
in the form `{ field1: <String>, field2: <String> }`.

> See [Asynchronous Blur Validation Example](https://redux-form.com/7.0.1/examples/asyncValidation/)
> See [Asynchronous Blur Validation Example](https://redux-form.com/7.0.2/examples/asyncValidation/)
for more details.

#### `destroyOnUnmount : boolean` [optional]
Expand Down Expand Up @@ -284,7 +284,7 @@ form has triggered it, respectively.
If validation passes, it should return `{}`. If validation fails, it should return the validation errors in the
form `{ field1: <String>, field2: <String> }`. Defaults to `(values, props) => ({})`.

> See [Synchronous Validation Example](https://redux-form.com/7.0.1/examples/syncValidation/)
> See [Synchronous Validation Example](https://redux-form.com/7.0.2/examples/syncValidation/)
for more details.

#### `warn : (values:Object, props:Object) => warnings:Object` [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/faq/HandleVsOn.md
Expand Up @@ -47,7 +47,7 @@ const SearchBar = ({ handleChange, handleSubmit, value }) => (
export default reduxForm({ form: 'SearchBar' })(SearchBar)
```

You can access your form's input values via the aptly-named `values` prop provided by the redux-form [Instance API](http://redux-form.com/7.0.1/docs/api/ReduxForm.md/).
You can access your form's input values via the aptly-named `values` prop provided by the redux-form [Instance API](http://redux-form.com/7.0.2/docs/api/ReduxForm.md/).

```javascript
import React from 'react';
Expand Down
2 changes: 1 addition & 1 deletion examples/asyncValidation/index.html
Expand Up @@ -4,7 +4,7 @@
<meta charSet="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<title>Redux Form - Async Blur Validation Example</title>
<link href="https://redux-form.com/7.0.1/bundle.css"
<link href="https://redux-form.com/7.0.2/bundle.css"
media="screen, projection"
rel="stylesheet" type="text/css"/>
<link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css"
Expand Down
4 changes: 2 additions & 2 deletions examples/asyncValidation/package-lock.json

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

2 changes: 1 addition & 1 deletion examples/asyncValidation/package.json
Expand Up @@ -18,7 +18,7 @@
"react-dom": "^15.4.1",
"react-redux": "^5.0.3",
"redux": "^3.6.0",
"redux-form": "^7.0.1",
"redux-form": "^7.0.2",
"redux-form-website-template": "0.0.49"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions examples/asyncValidation/src/index.js
Expand Up @@ -41,12 +41,12 @@ let render = () => {
* This <App/> component only provides the site wrapper.
* Remove it on your dev server if you wish. It will not affect the functionality.
*/
version="7.0.1"
version="7.0.2"
path="/examples/asyncValidation"
breadcrumbs={generateExampleBreadcrumbs(
'asyncValidation',
'Async Validation Example',
'7.0.1'
'7.0.2'
)}
>
<Markdown content={readme} />
Expand Down
2 changes: 1 addition & 1 deletion examples/fieldArrays/index.html
Expand Up @@ -4,7 +4,7 @@
<meta charSet="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<title>Redux Form - Field Arrays Example</title>
<link href="https://redux-form.com/7.0.1/bundle.css"
<link href="https://redux-form.com/7.0.2/bundle.css"
media="screen, projection"
rel="stylesheet" type="text/css"/>
<link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css"
Expand Down
4 changes: 2 additions & 2 deletions examples/fieldArrays/package-lock.json

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

2 changes: 1 addition & 1 deletion examples/fieldArrays/package.json
Expand Up @@ -18,7 +18,7 @@
"react-dom": "^15.4.1",
"react-redux": "^5.0.3",
"redux": "^3.6.0",
"redux-form": "^7.0.1",
"redux-form": "^7.0.2",
"redux-form-website-template": "0.0.49"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/fieldArrays/src/FieldArrays.md
Expand Up @@ -6,7 +6,7 @@ hobbies. The following array manipulation actions are available, as raw action c
actions to your form under the `this.props.array` object, and as actions bound to both the form
and array on the object provided by the `FieldArray` component: `insert`, `pop`, `push`, `remove`,
`shift`, `swap`, and `unshift`. More detail can be found under the
[`FieldArray` docs](https://redux-form.com/7.0.1/docs/api/FieldArray.md).
[`FieldArray` docs](https://redux-form.com/7.0.2/docs/api/FieldArray.md).

Notice that array-specific errors are available if set on the array structure itself under the
`_error` key. (Hint: Add more than five hobbies to see an error.)
Expand Down
4 changes: 2 additions & 2 deletions examples/fieldArrays/src/index.js
Expand Up @@ -40,12 +40,12 @@ let render = () => {
* This <App/> component only provides the site wrapper.
* Remove it on your dev server if you wish. It will not affect the functionality.
*/
version="7.0.1"
version="7.0.2"
path="/examples/fieldArrays"
breadcrumbs={generateExampleBreadcrumbs(
'syncValidation',
'Field Arrays Example',
'7.0.1'
'7.0.2'
)}
>
<Markdown content={readme} />
Expand Down
2 changes: 1 addition & 1 deletion examples/fieldLevelValidation/index.html
Expand Up @@ -4,7 +4,7 @@
<meta charSet="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<title>Redux Form - Field-Level Validation Example</title>
<link href="https://redux-form.com/7.0.1/bundle.css"
<link href="https://redux-form.com/7.0.2/bundle.css"
media="screen, projection"
rel="stylesheet" type="text/css"/>
<link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css"
Expand Down
4 changes: 2 additions & 2 deletions examples/fieldLevelValidation/package-lock.json

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

2 changes: 1 addition & 1 deletion examples/fieldLevelValidation/package.json
Expand Up @@ -18,7 +18,7 @@
"react-dom": "^15.4.2",
"react-redux": "^5.0.3",
"redux": "^3.6.0",
"redux-form": "^7.0.1",
"redux-form": "^7.0.2",
"redux-form-website-template": "0.0.49"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/fieldLevelValidation/src/FieldLevelValidation.md
@@ -1,7 +1,7 @@
# Field-Level Validation Example

As well as allowing you to provide a validation function to validate all the values in your form
at once, see [Synchronous Validation Example](http://redux-form.com/7.0.1/examples/syncValidation/),
at once, see [Synchronous Validation Example](http://redux-form.com/7.0.2/examples/syncValidation/),
you may also provide individual value validation functions for each `Field` or `FieldArray`.

The parameters to the validation function are:
Expand Down
4 changes: 2 additions & 2 deletions examples/fieldLevelValidation/src/index.js
Expand Up @@ -39,12 +39,12 @@ let render = () => {
* This <App/> component only provides the site wrapper.
* Remove it on your dev server if you wish. It will not affect the functionality.
*/
version="7.0.1"
version="7.0.2"
path="/examples/fieldLevelValidation"
breadcrumbs={generateExampleBreadcrumbs(
'fieldLevelValidation',
'Field-Level Validation Example',
'7.0.1'
'7.0.2'
)}
>
<Markdown content={readme} />
Expand Down
2 changes: 1 addition & 1 deletion examples/immutable/index.html
Expand Up @@ -4,7 +4,7 @@
<meta charSet="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<title>Redux Form - Immutable JS Example</title>
<link href="https://redux-form.com/7.0.1/bundle.css"
<link href="https://redux-form.com/7.0.2/bundle.css"
media="screen, projection"
rel="stylesheet" type="text/css"/>
<link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css"
Expand Down
4 changes: 2 additions & 2 deletions examples/immutable/package-lock.json

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

2 changes: 1 addition & 1 deletion examples/immutable/package.json
Expand Up @@ -19,7 +19,7 @@
"react-dom": "^15.4.1",
"react-redux": "^5.0.3",
"redux": "^3.6.0",
"redux-form": "^7.0.1",
"redux-form": "^7.0.2",
"redux-form-website-template": "0.0.49",
"redux-immutablejs": "0.0.8"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/immutable/src/index.js
Expand Up @@ -40,12 +40,12 @@ let render = () => {
* This <App/> component only provides the site wrapper.
* Remove it on your dev server if you wish. It will not affect the functionality.
*/
version="7.0.1"
version="7.0.2"
path="/examples/immutable"
breadcrumbs={generateExampleBreadcrumbs(
'immutable',
'Immutable JS Example',
'7.0.1'
'7.0.2'
)}
>
<Markdown content={readme} />
Expand Down
2 changes: 1 addition & 1 deletion examples/initializeFromState/index.html
Expand Up @@ -4,7 +4,7 @@
<meta charSet="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<title>Redux Form - Initializing From State</title>
<link href="https://redux-form.com/7.0.1/bundle.css"
<link href="https://redux-form.com/7.0.2/bundle.css"
media="screen, projection"
rel="stylesheet" type="text/css"/>
<link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css"
Expand Down
4 changes: 2 additions & 2 deletions examples/initializeFromState/package-lock.json

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

2 changes: 1 addition & 1 deletion examples/initializeFromState/package.json
Expand Up @@ -18,7 +18,7 @@
"react-dom": "^15.4.1",
"react-redux": "^5.0.3",
"redux": "^3.6.0",
"redux-form": "^7.0.1",
"redux-form": "^7.0.2",
"redux-form-website-template": "0.0.49"
},
"devDependencies": {
Expand Down

0 comments on commit e9daa39

Please sign in to comment.