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

bump js deps #109

Merged
merged 2 commits into from
Jul 10, 2023
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.9]
node-version: [14.x]
event-name: [push]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -68,12 +67,12 @@ jobs:
- name: Checks
run: |
make checks
if: ${{ github.event_name == matrix.event-name || matrix.os == 'ubuntu-latest' }}
if: ${{ matrix.os == 'ubuntu-latest' }}

- name: Test
run: |
make tests
if: ${{ github.event_name == matrix.event-name || matrix.os == 'ubuntu-latest' }}
if: ${{ matrix.os == 'ubuntu-latest' }}

- name: Upload test results (Python)
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion js/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
*/

module.exports = {
module.exports = {
parser: "@babel/eslint-parser",
extends: ["airbnb-base", "prettier", "plugin:json/recommended"],
plugins: ["prettier", "jest"],
Expand Down
7 changes: 4 additions & 3 deletions js/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
/******************************************************************************
*
* Copyright (c) 2021, the ipyregulartable authors.
* Copyright (c) 2020, the ipyregulartable authors.
*
* This file is part of the ipyregulartable library, distributed under the terms of
* the Apache License 2.0. The full license can be found in the LICENSE file.
*
*/
const esModules = ["@finos", "@jupyter", "@jupyterlab", "@jupyter-widgets", "lib0", "y-protocols", "internmap", "delaunator", "robust-predicates", "lodash-es"].join("|");
const esModules = ["@jupyterlab", "@jupyter-widgets", "lib0", "y-protocols", "dagre-d3-es", "d3", "internmap", "delaunator", "robust-predicates", "lodash-es"].join("|");

module.exports = {
moduleDirectories: ["node_modules", "src", "tests"],
moduleNameMapper: {
"\\.(css|less|sass|scss)$": "<rootDir>/tests/styleMock.js",
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/tests/fileMock.js",
},
reporters: [ "default", "jest-junit" ],
reporters: ["default", "jest-junit"],
setupFiles: ["<rootDir>/tests/setup.js"],
testEnvironment: "jsdom",
transform: {
"^.+\\.jsx?$": "babel-jest",
Expand Down
59 changes: 29 additions & 30 deletions js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,52 +60,51 @@
}
},
"dependencies": {
"@jupyter-widgets/base": "^6.0.1",
"mathjs": "^11.5.1",
"regular-table": "^0.5.6"
"@jupyter-widgets/base": "^6.0.5",
"mathjs": "^11.8.2",
"regular-table": "^0.5.7"
},
"devDependencies": {
"@babel/cli": "^7.20.7",
"@babel/core": "^7.20.12",
"@babel/eslint-parser": "^7.19.1",
"@babel/preset-env": "^7.20.2",
"@jupyterlab/builder": "^3.6.1",
"@lumino/application": "^1.31.3",
"@lumino/widgets": "^1.37.1",
"auditjs": "^4.0.39",
"@babel/cli": "^7.22.6",
"@babel/core": "^7.22.8",
"@babel/eslint-parser": "^7.22.7",
"@babel/preset-env": "^7.22.7",
"@jupyterlab/builder": "^4.0.2",
"@lumino/application": "^2.2.0",
"@lumino/widgets": "^2.2.0",
"auditjs": "^4.0.40",
"auditjs-screener": "^0.1.1",
"babel-jest": "^29.4.3",
"css-loader": "^6.7.3",
"eslint": "^8.34.0",
"babel-jest": "^29.6.1",
"css-loader": "^6.8.1",
"eslint": "^8.44.0",
"eslint-config-airbnb": "^19.0.2",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.6.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-jsdoc": "^40.0.0",
"eslint-plugin-jest": "^27.2.2",
"eslint-plugin-jsdoc": "^46.4.3",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-unicorn": "^45.0.2",
"eslint-plugin-prettier": "^5.0.0-alpha.2",
"eslint-plugin-unicorn": "^47.0.0",
"expect.js": "^0.3.1",
"fs-extra": "^11.1.0",
"fs-extra": "^11.1.1",
"isomorphic-fetch": "^3.0.0",
"jest": "^29.4.3",
"jest-environment-jsdom": "^29.4.3",
"jest-junit": "^15.0.0",
"jest": "^29.6.1",
"jest-environment-jsdom": "^29.6.1",
"jest-junit": "^16.0.0",
"jest-transform-css": "^6.0.1",
"mkdirp": "^2.1.3",
"mkdirp": "^3.0.1",
"mocha": "^10.2.0",
"npm-run-all": "^4.1.3",
"prettier": "^2.8.4",
"rimraf": "^4.1.2",
"prettier": "^3.0.0",
"rimraf": "^5.0.1",
"source-map-loader": "^4.0.1",
"style-loader": "^3.2.1",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.0"
"style-loader": "^3.3.3",
"webpack": "^5.88.1",
"webpack-cli": "^5.1.4"
},
"resolutions": {
"json5": "^2.2.3",
"kind-of": "^6.0.3"
}
}
2 changes: 1 addition & 1 deletion js/src/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export class RegularTableView extends DOMWidgetView {
this.reject = reject;
this.send({event: "dataslice", value: [x0, y0, x1, y1]});
}),
{virtual_mode: this.model.get("virtual_mode")}
{virtual_mode: this.model.get("virtual_mode")},
);

// hook in click events
Expand Down
3 changes: 3 additions & 0 deletions js/tests/setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Object.defineProperty(window, "DragEvent", {
value: class DragEvent {},
});
Loading
Loading