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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ _Note: in the examples below, make sure to set the latest version when you use i

* Use the pure-javascript implementation, exposing a `libheif` global:
```html
<script src="https://cdn.jsdelivr.net/npm/libheif-js@1.17.1/libheif/libheif.js"></script>
<script src="https://cdn.jsdelivr.net/npm/libheif-js@1.19.8/libheif/libheif.js"></script>
```
* Use the wasm bundle, exposing a `libheif` global:
```html
<script src="https://cdn.jsdelivr.net/npm/libheif-js@1.17.1/libheif-wasm/libheif-bundle.js"></script>
<script src="https://cdn.jsdelivr.net/npm/libheif-js@1.19.8/libheif-wasm/libheif-bundle.js"></script>
```
* Use the ES Module version, which now works in all major browsers and you should try it:
```html
<script type="module">
import libheif from 'https://cdn.jsdelivr.net/npm/libheif-js@1.17.1/libheif-wasm/libheif-bundle.mjs';
import libheif from 'https://cdn.jsdelivr.net/npm/libheif-js@1.19.8/libheif-wasm/libheif-bundle.mjs';
</script>
```

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": "libheif-js",
"version": "1.18.2",
"version": "1.19.8",
"description": "Emscripten distribution of libheif for Node.JS and the browser",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const gunzip = require('gunzip-maybe');
const esbuild = require('esbuild');
const { nodeModulesPolyfillPlugin } = require('esbuild-plugins-node-modules-polyfill');

const version = 'v1.18.2';
const version = 'v1.19.8';

const base = `https://github.com/catdad-experiments/libheif-emscripten/releases/download/${version}`;
const tarball = `${base}/libheif.tar.gz`;
Expand Down
2 changes: 1 addition & 1 deletion test/libheif.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function runTests(libheif) {
it('is the correct version', () => {
expect(libheif).to.have.property('heif_get_version')
.and.to.be.a('function');
expect(libheif.heif_get_version()).to.equal('1.18.2')
expect(libheif.heif_get_version()).to.equal('1.19.8')
.and.to.equal(pkg.version);
});

Expand Down