Skip to content

Commit 07c34f9

Browse files
authored
XS⚠️ ◾ Replace Dependency Packages (#781)
## Summary - **Replace `glob` dev dependency with Node's built-in `fs.globSync()`**: Removes the `glob` package (v13.0.6) from devDependencies and uses `fs.globSync()` with `cwd` option in the test file `resources.resjson.spec.ts`. Results are mapped to absolute paths to match the prior behaviour. - **Replace `octokit` umbrella with `@octokit/rest` + `@octokit/request-error`**: Replaces the heavy `octokit` umbrella package (which pulls in GraphQL, webhooks, OAuth, GitHub App auth, retry, and throttling) with the two specific packages actually used: `@octokit/rest` (v22.0.1) for REST API calls and `@octokit/request-error` (v7.1.0) for error handling. Updates all 14 source and test files that imported from `"octokit"`.
1 parent 52f5dd7 commit 07c34f9

18 files changed

Lines changed: 68 additions & 549 deletions

dist/index.mjs

Lines changed: 7 additions & 16 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 26 additions & 262 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,27 +60,27 @@
6060
"dependencies": {
6161
"@actions/core": "3.0.0",
6262
"@actions/exec": "3.0.0",
63+
"@octokit/request-error": "7.1.0",
64+
"@octokit/rest": "22.0.1",
6365
"azure-devops-node-api": "15.1.2",
6466
"azure-pipelines-task-lib": "5.2.8",
6567
"http-status-codes": "2.3.0",
66-
"octokit": "5.0.5",
6768
"parse-git-diff": "0.0.20",
6869
"picomatch": "4.0.2"
6970
},
7071
"devDependencies": {
71-
"@octokit/types": "16.0.0",
7272
"@eslint/js": "10.0.1",
73+
"@octokit/types": "16.0.0",
7374
"@tsconfig/node24": "24.0.4",
7475
"@types/mocha": "10.0.10",
75-
"@types/picomatch": "4.0.2",
7676
"@types/node": "25.5.0",
77+
"@types/picomatch": "4.0.2",
7778
"@typescript-eslint/parser": "8.57.2",
7879
"@vercel/ncc": "0.38.4",
7980
"c8": "11.0.0",
8081
"eslint": "10.1.0",
8182
"fast-check": "4.6.0",
8283
"generate-license-file": "4.1.1",
83-
"glob": "13.0.6",
8484
"globals": "17.4.0",
8585
"mocha": "^11.7.5",
8686
"npm-check-updates": "19.6.5",

src/LICENSE.txt

Lines changed: 14 additions & 249 deletions
Original file line numberDiff line numberDiff line change
@@ -463,36 +463,6 @@ Apache License
463463

464464
-----------
465465

466-
The following npm package may be included in this product:
467-
468-
- @types/aws-lambda@8.10.161
469-
470-
This package contains the following license:
471-
472-
MIT License
473-
474-
Copyright (c) Microsoft Corporation.
475-
476-
Permission is hereby granted, free of charge, to any person obtaining a copy
477-
of this software and associated documentation files (the "Software"), to deal
478-
in the Software without restriction, including without limitation the rights
479-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
480-
copies of the Software, and to permit persons to whom the Software is
481-
furnished to do so, subject to the following conditions:
482-
483-
The above copyright notice and this permission notice shall be included in all
484-
copies or substantial portions of the Software.
485-
486-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
487-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
488-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
489-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
490-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
491-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
492-
SOFTWARE
493-
494-
-----------
495-
496466
The following npm package may be included in this product:
497467

498468
- utf8-byte-length@1.0.5
@@ -840,35 +810,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
840810

841811
-----------
842812

843-
The following npm package may be included in this product:
844-
845-
- @octokit/webhooks@14.2.0
846-
847-
This package contains the following license:
848-
849-
Copyright (c) GitHub 2025 - Licensed as MIT.
850-
851-
Permission is hereby granted, free of charge, to any person obtaining
852-
a copy of this software and associated documentation files (the
853-
"Software"), to deal in the Software without restriction, including
854-
without limitation the rights to use, copy, modify, merge, publish,
855-
distribute, sublicense, and/or sell copies of the Software, and to
856-
permit persons to whom the Software is furnished to do so, subject to
857-
the following conditions:
858-
859-
The above copyright notice and this permission notice shall be
860-
included in all copies or substantial portions of the Software.
861-
862-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
863-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
864-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
865-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
866-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
867-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
868-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
869-
870-
-----------
871-
872813
The following npm package may be included in this product:
873814

874815
- @octokit/openapi-types@27.0.0
@@ -1132,36 +1073,6 @@ SOFTWARE.
11321073

11331074
-----------
11341075

1135-
The following npm package may be included in this product:
1136-
1137-
- @octokit/plugin-retry@8.1.0
1138-
1139-
This package contains the following license:
1140-
1141-
MIT License
1142-
1143-
Copyright (c) 2018 Octokit contributors
1144-
1145-
Permission is hereby granted, free of charge, to any person obtaining a copy
1146-
of this software and associated documentation files (the "Software"), to deal
1147-
in the Software without restriction, including without limitation the rights
1148-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1149-
copies of the Software, and to permit persons to whom the Software is
1150-
furnished to do so, subject to the following conditions:
1151-
1152-
The above copyright notice and this permission notice shall be included in all
1153-
copies or substantial portions of the Software.
1154-
1155-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1156-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1157-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1158-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1159-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1160-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1161-
SOFTWARE.
1162-
1163-
-----------
1164-
11651076
The following npm packages may be included in this product:
11661077

11671078
- side-channel-weakmap@1.0.2
@@ -1223,27 +1134,6 @@ SOFTWARE.
12231134

12241135
-----------
12251136

1226-
The following npm packages may be included in this product:
1227-
1228-
- @octokit/auth-oauth-device@8.0.3
1229-
- @octokit/auth-oauth-user@6.0.2
1230-
- @octokit/oauth-methods@6.0.2
1231-
- @octokit/webhooks-methods@6.0.0
1232-
1233-
These packages each contain the following license:
1234-
1235-
MIT License
1236-
1237-
Copyright (c) 2021 Octokit contributors
1238-
1239-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1240-
1241-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
1242-
1243-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1244-
1245-
-----------
1246-
12471137
The following npm package may be included in this product:
12481138

12491139
- parse-git-diff@0.0.20
@@ -1304,36 +1194,6 @@ SOFTWARE.
13041194

13051195
-----------
13061196

1307-
The following npm package may be included in this product:
1308-
1309-
- toad-cache@3.7.0
1310-
1311-
This package contains the following license:
1312-
1313-
MIT License
1314-
1315-
Copyright (c) 2023 Igor Savin
1316-
1317-
Permission is hereby granted, free of charge, to any person obtaining a copy
1318-
of this software and associated documentation files (the "Software"), to deal
1319-
in the Software without restriction, including without limitation the rights
1320-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1321-
copies of the Software, and to permit persons to whom the Software is
1322-
furnished to do so, subject to the following conditions:
1323-
1324-
The above copyright notice and this permission notice shall be included in all
1325-
copies or substantial portions of the Software.
1326-
1327-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1328-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1329-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1330-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1331-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1332-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1333-
SOFTWARE.
1334-
1335-
-----------
1336-
13371197
The following npm package may be included in this product:
13381198

13391199
- json-with-bigint@3.5.8
@@ -1617,7 +1477,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
16171477

16181478
The following npm packages may be included in this product:
16191479

1620-
- @octokit/plugin-paginate-graphql@6.0.0
16211480
- @octokit/plugin-paginate-rest@14.0.0
16221481
- @octokit/plugin-rest-endpoint-methods@17.0.0
16231482
- @octokit/types@16.0.0
@@ -1634,12 +1493,11 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
16341493

16351494
-----------
16361495

1637-
The following npm packages may be included in this product:
1496+
The following npm package may be included in this product:
16381497

1639-
- @octokit/oauth-app@8.0.3
1640-
- @octokit/openapi-webhooks-types@12.1.0
1498+
- @octokit/plugin-request-log@6.0.0
16411499

1642-
These packages each contain the following license:
1500+
This package contains the following license:
16431501

16441502
MIT License Copyright (c) 2020 Octokit contributors
16451503

@@ -1751,19 +1609,16 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17511609

17521610
-----------
17531611

1754-
The following npm packages may be included in this product:
1612+
The following npm package may be included in this product:
17551613

1756-
- @octokit/app@16.1.2
1757-
- @octokit/endpoint@11.0.3
1758-
- @octokit/graphql@9.0.3
1759-
- @octokit/plugin-throttling@11.0.3
1760-
- @octokit/request@10.0.8
1614+
- @octokit/rest@22.0.1
17611615

1762-
These packages each contain the following license:
1616+
This package contains the following license:
17631617

17641618
The MIT License
17651619

1766-
Copyright (c) 2018 Octokit contributors
1620+
Copyright (c) 2012 Cloud9 IDE, Inc. (Mike de Boer)
1621+
Copyright (c) 2017-2018 Octokit contributors
17671622

17681623
Permission is hereby granted, free of charge, to any person obtaining a copy
17691624
of this software and associated documentation files (the "Software"), to deal
@@ -1785,15 +1640,17 @@ THE SOFTWARE.
17851640

17861641
-----------
17871642

1788-
The following npm package may be included in this product:
1643+
The following npm packages may be included in this product:
17891644

1790-
- universal-github-app-jwt@2.2.2
1645+
- @octokit/endpoint@11.0.3
1646+
- @octokit/graphql@9.0.3
1647+
- @octokit/request@10.0.8
17911648

1792-
This package contains the following license:
1649+
These packages each contain the following license:
17931650

17941651
The MIT License
17951652

1796-
Copyright (c) 2019 Gregor Martynus
1653+
Copyright (c) 2018 Octokit contributors
17971654

17981655
Permission is hereby granted, free of charge, to any person obtaining a copy
17991656
of this software and associated documentation files (the "Software"), to deal
@@ -1817,11 +1674,8 @@ THE SOFTWARE.
18171674

18181675
The following npm packages may be included in this product:
18191676

1820-
- @octokit/auth-app@8.2.0
1821-
- @octokit/auth-oauth-app@9.0.3
18221677
- @octokit/auth-token@6.0.0
18231678
- @octokit/core@7.0.6
1824-
- @octokit/oauth-authorization-url@8.0.0
18251679
- @octokit/request-error@7.1.0
18261680

18271681
These packages each contain the following license:
@@ -1850,66 +1704,6 @@ THE SOFTWARE.
18501704

18511705
-----------
18521706

1853-
The following npm package may be included in this product:
1854-
1855-
- @octokit/auth-unauthenticated@7.0.3
1856-
1857-
This package contains the following license:
1858-
1859-
The MIT License
1860-
1861-
Copyright (c) 2020 Octokit contributors
1862-
1863-
Permission is hereby granted, free of charge, to any person obtaining a copy
1864-
of this software and associated documentation files (the "Software"), to deal
1865-
in the Software without restriction, including without limitation the rights
1866-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1867-
copies of the Software, and to permit persons to whom the Software is
1868-
furnished to do so, subject to the following conditions:
1869-
1870-
The above copyright notice and this permission notice shall be included in
1871-
all copies or substantial portions of the Software.
1872-
1873-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1874-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1875-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1876-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1877-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1878-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1879-
THE SOFTWARE.
1880-
1881-
-----------
1882-
1883-
The following npm package may be included in this product:
1884-
1885-
- octokit@5.0.5
1886-
1887-
This package contains the following license:
1888-
1889-
The MIT License
1890-
1891-
Copyright (c) 2023 Octokit contributors
1892-
1893-
Permission is hereby granted, free of charge, to any person obtaining a copy
1894-
of this software and associated documentation files (the "Software"), to deal
1895-
in the Software without restriction, including without limitation the rights
1896-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1897-
copies of the Software, and to permit persons to whom the Software is
1898-
furnished to do so, subject to the following conditions:
1899-
1900-
The above copyright notice and this permission notice shall be included in
1901-
all copies or substantial portions of the Software.
1902-
1903-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1904-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1905-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1906-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1907-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1908-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1909-
THE SOFTWARE.
1910-
1911-
-----------
1912-
19131707
The following npm package may be included in this product:
19141708

19151709
- uuid@3.4.0
@@ -1970,35 +1764,6 @@ THE SOFTWARE.
19701764

19711765
-----------
19721766

1973-
The following npm package may be included in this product:
1974-
1975-
- bottleneck@2.19.5
1976-
1977-
This package contains the following license:
1978-
1979-
The MIT License (MIT)
1980-
1981-
Copyright (c) 2014 Simon Grondin
1982-
1983-
Permission is hereby granted, free of charge, to any person obtaining a copy of
1984-
this software and associated documentation files (the "Software"), to deal in
1985-
the Software without restriction, including without limitation the rights to
1986-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
1987-
the Software, and to permit persons to whom the Software is furnished to do so,
1988-
subject to the following conditions:
1989-
1990-
The above copyright notice and this permission notice shall be included in all
1991-
copies or substantial portions of the Software.
1992-
1993-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1994-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
1995-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
1996-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1997-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1998-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1999-
2000-
-----------
2001-
20021767
The following npm package may be included in this product:
20031768

20041769
- is-extglob@2.1.1

0 commit comments

Comments
 (0)