gopadjs 3.0.1 → 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 Nov 3 08:15:36 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,18 @@
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
+
3
16
  ## [3.0.1](https://github.com/gopad/gopad-js/compare/v3.0.0...v3.0.1) (2025-11-10)
4
17
 
5
18
 
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.1
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.1
42
+ npm install --save gopadjs@3.1.0
43
43
  ```
44
44
 
45
45
  ### Installation with Git
package/flake.lock CHANGED
@@ -43,11 +43,11 @@
43
43
  "nixpkgs": "nixpkgs"
44
44
  },
45
45
  "locked": {
46
- "lastModified": 1761922975,
47
- "narHash": "sha256-j4EB5ku/gDm7h7W7A+k70RYj5nUiW/l9wQtXMJUD2hg=",
46
+ "lastModified": 1762706931,
47
+ "narHash": "sha256-rsegLsEHnUsfUDN4e/Z534yJIi4Yi6qMA3LI5LK0YwA=",
48
48
  "owner": "cachix",
49
49
  "repo": "devenv",
50
- "rev": "c9f0b47815a4895fadac87812de8a4de27e0ace1",
50
+ "rev": "9a8147b9345ecbb1321890ce7603df1507b1125d",
51
51
  "type": "github"
52
52
  },
53
53
  "original": {
@@ -114,11 +114,11 @@
114
114
  "nixpkgs-lib": "nixpkgs-lib"
115
115
  },
116
116
  "locked": {
117
- "lastModified": 1762040540,
118
- "narHash": "sha256-z5PlZ47j50VNF3R+IMS9LmzI5fYRGY/Z5O5tol1c9I4=",
117
+ "lastModified": 1762440070,
118
+ "narHash": "sha256-xxdepIcb39UJ94+YydGP221rjnpkDZUlykKuF54PsqI=",
119
119
  "owner": "hercules-ci",
120
120
  "repo": "flake-parts",
121
- "rev": "0010412d62a25d959151790968765a70c436598b",
121
+ "rev": "26d05891e14c88eb4a5d5bee659c0db5afb609d8",
122
122
  "type": "github"
123
123
  },
124
124
  "original": {
@@ -160,11 +160,11 @@
160
160
  "nixpkgs": "nixpkgs_2"
161
161
  },
162
162
  "locked": {
163
- "lastModified": 1760663237,
164
- "narHash": "sha256-BflA6U4AM1bzuRMR8QqzPXqh8sWVCNDzOdsxXEguJIc=",
163
+ "lastModified": 1762441963,
164
+ "narHash": "sha256-j+rNQ119ffYUkYt2YYS6rnd6Jh/crMZmbqpkGLXaEt0=",
165
165
  "owner": "cachix",
166
166
  "repo": "git-hooks.nix",
167
- "rev": "ca5b894d3e3e151ffc1db040b6ce4dcc75d31c37",
167
+ "rev": "8e7576e79b88c16d7ee3bbd112c8d90070832885",
168
168
  "type": "github"
169
169
  },
170
170
  "original": {
@@ -289,11 +289,11 @@
289
289
  },
290
290
  "nixpkgs_2": {
291
291
  "locked": {
292
- "lastModified": 1759070547,
293
- "narHash": "sha256-JVZl8NaVRYb0+381nl7LvPE+A774/dRpif01FKLrYFQ=",
292
+ "lastModified": 1759417375,
293
+ "narHash": "sha256-O7eHcgkQXJNygY6AypkF9tFhsoDQjpNEojw3eFs73Ow=",
294
294
  "owner": "NixOS",
295
295
  "repo": "nixpkgs",
296
- "rev": "647e5c14cbd5067f44ac86b74f014962df460840",
296
+ "rev": "dc704e6102e76aad573f63b74c742cd96f8f1e6c",
297
297
  "type": "github"
298
298
  },
299
299
  "original": {
@@ -305,11 +305,11 @@
305
305
  },
306
306
  "nixpkgs_3": {
307
307
  "locked": {
308
- "lastModified": 1761907660,
309
- "narHash": "sha256-kJ8lIZsiPOmbkJypG+B5sReDXSD1KGu2VEPNqhRa/ew=",
308
+ "lastModified": 1762596750,
309
+ "narHash": "sha256-rXXuz51Bq7DHBlfIjN7jO8Bu3du5TV+3DSADBX7/9YQ=",
310
310
  "owner": "NixOS",
311
311
  "repo": "nixpkgs",
312
- "rev": "2fb006b87f04c4d3bdf08cfdbc7fab9c13d94a15",
312
+ "rev": "b6a8526db03f735b89dd5ff348f53f752e7ddc8e",
313
313
  "type": "github"
314
314
  },
315
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.1
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.1",
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
  }