Skip to content

Commit dfb3849

Browse files
committed
Move to JupyterLab 4.1, fix tests and eslint config
1 parent 7af5cb2 commit dfb3849

File tree

18 files changed

+577
-491
lines changed

18 files changed

+577
-491
lines changed

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
.eggs/
2+
.mypy_cache
3+
.pytest_cache
24
.venv/
35
**/_*.d.ts
46
**/.ipynb_checkpoints

package.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,9 @@
4040
"private": true,
4141
"resolutions": {
4242
"prettier": "^2.8.1",
43-
"typescript": "~5.0.3",
43+
"typescript": "~5.1.6",
4444
"decode-uri-component": "^0.2.1",
45-
"jest": "^29.0.0",
46-
"@jupyterlab/docregistry": "~4.0.12",
47-
"@jupyterlab/ui-components": "~4.0.12",
48-
"@jupyterlab/translation": "~4.0.12",
49-
"@jupyterlab/docmanager": "~4.0.12",
50-
"@jupyterlab/apputils": "~4.1.12",
51-
"@jupyterlab/rendermime": "~4.0.12",
52-
"@jupyterlab/services": "~7.0.12",
53-
"@jupyterlab/coreutils": "~6.0.12",
54-
"@jupyterlab/statusbar": "~4.0.12",
55-
"@jupyterlab/observables": "~5.0.12"
45+
"jest": "^29.0.0"
5646
},
5747
"scripts": {
5848
"bootstrap": "jlpm & jlpm deduplicate && jlpm clean && jlpm build && jlpm lint",

packages/.eslintrc.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ module.exports = {
9292
'unknown'
9393
],
9494
pathGroups: [
95-
{ pattern: 'react/**', group: 'builtin', order: 'after' },
96-
{ pattern: 'codemirror/**', group: 'external', order: 'before' },
97-
{ pattern: '@lumino/**', group: 'external', order: 'before' },
98-
{ pattern: '@jupyterlab/**', group: 'external', order: 'after' }
95+
{ pattern: 'react/**', group: 'builtin', position: 'after' },
96+
{ pattern: 'codemirror/**', group: 'external', position: 'before' },
97+
{ pattern: '@lumino/**', group: 'external', position: 'before' },
98+
{ pattern: '@jupyterlab/**', group: 'external', position: 'after' }
9999
],
100100
'newlines-between': 'always',
101101
alphabetize: { order: 'asc' }

packages/_example-extractor/jest.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ const reuseFromUpstream = [
1111
];
1212

1313
const esModules = [
14+
'@microsoft',
15+
'@jupyter/react-components',
16+
'@jupyter/web-components',
17+
'exenv-es6',
1418
'@jupyterlab/',
1519
'@jupyter-notebook/',
1620
'lib0',

packages/_example-extractor/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
"LICENSE"
1212
],
1313
"dependencies": {
14-
"@jupyter-lsp/jupyterlab-lsp": "^5.0.0-alpha.0"
14+
"@jupyter-lsp/jupyterlab-lsp": "^5.0.0"
1515
},
1616
"devDependencies": {
17-
"@jupyterlab/application": " ~4.0.12",
18-
"@jupyterlab/testing": " ~4.0.12",
17+
"@jupyterlab/application": "^4.1.0",
18+
"@jupyterlab/testing": "^4.1.0",
1919
"@types/jest": "^29.5.4",
2020
"jest": "^29.2.0",
2121
"rimraf": "^5.0.5",
22-
"typescript": "~5.0.4"
22+
"typescript": "~5.1.6"
2323
},
2424
"jupyterlab": {
2525
"extension": true

packages/_klingon-integration/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
"LICENSE"
1212
],
1313
"dependencies": {
14-
"@jupyterlab/application": " ~4.0.12"
14+
"@jupyterlab/application": "^4.1.0"
1515
},
1616
"devDependencies": {
17-
"@jupyterlab/application": " ~4.0.12",
18-
"@jupyterlab/builder": " ~4.0.12",
19-
"typescript": "~5.0.4"
17+
"@jupyterlab/application": "^4.1.0",
18+
"@jupyterlab/builder": "^4.1.0",
19+
"typescript": "~5.1.6"
2020
},
2121
"jupyterlab": {
2222
"extension": true,

packages/code-jumpers/jest.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ const reuseFromUpstream = [
1010
];
1111

1212
const esModules = [
13+
'@microsoft',
14+
'@jupyter/react-components',
15+
'@jupyter/web-components',
16+
'exenv-es6',
1317
'@jupyterlab/',
1418
'lib0',
1519
'y\\-protocols',

packages/code-jumpers/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@
3030
"clean": "rimraf lib"
3131
},
3232
"devDependencies": {
33-
"@jupyterlab/apputils": "~4.1.12",
34-
"@jupyterlab/codeeditor": "~4.0.12",
35-
"@jupyterlab/coreutils": "~6.0.12",
36-
"@jupyterlab/docmanager": "~4.0.12",
37-
"@jupyterlab/docregistry": "~4.0.12",
38-
"@jupyterlab/fileeditor": "~4.0.12",
39-
"@jupyterlab/notebook": "~4.0.12",
40-
"@jupyterlab/observables": "~5.0.12",
41-
"@jupyterlab/testing": "~4.0.12",
42-
"@jupyterlab/translation": "~4.0.12",
33+
"@jupyterlab/apputils": "^4.2.0",
34+
"@jupyterlab/codeeditor": "^4.1.0",
35+
"@jupyterlab/coreutils": "^6.1.0",
36+
"@jupyterlab/docmanager": "^4.1.0",
37+
"@jupyterlab/docregistry": "^4.1.0",
38+
"@jupyterlab/fileeditor": "^4.1.0",
39+
"@jupyterlab/notebook": "^4.1.0",
40+
"@jupyterlab/observables": "^5.1.0",
41+
"@jupyterlab/testing": "^4.1.0",
42+
"@jupyterlab/translation": "^4.1.0",
4343
"rimraf": "^5.0.5",
44-
"typescript": "~5.0.4"
44+
"typescript": "~5.1.6"
4545
},
4646
"jupyterlab": {
4747
"extension": false,

packages/completion-theme/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
"clean": "rimraf lib"
3434
},
3535
"devDependencies": {
36-
"@jupyterlab/builder": " ~4.0.12",
37-
"@jupyterlab/ui-components": " ~4.0.12",
36+
"@jupyterlab/builder": "^4.1.0",
37+
"@jupyterlab/ui-components": "^4.1.0",
3838
"react": "^18.2.0",
3939
"rimraf": "^5.0.5",
40-
"typescript": "~5.0.4"
40+
"typescript": "~5.1.6"
4141
},
4242
"jupyterlab": {
4343
"extension": true,

packages/jupyterlab-lsp/jest.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ const reuseFromUpstream = [
1111
];
1212

1313
const esModules = [
14+
'@microsoft',
15+
'@jupyter/react-components',
16+
'@jupyter/web-components',
17+
'exenv-es6',
1418
'@jupyterlab/',
1519
'@jupyter-notebook/',
1620
'lib0',

0 commit comments

Comments
 (0)