Skip to content

Commit

Permalink
Release 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mlucool committed May 19, 2023
1 parent 9f0b205 commit d9be071
Show file tree
Hide file tree
Showing 6 changed files with 769 additions and 608 deletions.
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint
npm run test
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [3.0.0](https://github.com/deshaw/jupyterlab-execute-time/compare/v2.3.1...v3.0.0) (2023-05-19))

### Changed

- **Breaking**: Ported to JupyterLab 4.x.

## [2.3.1](https://github.com/deshaw/jupyterlab-execute-time/compare/v2.3.0...v2.3.1) (2022-12-28))

### Fixed
Expand Down
21 changes: 8 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jupyterlab-execute-time",
"version": "2.3.1",
"version": "3.0.0",
"description": "Display cell timings in Jupyter Lab",
"keywords": [
"jupyter",
Expand Down Expand Up @@ -48,7 +48,7 @@
"eslint:check": "eslint . --ext .ts,.tsx",
"install:extension": "jlpm run build",
"lint": "npm run prettier && npm run tslint",
"prepare": "jlpm run clean && jlpm run build:prod",
"prepare": "jlpm run clean && jlpm run build:prod && husky install",
"prettier": "prettier --write '**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}'",
"test": "ts-mocha -p tests/tsconfig.json tests/**/*_spec.ts",
"tslint": "tslint --fix -c tslint.json --project tsconfig.json '**/*{.ts,.tsx}'",
Expand All @@ -57,22 +57,17 @@
"watch:src": "tsc -w --sourceMap"
},
"dependencies": {
"@jupyterlab/application": "^4.0.0-alpha.22",
"@jupyterlab/cells": "^4.0.0-alpha.22",
"@jupyterlab/docregistry": "^4.0.0-alpha.22",
"@jupyterlab/notebook": "^4.0.0-alpha.22",
"@jupyterlab/settingregistry": "^4.0.0-alpha.22",
"@jupyterlab/application": "^4.0.0",
"@jupyterlab/cells": "^4.0.0",
"@jupyterlab/docregistry": "^4.0.0",
"@jupyterlab/notebook": "^4.0.0",
"@jupyterlab/settingregistry": "^4.0.0",
"@lumino/coreutils": "^2.0.0-rc.1",
"@lumino/widgets": "^2.0.0-rc.1",
"date-fns": "^2.29.3"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint && npm run test"
}
},
"devDependencies": {
"@jupyterlab/builder": "^4.0.0-alpha.22",
"@jupyterlab/builder": "^4.0.0",
"@types/chai": "^4.3.4",
"@types/mocha": "^10.0.1",
"@typescript-eslint/eslint-plugin": "~5.55.0",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["jupyter_packaging~=0.10,<2", "jupyterlab==4.0.0a37"]
requires = ["jupyter_packaging~=0.10,<2", "jupyterlab~=4.0.0"]
build-backend = "jupyter_packaging.build_api"

[tool.jupyter-packaging.builder]
Expand Down
2 changes: 1 addition & 1 deletion src/ExecuteTimeWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default class ExecuteTimeWidget extends Widget {
_cellMetadataChanged(cellModel: ICellModel, disableHighlight = false) {
const codeCell = this._getCodeCell(cellModel);
if (codeCell) {
this._updateCodeCell(codeCell, disableHighlight);
this._updateCodeCell(codeCell, disableHighlight).catch(console.error);
} else {
if (cellModel.type === 'code') {
console.error(`Could not find code cell for model: ${cellModel}`);
Expand Down
Loading

0 comments on commit d9be071

Please sign in to comment.