Skip to content

Commit

Permalink
Remove legacy context parameter. (#194)
Browse files Browse the repository at this point in the history
* Remove legacy context parameter.

* Bumps version and updates changelog

* Updates static build artefacts

Co-authored-by: Henning Muszynski <[email protected]>
  • Loading branch information
proxi and henningmu authored May 11, 2020
1 parent 538b3bd commit 6b1dac1
Show file tree
Hide file tree
Showing 19 changed files with 22 additions and 22 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Reactist follows [semantic versioning](https://semver.org/) and doesn't introduce breaking changes (API-wise) in minor or patch releases. However, the appearance of a component might change in a minor or patch release so keep an eye on redesigns and make sure your app still looks and feels like you expect it.

## 3.1.2

- [Tweak] Removes unused (legacy) context from `<Time />` constructor

## 3.1.1

- [Tweak] Better typing for the checkbox label
Expand Down
3 changes: 1 addition & 2 deletions dist/components/Time.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ export type State = {
declare class Time extends React.Component<Props, State, any> {
/**
* @param {Props} props
* @param {unknown} context
*/
constructor(props: Props, context: unknown);
constructor(props: Props);
refresh_interval: NodeJS.Timeout;
state: {
hovered: boolean;
Expand Down
2 changes: 1 addition & 1 deletion dist/reactist.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reactist.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@
}</script><style>#root[hidden],
#docs-root[hidden] {
display: none !important;
}</style></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><pre id="error-message" class="sb-heading"></pre><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><div id="docs-root"></div><script src="runtime~main.9fb5dacf2ef9facad480.bundle.js"></script><script src="vendors~main.9fb5dacf2ef9facad480.bundle.js"></script><script src="main.9fb5dacf2ef9facad480.bundle.js"></script></body></html>
}</style></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><pre id="error-message" class="sb-heading"></pre><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><div id="docs-root"></div><script src="runtime~main.6374553ca8a4e65daeff.bundle.js"></script><script src="vendors~main.6374553ca8a4e65daeff.bundle.js"></script><script src="main.6374553ca8a4e65daeff.bundle.js"></script></body></html>
2 changes: 2 additions & 0 deletions docs/main.6374553ca8a4e65daeff.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/main.6374553ca8a4e65daeff.bundle.js.map

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

2 changes: 0 additions & 2 deletions docs/main.9fb5dacf2ef9facad480.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/main.9fb5dacf2ef9facad480.bundle.js.map

This file was deleted.

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

1 change: 1 addition & 0 deletions docs/runtime~main.6374553ca8a4e65daeff.bundle.js.map

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

1 change: 0 additions & 1 deletion docs/runtime~main.9fb5dacf2ef9facad480.bundle.js.map

This file was deleted.

Large diffs are not rendered by default.

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

3 changes: 1 addition & 2 deletions lib/Time.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ export type State = {
declare class Time extends React.Component<Props, State, any> {
/**
* @param {Props} props
* @param {unknown} context
*/
constructor(props: Props, context: unknown);
constructor(props: Props);
refresh_interval: NodeJS.Timeout;
state: {
hovered: boolean;
Expand Down
5 changes: 2 additions & 3 deletions lib/Time.js
Original file line number Diff line number Diff line change
Expand Up @@ -828,14 +828,13 @@ function (_React$Component) {

/**
* @param {Props} props
* @param {unknown} context
*/
function Time(props, context) {
function Time(props) {
var _this;

_classCallCheck(this, Time);

_this = _possibleConstructorReturn(this, _getPrototypeOf(Time).call(this, props, context));
_this = _possibleConstructorReturn(this, _getPrototypeOf(Time).call(this, props));
_this.refresh_interval = null;
_this.state = {
hovered: false,
Expand Down
2 changes: 1 addition & 1 deletion 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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@doist/reactist",
"version": "3.1.1",
"version": "3.1.2",
"description": "Open source React components by Doist",
"main": "./dist/reactist.js",
"scripts": {
Expand Down
5 changes: 2 additions & 3 deletions src/components/Time.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ const DELAY = 60000
class Time extends React.Component {
/**
* @param {Props} props
* @param {unknown} context
*/
constructor(props, context) {
super(props, context)
constructor(props) {
super(props)

this.refresh_interval = null

Expand Down

0 comments on commit 6b1dac1

Please sign in to comment.