Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): upgrade dependencies #256

Merged
merged 1 commit into from
Aug 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
- name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: "12"
- name: Install dependencies
run: yarn install --frozen-lockfile &> /dev/null
uses: bahmutov/npm-install@v1
- name: Build example
run: yarn example:build
- name: Deploy to GitHub pages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
- name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: "12"
- name: Install dependencies
run: yarn install --frozen-lockfile &> /dev/null
uses: bahmutov/npm-install@v1
- name: Run tests
run: yarn test
- name: Build
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ on: pull_request
jobs:
test:
runs-on: ubuntu-latest
name: Node.js ${{ matrix.node }}
strategy:
matrix:
node: ["10.x", "11.x", "12.x", "13.x"]
name: Node.js ${{ matrix.node }}
node: ["10", "11", "12", "13", "14"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: yarn install --frozen-lockfile &> /dev/null
uses: bahmutov/npm-install@v1
- name: Run tests
run: yarn test:ci
105 changes: 49 additions & 56 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,67 +1,60 @@
// Type definitions for react-youtube 7.9
// Definitions by: kgtkr <https://github.com/kgtkr>
// Leo Salgueiro <https://github.com/salguerooo>
// Will Olson <https://github.com/frankolson>
// goooseman <https://github.com/goooseman>
// TypeScript Version: 3.7

import * as React from "react";
import * as React from 'react';

export interface PlayerVars {
autoplay?: 0 | 1;
cc_load_policy?: 1;
color?: "red" | "white";
controls?: 0 | 1 | 2;
disablekb?: 0 | 1;
enablejsapi?: 0 | 1;
end?: number;
fs?: 0 | 1;
hl?: string;
iv_load_policy?: 1 | 3;
list?: string;
listType?: "playlist" | "search" | "user_uploads";
loop?: 0 | 1;
modestbranding?: 1;
origin?: string;
playlist?: string;
playsinline?: 0 | 1;
rel?: 0 | 1;
showinfo?: 0 | 1;
start?: number;
mute?: 0 | 1;
}
autoplay?: 0 | 1;
cc_load_policy?: 1;
color?: 'red' | 'white';
controls?: 0 | 1 | 2;
disablekb?: 0 | 1;
enablejsapi?: 0 | 1;
end?: number;
fs?: 0 | 1;
hl?: string;
iv_load_policy?: 1 | 3;
list?: string;
listType?: 'playlist' | 'search' | 'user_uploads';
loop?: 0 | 1;
modestbranding?: 1;
origin?: string;
playlist?: string;
playsinline?: 0 | 1;
rel?: 0 | 1;
showinfo?: 0 | 1;
start?: number;
mute?: 0 | 1;
}

export interface Options {
height?: string;
width?: string;
host?: string;
playerVars?: PlayerVars;
height?: string;
width?: string;
host?: string;
playerVars?: PlayerVars;
}

export interface YouTubeProps {
videoId?: string;
id?: string;
className?: string;
containerClassName?: string;
opts?: Options;
onReady?(event: { target: YT.Player }): void;
onError?(event: { target: YT.Player, data: number }): void;
onPlay?(event: { target: YT.Player, data: number }): void;
onPause?(event: { target: YT.Player, data: number }): void;
onEnd?(event: { target: YT.Player, data: number }): void;
onStateChange?(event: { target: YT.Player, data: number }): void;
onPlaybackRateChange?(event: { target: YT.Player, data: number }): void;
onPlaybackQualityChange?(event: { target: YT.Player, data: string }): void;
videoId?: string;
id?: string;
className?: string;
containerClassName?: string;
opts?: Options;
onReady?(event: { target: YT.Player }): void;
onError?(event: { target: YT.Player; data: number }): void;
onPlay?(event: { target: YT.Player; data: number }): void;
onPause?(event: { target: YT.Player; data: number }): void;
onEnd?(event: { target: YT.Player; data: number }): void;
onStateChange?(event: { target: YT.Player; data: number }): void;
onPlaybackRateChange?(event: { target: YT.Player; data: number }): void;
onPlaybackQualityChange?(event: { target: YT.Player; data: string }): void;
}

export default class YouTube extends React.Component<YouTubeProps> {
static PlayerState: {
UNSTARTED: number,
ENDED: number,
PLAYING: number,
PAUSED: number,
BUFFERING: number,
CUED: number,
};
getInternalPlayer(): YT.Player;
static PlayerState: {
UNSTARTED: number;
ENDED: number;
PLAYING: number;
PAUSED: number;
BUFFERING: number;
CUED: number;
};
getInternalPlayer(): YT.Player;
}
54 changes: 26 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-youtube",
"version": "7.9.0",
"version": "1.0.0-semantic-release",
"description": "React.js powered YouTube player component",
"main": "dist/index.js",
"module": "dist/index.esm.js",
Expand All @@ -26,50 +26,48 @@
},
"homepage": "https://github.com/tjallingt/react-youtube",
"dependencies": {
"fast-deep-equal": "3.1.1",
"fast-deep-equal": "3.1.3",
"prop-types": "15.7.2",
"youtube-player": "5.5.2"
},
"devDependencies": {
"@babel/cli": "7.8.4",
"@babel/core": "7.9.0",
"@babel/plugin-proposal-class-properties": "7.8.3",
"@babel/preset-env": "7.9.0",
"@babel/preset-react": "7.9.4",
"@commitlint/cli": "8.3.5",
"@commitlint/config-conventional": "8.3.4",
"@testing-library/jest-dom": "5.3.0",
"@testing-library/react": "10.0.2",
"@types/youtube": "0.0.38",
"@typescript-eslint/eslint-plugin": "2.28.0",
"@typescript-eslint/parser": "2.28.0",
"@babel/cli": "7.10.5",
"@babel/core": "7.11.4",
"@babel/plugin-proposal-class-properties": "7.10.4",
"@babel/preset-env": "7.11.0",
"@babel/preset-react": "7.10.4",
"@commitlint/cli": "9.1.2",
"@commitlint/config-conventional": "9.1.2",
"@testing-library/jest-dom": "5.11.4",
"@testing-library/react": "10.4.9",
"@types/youtube": "0.0.39",
"babel-eslint": "10.1.0",
"babel-jest": "25.2.6",
"babel-jest": "26.3.0",
"babel-loader": "8.1.0",
"commitizen": "4.0.3",
"commitizen": "4.1.5",
"cross-env": "7.0.2",
"cz-conventional-changelog": "3.1.0",
"cz-conventional-changelog": "3.2.0",
"eslint": "6.8.0",
"eslint-config-prettier": "6.10.1",
"eslint-config-prettier": "6.11.0",
"eslint-config-react-app": "5.2.1",
"eslint-plugin-flowtype": "4.7.0",
"eslint-plugin-import": "2.20.2",
"eslint-plugin-jsx-a11y": "6.2.3",
"eslint-plugin-prettier": "3.1.2",
"eslint-plugin-react": "7.19.0",
"eslint-plugin-import": "2.22.0",
"eslint-plugin-jsx-a11y": "6.3.1",
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-react": "7.20.6",
"eslint-plugin-react-hooks": "2.5.1",
"husky": "4.2.3",
"jest": "25.2.6",
"lint-staged": "10.1.1",
"husky": "4.2.5",
"jest": "26.4.2",
"lint-staged": "10.2.11",
"npm-run-all": "4.1.5",
"parcel-bundler": "1.12.4",
"prettier": "2.0.2",
"prettier": "2.0.5",
"react": "16.13.1",
"react-dom": "16.13.1",
"semantic-release": "17.0.4"
"semantic-release": "17.1.1"
},
"peerDependencies": {
"@types/youtube": "0.0.38",
"@types/youtube": "^0.0.38",
"react": ">=0.14.1"
},
"engines": {
Expand Down
Loading