Skip to content

Commit

Permalink
Merge pull request #232 from iCHEF/feature/upgrade_dev_deps
Browse files Browse the repository at this point in the history
Upgrade dev dependencies
  • Loading branch information
zhusee2 authored Sep 12, 2019
2 parents c47b1f3 + 95f4e3c commit c2837f5
Show file tree
Hide file tree
Showing 7 changed files with 837 additions and 732 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Changed
- [Core] Update `<Section>` title style and increase bottom margin.
- [Core] Remove the only test cases that uses `sinon`; remove `sinon` from dev dependencies.
- [Form] Update `<SelectRow>` and `<SwitchRow>` to adpat vertically-reversed appearance as `<TextInputRow>` in v3.0.
- [Form] Add `desc` prop to `<SelectOption>`
- [Storybook] Update examples for refactord `<ColumnView>` and `<Modal>`.
Expand All @@ -43,7 +44,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- [Build] Upgrade to Babel v7.4.4 + `core-js` v3 to provide better polyfilling.
- [Build] Upgrade to Lerna v3.16.4; changes publish steps.
- [Build] Upgrade to `node-sass@4.12.0` for Node v10+ support.
- [Build] Upgrade dependencies to address security alerts.
- [Build] Upgrade to `stylelint@^10.0`, `autoprefixer@^9.6` and `postcss-loader@^3` for better CSS support.
- [Build] Upgrade other dev dependencies to address security alerts.

## [3.0.0]
### Breaking
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@babel/preset-react": "^7.0.0",
"@babel/runtime": "^7.4.4",
"@babel/runtime-corejs3": "^7.4.4",
"autoprefixer": "^7.2.5",
"autoprefixer": "^9.6.1",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^23.6.0",
Expand All @@ -60,14 +60,14 @@
"jest": "^23.6.0",
"lerna": "^3.16.4",
"node-sass": "^4.12.0",
"postcss-loader": "^2.0.10",
"postcss-loader": "^3.0.0",
"prop-types": "^15.6.2",
"react": "^16.6.3",
"react-dom": "^16.6.3",
"react-test-renderer": "^16.6.3",
"sass-loader": "^6.0.2",
"style-loader": "^0.19.1",
"stylelint": "^7.10.1",
"stylelint": "^10.1.0",
"stylelint-config-standard": "^16.0.0",
"webpack": "^3.10.0"
},
Expand Down
1 change: 0 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"@babel/cli": "^7.4.4",
"enzyme": "^3.7.0",
"react-is": "^16.6.1",
"sinon": "^4.0.1",
"webpack": "^3.10.0",
"webpack-merge": "^4.1.2"
}
Expand Down
26 changes: 0 additions & 26 deletions packages/core/src/__tests__/IconButton.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { shallow } from 'enzyme';
import { stub, assert } from 'sinon';

import Button from '../Button';
import IconButton from '../IconButton';
Expand Down Expand Up @@ -43,29 +42,4 @@ describe('<IconButton>', () => {
expect(wrapper.hasClass('gyp-button--tinted')).toBeTruthy();
expect(wrapper.hasClass('other-custom-class')).toBeTruthy();
});

describe('invalid propTypes', () => {
let consoleStub;
beforeEach(() => {
consoleStub = stub(console, 'error');
});

afterEach(() => {
consoleStub.restore();
});

it('color must be empty', () => {
const wrapper = shallow(<IconButton icon="printer" color="red" />);

assert.calledWithMatch(consoleStub, /Failed prop type: <IconButton> must not contains color./);
expect(wrapper.find(Button).prop('color')).toBeUndefined();
});

it('solid must be empty', () => {
const wrapper = shallow(<IconButton icon="printer" solid />);

assert.calledWithMatch(consoleStub, /Failed prop type: <IconButton> must not contains solid./);
expect(wrapper.find(Button).prop('solid')).toBeUndefined();
});
});
});
1 change: 0 additions & 1 deletion packages/core/src/styles/EditableBasicRow.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,3 @@ $block-name: #{$prefix}-editable-basic-row;
color: inherit;
}
}

1 change: 0 additions & 1 deletion packages/core/src/styles/HeaderRow.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ $component: #{$prefix}-header-row;
overflow: hidden;
}
}

Loading

0 comments on commit c2837f5

Please sign in to comment.