jg-github 0.1.0 → 0.2.1

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.
Files changed (3) hide show
  1. package/API.md +1 -1
  2. package/CHANGELOG.md +12 -0
  3. package/package.json +6 -6
package/API.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # <a id="api-reference"></a>jg-github API reference
2
2
 
3
- Every export of `jg-github@0.1.0`, 30 in all, with its signature, its errors, and an example. It's generated from the package's TSDoc.
3
+ Every export of `jg-github@0.2.1`, 30 in all, with its signature, its errors, and an example. It's generated from the package's TSDoc.
4
4
 
5
5
  - Functions: [`assertGithubAppPrivateKey`](#api-assertGithubAppPrivateKey), [`buildGithubApiUrl`](#api-buildGithubApiUrl), [`buildGithubRawContentUrl`](#api-buildGithubRawContentUrl), [`createGithubAppJwt`](#api-createGithubAppJwt), [`createGithubHeaders`](#api-createGithubHeaders), [`createInstallationToken`](#api-createInstallationToken), [`getGithubRateLimitDeadline`](#api-getGithubRateLimitDeadline), [`revokeInstallationToken`](#api-revokeInstallationToken), [`verifyGithubWebhookSignature`](#api-verifyGithubWebhookSignature)
6
6
  - Constants: [`DEFAULT_GITHUB_MAX_RESPONSE_BYTES`](#api-DEFAULT_GITHUB_MAX_RESPONSE_BYTES), [`DEFAULT_GITHUB_TIMEOUT_SECONDS`](#api-DEFAULT_GITHUB_TIMEOUT_SECONDS), [`ERRORS`](#api-ERRORS), [`GITHUB_API_ORIGIN`](#api-GITHUB_API_ORIGIN), [`GITHUB_API_VERSION`](#api-GITHUB_API_VERSION), [`GITHUB_RAW_CONTENT_ORIGIN`](#api-GITHUB_RAW_CONTENT_ORIGIN)
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.1
4
+
5
+ ### Changed
6
+
7
+ - Depends on `jg-crypto` 0.3.0 and `jg-fetch` 0.5.0. The code is the same.
8
+
9
+ ## 0.2.0
10
+
11
+ ### Changed
12
+
13
+ - Supports Node.js 22.17.0 and later, down from 24.
14
+
3
15
  ## 0.1.0
4
16
 
5
17
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jg-github",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "GitHub App authentication for Node.js: app tokens, scoped installation tokens, webhook signatures, and rate-limit retry times.",
5
5
  "author": "Jesus Graterol",
6
6
  "license": "MIT",
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "sideEffects": false,
23
23
  "engines": {
24
- "node": ">=24"
24
+ "node": ">=22.17.0"
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public"
@@ -45,15 +45,15 @@
45
45
  "rate-limit"
46
46
  ],
47
47
  "dependencies": {
48
- "jg-crypto": "^0.1.1",
49
- "jg-exception": "^1.5.0",
50
- "jg-fetch": "^0.3.0"
48
+ "jg-crypto": "^0.3.0",
49
+ "jg-exception": "^1.7.0",
50
+ "jg-fetch": "^0.5.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@jg-packages/eslint-config": "0.0.0",
54
54
  "@jg-packages/tsconfig": "0.0.0",
55
55
  "@jg-packages/vitest-config": "0.0.0",
56
- "@types/node": "24.19.2",
56
+ "@types/node": "22.20.5",
57
57
  "@vitest/coverage-v8": "5.0.5",
58
58
  "eslint": "10.12.0",
59
59
  "typescript": "6.0.3",