Skip to content

Commit

Permalink
refactor: node-fetch to undici
Browse files Browse the repository at this point in the history
Follow up to sapphiredev#143
  • Loading branch information
KhafraDev authored and favna committed Oct 4, 2021
1 parent 5ee876b commit a78c740
Show file tree
Hide file tree
Showing 23 changed files with 1,201 additions and 7,958 deletions.
231 changes: 109 additions & 122 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -1,124 +1,111 @@
{
"projectName": "plugins",
"projectOwner": "sapphiredev",
"repoType": "github",
"repoHost": "https://github.com",
"files": [
"README.md",
"packages/api/README.md",
"packages/editable-commands/README.md",
"packages/logger/README.md",
"packages/i18next/README.md"
],
"imageSize": 100,
"commit": true,
"commitConvention": "angular",
"contributors": [
{
"login": "Favna",
"name": "Jeroen Claassens",
"avatar_url": "https://avatars3.githubusercontent.com/u/4019718?v=4",
"profile": "https://favware.tech/",
"contributions": [
"code",
"infra",
"projectManagement"
]
},
{
"login": "QuantumlyTangled",
"name": "Nejc Drobnic",
"avatar_url": "https://avatars1.githubusercontent.com/u/7919610?v=4",
"profile": "https://quantumlytangled.com",
"contributions": [
"code",
"doc"
]
},
{
"login": "kyranet",
"name": "Antonio RomΓ‘n",
"avatar_url": "https://avatars0.githubusercontent.com/u/24852502?v=4",
"profile": "https://github.com/kyranet",
"contributions": [
"code"
]
},
{
"login": "vladfrangu",
"name": "Vlad Frangu",
"avatar_url": "https://avatars3.githubusercontent.com/u/17960496?v=4",
"profile": "https://github.com/vladfrangu",
"contributions": [
"review"
]
},
{
"login": "depfu[bot]",
"name": "depfu[bot]",
"avatar_url": "https://avatars3.githubusercontent.com/in/715?v=4",
"profile": "https://github.com/apps/depfu",
"contributions": [
"maintenance"
]
},
{
"login": "dependabot[bot]",
"name": "dependabot[bot]",
"avatar_url": "https://avatars0.githubusercontent.com/in/29110?v=4",
"profile": "https://github.com/apps/dependabot",
"contributions": [
"maintenance"
]
},
{
"login": "allcontributors[bot]",
"name": "allcontributors[bot]",
"avatar_url": "https://avatars0.githubusercontent.com/in/23186?v=4",
"profile": "https://github.com/apps/allcontributors",
"contributions": [
"doc"
]
},
{
"login": "Nytelife26",
"name": "Tyler J Russell",
"avatar_url": "https://avatars1.githubusercontent.com/u/22531310?v=4",
"profile": "https://github.com/Nytelife26",
"contributions": [
"code"
]
},
{
"login": "Stitch07",
"name": "Stitch07",
"avatar_url": "https://avatars.githubusercontent.com/u/29275227?v=4",
"profile": "https://github.com/Stitch07",
"contributions": [
"code",
"bug"
]
},
{
"login": "PlatinBae",
"name": "PlatinBae",
"avatar_url": "https://avatars.githubusercontent.com/u/50950966?v=4",
"profile": "https://github.com/PlatinBae",
"contributions": [
"doc"
]
},
{
"login": "kaname-png",
"name": "Kaname",
"avatar_url": "https://avatars.githubusercontent.com/u/56084970?v=4",
"profile": "https://kaname.netlify.app",
"contributions": [
"code",
"doc"
]
}
],
"contributorsPerLine": 7,
"skipCi": true
"projectName": "plugins",
"projectOwner": "sapphiredev",
"repoType": "github",
"repoHost": "https://github.com",
"files": [
"README.md",
"packages/api/README.md",
"packages/editable-commands/README.md",
"packages/logger/README.md",
"packages/i18next/README.md"
],
"imageSize": 100,
"commit": true,
"commitConvention": "angular",
"contributors": [
{
"login": "Favna",
"name": "Jeroen Claassens",
"avatar_url": "https://avatars3.githubusercontent.com/u/4019718?v=4",
"profile": "https://favware.tech/",
"contributions": ["code", "infra", "projectManagement"]
},
{
"login": "Quantumlyy",
"name": "Nejc Drobnic",
"avatar_url": "https://avatars1.githubusercontent.com/u/7919610?v=4",
"profile": "https://Quantumlyy.com",
"contributions": ["code", "doc"]
},
{
"login": "kyranet",
"name": "Antonio RomΓ‘n",
"avatar_url": "https://avatars0.githubusercontent.com/u/24852502?v=4",
"profile": "https://github.com/kyranet",
"contributions": ["code"]
},
{
"login": "vladfrangu",
"name": "Vlad Frangu",
"avatar_url": "https://avatars3.githubusercontent.com/u/17960496?v=4",
"profile": "https://github.com/vladfrangu",
"contributions": ["review"]
},
{
"login": "depfu[bot]",
"name": "depfu[bot]",
"avatar_url": "https://avatars3.githubusercontent.com/in/715?v=4",
"profile": "https://github.com/apps/depfu",
"contributions": ["maintenance"]
},
{
"login": "dependabot[bot]",
"name": "dependabot[bot]",
"avatar_url": "https://avatars0.githubusercontent.com/in/29110?v=4",
"profile": "https://github.com/apps/dependabot",
"contributions": ["maintenance"]
},
{
"login": "allcontributors[bot]",
"name": "allcontributors[bot]",
"avatar_url": "https://avatars0.githubusercontent.com/in/23186?v=4",
"profile": "https://github.com/apps/allcontributors",
"contributions": ["doc"]
},
{
"login": "Nytelife26",
"name": "Tyler J Russell",
"avatar_url": "https://avatars1.githubusercontent.com/u/22531310?v=4",
"profile": "https://github.com/Nytelife26",
"contributions": ["code"]
},
{
"login": "Stitch07",
"name": "Stitch07",
"avatar_url": "https://avatars.githubusercontent.com/u/29275227?v=4",
"profile": "https://github.com/Stitch07",
"contributions": ["code", "bug"]
},
{
"login": "PlatinBae",
"name": "PlatinBae",
"avatar_url": "https://avatars.githubusercontent.com/u/50950966?v=4",
"profile": "https://github.com/PlatinBae",
"contributions": ["doc"]
},
{
"login": "kaname-png",
"name": "Kaname",
"avatar_url": "https://avatars.githubusercontent.com/u/56084970?v=4",
"profile": "https://kaname.netlify.app",
"contributions": ["code", "doc"]
},
{
"login": "noftaly",
"name": "Elliot",
"avatar_url": "https://avatars.githubusercontent.com/u/34779161?v=4",
"profile": "https://github.com/noftaly",
"contributions": ["code"]
},
{
"login": "Lioness100",
"name": "Lioness100",
"avatar_url": "https://avatars.githubusercontent.com/u/65814829?v=4",
"profile": "https://github.com/Lioness100",
"contributions": ["code"]
}
],
"contributorsPerLine": 7,
"skipCi": true
}
7 changes: 5 additions & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
/packages/api @favna @kyranet
/packages/i18next @nytelife26 @favna @kyranet
/packages/api/**/*.ts @favna @kyranet
/packages/editable-commands/**/*.ts @favna @kyranet
/packages/i18next/**/*.ts @nytelife26 @favna @kyranet
/packages/logger/**/*.ts @kyranet
/packages/subcommands/**/*.ts @kyranet
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ node_modules/
.env.test.local
.env.production.local

# Yarn files
.yarn/install-state.gz
.yarn/build-state.yml

# Build Artifacts
dist/
build/
Expand Down
363 changes: 363 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-typescript.cjs

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

631 changes: 631 additions & 0 deletions .yarn/releases/yarn-3.0.2.cjs

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
enableGlobalCache: true

nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
spec: '@yarnpkg/plugin-typescript'
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: '@yarnpkg/plugin-workspace-tools'
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: '@yarnpkg/plugin-interactive-tools'

yarnPath: .yarn/releases/yarn-3.0.2.cjs
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<table>
<tr>
<td align="center"><a href="https://favware.tech/"><img src="https://avatars3.githubusercontent.com/u/4019718?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jeroen Claassens</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=Favna" title="Code">πŸ’»</a> <a href="#infra-Favna" title="Infrastructure (Hosting, Build-Tools, etc)">πŸš‡</a> <a href="#projectManagement-Favna" title="Project Management">πŸ“†</a></td>
<td align="center"><a href="https://quantumlytangled.com"><img src="https://avatars1.githubusercontent.com/u/7919610?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Nejc Drobnic</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=QuantumlyTangled" title="Code">πŸ’»</a> <a href="https://github.com/sapphiredev/plugins/commits?author=QuantumlyTangled" title="Documentation">πŸ“–</a></td>
<td align="center"><a href="https://Quantumlyy.com"><img src="https://avatars1.githubusercontent.com/u/7919610?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Nejc Drobnic</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=Quantumlyy" title="Code">πŸ’»</a> <a href="https://github.com/sapphiredev/plugins/commits?author=Quantumlyy" title="Documentation">πŸ“–</a></td>
<td align="center"><a href="https://github.com/kyranet"><img src="https://avatars0.githubusercontent.com/u/24852502?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Antonio RomΓ‘n</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=kyranet" title="Code">πŸ’»</a></td>
<td align="center"><a href="https://github.com/vladfrangu"><img src="https://avatars3.githubusercontent.com/u/17960496?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Vlad Frangu</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/pulls?q=is%3Apr+reviewed-by%3Avladfrangu" title="Reviewed Pull Requests">πŸ‘€</a></td>
<td align="center"><a href="https://github.com/apps/depfu"><img src="https://avatars3.githubusercontent.com/in/715?v=4?s=100" width="100px;" alt=""/><br /><sub><b>depfu[bot]</b></sub></a><br /><a href="#maintenance-depfu[bot]" title="Maintenance">🚧</a></td>
Expand All @@ -58,6 +58,8 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center"><a href="https://github.com/Stitch07"><img src="https://avatars.githubusercontent.com/u/29275227?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Stitch07</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=Stitch07" title="Code">πŸ’»</a> <a href="https://github.com/sapphiredev/plugins/issues?q=author%3AStitch07" title="Bug reports">πŸ›</a></td>
<td align="center"><a href="https://github.com/PlatinBae"><img src="https://avatars.githubusercontent.com/u/50950966?v=4?s=100" width="100px;" alt=""/><br /><sub><b>PlatinBae</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=PlatinBae" title="Documentation">πŸ“–</a></td>
<td align="center"><a href="https://kaname.netlify.app"><img src="https://avatars.githubusercontent.com/u/56084970?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kaname</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=kaname-png" title="Code">πŸ’»</a> <a href="https://github.com/sapphiredev/plugins/commits?author=kaname-png" title="Documentation">πŸ“–</a></td>
<td align="center"><a href="https://github.com/noftaly"><img src="https://avatars.githubusercontent.com/u/34779161?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Elliot</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=noftaly" title="Code">πŸ’»</a></td>
<td align="center"><a href="https://github.com/Lioness100"><img src="https://avatars.githubusercontent.com/u/65814829?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Lioness100</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=Lioness100" title="Code">πŸ’»</a></td>
</tr>
</table>

Expand Down
21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,21 @@
"docs": "typedoc",
"commit": "git-cz",
"cz": "git-cz",
"update": "yarn upgrade-interactive --latest",
"update": "yarn upgrade-interactive",
"prepare": "husky install .github/husky"
},
"devDependencies": {
"@commitlint/cli": "^13.2.0",
"@commitlint/config-conventional": "^13.2.0",
"@favware/npm-deprecate": "^1.0.2",
"@favware/npm-deprecate": "^1.0.3",
"@sapphire/eslint-config": "^3.2.3",
"@sapphire/framework": "next",
"@sapphire/pieces": "^3.0.0",
"@sapphire/prettier-config": "^1.1.6",
"@sapphire/ts-config": "^3.0.0",
"@sapphire/utilities": "^2.0.1",
"@types/jest": "^27.0.2",
"@types/node": "^16.10.1",
"@types/node-fetch": "^2.5.12",
"@types/node": "^16.10.2",
"@types/ws": "^8.2.0",
"@typescript-eslint/eslint-plugin": "^4.32.0",
"@typescript-eslint/parser": "^4.32.0",
Expand All @@ -41,16 +40,16 @@
"eslint-plugin-prettier": "^4.0.0",
"gen-esm-wrapper": "^1.1.3",
"husky": "^7.0.2",
"jest": "^27.2.3",
"jest-circus": "^27.2.3",
"jest": "^27.2.4",
"jest-circus": "^27.2.4",
"lerna": "^4.0.0",
"lint-staged": "^11.1.2",
"npm-run-all": "^4.1.5",
"prettier": "^2.4.1",
"pretty-quick": "^3.1.1",
"rimraf": "^3.0.2",
"ts-jest": "^27.0.5",
"ts-node": "^10.2.1",
"typedoc": "0.22.4",
"typedoc": "^0.22.5",
"typescript": "^4.4.3"
},
"repository": {
Expand All @@ -75,8 +74,9 @@
},
"resolutions": {
"acorn": "^8.5.0",
"colorette": "^2.0.13",
"dot-prop": "^6.0.1",
"i18next": "^21.1.1",
"i18next": "^21.2.4",
"jest-environment-jsdom": "https://registry.yarnpkg.com/@favware/skip-dependency/-/skip-dependency-1.1.1.tgz",
"jest-jasmine2": "https://registry.yarnpkg.com/@favware/skip-dependency/-/skip-dependency-1.1.1.tgz",
"kind-of": "^6.0.3",
Expand All @@ -88,5 +88,6 @@
"trim-newlines": "^4.0.2",
"trim": "^1.0.1"
},
"prettier": "@sapphire/prettier-config"
"prettier": "@sapphire/prettier-config",
"packageManager": "[email protected]"
}
4 changes: 3 additions & 1 deletion packages/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<table>
<tr>
<td align="center"><a href="https://favware.tech/"><img src="https://avatars3.githubusercontent.com/u/4019718?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jeroen Claassens</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=Favna" title="Code">πŸ’»</a> <a href="#infra-Favna" title="Infrastructure (Hosting, Build-Tools, etc)">πŸš‡</a> <a href="#projectManagement-Favna" title="Project Management">πŸ“†</a></td>
<td align="center"><a href="https://quantumlytangled.com"><img src="https://avatars1.githubusercontent.com/u/7919610?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Nejc Drobnic</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=QuantumlyTangled" title="Code">πŸ’»</a> <a href="https://github.com/sapphiredev/plugins/commits?author=QuantumlyTangled" title="Documentation">πŸ“–</a></td>
<td align="center"><a href="https://Quantumlyy.com"><img src="https://avatars1.githubusercontent.com/u/7919610?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Nejc Drobnic</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=Quantumlyy" title="Code">πŸ’»</a> <a href="https://github.com/sapphiredev/plugins/commits?author=Quantumlyy" title="Documentation">πŸ“–</a></td>
<td align="center"><a href="https://github.com/kyranet"><img src="https://avatars0.githubusercontent.com/u/24852502?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Antonio RomΓ‘n</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=kyranet" title="Code">πŸ’»</a></td>
<td align="center"><a href="https://github.com/vladfrangu"><img src="https://avatars3.githubusercontent.com/u/17960496?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Vlad Frangu</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/pulls?q=is%3Apr+reviewed-by%3Avladfrangu" title="Reviewed Pull Requests">πŸ‘€</a></td>
<td align="center"><a href="https://github.com/apps/depfu"><img src="https://avatars3.githubusercontent.com/in/715?v=4?s=100" width="100px;" alt=""/><br /><sub><b>depfu[bot]</b></sub></a><br /><a href="#maintenance-depfu[bot]" title="Maintenance">🚧</a></td>
Expand All @@ -129,6 +129,8 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center"><a href="https://github.com/Stitch07"><img src="https://avatars.githubusercontent.com/u/29275227?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Stitch07</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=Stitch07" title="Code">πŸ’»</a> <a href="https://github.com/sapphiredev/plugins/issues?q=author%3AStitch07" title="Bug reports">πŸ›</a></td>
<td align="center"><a href="https://github.com/PlatinBae"><img src="https://avatars.githubusercontent.com/u/50950966?v=4?s=100" width="100px;" alt=""/><br /><sub><b>PlatinBae</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=PlatinBae" title="Documentation">πŸ“–</a></td>
<td align="center"><a href="https://kaname.netlify.app"><img src="https://avatars.githubusercontent.com/u/56084970?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kaname</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=kaname-png" title="Code">πŸ’»</a> <a href="https://github.com/sapphiredev/plugins/commits?author=kaname-png" title="Documentation">πŸ“–</a></td>
<td align="center"><a href="https://github.com/noftaly"><img src="https://avatars.githubusercontent.com/u/34779161?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Elliot</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=noftaly" title="Code">πŸ’»</a></td>
<td align="center"><a href="https://github.com/Lioness100"><img src="https://avatars.githubusercontent.com/u/65814829?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Lioness100</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=Lioness100" title="Code">πŸ’»</a></td>
</tr>
</table>

Expand Down
8 changes: 3 additions & 5 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,17 @@
"scripts": {
"test": "jest",
"lint": "eslint src tests --ext ts --fix",
"build": "tsc -b src",
"postbuild": "run-p esm:**",
"build": "tsc -b src && yarn esm:register && yarn esm:default",
"esm:register": "gen-esm-wrapper dist/register.js dist/register.mjs",
"esm:default": "gen-esm-wrapper dist/index.js dist/index.mjs",
"prepublishOnly": "yarn build"
},
"dependencies": {
"@types/node-fetch": "^2.5.12",
"@types/psl": "^1.1.0",
"@types/ws": "8.2.0",
"node-fetch": "^2.6.5",
"psl": "^1.8.0",
"tslib": "^2.3.1"
"tslib": "^2.3.1",
"undici": "^4.7.0"
},
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit a78c740

Please sign in to comment.