Skip to content

Commit

Permalink
Release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Miranda committed Dec 7, 2020
1 parent 9e601ae commit 5db5106
Show file tree
Hide file tree
Showing 10 changed files with 5,960 additions and 4,057 deletions.
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
[
"@babel/preset-env",
{
"targets": "last 5 versions, ie >= 11"
"targets": ">0.5%",
"useBuiltIns": "usage"
}
]
]
Expand Down
15 changes: 4 additions & 11 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
{
"scripts": {
"afterBump": "conventional-changelog -p angular -i CHANGELOG.md -s",
"changelog": "conventional-changelog -p angular | tail -n +3"
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "angular",
"infile": "CHANGELOG.md"
}
"hooks": {
"after:bump": "npx auto-changelog -p"
},
"git": {
"changelog": "npx auto-changelog --stdout --commit-limit false -u --template https://raw.githubusercontent.com/release-it/release-it/master/templates/changelog-compact.hbs",
"requireCleanWorkingDir": false,
"tagName": "v%s",
"addUntrackedFiles": true
},
"github": {
"release": true,
"releaseName": "%s"
"releaseName": "${version}"
},
"dist": {}
}
34 changes: 17 additions & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
## [1.1.1](https://github.com/openplayerjs/openplayerjs-youtube/compare/v1.1.0...v1.1.1) (2019-11-21)
### Changelog

<a name="1.1.1"></a>
## [1.1.1](https://github.com/openplayerjs/openplayerjs-youtube/compare/v1.1.0...v1.1.1) (2019-11-21)
All notable changes to this project will be documented in this file. Dates are displayed in UTC.

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### 2.0.0

<a name="1.1.0"></a>
# 1.1.0 (2019-01-10)


### Bug Fixes

* **webpack:** Fixed line in webpack to create bundles correctly; added dist files ([775965b](https://github.com/openplayerjs/openplayerjs-youtube/commit/775965b))


### Features

* **demo:** Added new demo file; renamed bundles and updated README to obtain better information about package ([80df3f1](https://github.com/openplayerjs/openplayerjs-youtube/commit/80df3f1))


> 7 December 2020
- fix: upgrade openplayerjs from 1.16.7 to 1.16.11 [`#10`](https://github.com/openplayerjs/openplayerjs-youtube/pull/10)
- build(deps): bump node-fetch from 2.6.0 to 2.6.1 [`#9`](https://github.com/openplayerjs/openplayerjs-youtube/pull/9)
- build(deps): bump elliptic from 6.4.1 to 6.5.3 [`#8`](https://github.com/openplayerjs/openplayerjs-youtube/pull/8)
- fix: upgrade openplayerjs from 1.16.6 to 1.16.7 [`#7`](https://github.com/openplayerjs/openplayerjs-youtube/pull/7)
- fix: upgrade openplayerjs from 1.16.5 to 1.16.6 [`#6`](https://github.com/openplayerjs/openplayerjs-youtube/pull/6)
- build(deps): bump acorn from 6.1.1 to 6.4.1 [`#4`](https://github.com/openplayerjs/openplayerjs-youtube/pull/4)
- build(deps): bump eslint-utils from 1.3.1 to 1.4.3 [`#2`](https://github.com/openplayerjs/openplayerjs-youtube/pull/2)
- build(deps): bump lodash.template from 4.4.0 to 4.5.0 [`#3`](https://github.com/openplayerjs/openplayerjs-youtube/pull/3)
- build(deps): bump mixin-deep from 1.3.1 to 1.3.2 [`#1`](https://github.com/openplayerjs/openplayerjs-youtube/pull/1)
- feature(youtube): Created factory function to support YouTube videos [`fb59d75`](https://github.com/openplayerjs/openplayerjs-youtube/commit/fb59d75c3b79e01d2d126087a789e252f5a4386e)
- Updated dependencies [`fc18bfc`](https://github.com/openplayerjs/openplayerjs-youtube/commit/fc18bfc2d9779cbffad0a8f20d3b7df5cacf1705)
- Updated documentation [`803c4e9`](https://github.com/openplayerjs/openplayerjs-youtube/commit/803c4e9938407a502d8f5a73e4e3087a6db7c207)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ It allows you to override YouTube's configuration by using the `youtube` object
<script src="https://cdn.jsdelivr.net/npm/openplayerjs@latest/dist/openplayer.min.js"></script>
<script src="/path/to/openplayerjs-youtube.min.js"></script>
<script>
var player = new OpenPlayer('video', null, false, {
var player = new OpenPlayer('video', {
youtube: {
// config
}
Expand Down
38 changes: 0 additions & 38 deletions demo/index.html

This file was deleted.

10 changes: 6 additions & 4 deletions dist/openplayerjs-youtube.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var simple_load_script__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
/* harmony import */ var simple_load_script__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(simple_load_script__WEBPACK_IMPORTED_MODULE_0__);
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

Expand All @@ -211,7 +213,7 @@ var YouTube = function YouTube(element, media) {
var id = "op-yt__".concat(element.id || new Date().getTime());
var isAudio = element.tagName === 'AUDIO';
var opts = {
url: 'https://www.youtube.com/player_api',
url: 'https://www.youtube.com/iframe_api',
autoplay: 0,
controls: 0,
disablekb: 1,
Expand All @@ -226,7 +228,7 @@ var YouTube = function YouTube(element, media) {
nocookie: false
};

var playerVars = _objectSpread({}, opts, options);
var playerVars = _objectSpread(_objectSpread({}, opts), options);

var library = playerVars.url,
noCookies = playerVars.nocookie;
Expand Down Expand Up @@ -519,7 +521,7 @@ var YouTube = function YouTube(element, media) {
},

get defaultPlaybackRate() {
return player.getPlaybackRate();
return player ? player.getPlaybackRate() : 1;
},

set currentTime(value) {
Expand Down
Loading

0 comments on commit 5db5106

Please sign in to comment.