Skip to content

Commit

Permalink
chore: bump to 4.0 and rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Apr 12, 2023
1 parent 13e6f5d commit 747cffa
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 36 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ To rebuild the JavaScript continuously, run `yarn watch`.

* Update the JavaScript dependencies by changing `package.json` (e.g. with [ncu](https://www.npmjs.com/package/npm-check-updates)).
* Run `yarn`.
* Update the version number in `pyproject.toml` (with `poetry version [VERSION]`), `package.json`, `widget.py`, and `__init__.py`
* Update the version number in `pyproject.toml` (with `poetry version [VERSION]`), `package.json`, `_frontend.py`, and `__init__.py`
* Rebuild the JavaScript with `yarn build`.
* Make sure that everything still works (launch notebook and widgets and try the examples).
* Add a git tag.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jupyter-vega",
"version": "3.6.0",
"version": "4.0.0",
"description": "IPython/Jupyter notebook module for [Vega](https://vega.github.io/vega), and [Vega-Lite](https://vega.github.io/vega-lite).",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "vega"
version = "3.6.0"
version = "4.0.0"
license = "BSD 3-clause"
description = "A Jupyter widget for Vega 5 and Vega-Lite 4"
authors = ["Dominik Moritz <domoritz@gmail.com>"]
Expand Down Expand Up @@ -48,5 +48,5 @@ notebook = "vega.vegalite:entry_point_renderer"
notebook = "vega.vega:entry_point_renderer"

[build-system]
requires = ["poetry>=0.12"]
requires = ["poetry>=1.4.2"]
build-backend = "poetry.masonry.api"
2 changes: 1 addition & 1 deletion vega/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

__all__ = ['Vega', 'VegaLite']

__version__ = '3.6.0'
__version__ = '4.0.0'


def _jupyter_nbextension_paths():
Expand Down
2 changes: 1 addition & 1 deletion vega/_frontend.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
module_name = "jupyter-vega"
EXTENSION_SPEC_VERSION = "^3.6.0"
EXTENSION_SPEC_VERSION = "^4.0.0"
2 changes: 1 addition & 1 deletion vega/static/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vega/static/labplugin.js

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions vega/static/widget.js

This file was deleted.

8 changes: 0 additions & 8 deletions vega/static/widget.js.LICENSE.txt

This file was deleted.

5 changes: 0 additions & 5 deletions vega/static/widget.js.map

This file was deleted.

16 changes: 8 additions & 8 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ const commonConfig = {

module.exports = [
// the main vega extension
Object.assign({}, commonConfig, {
{...commonConfig, ...{
entry: "./src/extension.ts",
output: {
filename: "extension.js",
path: outputPath,
libraryTarget: "amd",
},
externals: ["@jupyter-widgets/base"]
}),
}},
// the main vega extension
Object.assign({}, commonConfig, {
{...commonConfig, ...{
entry: "./src/index.ts",
output: {
filename: "index.js",
Expand All @@ -52,24 +52,24 @@ module.exports = [
publicPath: `https://unpkg.com/jupyter-vega@${version}/dist/`
},
externals: ["@jupyter-widgets/base"]
}),
}},
// the index extension
Object.assign({}, commonConfig, {
{...commonConfig, ...{
entry: "./src/index.ts",
output: {
filename: "index.js",
path: outputPath,
libraryTarget: "amd"
},
externals: ["@jupyter-widgets/base"]
}),
Object.assign({}, commonConfig, {
}},
{...commonConfig, ...{
entry: "./src/labplugin.ts",
output: {
filename: "labplugin.js",
path: outputPath,
libraryTarget: "amd"
},
externals: ["@jupyter-widgets/base"]
}),
}},
];

0 comments on commit 747cffa

Please sign in to comment.