Skip to content

Commit e16e450

Browse files
authored
Merge pull request #2817 from jasongrout/updatejlab2
Update for jlab 2.0.1 final
2 parents f983518 + 9e805f7 commit e16e450

File tree

16 files changed

+2055
-1107
lines changed

16 files changed

+2055
-1107
lines changed

docs/source/dev_release.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ First, update the relevant model specification versions. For example, the commit
2828

2929
Next, regenerate the model spec with the new version numbers by doing something like this in the repository root directory:
3030
```
31-
python ./packages/schema/generate-spec.py > packages/schema/jupyterwidgetmodels.latest.md
31+
python ./packages/schema/generate-spec.py -f json-pretty > packages/schema/jupyterwidgetmodels.latest.json
32+
python ./packages/schema/generate-spec.py -f markdown > packages/schema/jupyterwidgetmodels.latest.md
3233
```
3334

3435
Copy `packages/schema/jupyterwidgetmodels.latest.md` to an appropriately-named
@@ -47,10 +48,12 @@ git pull origin master
4748
git reset --hard origin/master
4849
git clean -fdx
4950
yarn install
51+
yarn run version
52+
# Check the latest commit to make sure it is correct
5053
yarn run publish
5154
```
5255

53-
Lerna will prompt you for version numbers for each of the changed npm packages. Lerna will then change the versions appropriately (including the interdependency versions), commit, tag, and publish the new packages to npm.
56+
Lerna will prompt you for version numbers for each of the changed npm packages in the version step. Lerna will then change the versions appropriately (including the interdependency versions), commit, and tag. The `yarn run publish` step then publishes the public packages that were versioned to npm.
5457

5558
### widgetsnbextension
5659

examples/web3/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"@jupyter-widgets/base": "^2.0.2",
1818
"@jupyter-widgets/controls": "^1.5.3",
1919
"@jupyter-widgets/html-manager": "^0.18.4",
20-
"@jupyterlab/services": "^5.0.0-beta.2",
21-
"@lumino/widgets": "^1.3.0",
20+
"@jupyterlab/services": "^5.0.2",
21+
"@lumino/widgets": "^1.11.1",
2222
"codemirror": "^5.48.0",
2323
"font-awesome": "^4.7.0",
2424
"http-server": "^0.11.1"

ipywidgets/_version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
'' if version_info[3]=='final' else _specifier_[version_info[3]]+str(version_info[4]))
1010

1111
__protocol_version__ = '2.0.0'
12-
__jupyter_widgets_base_version__ = '1.2.0'
12+
__jupyter_widgets_base_version__ = '2.0.0'
1313
__jupyter_widgets_output_version__ = '1.0.0'
14-
__jupyter_widgets_controls_version__ = '1.5.0'
14+
__jupyter_widgets_controls_version__ = '2.0.0'
1515

1616
# A compatible @jupyter-widgets/html-manager npm package semver range
1717
__html_manager_version__ = '^0.18.0'

package.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,33 @@
55
"widgetsnbextension",
66
"examples/*"
77
],
8-
"engines": {
9-
"npm": "please-use-yarn",
10-
"node": ">=10.15.3",
11-
"yarn": ">=1.15.0"
12-
},
138
"scripts": {
149
"build": "lerna run build --ignore \"@jupyter-widgets/example-*\"",
1510
"build:examples": "lerna run build --scope \"@jupyter-widgets/example-*\" --include-filtered-dependencies",
1611
"build:test": "lerna run build:test --ignore \"@jupyter-widgets/example-*\"",
1712
"clean": "lerna run clean",
18-
"integrity": "node scripts/package-integrity.js",
1913
"eslint": "eslint . --fix --ignore-path .gitignore --ext .ts,.tsx",
2014
"eslint:check": "eslint . --ignore-path .gitignore --ext .ts,.tsx",
15+
"integrity": "node scripts/package-integrity.js",
2116
"integrity2": "node buildutils/lib/integrity.js",
2217
"lint": "yarn && yarn run prettier && yarn run eslint",
2318
"lint:check": "yarn run prettier:check && yarn run eslint:check",
2419
"prettier": "prettier --ignore-path .gitignore --write \"**/*{.ts,.tsx,.js,.jsx,.css,.json}\"",
2520
"prettier:check": "prettier --ignore-path .gitignore --check \"**/*{.ts,.tsx,.js,.jsx,.css,.json}\"",
21+
"publish": "yarn run clean && yarn run build && lerna publish --pre-dist-tag next from-git",
2622
"sort-package-json": "lerna exec --parallel sort-package-json && sort-package-json",
27-
"publish": "yarn run clean && yarn run build && lerna publish -m \"Publish npm packages\"",
2823
"update-dependency": "update-dependency --lerna",
29-
"updated": "lerna updated"
24+
"updated": "lerna updated",
25+
"version": "yarn run clean && yarn run build && lerna version --no-push -m \"Bump version\" "
26+
},
27+
"husky": {
28+
"hooks": {
29+
"pre-commit": "lint-staged",
30+
"pre-push": "yarn run integrity"
31+
}
3032
},
3133
"devDependencies": {
32-
"@jupyterlab/buildutils": "^2.0.0-beta.2",
34+
"@jupyterlab/buildutils": "^2.0.2",
3335
"@typescript-eslint/eslint-plugin": "^2.14.0",
3436
"@typescript-eslint/parser": "^2.14.0",
3537
"eslint": "^6.5.0",
@@ -40,10 +42,9 @@
4042
"prettier": "^1.19.1",
4143
"sort-package-json": "~1.35"
4244
},
43-
"husky": {
44-
"hooks": {
45-
"pre-commit": "lint-staged",
46-
"pre-push": "yarn run integrity"
47-
}
45+
"engines": {
46+
"node": ">=10.15.3",
47+
"npm": "please-use-yarn",
48+
"yarn": ">=1.15.0"
4849
}
4950
}

packages/base-manager/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
},
3434
"dependencies": {
3535
"@jupyter-widgets/base": "^2.0.2",
36-
"@jupyterlab/services": "^5.0.0-beta.2",
37-
"@lumino/coreutils": "^1.2.0",
36+
"@jupyterlab/services": "^5.0.2",
37+
"@lumino/coreutils": "^1.4.2",
3838
"base64-js": "^1.2.1"
3939
},
4040
"devDependencies": {

packages/base/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
"test:unit:ie": "npm run test:unit:default -- --browsers=IE"
3333
},
3434
"dependencies": {
35-
"@jupyterlab/services": "^5.0.0-beta.2",
36-
"@lumino/coreutils": "^1.2.0",
37-
"@lumino/messaging": "^1.2.1",
38-
"@lumino/widgets": "^1.3.0",
35+
"@jupyterlab/services": "^5.0.2",
36+
"@lumino/coreutils": "^1.4.2",
37+
"@lumino/messaging": "^1.3.3",
38+
"@lumino/widgets": "^1.11.1",
3939
"@types/backbone": "^1.4.1",
4040
"@types/lodash": "^4.14.134",
4141
"backbone": "1.2.3",

packages/base/src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (c) Jupyter Development Team.
22
// Distributed under the terms of the Modified BSD License.
33

4-
export const JUPYTER_WIDGETS_VERSION = '1.2.0';
4+
export const JUPYTER_WIDGETS_VERSION = '2.0.0';
55

66
export const PROTOCOL_VERSION = '2.0.0';

packages/base/test/src/widget_test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,10 +602,10 @@ describe('WidgetModel', function() {
602602
expect(this.widget.get_state()).to.deep.equal({
603603
_model_module: '@jupyter-widgets/base',
604604
_model_name: 'WidgetModel',
605-
_model_module_version: '1.2.0',
605+
_model_module_version: '2.0.0',
606606
_view_module: '@jupyter-widgets/base',
607607
_view_name: null,
608-
_view_module_version: '1.2.0',
608+
_view_module_version: '2.0.0',
609609
_view_count: null,
610610
a: 'get_state test'
611611
});

packages/controls/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@
3535
},
3636
"dependencies": {
3737
"@jupyter-widgets/base": "^2.0.2",
38-
"@lumino/algorithm": "^1.1.0",
39-
"@lumino/domutils": "^1.1.0",
40-
"@lumino/messaging": "^1.2.1",
41-
"@lumino/signaling": "^1.2.0",
42-
"@lumino/widgets": "^1.3.0",
38+
"@lumino/algorithm": "^1.2.3",
39+
"@lumino/domutils": "^1.1.7",
40+
"@lumino/messaging": "^1.3.3",
41+
"@lumino/signaling": "^1.3.5",
42+
"@lumino/widgets": "^1.11.1",
4343
"d3-format": "^1.3.0",
4444
"jquery": "^3.1.1",
4545
"nouislider": "^14.1.1"
4646
},
4747
"devDependencies": {
48-
"@jupyterlab/services": "^5.0.0-beta.2",
48+
"@jupyterlab/services": "^5.0.2",
4949
"@types/d3-format": "^1.3.1",
5050
"@types/expect.js": "^0.3.29",
5151
"@types/mathjax": "^0.0.35",

packages/controls/src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
* The version of the Jupyter controls widget attribute spec that this package
66
* implements.
77
*/
8-
export const JUPYTER_CONTROLS_VERSION = '1.5.0';
8+
export const JUPYTER_CONTROLS_VERSION = '2.0.0';

0 commit comments

Comments
 (0)