Skip to content

Commit 69b0e2b

Browse files
committed
YAGNI
1 parent 483de0a commit 69b0e2b

133 files changed

Lines changed: 1088 additions & 1668 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/nodejs.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ jobs:
77
strategy:
88
matrix:
99
node-version:
10-
- 14.x
11-
- 16.x
12-
- 18.x
10+
- 22.x
11+
- 24.x
1312
steps:
14-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v6
1514
- run: npm install
1615
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v3
16+
uses: actions/setup-node@v6
1817
with:
1918
node-version: ${{ matrix.node-version }}
2019
- run: npm test

.github/workflows/release-please.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
push:
44
branches:
55
- main
6+
permissions:
7+
id-token: write
8+
contents: read
69
jobs:
710
release-please:
811
runs-on: ubuntu-latest
@@ -11,18 +14,16 @@ jobs:
1114
id: release
1215
with:
1316
token: ${{ secrets.GITHUB_TOKEN }}
14-
package-name: '@dlenroc/testrail'
17+
package-name: "@dlenroc/testrail"
1518
release-type: node
16-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v6
1720
if: ${{ steps.release.outputs.release_created }}
18-
- uses: actions/setup-node@v3
21+
- uses: actions/setup-node@v6
1922
if: ${{ steps.release.outputs.release_created }}
2023
with:
21-
node-version: 18
22-
registry-url: https://registry.npmjs.org
24+
node-version: "24"
25+
registry-url: "https://registry.npmjs.org"
2326
- run: npm install
2427
if: ${{ steps.release.outputs.release_created }}
2528
- run: npm publish --access public
2629
if: ${{ steps.release.outputs.release_created }}
27-
env:
28-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 25 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,39 @@
11
{
22
"name": "@dlenroc/testrail",
3+
"version": "2.0.0",
34
"description": "TestRail API client with error handling and typing",
4-
"version": "1.9.5",
5-
"author": "Corneliu Duplachi",
6-
"license": "MIT",
7-
"homepage": "https://github.com/dlenroc/node-testrail-api",
8-
"bugs": "https://github.com/dlenroc/node-testrail-api/issues",
9-
"repository": "dlenroc/node-testrail-api",
105
"keywords": [
11-
"testrail",
12-
"api"
6+
"api",
7+
"testrail"
138
],
9+
"license": "MIT",
10+
"author": "Corneliu Duplachi",
11+
"repository": "dlenroc/node-testrail-api",
1412
"files": [
15-
"src",
1613
"dist"
1714
],
18-
"types": "dist/TestRail.d.ts",
19-
"main": "dist/TestRail.node.js",
20-
"module": "dist/TestRail.node.mjs",
21-
"browser": "dist/TestRail.browser.mjs",
22-
"jsdelivr": "dist/TestRail.umd.js",
23-
"unpkg": "dist/TestRail.umd.js",
24-
"scripts": {
25-
"prepare": "npm run build",
26-
"build": "rollup --bundleConfigAsCjs -c && replace-in-file '/(\\.\\.\\/)+src/g' '../src' 'dist/*.map' --isRegex",
27-
"test": "mocha -A -r ts-node/register test/**/*.ts"
15+
"type": "module",
16+
"sideEffects": false,
17+
"exports": {
18+
"types": "./dist/TestRail.d.ts",
19+
"default": "./dist/TestRail.js"
2820
},
29-
"engines": {
30-
"node": ">=10"
31-
},
32-
"dependencies": {
33-
"form-data": "^4",
34-
"node-fetch": "^2.6.4"
21+
"scripts": {
22+
"build": "tsdown --no-config --platform neutral ./src/TestRail.ts",
23+
"test": "node --test"
3524
},
3625
"devDependencies": {
37-
"@faker-js/faker": "^7.6.0",
38-
"@rollup/plugin-terser": "^0.4.1",
39-
"@rollup/plugin-typescript": "^11.1.0",
40-
"@types/chai": "^4.3.5",
41-
"@types/chai-as-promised": "^7.1.5",
42-
"@types/deasync": "^0.1.2",
43-
"@types/glob": "^8.1.0",
44-
"@types/mocha": "^10.0.1",
45-
"@types/node": "*",
46-
"chai": "^4.3.7",
47-
"chai-as-promised": "^7.1.1",
48-
"glob": "^10.2.3",
26+
"@faker-js/faker": "^10.4.0",
27+
"@tsconfig/strictest": "^2.0.8",
28+
"@types/chai": "^5.2.3",
29+
"@types/chai-as-promised": "^8.0.2",
30+
"@types/node": "^25.5.0",
31+
"chai": "^6.2.2",
32+
"chai-as-promised": "^8.0.2",
33+
"glob": "^13.0.6",
4934
"intermock": "^0.2.5",
50-
"mocha": "^10.2.0",
51-
"nock": "^13.3.1",
52-
"replace-in-file": "^6.3.5",
53-
"rollup": "^3.21.6",
54-
"rollup-plugin-dts": "^5.3.0",
55-
"ts-node": "^10.9.1",
56-
"typescript": "^5.0.4"
35+
"nock": "^14.0.11",
36+
"tsdown": "^0.21.7",
37+
"typescript": "^6.0.2"
5738
}
5839
}

rollup.config.js

Lines changed: 0 additions & 82 deletions
This file was deleted.

0 commit comments

Comments
 (0)