From e96580da1dab6d21faad772e31d0d7a5257d0a89 Mon Sep 17 00:00:00 2001 From: Oscar Dub Date: Tue, 27 Jun 2017 10:29:18 +0100 Subject: [PATCH] Release 1.0.2. (#47) * Fix link anchors. * Fix script src typo in docs. (#43) There appear to be two script tags: * https://unpkg.com/mpe@1.0.1/lib/mpe.js * https://unpkg.com/mpe@1.0.1/lib/mpe.min.js But the Note uses `mpe.min.js` for both file names ... which blew my mind for a second there, until I figured out it was probably copy pasta :P * Add ISC license. (#46) * Add ISC license. * Add test for copyright notice. * Tweak test imports. * Bump version and add entry in change log. * Tweak link order. --- CHANGELOG.md | 13 +++++++++++-- LICENSE | 15 +++++++++++++++ docs/_theme/assets/style.css | 9 +++++++++ docs/documentation.yml | 2 +- package.json | 4 ++-- test/functional/metadata.test.js | 9 +++++++++ test/functional/mpeInstrument.test.js | 3 ++- 7 files changed, 49 insertions(+), 6 deletions(-) create mode 100644 LICENSE create mode 100644 test/functional/metadata.test.js diff --git a/CHANGELOG.md b/CHANGELOG.md index c3dbdbd..cead6d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ # Change Log -## [1.0.1] - 2017-06-109 +## [1.0.2] - 2017-06-27 +### Added +- Added ISC license. + +### Fixed +- Fixed scroll positions set by in-page links in docs. +- Fixed script tag src typo in docs. + +## [1.0.1] - 2017-06-19 ### Fixed - Fixed documentation browser compatibility issues. @@ -21,5 +29,6 @@ scaled rather than raw 14-bit integers. ### Removed - Removed `recorder` class. -[1.0.0]: https://github.com/WeAreRoli/mpejs/compare/v0.1.8...v1.0.0 +[1.0.2]: https://github.com/WeAreRoli/mpejs/compare/v1.0.1...v1.0.2 [1.0.1]: https://github.com/WeAreRoli/mpejs/compare/v1.0.0...v1.0.1 +[1.0.0]: https://github.com/WeAreRoli/mpejs/compare/v0.1.8...v1.0.0 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..7cf9286 --- /dev/null +++ b/LICENSE @@ -0,0 +1,15 @@ +ISC License + +Copyright (c) 2017, ROLI Ltd. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. diff --git a/docs/_theme/assets/style.css b/docs/_theme/assets/style.css index b611bd1..e8842ef 100644 --- a/docs/_theme/assets/style.css +++ b/docs/_theme/assets/style.css @@ -460,6 +460,15 @@ h3 { margin-top: 3rem; } +h3:before { + content: ''; + display: block; + position: relative; + width: 0; + height: 6rem; + margin-top: -6rem; +} + h3:nth-of-type(1) { margin-top: 1.5rem; } diff --git a/docs/documentation.yml b/docs/documentation.yml index d05fd4c..08bc64b 100644 --- a/docs/documentation.yml +++ b/docs/documentation.yml @@ -18,7 +18,7 @@ toc: * Script tag
<script src='path/to/mpe/lib/mpe.min.js'></script>
- *Note*: Using `lib/mpe.min.js` or `lib/mpe.min.js` via a script tag will assign + *Note*: Using `lib/mpe.js` or `lib/mpe.min.js` via a script tag will assign module contents to `window.mpe`." - name: API diff --git a/package.json b/package.json index 7028871..def577b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mpe", - "version": "1.0.1", + "version": "1.0.2", "description": "Next generation MIDI for the web", "keywords": [ "mpe", @@ -12,7 +12,7 @@ ], "author": "Oscar Dub ", "homepage": "http://mpe.js.org", - "license": "UNLICENSED", + "license": "ISC", "repository": { "type": "git", "url": "git+https://github.com/WeAreROLI/mpejs" diff --git a/test/functional/metadata.test.js b/test/functional/metadata.test.js new file mode 100644 index 0000000..92b753b --- /dev/null +++ b/test/functional/metadata.test.js @@ -0,0 +1,9 @@ +import { expect } from 'chai'; +import fs from 'fs'; + +describe('license', () => { + it('contains an up to date copyright notice', () => { + const license = fs.readFileSync('./LICENSE', 'utf8'); + expect(license).to.include(`Copyright (c) ${new Date().getFullYear()}, ROLI Ltd.`); + }); +}); diff --git a/test/functional/mpeInstrument.test.js b/test/functional/mpeInstrument.test.js index 7d2ba86..649c369 100644 --- a/test/functional/mpeInstrument.test.js +++ b/test/functional/mpeInstrument.test.js @@ -1,10 +1,11 @@ import { expect } from 'chai'; -import mpeInstrument from '../../lib'; import chai from 'chai'; import sinon from 'sinon'; import sinonChai from 'sinon-chai'; chai.use(sinonChai); +import mpeInstrument from '../../lib'; + // A c' note on, max velocity, on channel 2. const NOTE_ON_1 = new Uint8Array([0x91, 60, 127]); // A note off for NOTE_ON_1.