Skip to content

Commit c39c6b8

Browse files
authored
Merge branch 'develop' into fb_merge_24.7_to_develop
2 parents dd70253 + c0fb39d commit c39c6b8

File tree

9 files changed

+4395
-5616
lines changed

9 files changed

+4395
-5616
lines changed

jbrowse/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = {
1919
'^.+\\.tsx?$': [
2020
'ts-jest',
2121
{
22-
tsconfig: 'node_modules/@labkey/build/webpack/tsconfig.json',
22+
isolatedModules: true,
2323
}
2424
],
2525
},

jbrowse/package-lock.json

Lines changed: 4362 additions & 5553 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jbrowse/package.json

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"setup": "npm ci",
77
"build": "npm run build-dev",
8-
"start": "cross-env NODE_ENV=development webpack-dev-server --config ./config/watch.config.js",
8+
"start": "cross-env NODE_ENV=development webpack serve --config ./config/watch.config.js",
99
"build-no-pkg": "npm run clean && cross-env NODE_ENV=development webpack --config ./config/dev.config.js --progress --profile",
1010
"build-dev": "npm run build-no-pkg",
1111
"build-prod": "npm run clean && cross-env NODE_ENV=production PROD_SOURCE_MAP=source-map webpack --config ./config/prod.config.js --progress --profile",
@@ -21,9 +21,9 @@
2121
"@jbrowse/plugin-svg": "^2.10.3",
2222
"@jbrowse/plugin-variants": "^2.10.3",
2323
"@jbrowse/react-linear-genome-view": "^2.10.3",
24-
"@labkey/api": "^1.25.0",
25-
"@labkey/components": "^2.0.0",
24+
"@labkey/api": "1.35.0",
2625
"@mui/x-data-grid": "^6.0.1",
26+
"@yao-pkg/pkg": "^5.12.0",
2727
"assert": "^2.0.0",
2828
"browserify-zlib": "^0.2.0",
2929
"buffer": "^6.0.3",
@@ -34,31 +34,41 @@
3434
"jspdf-autotable": "^3.5.31",
3535
"node-polyfill-webpack-plugin": "2.0.1",
3636
"path-browserify": "^1.0.1",
37-
"pkg": "^5.8.1",
37+
"react": "^16.14.0",
3838
"react-data-grid": "7.0.0-beta.10",
39+
"react-dom": "^16.14.0",
3940
"react-google-charts": "^4.0.1",
40-
"react-hot-loader": "^4.13.1",
4141
"react-select": "^5.7.4",
4242
"regenerator-runtime": "^0.13.11",
4343
"stream-browserify": "^3.0.0",
44-
"typescript": "^5.1.6",
4544
"util": "^0.12.5",
4645
"uuid": "^9.0.0",
4746
"vm-browserify": "^1.1.2"
4847
},
4948
"devDependencies": {
50-
"@labkey/build": "6.16.0",
49+
"@labkey/build": "7.4.0",
5150
"@types/jest": "^29.0.0",
5251
"@types/jexl": "^2.3.1",
5352
"@types/jquery": "^3.0.0",
54-
"@types/node": "^18.17.1",
55-
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
53+
"@types/node": "^20.14.11",
54+
"@types/react": "16.14.60",
55+
"@types/react-dom": "16.9.24",
5656
"enzyme": "^3.11.0",
57+
"enzyme-adapter-react-16": "^1.15.8",
5758
"jest": "^29.0.0",
5859
"jest-cli": "^29.0.0",
5960
"jest-environment-jsdom": "^29.7.0",
6061
"jest-mock": "^29.0.0",
61-
"rimraf": "^3.0.2",
62-
"ts-jest": "^29.0.0"
62+
"rimraf": "^6.0.1",
63+
"ts-jest": "^29.0.0",
64+
"typescript": "^5.1.6"
65+
},
66+
"overrides": {
67+
"@types/react": {
68+
".": "16.14.60"
69+
},
70+
"@types/react-dom": {
71+
".": "16.9.24"
72+
}
6373
}
6474
}
Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom';
3-
import { AppContainer } from 'react-hot-loader';
43

54
import View from './Browser';
65

76
const render = () => {
8-
ReactDOM.render(
9-
<AppContainer>
10-
<View />
11-
</AppContainer>,
12-
document.getElementById('app')
13-
)
7+
ReactDOM.render(<View />, document.getElementById('app'));
148
};
159

16-
declare const module: any;
17-
18-
if (module.hot) {
19-
module.hot.accept();
20-
}
21-
2210
render();
Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom';
3-
import { AppContainer } from 'react-hot-loader';
43
import { App } from '@labkey/api';
54

65
import StandaloneSearch from '../StandaloneSearch';
76

8-
App.registerApp<any>('jbrowseSearchWebpart', (target: string, sessionId: string) => {
9-
ReactDOM.render(
10-
<AppContainer>
11-
<StandaloneSearch sessionId={sessionId} />
12-
</AppContainer>,
13-
document.getElementById(target)
14-
);
15-
}, true /* hot */);
7+
const render = (target: string, sessionId: string) => {
8+
ReactDOM.render(<StandaloneSearch sessionId={sessionId} />, document.getElementById(target));
9+
};
1610

17-
declare const module: any;
11+
App.registerApp<any>('jbrowseSearchWebpart', render, true /* hot */);
Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom';
3-
import { AppContainer } from 'react-hot-loader';
43

54
import VariantTable from './VariantTable';
65

76
const render = () => {
8-
ReactDOM.render(
9-
<AppContainer>
10-
<VariantTable />
11-
</AppContainer>,
12-
document.getElementById('app')
13-
)
7+
ReactDOM.render(<VariantTable />, document.getElementById('app'));
148
};
159

16-
declare const module: any;
17-
18-
if (module.hot) {
19-
module.hot.accept();
20-
}
21-
2210
render();
Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom';
3-
import { AppContainer } from 'react-hot-loader';
43

54
import VariantTable from './VariantTable';
65

76
const render = () => {
8-
ReactDOM.render(
9-
<AppContainer>
10-
<VariantTable />
11-
</AppContainer>,
12-
document.getElementById('app')
13-
)
7+
ReactDOM.render(<VariantTable />, document.getElementById('app'));
148
};
159

16-
declare const module: any;
17-
18-
if (module.hot) {
19-
module.hot.accept();
20-
}
21-
2210
render();
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'regenerator-runtime/runtime';
22
import { configure } from 'enzyme';
3-
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
3+
import Adapter from 'enzyme-adapter-react-16';
44

55
configure({ adapter: new Adapter() });

jbrowse/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2-
"extends": "./node_modules/@labkey/build/webpack/tsconfig.json"
2+
"extends": "./node_modules/@labkey/build/webpack/tsconfig.json",
3+
"include": ["src/client/**/*"],
4+
"exclude": ["node_modules"]
35
}
46

0 commit comments

Comments
 (0)