Skip to content

Commit ef8ab66

Browse files
authored
Remove deprecated node packages (#699)
* Remove deprecated node packages * Update languages.json * Update languagetabs.md
1 parent f6641c0 commit ef8ab66

File tree

3 files changed

+2
-98
lines changed

3 files changed

+2
-98
lines changed

demo/docs/customization/languagetabs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The Docusaurus OpenAPI docs plugin comes with support for 8 languages which you
1515
| `curl` | bash | `curl`\* |
1616
| `python` | python | `requests`\*, `http.client` |
1717
| `go` | go | `native`\* |
18-
| `nodejs` | javascript | `axios`\*, `native`, `requests`, `unirest` |
18+
| `nodejs` | javascript | `axios`\*, `native` |
1919
| `ruby` | ruby | `net::http`\* |
2020
| `csharp` | csharp | `restsharp`\*, `httpclient` |
2121
| `php` | php | `curl`\*, `guzzle`, `pecl_http`, `http_request2` |

packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/CodeSnippets/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const languageSet: Language[] = [
7171
trimRequestBody: true,
7272
},
7373
variant: "axios",
74-
variants: ["axios", "native", "request", "unirest"],
74+
variants: ["axios", "native"],
7575
},
7676
{
7777
highlight: "ruby",

packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/CodeSnippets/languages.json

Lines changed: 0 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -635,102 +635,6 @@
635635
"description": "Modifies code snippet to incorporate ES6 (EcmaScript) features"
636636
}
637637
]
638-
},
639-
{
640-
"key": "Request",
641-
"options": [
642-
{
643-
"name": "Set indentation count",
644-
"id": "indentCount",
645-
"type": "positiveInteger",
646-
"default": 2,
647-
"description": "Set the number of indentation characters to add per code level"
648-
},
649-
{
650-
"name": "Set indentation type",
651-
"id": "indentType",
652-
"type": "enum",
653-
"availableOptions": ["Tab", "Space"],
654-
"default": "Space",
655-
"description": "Select the character used to indent lines of code"
656-
},
657-
{
658-
"name": "Set request timeout",
659-
"id": "requestTimeout",
660-
"type": "positiveInteger",
661-
"default": 0,
662-
"description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
663-
},
664-
{
665-
"name": "Follow redirects",
666-
"id": "followRedirect",
667-
"type": "boolean",
668-
"default": true,
669-
"description": "Automatically follow HTTP redirects"
670-
},
671-
{
672-
"name": "Trim request body fields",
673-
"id": "trimRequestBody",
674-
"type": "boolean",
675-
"default": false,
676-
"description": "Remove white space and additional lines that may affect the server's response"
677-
},
678-
{
679-
"name": "Enable ES6 features",
680-
"id": "ES6_enabled",
681-
"type": "boolean",
682-
"default": false,
683-
"description": "Modifies code snippet to incorporate ES6 (EcmaScript) features"
684-
}
685-
]
686-
},
687-
{
688-
"key": "Unirest",
689-
"options": [
690-
{
691-
"name": "Set indentation count",
692-
"id": "indentCount",
693-
"type": "positiveInteger",
694-
"default": 2,
695-
"description": "Set the number of indentation characters to add per code level"
696-
},
697-
{
698-
"name": "Set indentation type",
699-
"id": "indentType",
700-
"type": "enum",
701-
"availableOptions": ["Tab", "Space"],
702-
"default": "Space",
703-
"description": "Select the character used to indent lines of code"
704-
},
705-
{
706-
"name": "Set request timeout",
707-
"id": "requestTimeout",
708-
"type": "positiveInteger",
709-
"default": 0,
710-
"description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
711-
},
712-
{
713-
"name": "Follow redirects",
714-
"id": "followRedirect",
715-
"type": "boolean",
716-
"default": true,
717-
"description": "Automatically follow HTTP redirects"
718-
},
719-
{
720-
"name": "Trim request body fields",
721-
"id": "trimRequestBody",
722-
"type": "boolean",
723-
"default": false,
724-
"description": "Remove white space and additional lines that may affect the server's response"
725-
},
726-
{
727-
"name": "Enable ES6 features",
728-
"id": "ES6_enabled",
729-
"type": "boolean",
730-
"default": false,
731-
"description": "Modifies code snippet to incorporate ES6 (EcmaScript) features"
732-
}
733-
]
734638
}
735639
]
736640
},

0 commit comments

Comments
 (0)