Skip to content

Commit

Permalink
Upgrade H5Web to v11.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
axelboc committed Mar 26, 2024
1 parent df5ae7d commit 8348655
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 48 deletions.
17 changes: 16 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## [v0.1.3](https://github.com/silx-kit/vscode-h5web/compare/v0.1.2...v0.1.3)

- ✨ Upgrade H5Web from v11.0.0 to v11.1.1
- `< Raw >` Display JPEG/PNG images stored as
[opaque datasets](https://docs.h5py.org/en/stable/special.html#storing-other-types-as-opaque-data)
- `< Raw >` Fix error when encountering bigints in compound datasets
- `< Heatmap >` Add toolbar control to flip `X` axis
- `< NX Heatmap >` Support NeXus
[auxiliary signals](https://manual.nexusformat.org/classes/base_classes/NXdata.html#nxdata)
- Propagate HDF5 errors to viewer so they can be properly handled and
displayed
- For the full list of changes, please refer to the release notes for
[v11.1.0](https://github.com/silx-kit/h5web/releases/tag/v11.1.0) and
[v11.1.1](https://github.com/silx-kit/h5web/releases/tag/v11.1.1)

## [v0.1.2](https://github.com/silx-kit/vscode-h5web/compare/v0.1.1...v0.1.2)

- 📂 Add **Blosc2** and **Bitshuffle** compression plugins.
Expand All @@ -18,7 +33,7 @@

## [v0.1.0](https://github.com/silx-kit/vscode-h5web/compare/v0.0.11...v0.1.0)

> ⚠ Requires VS Code **1.86.0** (January 2024) or later.
> Requires VS Code **1.86.0** (January 2024) or later.
- 📂 Support the following seven HDF5 compression plugins: **Blosc, bzip2, LZ4,
LZF, SZ, ZFP and Zstandard**. The plugins are loaded on demand when
Expand Down
8 changes: 8 additions & 0 deletions app/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@
#root {
height: 100vh;
}

/* === Override styles injected by VS Code into webview === */

img {
/* Fix display of images in Raw vis */
max-width: none !important;
max-height: none !important;
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@
"pub": "pnpm dlx @vscode/vsce publish --no-dependencies"
},
"dependencies": {
"@h5web/app": "11.0.0",
"@h5web/h5wasm": "11.0.0",
"@h5web/app": "11.1.1",
"@h5web/h5wasm": "11.1.1",
"@react-hookz/web": "15.0.1",
"axios": "0.27.2",
"h5wasm-plugins": "0.0.3",
Expand Down
88 changes: 44 additions & 44 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/H5WebViewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default class H5WebViewer
<meta charset="UTF-8">
<meta
http-equiv="Content-Security-Policy"
content="default-src 'none'; connect-src ${cspSource} data:; script-src ${cspSource} 'unsafe-eval'; style-src ${cspSource};"
content="default-src 'none'; connect-src ${cspSource} data:; script-src ${cspSource} 'unsafe-eval'; style-src ${cspSource}; img-src blob:;"
>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>H5Web</title>
Expand Down

0 comments on commit 8348655

Please sign in to comment.