Skip to content

Commit a9f7cd7

Browse files
committed
[optimize] upgrade Upstream packages
1 parent 27080d1 commit a9f7cd7

File tree

7 files changed

+33
-32
lines changed

7 files changed

+33
-32
lines changed

ReadMe.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[Web Components][1] library for GitHub based on [WebCell][2]
44

55
[![NPM Dependency](https://david-dm.org/TechQuery/GitHub-Web-Widget.svg)][3]
6-
[![Build Status](https://travis-ci.com/TechQuery/GitHub-Web-Widget.svg?branch=master)][4]
6+
[![CI & CD](https://github.com/EasyWebApp/GitHub-Web-Widget/workflows/CI%20&%20CD/badge.svg)][4]
77

88
[![NPM](https://nodei.co/npm/github-web-widget.png?downloads=true&downloadRank=true&stars=true)][5]
99

@@ -42,7 +42,7 @@ npm install github-web-widget
4242
/>
4343
<link
4444
rel="stylesheet"
45-
href="https://cdn.jsdelivr.net/npm/prismjs@1.22.0/themes/prism-okaidia.css"
45+
href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css"
4646
/>
4747
<script
4848
crossorigin
@@ -109,13 +109,13 @@ render(
109109
[1]: https://www.webcomponents.org/
110110
[2]: https://web-cell.dev/
111111
[3]: https://david-dm.org/TechQuery/GitHub-Web-Widget
112-
[4]: https://travis-ci.com/TechQuery/GitHub-Web-Widget
112+
[4]: https://github.com/EasyWebApp/WebCell/actions
113113
[5]: https://nodei.co/npm/github-web-widget/
114-
[6]: https://tech-query.me/GitHub-Web-Widget/classes/_commandline_.commandline.html
115-
[7]: https://tech-query.me/GitHub-Web-Widget/classes/_profile_index_.githubprofile.html
116-
[8]: https://tech-query.me/GitHub-Web-Widget/classes/_repository_index_.githubrepository.html
114+
[6]: https://tech-query.me/GitHub-Web-Widget/classes/commandline.commandline-1.html
115+
[7]: https://tech-query.me/GitHub-Web-Widget/interfaces/profile.githubprofileprops.html
116+
[8]: https://tech-query.me/GitHub-Web-Widget/interfaces/repository.githubrepositoryprops.html
117117
[9]: http://www.newmediacampaigns.com/blog/a-beautiful-jquery-github-widget
118-
[10]: https://tech-query.me/GitHub-Web-Widget/classes/_issue_.githubissue.html
119-
[11]: https://tech-query.me/GitHub-Web-Widget/classes/_eventflow_.githubevents.html
118+
[10]: https://tech-query.me/GitHub-Web-Widget/interfaces/issue.githubissueprops.html
119+
[11]: https://tech-query.me/GitHub-Web-Widget/interfaces/eventflow.githubeventsprops.html
120120
[12]: https://github.com/TechQuery/GitHub-Web-Widget/blob/master/test/index.html
121121
[13]: https://github.com/TechQuery/GitHub-Web-Widget/blob/master/test/index.tsx

package.json

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "github-web-widget",
3-
"version": "3.0.0-beta.7",
3+
"version": "3.0.0-beta.9",
44
"description": "Web Components library for GitHub based on WebCell",
55
"keywords": [
66
"github",
@@ -24,7 +24,7 @@
2424
"main": "dist/index.umd.js",
2525
"module": "dist/index.js",
2626
"scripts": {
27-
"start": "cd test/ && parcel index.html -d ../docs/demo/",
27+
"start": "cd test/ && parcel index.html -d ../docs/demo/ --open",
2828
"pack-demo": "cd test/ && parcel build index.html --public-url . -d ../docs/demo/",
2929
"test": "lint-staged",
3030
"pack-dist": "cross-env NODE_ENV=build microbundle --external web-cell,classnames,marked,koajax,prismjs,.+\\.png --globals web-cell=WebCell,classnames=classNames,koajax=KoAJAX,prismjs=Prism --name GithubWebWidget --css-modules true",
@@ -41,42 +41,43 @@
4141
},
4242
"dependencies": {
4343
"koajax": "^0.6.4",
44-
"marked": "^1.2.5",
45-
"prismjs": "^1.22.0",
46-
"web-cell": "^2.2.0"
44+
"marked": "^1.2.7",
45+
"prismjs": "^1.23.0",
46+
"web-cell": "^2.3.0-rc.1"
4747
},
4848
"peerDependencies": {
4949
"bootstrap": "^4.5.3",
5050
"github-markdown-css": "^4.0.0"
5151
},
5252
"devDependencies": {
53-
"@babel/core": "^7.12.9",
53+
"@babel/core": "^7.12.10",
5454
"@babel/plugin-proposal-optional-chaining": "^7.12.7",
5555
"@babel/plugin-transform-typescript": "^7.12.1",
56-
"@octokit/openapi-types": "^2.0.0",
56+
"@octokit/openapi-types": "^2.2.0",
5757
"@types/core-js": "^2.5.4",
5858
"@types/marked": "^1.2.1",
5959
"@types/prismjs": "^1.16.2",
60-
"@typescript-eslint/parser": "^4.9.1",
60+
"@typescript-eslint/parser": "^4.12.0",
6161
"autoprefixer": "^9.8.6",
62-
"core-js": "^3.8.1",
62+
"core-js": "^3.8.2",
6363
"cross-env": "^7.0.3",
64-
"eslint": "^7.15.0",
65-
"eslint-config-prettier": "^7.0.0",
66-
"eslint-plugin-prettier": "^3.2.0",
67-
"husky": "^4.3.5",
64+
"element-internals-polyfill": "^0.1.1",
65+
"eslint": "^7.17.0",
66+
"eslint-config-prettier": "^7.1.0",
67+
"eslint-plugin-prettier": "^3.3.1",
68+
"husky": "^4.3.7",
6869
"iterable-observer": "^1.0.0-beta.5",
69-
"less": "^3.12.2",
70+
"less": "^4.1.0",
7071
"lint-staged": "^10.5.3",
7172
"microbundle": "^0.12.4",
7273
"open-cli": "^6.0.1",
7374
"parcel-bundler": "^1.12.4",
7475
"postcss-modules": "^3.2.2",
7576
"prettier": "^2.2.1",
76-
"snabbdom": "^1.0.1",
77-
"typedoc": "^0.19.2",
78-
"typescript": "^4.1.2",
79-
"web-utility": "^2.0.0"
77+
"snabbdom": "^2.1.0",
78+
"typedoc": "^0.20.14",
79+
"typescript": "^4.1.3",
80+
"web-utility": "^2.4.3"
8081
},
8182
"prettier": {
8283
"tabWidth": 4,

source/EventFlow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export class GithubEvents extends mixin<
136136
{repo.name}
137137
</a>
138138
</h4>
139-
<time className="pr-1" datetime={created_at}>
139+
<time className="pr-1" dateTime={created_at}>
140140
{new Date(created_at).toLocaleString()}
141141
</time>
142142
<strong className="pr-1">

source/Issue.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export interface GithubIssueProps extends WebCellProps {
2323
owner: string;
2424
repository: string;
2525
issue: number;
26+
pull: number;
2627
}
2728

2829
@component({
@@ -88,7 +89,7 @@ export class GithubIssue extends mixin<
8889
<span className="px-1">
8990
{top ? 'opened this' : 'commented'} at
9091
</span>
91-
<time className="px-1" datetime={created_at}>
92+
<time className="px-1" dateTime={created_at}>
9293
{new Date(created_at).toLocaleString()}
9394
</time>
9495
</summary>

source/Profile/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export class GithubProfile extends mixin<
146146
</span>
147147
<time
148148
className={style['repos-updated']}
149-
datetime={updated_at}
149+
dateTime={updated_at}
150150
>
151151
Updated:
152152
{new Date(updated_at).toLocaleString()}

source/Repository/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export class GithubRepository extends mixin<
139139
{default_branch}
140140
</strong>
141141
branch on
142-
<time datetime={pushed_at} className="p-1">
142+
<time dateTime={pushed_at} className="p-1">
143143
{new Date(pushed_at).toLocaleString()}
144144
</time>
145145
</div>

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616
"include": ["source/**/*"],
1717
"typedocOptions": {
1818
"name": "GitHub Web Widget",
19-
"mode": "file",
2019
"excludeExternals": true,
21-
"excludeNotExported": true,
20+
"excludePrivate": true,
2221
"readme": "./ReadMe.md",
2322
"out": "docs/"
2423
}

0 commit comments

Comments
 (0)