Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(npm): upgrade peer style-components to v3 [BREAKING CHANGES] #82

Merged
merged 2 commits into from
Jan 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 0 additions & 9 deletions .eslintignore

This file was deleted.

11 changes: 11 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[ignore]

[include]

[libs]

[lints]

[options]

[strict]
2 changes: 1 addition & 1 deletion .storybook/addons.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@storybook/addons';
// @flow
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';
import '@storybook/addon-options/register';
3 changes: 2 additions & 1 deletion .storybook/config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// @flow
import { configure, addDecorator, setAddon } from '@storybook/react';
import infoAddon from '@storybook/addon-info';
import { setOptions } from '@storybook/addon-options';
import centered from './decorator-centered';

const context = require.context('../src/', true, /\.example\.js$/);
const context = (require: any).context('../src/', true, /\.example\.js$/);

setAddon(infoAddon);
addDecorator(centered);
Expand Down
3 changes: 2 additions & 1 deletion .storybook/decorator-centered.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint no-unused-expressions:0 */
// @flow
import React from 'react';
import { injectGlobal } from 'styled-components';
import 'normalize.css';
Expand All @@ -9,6 +10,6 @@ injectGlobal`
}
`;

export default function(renderStory) {
export default function(renderStory: Function) {
return renderStory();
}
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ install:
script:
- yarn run eslint
- yarn run test
- yarn run flow
- yarn run build
- yarn run build-storybook

Expand Down
235 changes: 105 additions & 130 deletions CHANGELOG.md

Large diffs are not rendered by default.

172 changes: 172 additions & 0 deletions CHANGELOG.old.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
# Changelog

## [HEAD]

> Unreleased

## [v2.1.3]

> Jan 25, 2018

* fix(dependency): pinOnlyDevDependencies

## [v2.1.2]

> Jan 16, 2018

* chore(ncu): ncu update

## [v2.1.1]

> Sep 27, 2017

* fix(travis): npm release bug

## [v2.1.0]

> Sep 27, 2017

* chore(ncu): update jest-styled-components to 4
* chore(eslint): introduce airbnb & prettier eslint configs

* chore(travis): setup auto release
* docs(LICENSE): add LICENSE file
* chore(package): ncu update React 16
* style: update prettier & extract prettier config
* chore(env): use node 8.6.0 & yarn 1.1.0 & add nvmrc for netlify

## [v2.0.4]

> Jul 04, 2017

* fix(Image): remove useless props from BaseComponent.
* chore(ncu): update styled-components to 2.1.1

## [v2.0.3]

> Jul 03, 2017

* fix(Image): `src` override priority issue.

## [v2.0.2]

> Jul 03, 2017

* feat(Img): Support for other Component based with `component` props.

**BackgroundImage will cause flicking while changing at safari.**

## [v2.0.1]

Publish fail.

## [v2.0.0]

> Jul 03, 2017

* feat(cache): add new cache feature ([#24])

### BREAKING CHANGES

```diff
<ProgressiveImage
src={image1}
placeholder={image1X60}
blur={2}
opacity={0.9}
+ transition="all 1s linear"
style={{
height: 600,
backgroundSize: 'contain',
backgroundPosition: 'center center',
- transition: 'all 1s linear',
}}
/>,
```

## [v1.1.4]

> Jul 01, 2017

* fix(Image): missing close url `)`.

## [v1.1.3]

> Jul 01, 2017

* chore(ncu): bump dependencies
* feat(props): support for custom blur / opacity / scale props.

## [v1.1.2]

> Jun 30, 2017

* fix(SC): move dynamic props to style for safari flick issue

## [v1.1.1]

> May 31, 2017

* chore(env): use node 8 / npm 5 / styled-components 2 / storybook 3

## [v1.1.0]

> May 23, 2017

* chore(packages): yarn upgrade jest codecov prop-types rxjs
* test(jest-styled-components): introduce css snapshot
* chore(storybook): upgrade to `3.0.0-alpha.4`

## [v1.0.7]

> May 06, 2017

* refactor(recompose): switch to `mapPropsStream`.
* chore(styled-components): update to rc.

## [v1.0.6]

> May 04, 2017

* fix(rx): add test for loading the second image at same time.

## [v1.0.5]

> May 03, 2017

* test(rx): add marble testing
* feat(style): add inline-style example.

## [v1.0.4]

> May 03, 2017

* feat(normalize.css): upgrade to 7.0.0
* chore(packages): yarn upgrade

## [v1.0.3]

> May 02, 2017

* feat(eslint): setup eslint.
* docs(README): add gif demo.

## [v1.0.2]

> May 02, 2017

* fix(Component): props name conflict

## [v1.0.1]

> May 02, 2017

* Setup travis CI and netlify.
* Update readme.md
* Setup jest for testing.

## [v1.0.0]

> May 02, 2017

* first release
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@

## Installation

```console
$ npm i react-progressive-bg-image styled-components --save
// or
```sh
$ yarn add react-progressive-bg-image styled-components
```

Expand All @@ -40,8 +38,8 @@ $ yarn add react-progressive-bg-image styled-components
* node >= 9.4.0
* yarn >= 1.3.2

* react `^15.0.0 || ^16.0.0`,
* styled-components `^2.0.0`
* react `^16.0.0`,
* styled-components `^3`

## Usage

Expand Down