Skip to content

Commit 380cab2

Browse files
committed
Updates dependencies and removes unused packages
Modernizes project dependencies for improved compatibility and maintenance. Removes several unused and outdated packages to streamline the codebase and reduce potential security risks. No functional code changes are introduced.
1 parent a80d894 commit 380cab2

File tree

10 files changed

+13648
-50186
lines changed

10 files changed

+13648
-50186
lines changed

package-lock.json

Lines changed: 9651 additions & 36650 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
# gatsby-source-github-graphql-discussions
2+
3+
A Gatsby source plugin for sourcing GitHub Discussions data using the GitHub GraphQL API. Must be used as a sub-plugin of `@libsrcdev/gatsby-source-github-graphql`.
4+
15
## Installation
26

37
To install this package just run:
48

59
```shell
6-
npm install https://gitpkg.now.sh/alexrintt/gatsby-source-github-graphql/packages/gatsby-source-github-graphql-discussions?main
7-
# or
8-
yarn add https://gitpkg.now.sh/alexrintt/gatsby-source-github-graphql/packages/gatsby-source-github-graphql-discussions?main
10+
npm install @libsrcdev/gatsby-source-github-graphql-discussion
911
```
1012

1113
## Usage
@@ -21,16 +23,16 @@ In your `gatsby-config.js`:
2123
{
2224
resolve: `gatsby-source-github-graphql-discussions`,
2325
options: {
24-
owner: `alexrintt`,
25-
repo: `rintt`,
26+
owner: `libsrcdev`,
27+
repo: `gatsby-blog-example`,
2628
// Most likely to be an Announcements channel category, this way
2729
// only users with repo write access can allow a post to be deployed.
2830
categorySlugs: [`Published`],
2931

3032
// You can use this key to filter any resource.
3133
// So you can use multiple instances of this plugin,
32-
// keep the relationships and filter then.
33-
source: `Post`
34+
// keep the relationships and filter them.
35+
key: `Post`
3436
}
3537
}
3638
]
@@ -46,20 +48,3 @@ In your `gatsby-config.js`:
4648
<img src="https://user-images.githubusercontent.com/51419598/194058887-de70e09c-da65-4901-bd8b-e99ec8c3904b.png" width="250" />
4749
<img src="https://user-images.githubusercontent.com/51419598/194051081-5f30f1ca-b580-4249-b374-45469e9c0fa9.png" width="250" />
4850
</p>
49-
50-
<br>
51-
52-
<samp>
53-
54-
<h2 align="center">
55-
Open Source
56-
</h2>
57-
<p align="center">
58-
<sub>Copyright © 2022-present, Alex Rintt.</sub>
59-
</p>
60-
<p align="center">Gatsby Source GitHub GraphQL Discussions <a href="/LICENSE">is MIT licensed 💖</a></p>
61-
<p align="center">
62-
<img src="https://user-images.githubusercontent.com/51419598/194058464-f67c7fb5-9066-49b5-aa94-cf34830708ad.png" width="35" />
63-
</p>
64-
65-
</samp>
Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,29 @@
11
{
22
"name": "@libsrcdev/gatsby-source-github-graphql-discussions",
3-
"description": "A simple starter to get up and developing quickly with Gatsby",
4-
"version": "0.1.0",
5-
"dependencies": {
6-
},
7-
"devDependencies": {
8-
"prettier": "^2.7.1"
3+
"version": "0.1.1",
4+
"description": "A Gatsby source plugin for sourcing GitHub Discussions data using the GitHub GraphQL API. Must be used as a sub-plugin of `@libsrcdev/gatsby-source-github-graphql`.",
5+
"keywords": [
6+
"gatsby",
7+
"source",
8+
"github",
9+
"graphql",
10+
"discussions",
11+
"repo"
12+
],
13+
"homepage": "https://github.com/libsrcdev/gatsby-source-github-graphql#readme",
14+
"bugs": {
15+
"url": "https://github.com/libsrcdev/gatsby-source-github-graphql/issues"
916
},
10-
"license": "MIT",
11-
"scripts": {},
1217
"repository": {
1318
"type": "git",
14-
"url": "https://github.com/libsrcdev/gatsby-source-github-graphql"
19+
"url": "git+https://github.com/libsrcdev/gatsby-source-github-graphql.git"
1520
},
16-
"bugs": {
17-
"url": "https://github.com/libsrcdev/gatsby-source-github-graphql/issues"
21+
"license": "MIT",
22+
"author": "@libsrcdev",
23+
"type": "commonjs",
24+
"main": "index.js",
25+
"scripts": {},
26+
"devDependencies": {
27+
"prettier": "^2.7.1"
1828
}
1929
}
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
# gatsby-source-github-graphql-sponsors
2+
13
This subplugin fetches the sponsors and sponsoring users of a given user. The currently available option is to target the user through `login` key.
24

3-
This repository doesn't fetch recursively and the target users must be explicitely specified.
5+
This repository doesn't fetch recursively and the target users must be explicitly specified.
46

5-
See the example app under /packages for usage details.
7+
See the example app under `/examples` for usage details.
Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,30 @@
11
{
22
"name": "@libsrcdev/gatsby-source-github-graphql-sponsors",
3+
"version": "0.1.1",
34
"description": "Subplugin of gatsby-source-github-graphql for fetching the sponsors and sponring network of a user.",
4-
"version": "0.1.0",
5-
"dependencies": {},
6-
"devDependencies": {
7-
"prettier": "^2.7.1"
5+
"keywords": [
6+
"gatsby",
7+
"source",
8+
"github",
9+
"graphql",
10+
"user",
11+
"org",
12+
"sponsors"
13+
],
14+
"homepage": "https://github.com/libsrcdev/gatsby-remark-remote-images-and-gifs#readme",
15+
"bugs": {
16+
"url": "https://github.com/libsrcdev/gatsby-remark-remote-images-and-gifs/issues"
817
},
9-
"license": "MIT",
10-
"scripts": {},
1118
"repository": {
1219
"type": "git",
13-
"url": "https://github.com/libsrcdev/gatsby-remark-remote-images-and-gifs"
20+
"url": "git+https://github.com/libsrcdev/gatsby-remark-remote-images-and-gifs.git"
1421
},
15-
"bugs": {
16-
"url": "https://github.com/libsrcdev/gatsby-remark-remote-images-and-gifs/issues"
22+
"license": "MIT",
23+
"author": "@libsrcdev",
24+
"type": "commonjs",
25+
"main": "index.js",
26+
"scripts": {},
27+
"devDependencies": {
28+
"prettier": "^2.7.1"
1729
}
1830
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# gatsby-source-github-graphql-user-repos
2+
3+
Gatsby sub-plugin of `@libsrcdev/gatsby-source-github-graphql` that fetches the repositories of a given user/org. The currently available option is to target the user/org through `login` key and also support repository filters, see `gatsby-node.js` for full option details.
4+
5+
This repository doesn't fetch recursively and the target users must be explicitly specified.
6+
7+
See the example app under `/examples` for usage details.
Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
{
22
"name": "@libsrcdev/gatsby-source-github-graphql-user-repos",
33
"version": "0.1.0",
4+
"description": "Gatsby sub-plugin of `@libsrcdev/gatsby-source-github-graphql` that fetches the repositories of a given user/org.",
5+
"keywords": [
6+
"gatsby",
7+
"source",
8+
"github",
9+
"graphql",
10+
"user",
11+
"repos"
12+
],
13+
"homepage": "https://github.com/libsrcdev/gatsby-source-github-graphql#readme",
14+
"bugs": {
15+
"url": "https://github.com/libsrcdev/gatsby-source-github-graphql/issues"
16+
},
17+
"repository": {
18+
"type": "git",
19+
"url": "git+https://github.com/libsrcdev/gatsby-source-github-graphql.git"
20+
},
21+
"license": "MIT",
22+
"author": "@libsrcdev",
23+
"type": "commonjs",
424
"main": "index.js",
5-
"license": "MIT"
25+
"scripts": {
26+
"test": "echo \"Error: no test specified\" && exit 1"
27+
}
628
}

packages/gatsby-source-github-graphql/gatsby-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ exports.sourceNodes = async (...args) => {
7474
// for different purposes.
7575
meta: {
7676
plugin: plugin.name,
77-
source: subpluginOptions.source,
77+
key: subpluginOptions.key,
7878
},
7979
}));
8080
}
Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,30 @@
11
{
22
"name": "@libsrcdev/gatsby-source-github-graphql",
3-
"description": "A simple starter to get up and developing quickly with Gatsby",
4-
"version": "0.1.1",
5-
"dependencies": {
6-
"@octokit/graphql": "^5.0.1"
3+
"version": "0.1.2",
4+
"description": "Gatsby source plugin that fetches data from GitHub GraphQL API and makes it available in the Gatsby GraphQL Data Layer. It supports subplugins to fetch specific GitHub resources and create relationships between them.",
5+
"keywords": [
6+
"gatsby",
7+
"source",
8+
"github",
9+
"graphql"
10+
],
11+
"homepage": "https://github.com/libsrcdev/gatsby-source-github-graphql#readme",
12+
"bugs": {
13+
"url": "https://github.com/libsrcdev/gatsby-source-github-graphql/issues"
714
},
8-
"devDependencies": {
9-
"prettier": "^2.7.1"
15+
"repository": {
16+
"type": "git",
17+
"url": "git+https://github.com/libsrcdev/gatsby-source-github-graphql.git"
1018
},
1119
"license": "MIT",
20+
"author": "@libsrcdev",
21+
"type": "commonjs",
22+
"main": "index.js",
1223
"scripts": {},
13-
"repository": {
14-
"type": "git",
15-
"url": "https://github.com/libsrcdev/gatsby-source-github-graphql"
24+
"dependencies": {
25+
"@octokit/graphql": "^5.0.1"
1626
},
17-
"bugs": {
18-
"url": "https://github.com/libsrcdev/gatsby-source-github-graphql/issues"
27+
"devDependencies": {
28+
"prettier": "^2.7.1"
1929
}
2030
}

0 commit comments

Comments
 (0)