Skip to content

Commit

Permalink
0.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
arseneyr committed Nov 10, 2020
1 parent 6bf27fc commit e1d0c59
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
Empty file added .yarn/versions/92f18ea7.yml
Empty file.
14 changes: 10 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.6.2] - 2020-11-09

### Added

- Untranspiled JS is now available via `wasm-media-encoders/esnext`

### Fixed

- The `browser` and UMD entries are now correctly transformed with Babel to support [all browsers that support WASM](https://caniuse.com/wasm). `@babel/runtime` is now a dependency for the `browser` entry.

## [0.6.1] - 2020-11-05

### Changed
Expand All @@ -15,10 +25,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- `fetch()`ing from non-data URL in Node

### Fixed

- Issue in browser where creating encoder would throw `Cannot destructure property 'memory' of '(B.instance || B).exports' as it is undefined.`

## [0.6.0] - 2020-11-04

### Added
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ While some browsers have native encoding using the [`MediaRecorder` API](https:/

This package aims to fill the gap by compiling the reference LAME and Ogg Vorbis encoders to WebAssembly. The resulting package is tiny and fast:

| Encoder | JS | WASM | Combined + Gzipped |
| Encoder | JS\* | WASM | Combined + Gzipped |
| ---------- | ------- | ------- | ------------------ |
| MP3 | 3.3 KiB | 130 KiB | **66 KiB** |
| Ogg Vorbis | 3.3 KiB | 440 KiB | **158 KiB** |

<sub>\*When using ESNext syntax and no polyfills</sub>

## Installation

```
Expand Down Expand Up @@ -63,6 +65,8 @@ createMp3Encoder().then((encoder) => {
});
```

If you'd like to use ESNext syntax and transpile yourself, use the `wasm-media-encoders/esnext` path.

## Example usage

```js
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": "wasm-media-encoders",
"version": "0.6.1",
"version": "0.6.2",
"main": "dist/index.js",
"module": "dist/es/index.js",
"browser": "dist/browser/index.js",
Expand Down

0 comments on commit e1d0c59

Please sign in to comment.