Skip to content

Commit

Permalink
Release 1.0.2. (#47)
Browse files Browse the repository at this point in the history
* Fix link anchors.

* Fix script src typo in docs. (#43)

There appear to be two script tags:

* https://unpkg.com/[email protected]/lib/mpe.js
* https://unpkg.com/[email protected]/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.
  • Loading branch information
odub authored Jun 27, 2017
1 parent 013529c commit e96580d
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 6 deletions.
13 changes: 11 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.

Expand All @@ -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
15 changes: 15 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -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.
9 changes: 9 additions & 0 deletions docs/_theme/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 1 addition & 1 deletion docs/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ toc:
* Script tag
<pre class='p1 mb1'>&lt;script src='path/to/mpe/lib/mpe.min.js'>&lt;/script></pre>
<small>*Note*: Using `lib/mpe.min.js` or `lib/mpe.min.js` via a script tag will assign
<small>*Note*: Using `lib/mpe.js` or `lib/mpe.min.js` via a script tag will assign
module contents to `window.mpe`.</small>"

- name: API
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mpe",
"version": "1.0.1",
"version": "1.0.2",
"description": "Next generation MIDI for the web",
"keywords": [
"mpe",
Expand All @@ -12,7 +12,7 @@
],
"author": "Oscar Dub <[email protected]>",
"homepage": "http://mpe.js.org",
"license": "UNLICENSED",
"license": "ISC",
"repository": {
"type": "git",
"url": "git+https://github.com/WeAreROLI/mpejs"
Expand Down
9 changes: 9 additions & 0 deletions test/functional/metadata.test.js
Original file line number Diff line number Diff line change
@@ -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.`);
});
});
3 changes: 2 additions & 1 deletion test/functional/mpeInstrument.test.js
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit e96580d

Please sign in to comment.