Skip to content

Commit

Permalink
release v0.19.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmader committed Jan 25, 2021
1 parent d572857 commit 58725a5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,35 @@ All notable changes to this project will be documented in this file.
* Stream audio file exporting
* Python API

## 0.19.2 - 2021-01-25

### Changed

* Emit detailed debug info (function names) in a separate `.symbols` file

This saves 2.57 MB uncompressed (0.45 MB brotli'd) for the generated wasm file, compared to `v0.19.1`.

<details>

<summary>How to look up function names in the .symbols file?</summary>

```log
RuntimeError: function signature mismatch
at wasm-function[1078]:0x315ac
at wasm-function[28467]:0x99f067
...
```

`webmscore.lib.symbols`

```symbols
1078:Ms::Element::abbox() const
...
28467:Ms::savePng(Ms::Score*, QIODevice*, int, bool, bool)
```

</details>

## 0.19.1 - 2021-01-25

### Added
Expand Down
6 changes: 3 additions & 3 deletions web-public/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webmscore",
"version": "0.19.1",
"version": "0.19.2",
"description": "MuseScore's libmscore in WebAssembly! Read mscz data, and generate audio/MIDI/MusicXML/SVG/PNG/PDF sheets right in browsers",
"type": "module",
"types": "./src/index.d.ts",
Expand Down Expand Up @@ -48,8 +48,8 @@
"build": "npm run clean && npm run compile && npm run bundle && npm run d-ts",
"build:js-only": "npm run clean:d-ts && npm run bundle && npm run d-ts",
"bundle": "rollup -c",
"compile": "cd ../ && make release && cd - && mv webmscore.lib.js.mem webmscore.lib.mem.wasm",
"postcompile": "perl -pi -e 's/\\\\([0-9a-f]{2})/chr(hex($1))/eg' webmscore.lib.js.symbols",
"compile": "cd ../ && make release && cd - && mv webmscore.lib.js.mem webmscore.lib.mem.wasm && mv webmscore.lib.js.symbols webmscore.lib.symbols",
"postcompile": "perl -pi -e 's/\\\\([0-9a-f]{2})/chr(hex($1))/eg' webmscore.lib.symbols",
"clean": "npm run clean:d-ts && cd ../ && make clean",
"clean:d-ts": "rm -f src/*.d.ts *.d.ts",
"d-ts": "tsc --emitDeclarationOnly --declaration --allowJs --lib esnext --target esnext src/index.js",
Expand Down

0 comments on commit 58725a5

Please sign in to comment.