gopadjs 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.github/RELEASE CHANGED
@@ -1 +1 @@
1
- Mon Oct 27 08:14:53 UTC 2025
1
+ Mon Nov 17 08:15:21 UTC 2025
@@ -21,7 +21,7 @@ jobs:
21
21
  steps:
22
22
  - name: Generate token
23
23
  id: token
24
- uses: tibdex/github-app-token@v2
24
+ uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2
25
25
  with:
26
26
  app_id: ${{ secrets.TOKEN_EXCHANGE_APP }}
27
27
  installation_retrieval_mode: id
@@ -31,19 +31,16 @@ jobs:
31
31
  {"contents": "write", "pull_requests": "write", "issues": "write"}
32
32
 
33
33
  - name: Fetch metadata
34
- id: metadata
35
- uses: dependabot/fetch-metadata@v2
34
+ uses: dependabot/fetch-metadata@08eff52bf64351f401fb50d4972fa95b9f2c2d1b # v2
36
35
  with:
37
36
  github-token: ${{ secrets.GITHUB_TOKEN }}
38
37
 
39
38
  - name: Approve request
40
- id: approve
41
39
  run: gh pr review --approve "${{github.event.pull_request.html_url}}"
42
40
  env:
43
41
  GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44
42
 
45
43
  - name: Enable automerge
46
- id: automerge
47
44
  run: gh pr merge --rebase --auto "${{github.event.pull_request.html_url}}"
48
45
  env:
49
46
  GH_TOKEN: ${{ steps.token.outputs.token }}
@@ -15,26 +15,33 @@ jobs:
15
15
  runs-on: ubuntu-latest
16
16
 
17
17
  steps:
18
+ - name: Generate token
19
+ id: token
20
+ uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2
21
+ with:
22
+ app_id: ${{ secrets.TOKEN_EXCHANGE_APP }}
23
+ installation_retrieval_mode: id
24
+ installation_retrieval_payload: ${{ secrets.TOKEN_EXCHANGE_INSTALL }}
25
+ private_key: ${{ secrets.TOKEN_EXCHANGE_KEY }}
26
+ permissions: >-
27
+ {"contents": "write"}
28
+
18
29
  - name: Checkout source
19
- id: source
20
- uses: actions/checkout@v5
30
+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
21
31
  with:
22
- token: ${{ secrets.BOT_ACCESS_TOKEN }}
32
+ token: ${{ steps.token.outputs.token }}
23
33
 
24
34
  - name: Install nix
25
- id: nix
26
- uses: cachix/install-nix-action@v31
35
+ uses: cachix/install-nix-action@fd24c48048070c1be9acd18c9d369a83f0fe94d7 # v31
27
36
 
28
37
  - name: Update flake
29
- id: flake
30
38
  run: nix flake update
31
39
 
32
40
  - name: Source rebase
33
- id: rebase
34
41
  run: git pull --autostash --rebase
35
42
 
36
43
  - name: Commit changes
37
- uses: EndBug/add-and-commit@v9
44
+ uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9
38
45
  with:
39
46
  author_name: GitHub Actions
40
47
  author_email: github@webhippie.de
@@ -10,16 +10,19 @@ name: general
10
10
  branches:
11
11
  - master
12
12
 
13
+ permissions:
14
+ contents: read
15
+
13
16
  jobs:
14
17
  testing:
15
18
  runs-on: ubuntu-latest
16
19
 
17
20
  steps:
18
21
  - name: Checkout source
19
- uses: actions/checkout@v5
22
+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
20
23
 
21
24
  - name: Setup nodejs
22
- uses: actions/setup-node@v6
25
+ uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
23
26
  with:
24
27
  node-version: 24.x
25
28
  cache: 'npm'
@@ -18,7 +18,7 @@ jobs:
18
18
  steps:
19
19
  - name: Generate token
20
20
  id: token
21
- uses: tibdex/github-app-token@v2
21
+ uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2
22
22
  with:
23
23
  app_id: ${{ secrets.TOKEN_EXCHANGE_APP }}
24
24
  installation_retrieval_mode: id
@@ -28,11 +28,10 @@ jobs:
28
28
  {"contents": "write", "pull_requests": "write"}
29
29
 
30
30
  - name: Checkout source
31
- id: source
32
- uses: actions/checkout@v5
31
+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
33
32
 
34
33
  - name: Setup nodejs
35
- uses: actions/setup-node@v6
34
+ uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
36
35
  with:
37
36
  node-version: 24.x
38
37
  cache: 'npm'
@@ -49,7 +48,7 @@ jobs:
49
48
 
50
49
  - name: Create request
51
50
  id: pr
52
- uses: peter-evans/create-pull-request@v7
51
+ uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7
53
52
  with:
54
53
  commit-message: "feat: automated openapi client update"
55
54
  delete-branch: true
@@ -64,12 +63,12 @@ jobs:
64
63
  if: ${{ steps.pr.outputs.pull-request-url }}
65
64
  run: gh pr review --approve "${{ steps.pr.outputs.pull-request-url }}"
66
65
  env:
67
- GH_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }}
66
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68
67
 
69
68
  - name: Enable automerge
70
69
  if: ${{ steps.pr.outputs.pull-request-url }}
71
70
  run: gh pr merge --rebase --auto "${{ steps.pr.outputs.pull-request-url }}"
72
71
  env:
73
- GH_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }}
72
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74
73
 
75
74
  ...
@@ -16,15 +16,24 @@ jobs:
16
16
  runs-on: ubuntu-latest
17
17
 
18
18
  steps:
19
- - name: Checkout source
20
- uses: actions/checkout@v5
19
+ - name: Generate token
20
+ id: token
21
+ uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2
21
22
  with:
22
- token: ${{ secrets.BOT_ACCESS_TOKEN }}
23
+ app_id: ${{ secrets.TOKEN_EXCHANGE_APP }}
24
+ installation_retrieval_mode: id
25
+ installation_retrieval_payload: ${{ secrets.TOKEN_EXCHANGE_INSTALL }}
26
+ private_key: ${{ secrets.TOKEN_EXCHANGE_KEY }}
27
+ permissions: >-
28
+ {"contents": "write", "pull_requests": "write", "issues": "write"}
23
29
 
24
- - name: Setup nodejs
25
- uses: actions/setup-node@v6
30
+ - name: Checkout source
31
+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
26
32
  with:
27
- node-version: 24.x
33
+ token: ${{ steps.token.outputs.token }}
34
+
35
+ - name: Write buildtime
36
+ run: date >| .github/RELEASE
28
37
 
29
38
  - name: Install releaser
30
39
  run: |
@@ -37,18 +46,15 @@ jobs:
37
46
 
38
47
  - name: Run releaser
39
48
  env:
40
- GITHUB_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }}
49
+ GITHUB_TOKEN: ${{ steps.token.outputs.token }}
41
50
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
42
51
  run: semantic-release
43
52
 
44
- - name: Write buildtime
45
- run: date >| .github/RELEASE
46
-
47
53
  - name: Update repo
48
54
  run: git pull --rebase --autostash
49
55
 
50
56
  - name: Commit changes
51
- uses: EndBug/add-and-commit@v9
57
+ uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9
52
58
  with:
53
59
  author_name: GitHub Actions
54
60
  author_email: github@webhippie.de
package/.releaserc CHANGED
@@ -177,6 +177,7 @@
177
177
  "message": "chore: release ${nextRelease.version}",
178
178
  "assets": [
179
179
  "CHANGELOG.md",
180
+ ".github/RELEASE",
180
181
  "package.json",
181
182
  "openapi.yml",
182
183
  "README.md",
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.1.0](https://github.com/gopad/gopad-js/compare/v3.0.1...v3.1.0) (2025-11-17)
4
+
5
+
6
+ ### Features
7
+
8
+ * automated openapi client update ([372d8cc](https://github.com/gopad/gopad-js/commit/372d8cc7805fe7f9ae64bf36cf3f23495016140c))
9
+ * **minor:** update dependency typescript to ^5.9.3 ([#218](https://github.com/gopad/gopad-js/issues/218)) ([cc1bba9](https://github.com/gopad/gopad-js/commit/cc1bba9940400a12baeebcadced18093a3571e33))
10
+
11
+
12
+ ### Bugfixes
13
+
14
+ * **patch:** update dependency @types/node to v24.10.1 ([#219](https://github.com/gopad/gopad-js/issues/219)) ([886497e](https://github.com/gopad/gopad-js/commit/886497e037bd4d5e5b583e8d4b97927c199f21a1))
15
+
16
+ ## [3.0.1](https://github.com/gopad/gopad-js/compare/v3.0.0...v3.0.1) (2025-11-10)
17
+
18
+
19
+ ### Bugfixes
20
+
21
+ * **deps:** update dependency axios to v1.13.2 ([#215](https://github.com/gopad/gopad-js/issues/215)) ([23e565e](https://github.com/gopad/gopad-js/commit/23e565ebb73d79735d4188119bcfa80ba942bab7))
22
+
3
23
  ## [3.0.0](https://github.com/gopad/gopad-js/compare/v2.19.0...v3.0.0) (2025-11-03)
4
24
 
5
25
 
package/README.md CHANGED
@@ -6,7 +6,7 @@ This repository provides a client SDK for Typescript/Javascript. This SDK is
6
6
  automatically generated by the [OpenAPI Generator][generator] project:
7
7
 
8
8
  - API version: 1.0.0-alpha1
9
- - Package version: 3.0.0
9
+ - Package version: 3.1.0
10
10
  - Build package: org.openapitools.codegen.languages.TypeScriptAxiosClientCodegen
11
11
 
12
12
  For more information, please visit [https://gopad.eu](https://gopad.eu)
@@ -39,7 +39,7 @@ the following command within your project directory, after that you can import
39
39
  it as other libraries:
40
40
 
41
41
  ```console
42
- npm install --save gopadjs@3.0.0
42
+ npm install --save gopadjs@3.1.0
43
43
  ```
44
44
 
45
45
  ### Installation with Git
package/flake.lock CHANGED
@@ -6,7 +6,8 @@
6
6
  "devenv"
7
7
  ],
8
8
  "flake-compat": [
9
- "devenv"
9
+ "devenv",
10
+ "flake-compat"
10
11
  ],
11
12
  "git-hooks": [
12
13
  "devenv",
@@ -18,11 +19,11 @@
18
19
  ]
19
20
  },
20
21
  "locked": {
21
- "lastModified": 1752264895,
22
- "narHash": "sha256-1zBPE/PNAkPNUsOWFET4J0cjlvziH8DOekesDmjND+w=",
22
+ "lastModified": 1760971495,
23
+ "narHash": "sha256-IwnNtbNVrlZIHh7h4Wz6VP0Furxg9Hh0ycighvL5cZc=",
23
24
  "owner": "cachix",
24
25
  "repo": "cachix",
25
- "rev": "47053aef762f452e816e44eb9a23fbc3827b241a",
26
+ "rev": "c5bfd933d1033672f51a863c47303fc0e093c2d2",
26
27
  "type": "github"
27
28
  },
28
29
  "original": {
@@ -42,11 +43,11 @@
42
43
  "nixpkgs": "nixpkgs"
43
44
  },
44
45
  "locked": {
45
- "lastModified": 1761427990,
46
- "narHash": "sha256-MnrJFwdkwt0FHvRj6vbVfCBWoAPW9O9+HOldMM1yeR8=",
46
+ "lastModified": 1762706931,
47
+ "narHash": "sha256-rsegLsEHnUsfUDN4e/Z534yJIi4Yi6qMA3LI5LK0YwA=",
47
48
  "owner": "cachix",
48
49
  "repo": "devenv",
49
- "rev": "7419c04fc798d5d5918413d4cb6c8629f9d4e8a3",
50
+ "rev": "9a8147b9345ecbb1321890ce7603df1507b1125d",
50
51
  "type": "github"
51
52
  },
52
53
  "original": {
@@ -58,11 +59,11 @@
58
59
  "flake-compat": {
59
60
  "flake": false,
60
61
  "locked": {
61
- "lastModified": 1747046372,
62
- "narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=",
62
+ "lastModified": 1761588595,
63
+ "narHash": "sha256-XKUZz9zewJNUj46b4AJdiRZJAvSZ0Dqj2BNfXvFlJC4=",
63
64
  "owner": "edolstra",
64
65
  "repo": "flake-compat",
65
- "rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
66
+ "rev": "f387cd2afec9419c8ee37694406ca490c3f34ee5",
66
67
  "type": "github"
67
68
  },
68
69
  "original": {
@@ -95,11 +96,11 @@
95
96
  ]
96
97
  },
97
98
  "locked": {
98
- "lastModified": 1756770412,
99
- "narHash": "sha256-+uWLQZccFHwqpGqr2Yt5VsW/PbeJVTn9Dk6SHWhNRPw=",
99
+ "lastModified": 1760948891,
100
+ "narHash": "sha256-TmWcdiUUaWk8J4lpjzu4gCGxWY6/Ok7mOK4fIFfBuU4=",
100
101
  "owner": "hercules-ci",
101
102
  "repo": "flake-parts",
102
- "rev": "4524271976b625a4a605beefd893f270620fd751",
103
+ "rev": "864599284fc7c0ba6357ed89ed5e2cd5040f0c04",
103
104
  "type": "github"
104
105
  },
105
106
  "original": {
@@ -113,11 +114,11 @@
113
114
  "nixpkgs-lib": "nixpkgs-lib"
114
115
  },
115
116
  "locked": {
116
- "lastModified": 1760948891,
117
- "narHash": "sha256-TmWcdiUUaWk8J4lpjzu4gCGxWY6/Ok7mOK4fIFfBuU4=",
117
+ "lastModified": 1762440070,
118
+ "narHash": "sha256-xxdepIcb39UJ94+YydGP221rjnpkDZUlykKuF54PsqI=",
118
119
  "owner": "hercules-ci",
119
120
  "repo": "flake-parts",
120
- "rev": "864599284fc7c0ba6357ed89ed5e2cd5040f0c04",
121
+ "rev": "26d05891e14c88eb4a5d5bee659c0db5afb609d8",
121
122
  "type": "github"
122
123
  },
123
124
  "original": {
@@ -139,11 +140,11 @@
139
140
  ]
140
141
  },
141
142
  "locked": {
142
- "lastModified": 1758108966,
143
- "narHash": "sha256-ytw7ROXaWZ7OfwHrQ9xvjpUWeGVm86pwnEd1QhzawIo=",
143
+ "lastModified": 1760663237,
144
+ "narHash": "sha256-BflA6U4AM1bzuRMR8QqzPXqh8sWVCNDzOdsxXEguJIc=",
144
145
  "owner": "cachix",
145
146
  "repo": "git-hooks.nix",
146
- "rev": "54df955a695a84cd47d4a43e08e1feaf90b1fd9b",
147
+ "rev": "ca5b894d3e3e151ffc1db040b6ce4dcc75d31c37",
147
148
  "type": "github"
148
149
  },
149
150
  "original": {
@@ -159,11 +160,11 @@
159
160
  "nixpkgs": "nixpkgs_2"
160
161
  },
161
162
  "locked": {
162
- "lastModified": 1760663237,
163
- "narHash": "sha256-BflA6U4AM1bzuRMR8QqzPXqh8sWVCNDzOdsxXEguJIc=",
163
+ "lastModified": 1762441963,
164
+ "narHash": "sha256-j+rNQ119ffYUkYt2YYS6rnd6Jh/crMZmbqpkGLXaEt0=",
164
165
  "owner": "cachix",
165
166
  "repo": "git-hooks.nix",
166
- "rev": "ca5b894d3e3e151ffc1db040b6ce4dcc75d31c37",
167
+ "rev": "8e7576e79b88c16d7ee3bbd112c8d90070832885",
167
168
  "type": "github"
168
169
  },
169
170
  "original": {
@@ -241,27 +242,27 @@
241
242
  ]
242
243
  },
243
244
  "locked": {
244
- "lastModified": 1758763079,
245
- "narHash": "sha256-Bx1A+lShhOWwMuy3uDzZQvYiBKBFcKwy6G6NEohhv6A=",
245
+ "lastModified": 1761648602,
246
+ "narHash": "sha256-H97KSB/luq/aGobKRuHahOvT1r7C03BgB6D5HBZsbN8=",
246
247
  "owner": "cachix",
247
248
  "repo": "nix",
248
- "rev": "6f0140527c2b0346df4afad7497baa08decb929f",
249
+ "rev": "3e5644da6830ef65f0a2f7ec22830c46285bfff6",
249
250
  "type": "github"
250
251
  },
251
252
  "original": {
252
253
  "owner": "cachix",
253
- "ref": "devenv-2.30.5",
254
+ "ref": "devenv-2.30.6",
254
255
  "repo": "nix",
255
256
  "type": "github"
256
257
  }
257
258
  },
258
259
  "nixpkgs": {
259
260
  "locked": {
260
- "lastModified": 1758532697,
261
- "narHash": "sha256-bhop0bR3u7DCw9/PtLCwr7GwEWDlBSxHp+eVQhCW9t4=",
261
+ "lastModified": 1761313199,
262
+ "narHash": "sha256-wCIACXbNtXAlwvQUo1Ed++loFALPjYUA3dpcUJiXO44=",
262
263
  "owner": "cachix",
263
264
  "repo": "devenv-nixpkgs",
264
- "rev": "207a4cb0e1253c7658c6736becc6eb9cace1f25f",
265
+ "rev": "d1c30452ebecfc55185ae6d1c983c09da0c274ff",
265
266
  "type": "github"
266
267
  },
267
268
  "original": {
@@ -273,11 +274,11 @@
273
274
  },
274
275
  "nixpkgs-lib": {
275
276
  "locked": {
276
- "lastModified": 1754788789,
277
- "narHash": "sha256-x2rJ+Ovzq0sCMpgfgGaaqgBSwY+LST+WbZ6TytnT9Rk=",
277
+ "lastModified": 1761765539,
278
+ "narHash": "sha256-b0yj6kfvO8ApcSE+QmA6mUfu8IYG6/uU28OFn4PaC8M=",
278
279
  "owner": "nix-community",
279
280
  "repo": "nixpkgs.lib",
280
- "rev": "a73b9c743612e4244d865a2fdee11865283c04e6",
281
+ "rev": "719359f4562934ae99f5443f20aa06c2ffff91fc",
281
282
  "type": "github"
282
283
  },
283
284
  "original": {
@@ -288,11 +289,11 @@
288
289
  },
289
290
  "nixpkgs_2": {
290
291
  "locked": {
291
- "lastModified": 1759070547,
292
- "narHash": "sha256-JVZl8NaVRYb0+381nl7LvPE+A774/dRpif01FKLrYFQ=",
292
+ "lastModified": 1759417375,
293
+ "narHash": "sha256-O7eHcgkQXJNygY6AypkF9tFhsoDQjpNEojw3eFs73Ow=",
293
294
  "owner": "NixOS",
294
295
  "repo": "nixpkgs",
295
- "rev": "647e5c14cbd5067f44ac86b74f014962df460840",
296
+ "rev": "dc704e6102e76aad573f63b74c742cd96f8f1e6c",
296
297
  "type": "github"
297
298
  },
298
299
  "original": {
@@ -304,11 +305,11 @@
304
305
  },
305
306
  "nixpkgs_3": {
306
307
  "locked": {
307
- "lastModified": 1761373498,
308
- "narHash": "sha256-Q/uhWNvd7V7k1H1ZPMy/vkx3F8C13ZcdrKjO7Jv7v0c=",
308
+ "lastModified": 1762596750,
309
+ "narHash": "sha256-rXXuz51Bq7DHBlfIjN7jO8Bu3du5TV+3DSADBX7/9YQ=",
309
310
  "owner": "NixOS",
310
311
  "repo": "nixpkgs",
311
- "rev": "6a08e6bb4e46ff7fcbb53d409b253f6bad8a28ce",
312
+ "rev": "b6a8526db03f735b89dd5ff348f53f752e7ddc8e",
312
313
  "type": "github"
313
314
  },
314
315
  "original": {
package/flake.nix CHANGED
@@ -66,13 +66,15 @@
66
66
  languages = {
67
67
  javascript = {
68
68
  enable = true;
69
- package = pkgs.nodejs_20;
69
+ package = pkgs.nodejs_24;
70
70
  };
71
71
  };
72
72
 
73
73
  packages = with pkgs; [
74
+ curl
75
+ jq
76
+ maven
74
77
  nixfmt-rfc-style
75
- openapi-generator-cli
76
78
  ];
77
79
  };
78
80
  };
@@ -8,21 +8,20 @@ else
8
8
  ROOT=$(realpath -e "$(dirname "${0}")/..")
9
9
  fi
10
10
 
11
- if ! hash openapi-generator-cli 2>/dev/null; then
12
- echo "missing openapi-generator-cli executable"
13
- exit 1
14
- fi
15
-
16
11
  SPEC_VERSION="1.0.0-alpha1"
17
12
  SPEC_DOWNLOAD=${SPEC:-https://dl.gopad.eu/openapi/${SPEC_VERSION}.yaml}
18
13
 
14
+ curl -sSLo "${ROOT}/hack/wrapped-client.sh" \
15
+ https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/bin/utils/openapi-generator-cli.sh && \
16
+ chmod +x "${ROOT}/hack/wrapped-client.sh"
17
+
19
18
  pushd "${ROOT}" >/dev/null
20
19
  echo "> deleting apis and models"
21
20
  rm -rf api model openapitools.json
22
21
 
23
22
  export TS_POST_PROCESS_FILE="npx prettier -w"
24
23
 
25
- openapi-generator-cli \
24
+ OPENAPI_GENERATOR_VERSION=7.17.0 "${ROOT}/hack/wrapped-client.sh" \
26
25
  generate \
27
26
  -c openapi.yml \
28
27
  -g typescript-axios \
@@ -0,0 +1,70 @@
1
+ #!/usr/bin/env bash
2
+ ####
3
+ # Save as openapi-generator-cli on your PATH. chmod u+x. Enjoy.
4
+ #
5
+ # This script will query github on every invocation to pull the latest released version
6
+ # of openapi-generator.
7
+ #
8
+ # If you want repeatable executions, you can explicitly set a version via
9
+ # OPENAPI_GENERATOR_VERSION
10
+ # e.g. (in Bash)
11
+ # export OPENAPI_GENERATOR_VERSION=3.1.0
12
+ # openapi-generator-cli.sh
13
+ # or
14
+ # OPENAPI_GENERATOR_VERSION=3.1.0 openapi-generator-cli.sh
15
+ #
16
+ # This is also helpful, for example, if you want to evaluate a SNAPSHOT version.
17
+ #
18
+ # NOTE: Jars are downloaded on demand from maven into the same directory as this script
19
+ # for every 'latest' version pulled from github. Consider putting this under its own directory.
20
+ ####
21
+ set -o pipefail
22
+
23
+ for cmd in {mvn,jq,curl}; do
24
+ if ! command -v ${cmd} > /dev/null; then
25
+ >&2 echo "This script requires '${cmd}' to be installed."
26
+ exit 1
27
+ fi
28
+ done
29
+
30
+ function latest.tag {
31
+ local uri="https://api.github.com/repos/${1}/releases"
32
+ local ver=$(curl -s ${uri} | jq -r 'first(.[]|select(.prerelease==false)).tag_name')
33
+ if [[ $ver == v* ]]; then
34
+ ver=${ver:1}
35
+ fi
36
+ echo $ver
37
+ }
38
+
39
+ ghrepo=openapitools/openapi-generator
40
+ groupid=org.openapitools
41
+ artifactid=openapi-generator-cli
42
+ ver=${OPENAPI_GENERATOR_VERSION:-$(latest.tag $ghrepo)}
43
+
44
+ jar=${artifactid}-${ver}.jar
45
+ cachedir=${OPENAPI_GENERATOR_DOWNLOAD_CACHE_DIR}
46
+
47
+ DIR=${cachedir:-"$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"}
48
+
49
+ if [ ! -d "${DIR}" ]; then
50
+ mkdir -p "${DIR}"
51
+ fi
52
+
53
+ if [ ! -f ${DIR}/${jar} ]; then
54
+ repo="central::default::https://repo1.maven.org/maven2/"
55
+ if [[ ${ver} =~ ^.*-SNAPSHOT$ ]]; then
56
+ repo="central::default::https://oss.sonatype.org/content/repositories/snapshots"
57
+ fi
58
+ mvn org.apache.maven.plugins:maven-dependency-plugin:2.9:get \
59
+ -DremoteRepositories=${repo} \
60
+ -Dartifact=${groupid}:${artifactid}:${ver} \
61
+ -Dtransitive=false \
62
+ -Ddest=${DIR}/${jar}
63
+ fi
64
+
65
+ java -ea \
66
+ ${JAVA_OPTS} \
67
+ -Xms512M \
68
+ -Xmx1024M \
69
+ -server \
70
+ -jar ${DIR}/${jar} "$@"
package/openapi.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  npmName: gopadjs
3
- npmVersion: 3.0.0
3
+ npmVersion: 3.1.0
4
4
  supportsES6: true
5
5
  useSingleRequestParameter: true
6
6
  withNodeImports: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gopadjs",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "OpenAPI client for Gopad",
5
5
  "homepage": "https://github.com/gopad/gopad-js#readme",
6
6
  "license": "Apache-2.0",
@@ -34,8 +34,8 @@
34
34
  "axios": "^1.6.1"
35
35
  },
36
36
  "devDependencies": {
37
- "@types/node": "12.11.5 - 24.10",
38
- "prettier": "^3.2.5",
39
- "typescript": "^4.0 || ^5.0"
37
+ "@types/node": "24.10.1",
38
+ "prettier": "3.6.2",
39
+ "typescript": "5.9.3"
40
40
  }
41
41
  }