Skip to content

Commit

Permalink
ver. 0.2.18
Browse files Browse the repository at this point in the history
  • Loading branch information
光弘 committed Aug 21, 2017
1 parent 5127bb4 commit dcc7379
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 18 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# history

## 0.2.18 / 2017-08-21

* `CHANGED` cjs module to es module
* `CHANGED` replace `deep-equal` with `lodash/isEqual`

## 0.2.17 / 2017-08-15

* `CHANGED` instant validation fails to work due to fromRest logic.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uxcore-form-field",
"version": "0.2.17",
"version": "0.2.18",
"description": "uxcore-form-field component for uxcore.",
"repository": "https://github.com/uxcore/uxcore-form-field.git",
"author": "eternalsky",
Expand Down Expand Up @@ -47,8 +47,8 @@
},
"dependencies": {
"classnames": "^2.1.2",
"deep-equal": "~1.0.1",
"lie": "^3.1.0",
"lodash": "^4.17.4",
"object-assign": "~4.0.1",
"uxcore-const": "0.0.2"
},
Expand Down
14 changes: 7 additions & 7 deletions src/FormField.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const React = require('react');
const Constants = require('uxcore-const');
const classnames = require('classnames');
const assign = require('object-assign');
const deepequal = require('deep-equal');
const Promise = require('lie');
import React from 'react';
import Constants from 'uxcore-const';
import classnames from 'classnames';
import assign from 'object-assign';
import deepequal from 'lodash/isEqual';
import Promise from 'lie';

/* eslint-disable class-methods-use-this */
class FormField extends React.Component {
Expand Down Expand Up @@ -492,4 +492,4 @@ FormField.defaultProps = {

FormField.displayName = 'FormField';

module.exports = FormField;
export default FormField;
11 changes: 5 additions & 6 deletions src/createFormField.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
const React = require('react');
const assign = require('object-assign');
const Constants = require('uxcore-const');

const FormField = require('./FormField');
import React from 'react';
import assign from 'object-assign';
import Constants from 'uxcore-const';
import FormField from './FormField';

const Input = props =>
<input
Expand Down Expand Up @@ -60,4 +59,4 @@ const createFormField = (options = {}) => {
return CustomFormField;
};

module.exports = createFormField;
export default createFormField;
9 changes: 6 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
* All rights reserved.
*/

const FormField = require('./FormField');
FormField.createFormField = require('./createFormField');
import FormField from './FormField';

module.exports = FormField;
import createFormField from './createFormField';

FormField.createFormField = createFormField;

export default FormField;

0 comments on commit dcc7379

Please sign in to comment.