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

Migrate to React 17 #3

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
doc/*
/**/*.d.ts
/dist/*
/doc/*
/**/*.d.ts
/example/example.js
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
example/example*

.DS_Store
doc/

Expand Down
38 changes: 0 additions & 38 deletions .gitlab-ci.yml

This file was deleted.

2 changes: 1 addition & 1 deletion __tests__/ArrayLayer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { expect } from 'chai';
import sinon from 'sinon';
import { configure, mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
import { Plot } from 'sigplot';
import { ArrayLayer } from '../src/index';

Expand Down
2 changes: 1 addition & 1 deletion __tests__/HrefLayer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { expect } from 'chai';
import sinon from 'sinon';
import { configure, mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
import { Plot } from 'sigplot';
import { HrefLayer } from '../src/index';

Expand Down
2 changes: 1 addition & 1 deletion __tests__/PipeLayer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { expect } from 'chai';
import sinon from 'sinon';
import { configure, mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
import { Plot } from 'sigplot';
import { PipeLayer } from '../src/index';

Expand Down
2 changes: 1 addition & 1 deletion __tests__/SigPlot.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { expect } from 'chai';
import sinon from 'sinon';
import { configure, mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
import { Plot } from 'sigplot';
import { SigPlot, ArrayLayer, PipeLayer, HrefLayer } from '../src/index';

Expand Down
2 changes: 1 addition & 1 deletion __tests__/WebsocketLayer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { expect } from 'chai';
import sinon from 'sinon';
import { configure, mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
import { Plot } from 'sigplot';
import { WebsocketLayer } from '../src/index.js';

Expand Down
37 changes: 0 additions & 37 deletions dist/demo.html

This file was deleted.

268 changes: 0 additions & 268 deletions dist/example.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/example.js.map

This file was deleted.

346 changes: 300 additions & 46 deletions dist/react-sigplot.js

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion dist/react-sigplot.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion example/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import App from './app';
import React from 'react';
import ReactDOM from 'react-dom';
require('file-loader?name=demo.html!./demo.html');
ReactDOM.render(<App />, document.getElementById('app'));
Loading