Skip to content
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
2 changes: 1 addition & 1 deletion apps/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@h5web/app": "workspace:*",
"@h5web/h5wasm": "workspace:*",
"axios-hooks": "5.1.1",
"h5wasm-plugins": "0.0.3",
"h5wasm-plugins": "0.1.2",
"normalize.css": "8.0.1",
"react": "18.3.1",
"react-dom": "18.3.1",
Expand Down
4 changes: 2 additions & 2 deletions apps/demo/src/h5wasm/plugin-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import blosc from 'h5wasm-plugins/plugins/libH5Zblosc.so';
import blosc2 from 'h5wasm-plugins/plugins/libH5Zblosc2.so';
import bshuf from 'h5wasm-plugins/plugins/libH5Zbshuf.so';
import bz2 from 'h5wasm-plugins/plugins/libH5Zbz2.so';
import jpeg from 'h5wasm-plugins/plugins/libH5Zjpeg.so';
import lz4 from 'h5wasm-plugins/plugins/libH5Zlz4.so';
import lzf from 'h5wasm-plugins/plugins/libH5Zlzf.so';
import szf from 'h5wasm-plugins/plugins/libH5Zszf.so';
import zfp from 'h5wasm-plugins/plugins/libH5Zzfp.so';
import zstd from 'h5wasm-plugins/plugins/libH5Zzstd.so';

Expand All @@ -16,9 +16,9 @@ const PLUGINS: Record<Plugin, string> = {
[Plugin.Blosc2]: blosc2,
[Plugin.Bitshuffle]: bshuf,
[Plugin.BZIP2]: bz2,
[Plugin.JPEG]: jpeg,
[Plugin.LZ4]: lz4,
[Plugin.LZF]: lzf,
[Plugin.SZ]: szf,
[Plugin.ZFP]: zfp,
[Plugin.Zstandard]: zstd,
};
Expand Down
4 changes: 2 additions & 2 deletions packages/h5wasm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ return:

`@h5web/h5wasm` is capable of identifying and requesting the plugins supported
by the
[`h5wasm-plugins@0.0.1`](https://github.com/h5wasm/h5wasm-plugins/tree/v0.0.1)
package: `blosc`, `bz2`, `lz4`, `lzf`, `szf`, `zfp`, `zstd`.
[`h5wasm-plugins@0.1.0`](https://github.com/h5wasm/h5wasm-plugins/tree/v0.1.0)
package: `blosc`, `blosc2`, `bshuf`, `bz2`, `jpeg`, `lz4`, `lzf`, `zfp`, `zstd`.

A typical implementation of `getPlugin` in a bundled front-end application might
look like this:
Expand Down
6 changes: 5 additions & 1 deletion packages/h5wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,24 @@
"peerDependencies": {
"@h5web/app": "workspace:*",
"@types/react": "18.x",
"h5wasm-plugins": "0.1.2",
"react": "18.x",
"typescript": ">=4.5"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
},
"h5wasm-plugins": {
"optional": true
},
"typescript": {
"optional": true
}
},
"dependencies": {
"comlink": "4.4.2",
"h5wasm": "0.7.9",
"h5wasm": "0.8.5",
"nanoid": "5.1.5"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/h5wasm/src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ export enum Plugin {
Blosc = 'blosc',
Blosc2 = 'blosc2',
BZIP2 = 'bz2',
JPEG = 'jpeg',
LZ4 = 'lz4',
LZF = 'lzf',
SZ = 'szf',
ZFP = 'zfp',
Zstandard = 'zstd',
}
2 changes: 1 addition & 1 deletion packages/h5wasm/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const PLUGINS_BY_FILTER_ID: Record<number, Plugin> = {
32_008: Plugin.Bitshuffle,
32_013: Plugin.ZFP,
32_015: Plugin.Zstandard,
32_017: Plugin.SZ,
32_019: Plugin.JPEG,
32_026: Plugin.Blosc2,
};

Expand Down
28 changes: 12 additions & 16 deletions pnpm-lock.yaml

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

5 changes: 1 addition & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@
"noImplicitOverride": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true,
"forceConsistentCasingInFileNames": true,
"useDefineForClassFields": true,
"useUnknownInCatchVariables": true
"noUncheckedSideEffectImports": true
},
"include": ["*"]
}