random-bunny/package.json

60 lines
1.4 KiB
JSON
Raw Normal View History

2016-04-27 20:06:24 +01:00
{
2020-12-20 19:39:03 +00:00
"name": "random-bunny",
2023-11-10 18:51:46 +00:00
"version": "2.1.5",
2020-12-20 19:39:03 +00:00
"description": "Get a random subreddit image url",
2016-04-27 20:06:24 +01:00
"license": "MIT",
2020-12-20 19:39:03 +00:00
"author": "Vylpes",
"exports": "./dist/index.js",
2023-01-27 22:42:37 +00:00
"typings": "./dist/index.d.ts",
2016-04-27 20:06:24 +01:00
"keywords": [
2020-12-20 19:39:03 +00:00
"rabbit",
"bunny",
"bun",
"subreddit",
"reddit",
2016-04-28 16:31:41 +01:00
"random",
"placeholder"
2016-04-27 20:06:24 +01:00
],
"dependencies": {
"commander": "^11.1.0",
2021-06-19 16:13:27 +01:00
"glob-parent": "^6.0.0",
"got-cjs": "^12.5.4",
"linqts": "^1.14.4"
2016-04-27 20:06:24 +01:00
},
2020-12-20 19:39:03 +00:00
"scripts": {
2021-12-01 20:32:20 +00:00
"build": "tsc",
Fix not being able to execute the code via ts-node (#122) # Description Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. - Removed ts-node - Since we can execute the code via unit tests and the command line now, it doesn't make to have this anymore as we can test using a proper CLI - This also fixes the issue we have with ts-node, with it not working on the latest node version #75, #119 ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) # How Has This Been Tested? Please describe the tests that you ran to verify the changes. Provide instructions so we can reproduce. Please also list any relevant details to your test configuration. - This has been tested by running `yarn start`, and it now runs the cli interface # Checklist - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that provde my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules Reviewed-on: https://gitea.vylpes.xyz/RabbitLabs/random-bunny/pulls/122 Reviewed-by: VylpesTester <tester@vylpes.com> Co-authored-by: Ethan Lane <ethan@vylpes.com> Co-committed-by: Ethan Lane <ethan@vylpes.com>
2023-12-08 17:07:51 +00:00
"start": "node dist/cli.js",
"test": "jest",
"lint": "eslint .",
"release": "np --no-publish"
2016-04-27 20:06:24 +01:00
},
"bugs": {
"url": "https://gitea.vylpes.xyz/RabbitLabs/random-bunny/issues",
"email": "helpdesk@vylpes.com"
},
"homepage": "https://gitea.vylpes.xyz/RabbitLabs/random-bunny",
2021-12-01 13:36:29 +00:00
"funding": "https://ko-fi.com/vylpes",
2021-01-13 21:08:47 +00:00
"devDependencies": {
"@types/eslint": "^8.21.1",
Fix not being able to execute the code via ts-node (#122) # Description Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. - Removed ts-node - Since we can execute the code via unit tests and the command line now, it doesn't make to have this anymore as we can test using a proper CLI - This also fixes the issue we have with ts-node, with it not working on the latest node version #75, #119 ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) # How Has This Been Tested? Please describe the tests that you ran to verify the changes. Provide instructions so we can reproduce. Please also list any relevant details to your test configuration. - This has been tested by running `yarn start`, and it now runs the cli interface # Checklist - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that provde my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules Reviewed-on: https://gitea.vylpes.xyz/RabbitLabs/random-bunny/pulls/122 Reviewed-by: VylpesTester <tester@vylpes.com> Co-authored-by: Ethan Lane <ethan@vylpes.com> Co-committed-by: Ethan Lane <ethan@vylpes.com>
2023-12-08 17:07:51 +00:00
"@types/jest": "^29.5.8",
"@types/node": "^20.0.0",
Update dependency @typescript-eslint/eslint-plugin to v6 (#77) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint) | devDependencies | major | [`^5.54.0` -> `^6.0.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2feslint-plugin/5.59.6/6.8.0) | --- ### Release Notes <details> <summary>typescript-eslint/typescript-eslint (@&#8203;typescript-eslint/eslint-plugin)</summary> ### [`v6.8.0`](https://github.com/typescript-eslint/typescript-eslint/compare/36aecb6a836eb01307c35b42ca60f5a78496c339...d475f88575563913b3ee5acdf0765c3e6b4947cb) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/36aecb6a836eb01307c35b42ca60f5a78496c339...d475f88575563913b3ee5acdf0765c3e6b4947cb) ### [`v6.7.5`](https://github.com/typescript-eslint/typescript-eslint/compare/d948dc4a21ad8e15eec152c0cf2fdda819ea4a3a...36aecb6a836eb01307c35b42ca60f5a78496c339) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/d948dc4a21ad8e15eec152c0cf2fdda819ea4a3a...36aecb6a836eb01307c35b42ca60f5a78496c339) ### [`v6.7.4`](https://github.com/typescript-eslint/typescript-eslint/compare/91a3e0c85a8fb2001ad808362b437df0b90cce04...d948dc4a21ad8e15eec152c0cf2fdda819ea4a3a) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/91a3e0c85a8fb2001ad808362b437df0b90cce04...d948dc4a21ad8e15eec152c0cf2fdda819ea4a3a) ### [`v6.7.3`](https://github.com/typescript-eslint/typescript-eslint/compare/ddb858981fd3ed72ff0c10fe9a2c1dc6c5bb1ed5...91a3e0c85a8fb2001ad808362b437df0b90cce04) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/ddb858981fd3ed72ff0c10fe9a2c1dc6c5bb1ed5...91a3e0c85a8fb2001ad808362b437df0b90cce04) ### [`v6.7.2`](https://github.com/typescript-eslint/typescript-eslint/compare/79ffff05dbf21796565eef0076ba0bf4fc55e7ed...ddb858981fd3ed72ff0c10fe9a2c1dc6c5bb1ed5) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/79ffff05dbf21796565eef0076ba0bf4fc55e7ed...ddb858981fd3ed72ff0c10fe9a2c1dc6c5bb1ed5) ### [`v6.7.0`](https://github.com/typescript-eslint/typescript-eslint/compare/a3a39321296f74caa9d18577491a86119b450c18...79ffff05dbf21796565eef0076ba0bf4fc55e7ed) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/a3a39321296f74caa9d18577491a86119b450c18...79ffff05dbf21796565eef0076ba0bf4fc55e7ed) ### [`v6.6.0`](https://github.com/typescript-eslint/typescript-eslint/compare/4f34d0ba34474926ba1eed623704b583a037f886...a3a39321296f74caa9d18577491a86119b450c18) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/4f34d0ba34474926ba1eed623704b583a037f886...a3a39321296f74caa9d18577491a86119b450c18) ### [`v6.5.0`](https://github.com/typescript-eslint/typescript-eslint/compare/ef1367eeed112fd6bbb94e0c9bd56d7e167a1a59...4f34d0ba34474926ba1eed623704b583a037f886) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/ef1367eeed112fd6bbb94e0c9bd56d7e167a1a59...4f34d0ba34474926ba1eed623704b583a037f886) ### [`v6.4.1`](https://github.com/typescript-eslint/typescript-eslint/compare/14bea42e4864c72d28f502e0d15e675fe8bd729a...ef1367eeed112fd6bbb94e0c9bd56d7e167a1a59) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/14bea42e4864c72d28f502e0d15e675fe8bd729a...ef1367eeed112fd6bbb94e0c9bd56d7e167a1a59) ### [`v6.4.0`](https://github.com/typescript-eslint/typescript-eslint/compare/0a1de14ba2e4a519d976ef34e81c96d316c49c33...14bea42e4864c72d28f502e0d15e675fe8bd729a) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/0a1de14ba2e4a519d976ef34e81c96d316c49c33...14bea42e4864c72d28f502e0d15e675fe8bd729a) ### [`v6.3.0`](https://github.com/typescript-eslint/typescript-eslint/compare/948b0614626c1c737ec30106425ef4a9b8c33dbf...0a1de14ba2e4a519d976ef34e81c96d316c49c33) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/948b0614626c1c737ec30106425ef4a9b8c33dbf...0a1de14ba2e4a519d976ef34e81c96d316c49c33) ### [`v6.2.1`](https://github.com/typescript-eslint/typescript-eslint/compare/c869aa1792ed8e3c89d5ada2df8c00f8fe36526a...948b0614626c1c737ec30106425ef4a9b8c33dbf) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/c869aa1792ed8e3c89d5ada2df8c00f8fe36526a...948b0614626c1c737ec30106425ef4a9b8c33dbf) ### [`v6.2.0`](https://github.com/typescript-eslint/typescript-eslint/compare/d98f1e811a6a06128a86f10824b6005984dc8265...c869aa1792ed8e3c89d5ada2df8c00f8fe36526a) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/d98f1e811a6a06128a86f10824b6005984dc8265...c869aa1792ed8e3c89d5ada2df8c00f8fe36526a) ### [`v6.1.0`](https://github.com/typescript-eslint/typescript-eslint/compare/6ae1fa74b18af8a2d4baa0d3d4b43997cf9a9781...d98f1e811a6a06128a86f10824b6005984dc8265) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/6ae1fa74b18af8a2d4baa0d3d4b43997cf9a9781...d98f1e811a6a06128a86f10824b6005984dc8265) ### [`v6.0.0`](https://github.com/typescript-eslint/typescript-eslint/compare/cba0d113bba1bbcee69149c954dc6bd4c658c714...6ae1fa74b18af8a2d4baa0d3d4b43997cf9a9781) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/cba0d113bba1bbcee69149c954dc6bd4c658c714...6ae1fa74b18af8a2d4baa0d3d4b43997cf9a9781) ### [`v5.62.0`](https://github.com/typescript-eslint/typescript-eslint/compare/2f46341a14ca6f05334301315bc54dd20129c408...cba0d113bba1bbcee69149c954dc6bd4c658c714) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/2f46341a14ca6f05334301315bc54dd20129c408...cba0d113bba1bbcee69149c954dc6bd4c658c714) ### [`v5.61.0`](https://github.com/typescript-eslint/typescript-eslint/compare/f74862cbfb5c74ba958ba27d1ea2ca5046821818...2f46341a14ca6f05334301315bc54dd20129c408) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/f74862cbfb5c74ba958ba27d1ea2ca5046821818...2f46341a14ca6f05334301315bc54dd20129c408) ### [`v5.60.1`](https://github.com/typescript-eslint/typescript-eslint/compare/c09b1c0252cbbf58e94ca5d671b6e05f29511144...f74862cbfb5c74ba958ba27d1ea2ca5046821818) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/c09b1c0252cbbf58e94ca5d671b6e05f29511144...f74862cbfb5c74ba958ba27d1ea2ca5046821818) ### [`v5.60.0`](https://github.com/typescript-eslint/typescript-eslint/compare/a91bb9e264544fc635a44468c2543b94fa83ac1c...c09b1c0252cbbf58e94ca5d671b6e05f29511144) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/a91bb9e264544fc635a44468c2543b94fa83ac1c...c09b1c0252cbbf58e94ca5d671b6e05f29511144) ### [`v5.59.11`](https://github.com/typescript-eslint/typescript-eslint/compare/9768e989d332fb11c9cb6c72f8d1d707a0b59b95...a91bb9e264544fc635a44468c2543b94fa83ac1c) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/9768e989d332fb11c9cb6c72f8d1d707a0b59b95...a91bb9e264544fc635a44468c2543b94fa83ac1c) ### [`v5.59.10`](https://github.com/typescript-eslint/typescript-eslint/compare/a2b6b2e0a1ccdfbd5c76ba3fbcffd94d29f5d2b1...9768e989d332fb11c9cb6c72f8d1d707a0b59b95) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/a2b6b2e0a1ccdfbd5c76ba3fbcffd94d29f5d2b1...9768e989d332fb11c9cb6c72f8d1d707a0b59b95) ### [`v5.59.9`](https://github.com/typescript-eslint/typescript-eslint/compare/391a6702c0a9b5b3874a7a27047f2a721f090fb6...a2b6b2e0a1ccdfbd5c76ba3fbcffd94d29f5d2b1) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/391a6702c0a9b5b3874a7a27047f2a721f090fb6...a2b6b2e0a1ccdfbd5c76ba3fbcffd94d29f5d2b1) ### [`v5.59.8`](https://github.com/typescript-eslint/typescript-eslint/compare/5166a00e1a903901c5bedbd7d57198fc0962061e...391a6702c0a9b5b3874a7a27047f2a721f090fb6) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/5166a00e1a903901c5bedbd7d57198fc0962061e...391a6702c0a9b5b3874a7a27047f2a721f090fb6) ### [`v5.59.7`](https://github.com/typescript-eslint/typescript-eslint/compare/5b0e577f2552e8b2c53a3fb22edc9d219589b937...5166a00e1a903901c5bedbd7d57198fc0962061e) [Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/5b0e577f2552e8b2c53a3fb22edc9d219589b937...5166a00e1a903901c5bedbd7d57198fc0962061e) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC43NC4yIiwidXBkYXRlZEluVmVyIjoiMzcuMC4wIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCJ9--> Reviewed-on: https://gitea.vylpes.xyz/RabbitLabs/random-bunny/pulls/77 Co-authored-by: Renovate Bot <renovate@vylpes.com> Co-committed-by: Renovate Bot <renovate@vylpes.com>
2023-10-23 13:25:22 +01:00
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^5.54.0",
2023-09-13 11:50:44 +01:00
"eslint": "^8.49.0",
"jest": "^29.7.0",
"jest-mock-extended": "^3.0.3",
Update dependency np to v8 (#67) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [np](https://github.com/sindresorhus/np) | devDependencies | major | [`^7.7.0` -> `^8.0.0`](https://renovatebot.com/diffs/npm/np/7.7.0/8.0.4) | --- ### Release Notes <details> <summary>sindresorhus/np (np)</summary> ### [`v8.0.4`](https://github.com/sindresorhus/np/releases/tag/v8.0.4) [Compare Source](https://github.com/sindresorhus/np/compare/v8.0.3...v8.0.4) - Handle first time display of dependencies ([#&#8203;707](https://github.com/sindresorhus/np/issues/707)) [`3f43d78`](https://github.com/sindresorhus/np/commit/3f43d78) ### [`v8.0.3`](https://github.com/sindresorhus/np/releases/tag/v8.0.3) [Compare Source](https://github.com/sindresorhus/np/compare/v8.0.2...v8.0.3) - Fix skipping publish step ([#&#8203;706](https://github.com/sindresorhus/np/issues/706)) [`51dcc2d`](https://github.com/sindresorhus/np/commit/51dcc2d) ### [`v8.0.2`](https://github.com/sindresorhus/np/releases/tag/v8.0.2) [Compare Source](https://github.com/sindresorhus/np/compare/v8.0.1...v8.0.2) - Fix publish not working with Yarn [`3d448c2`](https://github.com/sindresorhus/np/commit/3d448c2) - Include stack trace in errors [`12fce88`](https://github.com/sindresorhus/np/commit/12fce88) ### [`v8.0.1`](https://github.com/sindresorhus/np/releases/tag/v8.0.1) [Compare Source](https://github.com/sindresorhus/np/compare/v8.0.0...v8.0.1) - Fix a crash in the new dependency check [`beb7db1`](https://github.com/sindresorhus/np/commit/beb7db1) ### [`v8.0.0`](https://github.com/sindresorhus/np/releases/tag/v8.0.0) [Compare Source](https://github.com/sindresorhus/np/compare/v7.7.0...v8.0.0) ##### Breaking - Require Node.js 16 ([#&#8203;683](https://github.com/sindresorhus/np/issues/683)) [`72879e0`](https://github.com/sindresorhus/np/commit/72879e0) ##### Improvements - Add 2FA support for npm version 9+ ([#&#8203;693](https://github.com/sindresorhus/np/issues/693)) [`9cb4bfd`](https://github.com/sindresorhus/np/commit/9cb4bfd) - Improve startup time ([#&#8203;688](https://github.com/sindresorhus/np/issues/688)) [`eba203f`](https://github.com/sindresorhus/np/commit/eba203f) - Improve the reliability of detecting which files will be included in the package ([#&#8203;682](https://github.com/sindresorhus/np/issues/682)) [`a6ce792`](https://github.com/sindresorhus/np/commit/a6ce792) - Add check for new dependencies ([#&#8203;681](https://github.com/sindresorhus/np/issues/681)) [`6867fb9`](https://github.com/sindresorhus/np/commit/6867fb9) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC43NC4yIiwidXBkYXRlZEluVmVyIjoiMzYuODkuMCIsInRhcmdldEJyYW5jaCI6ImRldmVsb3AifQ==--> Reviewed-on: https://gitea.vylpes.xyz/RabbitLabs/random-bunny/pulls/67 Co-authored-by: Renovate Bot <renovate@vylpes.com> Co-committed-by: Renovate Bot <renovate@vylpes.com>
2023-09-11 20:31:50 +01:00
"np": "^8.0.0",
"ts-jest": "^29.1.1",
"ts-mockito": "^2.6.1",
2023-03-20 00:02:45 +00:00
"typescript": "^5.0.0"
2023-01-27 22:42:37 +00:00
},
2023-05-20 15:47:20 +01:00
"resolutions": {
Update dependency got to v13 (#66) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [got](https://github.com/sindresorhus/got) | resolutions | major | [`^11.8.5` -> `^13.0.0`](https://renovatebot.com/diffs/npm/got/11.8.6/13.0.0) | --- ### Release Notes <details> <summary>sindresorhus/got</summary> ### [`v13.0.0`](https://github.com/sindresorhus/got/releases/tag/v13.0.0) [Compare Source](https://github.com/sindresorhus/got/compare/v12.6.1...v13.0.0) As a reminder, Got continues to require ESM. For TypeScript users, this includes having [`"module": "node16", "moduleResolution": "node16"` in your tsconfig](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-make-my-typescript-project-output-esm). ##### Breaking - Require Node.js 16 [`52a1063`](https://github.com/sindresorhus/got/commit/52a1063) - Change the [`enableUnixSockets`](https://github.com/sindresorhus/got/blob/main/documentation/2-options.md#enableunixsockets) option to be `false` by default [`852c312`](https://github.com/sindresorhus/got/commit/852c312) - Most users don't need it. ##### Improvements - Allow specifying `undefined` for options ([#&#8203;2258](https://github.com/sindresorhus/got/issues/2258)) [`1cefe8b`](https://github.com/sindresorhus/got/commit/1cefe8b) ### [`v12.6.1`](https://github.com/sindresorhus/got/releases/tag/v12.6.1) [Compare Source](https://github.com/sindresorhus/got/compare/v12.6.0...v12.6.1) - Fix `get-stream` import statement ([#&#8203;2266](https://github.com/sindresorhus/got/issues/2266)) [`67d5039`](https://github.com/sindresorhus/got/commit/67d5039) ### [`v12.6.0`](https://github.com/sindresorhus/got/releases/tag/v12.6.0) [Compare Source](https://github.com/sindresorhus/got/compare/v12.5.3...v12.6.0) - Update dependencies [`88c88fb`](https://github.com/sindresorhus/got/commit/88c88fb) [`979272e`](https://github.com/sindresorhus/got/commit/979272e) - Loosen URL validation strictness ([#&#8203;2200](https://github.com/sindresorhus/got/issues/2200)) [`0ca0b7f`](https://github.com/sindresorhus/got/commit/0ca0b7f) ### [`v12.5.3`](https://github.com/sindresorhus/got/releases/tag/v12.5.3) [Compare Source](https://github.com/sindresorhus/got/compare/v12.5.2...v12.5.3) - Fix abort event listeners not always being cleaned up ([#&#8203;2162](https://github.com/sindresorhus/got/issues/2162)) [`3cc40b5`](https://github.com/sindresorhus/got/commit/3cc40b5) ### [`v12.5.2`](https://github.com/sindresorhus/got/releases/tag/v12.5.2) [Compare Source](https://github.com/sindresorhus/got/compare/v12.5.1...v12.5.2) - Improve TypeScript 4.9 compatibility ([#&#8203;2163](https://github.com/sindresorhus/got/issues/2163)) [`39f83b6`](https://github.com/sindresorhus/got/commit/39f83b6) ### [`v12.5.1`](https://github.com/sindresorhus/got/releases/tag/v12.5.1) [Compare Source](https://github.com/sindresorhus/got/compare/v12.5.0...v12.5.1) - Fix compatibility with TypeScript and ESM [`3b3ea67`](https://github.com/sindresorhus/got/commit/3b3ea67) - Fix request body not being properly cached ([#&#8203;2150](https://github.com/sindresorhus/got/issues/2150)) [`3e9d3af`](https://github.com/sindresorhus/got/commit/3e9d3af) ### [`v12.5.0`](https://github.com/sindresorhus/got/releases/tag/v12.5.0) [Compare Source](https://github.com/sindresorhus/got/compare/v12.4.1...v12.5.0) - Disable method rewriting on 307 and 308 status codes ([#&#8203;2145](https://github.com/sindresorhus/got/issues/2145)) [`e049e94`](https://github.com/sindresorhus/got/commit/e049e94) - Upgrade dependencies [`8630815`](https://github.com/sindresorhus/got/commit/8630815) [`f0ac0b3`](https://github.com/sindresorhus/got/commit/f0ac0b3) [`4c3762a`](https://github.com/sindresorhus/got/commit/4c3762a) ### [`v12.4.1`](https://github.com/sindresorhus/got/releases/tag/v12.4.1) [Compare Source](https://github.com/sindresorhus/got/compare/v12.4.0...v12.4.1) ##### Fixes - Fix `options.context` being not extensible [`b671480`](https://github.com/sindresorhus/got/commit/b671480715dbbff908e9a385f5e714570c663cd7) - Don't emit `uploadProgress` after promise cancelation [`693de21`](https://github.com/sindresorhus/got/commit/693de217b030816f574d6e4cb505ee2e77b21c29) ### [`v12.4.0`](https://github.com/sindresorhus/got/releases/tag/v12.4.0) [Compare Source](https://github.com/sindresorhus/got/compare/v12.3.1...v12.4.0) ##### Improvements - Support FormData without known length ([#&#8203;2120](https://github.com/sindresorhus/got/issues/2120)) [`850773c`](https://github.com/sindresorhus/got/commit/850773c) ##### Fixes - Don't call `beforeError` hooks with `HTTPError` if the `throwHttpErrors` option is `false` ([#&#8203;2104](https://github.com/sindresorhus/got/issues/2104)) [`3927348`](https://github.com/sindresorhus/got/commit/3927348) ### [`v12.3.1`](https://github.com/sindresorhus/got/releases/tag/v12.3.1) [Compare Source](https://github.com/sindresorhus/got/compare/v12.3.0...v12.3.1) - Don't freeze signal when freezing Options ([#&#8203;2100](https://github.com/sindresorhus/got/issues/2100)) [`43b1467`](https://github.com/sindresorhus/got/commit/43b1467) ### [`v12.3.0`](https://github.com/sindresorhus/got/releases/tag/v12.3.0) [Compare Source](https://github.com/sindresorhus/got/compare/v12.2.0...v12.3.0) - Add `.off()` method for events ([#&#8203;2092](https://github.com/sindresorhus/got/issues/2092)) [`88056be`](https://github.com/sindresorhus/got/commit/88056be) ### [`v12.2.0`](https://github.com/sindresorhus/got/releases/tag/v12.2.0) [Compare Source](https://github.com/sindresorhus/got/compare/v12.1.0...v12.2.0) - [Support `AbortController`](https://github.com/sindresorhus/got/blob/main/documentation/2-options.md#signal) ([#&#8203;2020](https://github.com/sindresorhus/got/issues/2020)) [`6a6d2a9`](https://github.com/sindresorhus/got/commit/6a6d2a9) - Add [`enableUnixSockets`](https://github.com/sindresorhus/got/blob/main/documentation/2-options.md#enableunixsockets) option ([#&#8203;2062](https://github.com/sindresorhus/got/issues/2062)) [`461b3d4`](https://github.com/sindresorhus/got/commit/461b3d4) ### [`v12.1.0`](https://github.com/sindresorhus/got/releases/tag/v12.1.0) [Compare Source](https://github.com/sindresorhus/got/compare/v12.0.4...v12.1.0) ##### Improvements - Add `response.ok` ([#&#8203;2043](https://github.com/sindresorhus/got/issues/2043)) [`22d58fb`](https://github.com/sindresorhus/got/commit/22d58fb) - This is only useful if you have [`{throwHttpErrors: false}`](https://github.com/sindresorhus/got/blob/main/documentation/2-options.md#throwhttperrors) ##### Fixes - Do not redirect to UNIX sockets ([#&#8203;2047](https://github.com/sindresorhus/got/issues/2047)) [`861ccd9`](https://github.com/sindresorhus/got/commit/861ccd9) - [CVE-2022-33987](https://nvd.nist.gov/vuln/detail/CVE-2022-33987) - [Also back ported to v11](https://github.com/sindresorhus/got/releases/tag/v11.8.5) ### [`v12.0.4`](https://github.com/sindresorhus/got/releases/tag/v12.0.4) [Compare Source](https://github.com/sindresorhus/got/compare/v12.0.3...v12.0.4) - Remove stream lock - unreliable since Node 17.3.0 [`bb8eca9`](https://github.com/sindresorhus/got/commit/bb8eca924c338ca12d5b90d6a26aa28dbddb42ee) ### [`v12.0.3`](https://github.com/sindresorhus/got/releases/tag/v12.0.3) [Compare Source](https://github.com/sindresorhus/got/compare/v12.0.2...v12.0.3) - Allow more types in the `json` option ([#&#8203;2015](https://github.com/sindresorhus/got/issues/2015)) [`eb045bf`](https://github.com/sindresorhus/got/commit/eb045bf) ### [`v12.0.2`](https://github.com/sindresorhus/got/releases/tag/v12.0.2) [Compare Source](https://github.com/sindresorhus/got/compare/v12.0.1...v12.0.2) - Fix `encoding` option with `{responseType: 'json'}` ([#&#8203;1996](https://github.com/sindresorhus/got/issues/1996)) [`0703318`](https://github.com/sindresorhus/got/commit/0703318) ### [`v12.0.1`](https://github.com/sindresorhus/got/releases/tag/v12.0.1) [Compare Source](https://github.com/sindresorhus/got/compare/v12.0.0...v12.0.1) - Fix `nock` compatibility ([#&#8203;1959](https://github.com/sindresorhus/got/issues/1959)) [`bf39d2c`](https://github.com/sindresorhus/got/commit/bf39d2c) - Fix missing export of `Request` TypeScript type ([#&#8203;1940](https://github.com/sindresorhus/got/issues/1940)) [`0f9f2b8`](https://github.com/sindresorhus/got/commit/0f9f2b8) ### [`v12.0.0`](https://github.com/sindresorhus/got/releases/tag/v12.0.0) [Compare Source](https://github.com/sindresorhus/got/compare/v11.8.6...v12.0.0) ##### Introducing Got v12.0.0 :tada: Long time no see! The latest Got version (v11.8.2) was released just in February ❄️ We have been working hard on squashing bugs and improving overall experience. If you find Got useful, you might want to [sponsor the Got maintainers](https://github.com/sindresorhus/got?sponsor=1). ##### This package is now pure ESM **Please [read this](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).** Also see https://github.com/sindresorhus/got/issues/1789. - **Please don't open issues about `[ERR_REQUIRE_ESM]` and `Must use import to load ES Module` errors.** This is a problem with your setup, not Got. - Please don't open issues about using Got with Jest. Jest does not fully support ESM. - Pretty much any problem with loading this package is a problem with your bundler, test framework, etc, not Got. - If you use TypeScript, you will want to stay on Got v11 until TypeScript 4.6 is out. [Why.](https://github.com/microsoft/TypeScript/issues/46452) - If you use a bundler, make sure it supports ESM and that you have correctly configured it for ESM. - The Got issue tracker is not a support channel for your favorite build/bundler tool. ##### Required Node.js >=14 While working with streams, we encountered more Node.js bugs that needed workarounds. In order to keep our code clean, we had to drop Node.js v12 as the code would get more messy. We strongly recommend that you update Node.js to **v14 LTS**. ##### HTTP/2 support Every Node.js release, the native `http2` module gets more stable. Unfortunately there are still some issues on the Node.js side, so we decided to keep HTTP/2 disabled for now. We may enable it by default in Got v13. It is still possible to turn it on via the `http2` option. To run HTTP/2 requests, it is required to use Node.js **v15.10** or above. ##### Bug fixes Woah, we possibly couldn't make a release if we didn't fix some bugs! - Do not throw on custom stack traces ([#&#8203;1491](https://github.com/sindresorhus/got/issues/1491)) [`49c16ee`](https://github.com/sindresorhus/got/commit/49c16ee54fb19ea7aa77e24ac8c2b602f0aad265) - Remove automatic `content-length` on ReadStream ([#&#8203;1510](https://github.com/sindresorhus/got/issues/1510)) [`472b8ef`](https://github.com/sindresorhus/got/commit/472b8ef9d9fc7713b740981a8b1103a7a9111b26) - Fix promise shortcuts in case of error status code ([#&#8203;1543](https://github.com/sindresorhus/got/issues/1543)) [`ff918fb`](https://github.com/sindresorhus/got/commit/ff918fb6dedb6d8b23421497ec890d43f45121b7) [`1107cc6`](https://github.com/sindresorhus/got/commit/1107cc625e4cc469276483316c48896a21f6251a) - Invert the `methodRewriting` option [`51d88a0`](https://github.com/sindresorhus/got/commit/51d88a0efed56760d116c5b911cea71e3265c787) - Fix `url` not being reused on retry in rare case ([#&#8203;1487](https://github.com/sindresorhus/got/issues/1487)) [`462bc63`](https://github.com/sindresorhus/got/commit/462bc630015064fa4ad4358cf28d24f95e1c958b) - Fix hanging promise on HTTP/2 timeout ([#&#8203;1492](https://github.com/sindresorhus/got/issues/1492)) [`a59fac4`](https://github.com/sindresorhus/got/commit/a59fac415ac013a48b1d514837628a5cf81d6878) - Prevent uncaught ParseErrors on initial successful response ([#&#8203;1527](https://github.com/sindresorhus/got/issues/1527)) [`77df9c3`](https://github.com/sindresorhus/got/commit/77df9c33db5ba3126f54317171e1cfcfceefc3d5) - Throw an error when retrying with consumed body ([#&#8203;1507](https://github.com/sindresorhus/got/issues/1507)) [`62305d7`](https://github.com/sindresorhus/got/commit/62305d77d3428b5c714d21b4bbee68cc75b5f787) - Fix a Node.js 16 bug that hangs Got streams [`06a2d3d`](https://github.com/sindresorhus/got/commit/06a2d3d7d8d4fcc6898b6364d1a18ca1d407092b) - Fix default pagination handling for empty Link header ([#&#8203;1768](https://github.com/sindresorhus/got/issues/1768)) [`1e1e506`](https://github.com/sindresorhus/got/commit/1e1e50647e93d038a4cc6a9bbbfbf61165d8fd39) - Fix incorrect `response.complete` when using cache [`9e15d88`](https://github.com/sindresorhus/got/commit/9e15d887da3b065940bbc8ca38f9c748a0bbc75e) - Fix `Cannot call end` error when `request` returns a `Writable` [`226cc39`](https://github.com/sindresorhus/got/commit/226cc3995f6e16938163ebde24d8762e7dcd15e2) - Fix Request options not being reused on retry [`3c23eea`](https://github.com/sindresorhus/got/commit/3c23eea5a096f6f8ea0edf3e2a27e1caca88acf9) - Fix types being not compatible with CommonJS [`3c23eea`](https://github.com/sindresorhus/got/commit/3c23eea5a096f6f8ea0edf3e2a27e1caca88acf9) - Fix `got.paginate does not call init hooks` ([#&#8203;1574](https://github.com/sindresorhus/got/issues/1574)) [`3c23eea`](https://github.com/sindresorhus/got/commit/3c23eea5a096f6f8ea0edf3e2a27e1caca88acf9) - Generate a new object when passing options to the native `https` module ([#&#8203;1567](https://github.com/sindresorhus/got/issues/1567)) [`3c23eea`](https://github.com/sindresorhus/got/commit/3c23eea5a096f6f8ea0edf3e2a27e1caca88acf9) - Remove stream reuse check ([#&#8203;1803](https://github.com/sindresorhus/got/issues/1803)) [`9ecc5ee`](https://github.com/sindresorhus/got/commit/9ecc5ee76f77aafd5100520d9d8789c491c8fb24) - Fix merging `searchParams` ([#&#8203;1814](https://github.com/sindresorhus/got/issues/1814)) [`1018c20`](https://github.com/sindresorhus/got/commit/1018c2029eea1f5b75b5120265996f1c0b3c12ae) [`732e9bd`](https://github.com/sindresorhus/got/commit/732e9bd9406ba1c3dd64b445264e891f33fc0254) - Fix unhandled exception when lookup returns invalid IP early ([#&#8203;1737](https://github.com/sindresorhus/got/issues/1737)) [`2453e5e`](https://github.com/sindresorhus/got/commit/2453e5e4213fe036a0108de3e4db414dcf2b4c30) - Fix relative URLs when paginating [`439fb82`](https://github.com/sindresorhus/got/commit/439fb82d2a07cece417a18c47e37cfdeaaf38db7) - Require url to be an instance of URL when paginating ([#&#8203;1818](https://github.com/sindresorhus/got/issues/1818)) [`eda69ff`](https://github.com/sindresorhus/got/commit/eda69ff924a621e499d31cbc590993a32ddb48d3) - Fix `username` and `password` encoding in URL ([#&#8203;1169](https://github.com/sindresorhus/got/issues/1169) [#&#8203;1317](https://github.com/sindresorhus/got/issues/1317)) [`d65d0ca`](https://github.com/sindresorhus/got/commit/d65d0caf627e8d1f5367db34d7d9b55d332c1efb) - Clone raw options [`1c4cefc`](https://github.com/sindresorhus/got/commit/1c4cefc9b49f891712c3758f853d8c6214a1c904) - Fix invalid `afterResponse` return check [`cbc8902`](https://github.com/sindresorhus/got/commit/cbc8902) - Fix `https.alpnProtocols` not having an effect [`e1099fb`](https://github.com/sindresorhus/got/commit/e1099fb) ##### Improvements - Make the `context` option mergeable ([#&#8203;1459](https://github.com/sindresorhus/got/issues/1459)) [`2b8ed1f`](https://github.com/sindresorhus/got/commit/2b8ed1f5a185f30603d24e2ceb8181782de3bc5a) - Add generic argument to AfterResponseHook TypeScript type ([#&#8203;1589](https://github.com/sindresorhus/got/issues/1589)) [`6fc04a9`](https://github.com/sindresorhus/got/commit/6fc04a9b92f07b07b9fba010f2231a90082a039b) - Add read timeout ([#&#8203;1518](https://github.com/sindresorhus/got/issues/1518)) [`e943672`](https://github.com/sindresorhus/got/commit/e9436720fcb32b77d39d5477b420b18083e41c02) *(blocked by https://github.com/nodejs/node/issues/35923)* - Improve the pagination API ([#&#8203;1644](https://github.com/sindresorhus/got/issues/1644)) [`2675046`](https://github.com/sindresorhus/got/commit/2675046a83c7f03613f553a8da2912d491be900d) - Change the stackAllItems option to be false by default ([#&#8203;1645](https://github.com/sindresorhus/got/issues/1645)) [`1120370`](https://github.com/sindresorhus/got/commit/1120370e05fd8d9e768677d8474d0c82cf91a6a6) - Throw when afterResponse hook returns an invalid value [`4f21eb3`](https://github.com/sindresorhus/got/commit/4f21eb3db705c90797ef8ee1503704f78fea3c1b) - Add `retry.backoffLimit` option [`41c4136`](https://github.com/sindresorhus/got/commit/41c4136632b9391adb3ac53332b312089bc4dc16) - Add `noise` retry option [`e830077`](https://github.com/sindresorhus/got/commit/e83007704670b5f567ca338c156441f6c569ecb5) - Enable more HTTPS options [`83575d5`](https://github.com/sindresorhus/got/commit/83575d590a119027d319bd9208681973087564a9) [`fe723a0`](https://github.com/sindresorhus/got/commit/fe723a0477dc02785a0b477e3d5f85d0233e5b84) (thanks [@&#8203;Giotino](https://github.com/Giotino)) - Define `error.code` [`f27e8d3`](https://github.com/sindresorhus/got/commit/f27e8d331627074e76e4a9ec85a2c8d0a0625e5f) - Set `options.url` even if some options are invalid [`8d6a680`](https://github.com/sindresorhus/got/commit/8d6a6807883323a83ea5f126ca56b55d9ce5f299) - Improve memory usage when merging options [`2db5ec5`](https://github.com/sindresorhus/got/commit/2db5ec5d366efbbf9e0838eabfa6be774a0518a0) - Support async generators as body [`854430f`](https://github.com/sindresorhus/got/commit/854430f01350811fe8a0ccf20cd820aabfbd3926) [`3df52f3`](https://github.com/sindresorhus/got/commit/3df52f38edbadb45158c37d499817bc5486989c6) - Add missing `once` types for Stream API [`3c23eea`](https://github.com/sindresorhus/got/commit/3c23eea5a096f6f8ea0edf3e2a27e1caca88acf9) - New error type: `RetryError` which always triggers a new retry when thrown [`3c23eea`](https://github.com/sindresorhus/got/commit/3c23eea5a096f6f8ea0edf3e2a27e1caca88acf9) - `error.options` is now enumerable [`3c23eea`](https://github.com/sindresorhus/got/commit/3c23eea5a096f6f8ea0edf3e2a27e1caca88acf9) - `defaults.handlers` don't need a default handler now [`3c23eea`](https://github.com/sindresorhus/got/commit/3c23eea5a096f6f8ea0edf3e2a27e1caca88acf9) - Add a parser for the `Link` header [`3c23eea`](https://github.com/sindresorhus/got/commit/3c23eea5a096f6f8ea0edf3e2a27e1caca88acf9) - General code improvements [`a5dd9aa`](https://github.com/sindresorhus/got/commit/a5dd9aa37e7891b2620798560799c7f8bd380877) ##### Breaking changes ##### Improved option normalization - Got exports an `Option` class that is specifically designed to parse and validate Got options. It is made of setters and getters that provide fast normalization and more consistent behavior. When passing an option does not exist, Got will throw an error. In order to retrieve the options before the error, use `error.options`. ```js import got from 'got'; try { await got('https://httpbin.org/anything', { thisOptionDoesNotExist: true }); } catch (error) { console.error(error); console.error(error.options.url.href); // Unexpected option: thisOptionDoesNotExist // https://httpbin.org/anything } ``` - The `init` hook now accepts a second argument: `self`, which points to an `Options` instance. In order to define your own options, you have to move them to `options.context` in an [`init` hook](https://github.com/sindresorhus/got/blob/main/documentation/lets-make-a-plugin.md#authorization) or store them in `options.context` directly. - The `init` hooks are ran only when passing an options object explicitly. ```diff - await got('https://example.com'); // this will *not* trigger the init hooks + await got('https://example.com', {}); // this *will** trigger init hooks ``` - [`options.merge()`](2-options.md) replaced `got.mergeOptions` and `Request.normalizeArguments` ```diff - got.defaults.options = got.mergeOptions(got.defaults.options, {…}); + got.defaults.options.merge(…); ``` This fixes issues like [#&#8203;1450](https://github.com/sindresorhus/got/issues/1450) - Legacy `Url` instances are not supported anymore. You need to use WHATWG URL instead. ```diff - await got(string, {port: 8443}); + const url = new URL(string); + url.port = 8443; + await got(url); ``` - No implicit timeout declaration. ```diff - await got('https://example.com', {timeout: 5000}) + await got('https://example.com', {timeout: {request: 5000}) ``` - No implicit retry declaration. ```diff - await got('https://example.com', {retry: 5}) + await got('https://example.com', {retry: {limit: 5}) ``` - `dnsLookupIpVersion` is now a number (4 or 6) or undefined ```diff - await got('https://example.com', {dnsLookupIpVersion: 'ipv4'}) + await got('https://example.com', {dnsLookupIpVersion: 4}) ``` - `redirectUrls` and `requestUrl` now give URL instances ```diff - request.requestUrl + request.requestUrl.origin + request.requestUrl.href + request.requestUrl.toString() ``` ```diff - request.redirectUrls[0] + request.redirectUrls[0].origin + request.redirectUrls[0].href + request.redirectUrls[0].toString() ``` - Renamed `request.aborted` to `request.isAborted` ```diff - request.aborted + request.isAborted ``` Reason: consistency with `options.isStream`. - Renamed the `lookup` option to `dnsLookup` ```diff - await got('https://example.com', {lookup: cacheable.lookup}) + await got('https://example.com', {dnsLookup: cacheable.lookup}) ``` - The `beforeRetry` hook now accepts only two arguments: `error` and `retryCount` ```diff await got('https://example.com', { hooks: { beforeRetry: [ - (options, error, retryCount) => { - console.log(options, error, retryCount); - } + (error, retryCount) => { + console.log(error.options, error, retryCount); + } ] } }) ``` The `options` argument has been removed, however it's still accessible via `error.options`. All modifications on `error.options` will be reflected in the next requests (no behavior change, same as with Got 11). - The `beforeRedirect` hook's first argument (options) is now a cloned instance of the Request options. This was done to make retrieving the original options possible: `plainResponse.request.options`. ```diff await got('http://szmarczak.com', { hooks: { beforeRedirect: [ (options, response) => { - console.log(options === response.request.options); //=> true [invalid! our original options were overriden] + console.log(options === response.request.options); //=> false [we can access the original options now] } ] } }) ``` - The `redirect` event now takes two arguments in this order: `updatedOptions` and `plainResponse`. ```diff - stream.on('redirect', (response, options) => …) + stream.on('redirect', (options, response) => …) ``` Reason: consistency with the `beforeRedirect` hook. - The `socketPath` option has been removed. Use the `unix:` protocol instead. ```diff - got('/containers/json', {socketPath: '/var/run/docker.sock'}) + got('unix:/var/run/docker.sock:/containers/json') + got('http://unix:/var/run/docker.sock:/containers/json') ``` - The `retryWithMergedOptions` function in an `afterResponse` hook no longer returns a `Promise`. It now throws `RetryError`, so this should this should be the last function being executed. This was done to allow `beforeRetry` hooks getting called. - You can no longer set `options.agent` to `false`. To do so, you need to define all the `options.agent` properties: `http`, `https` and `http2`. ```diff await got('https://example.com', { - agent: false + agent: { + http: false, + https: false, + http2: false + } }) ``` - When passing a `url` option when paginating, it now needs to be an absolute URL - the `prefixUrl` option is always reset from now on. The same when retrying in an `afterResponse` hook. ```diff - return {url: '/location'}; + return {url: new URL('/location', response.request.options.url)}; ``` There was confusion around the `prefixUrl` option. It was counterintuitive if used with the Pagination API. For example, it worked fine if the server replied with a relative URL, but if it was an absolute URL then the `prefixUrl` would end up duplicated. In order to fix this, Got now requires an absolute URL - no `prefixUrl` will be applied. - `got.extend(…)` will throw when passing some options that don't accept undefined - undefined no longer retains the old value, as setting undefined explicitly may reset the option ##### Documentation We have redesigned the documentation so it's easier to navigate and find exactly what you are looking for. We hope you like it :heart: </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC43NC4yIiwidXBkYXRlZEluVmVyIjoiMzQuNzQuMiJ9--> Reviewed-on: https://gitea.vylpes.xyz/RabbitLabs/random-bunny/pulls/66 Co-authored-by: Renovate Bot <renovate@vylpes.com> Co-committed-by: Renovate Bot <renovate@vylpes.com>
2023-09-04 20:42:16 +01:00
"np/**/got": "^13.0.0",
"**/semver": "^7.5.2",
"@babel/traverse": "^7.23.2"
2023-05-20 15:47:20 +01:00
},
2023-01-27 22:42:37 +00:00
"files": [
"dist"
]
2016-04-27 20:06:24 +01:00
}