Skip to content

Commit

Permalink
Bump version: 0.7.18
Browse files Browse the repository at this point in the history
  • Loading branch information
kbumsik committed Jun 16, 2019
1 parent 2a498e7 commit b1314a8
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 13 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]
### Fixed
- Overhaul Makefile

## [0.7.18]
### Fixed
- Address issue that AudioContext objects never closed [#18].
- Fix typos in README.md [#16].

[#18]: https://github.com/kbumsik/opus-media-recorder/issues/18
[#16]: https://github.com/kbumsik/opus-media-recorder/issues/16

[Unreleased]: https://github.com/kbumsik/opus-media-recorder/compare/0.7.17...HEAD
[Unreleased]: https://github.com/kbumsik/opus-media-recorder/compare/0.7.18...HEAD
[0.7.18]: https://github.com/kbumsik/opus-media-recorder/releases/tag/0.7.18
[0.7.17]: https://github.com/kbumsik/opus-media-recorder/releases/tag/0.7.17
16 changes: 9 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@

# Change the port you like. You can run the dev server by using "make run"
DEV_SERVER_PORT := 9000
VERSION = $(shell echo "console.log(require('./package.json').version)" | node)
EMCC_VERSION_REQUIRED = 1.38.24

# Used by build-docs target
ifdef PRODUCTION
export BASE_URL := https://cdn.jsdelivr.net/npm/opus-media-recorder@latest
export BASE_URL := https://cdn.jsdelivr.net/npm/opus-media-recorder@$(VERSION)
else
# export BASE_URL := https://cdn.jsdelivr.net/npm/opus-media-recorder@latest
export BASE_URL := https://localhost:$(DEV_SERVER_PORT)
endif

Expand Down Expand Up @@ -58,7 +62,7 @@ endif
# Reference: https://github.com/kripken/emscripten/blob/master/src/settings.js

# Emscripten compiler (emcc) options
export EMCC_DEBUG=1
#export EMCC_DEBUG=1
EMCC_OPTS = -std=c++11 \
-fno-exceptions \
-Oz \
Expand Down Expand Up @@ -198,9 +202,6 @@ $(DIST_DIR)/%.bin: $(BUILD_DIR)/%.wasm

.PHONY : all check_emcc serve build-docs clean-lib clean-js clean

ifndef EMSCRIPTEN
$(error EMSCRIPTEN is undefined. Enable Escripten SDK.)
endif

cc_version = $(shell $(1) --version | head -n1 | cut -d" " -f5)

Expand All @@ -214,9 +215,10 @@ define check_version
endef

check_emcc:
@echo Building opus-media-recorder@$(VERSION)
@which emcc > /dev/null
@echo Building with emcc version: $(call cc_version, emcc)
$(call check_version, $(call cc_version, emcc), 1.38.24, 'emcc(emscripten) version must be 1.38.25 or higher')
@echo \temcc version: $(call cc_version, emcc)
$(call check_version, $(call cc_version, emcc), $(EMCC_VERSION_REQUIRED), 'emcc(emscripten) version must be $(EMCC_VERSION_REQUIRED) or higher')

$(BUILD_DIR) $(LIB_BUILD_DIR):
mkdir -p $@
Expand Down
4 changes: 2 additions & 2 deletions docs/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// Non-standard options
const workerOptions = {
OggOpusEncoderWasmPath: 'https://cdn.jsdelivr.net/npm/[email protected].17/OggOpusEncoder.wasm',
WebMOpusEncoderWasmPath: 'https://cdn.jsdelivr.net/npm/[email protected].17/WebMOpusEncoder.wasm'
OggOpusEncoderWasmPath: 'https://cdn.jsdelivr.net/npm/[email protected].18/OggOpusEncoder.wasm',
WebMOpusEncoderWasmPath: 'https://cdn.jsdelivr.net/npm/[email protected].18/WebMOpusEncoder.wasm'
};

// Polyfill MediaRecorder
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ <h3>Console</h3>

<!-- <script src="example.js"></script> -->

<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].17/OpusMediaRecorder.umd.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].17/encoderWorker.umd.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].18/OpusMediaRecorder.umd.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].18/encoderWorker.umd.js"></script>
<script type="text/javascript" src="example.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opus-media-recorder",
"version": "0.7.17",
"version": "0.7.18",
"author": "Bumsik Kim",
"license": "MIT",
"homepage": "https://github.com/kbumsik/opus-media-recorder",
Expand Down

0 comments on commit b1314a8

Please sign in to comment.