Skip to content

Commit 69d62fe

Browse files
committed
update jsr:@aicone/byte version
1 parent fe31a7f commit 69d62fe

16 files changed

+54
-5
lines changed

.github/workflows/deno.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ on:
1515
branches: ["main"]
1616

1717
permissions:
18-
contents: read
18+
contents: write
1919

2020
jobs:
2121
test:
22+
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
2223
runs-on: ubuntu-latest
2324

2425
steps:
@@ -40,3 +41,16 @@ jobs:
4041

4142
- name: Run tests
4243
run: deno test test/*.js
44+
45+
- name: Run Inject Version
46+
run: deno run --allow-read --allow-write type/version.js
47+
48+
- name: Commit and push version bump
49+
run: |
50+
git config --global user.email "[email protected]"
51+
git config --global user.name "Handoko"
52+
# Force add even unchanged files by touching them
53+
find type/ -type f -exec touch {} \;
54+
git add type/
55+
git commit -m "chore: inject version [skip ci]" || echo "No changes to commit"
56+
git push

deno.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tls/enum",
3-
"version": "0.9.3",
3+
"version": "0.9.4",
44
"exports": "./src/mod.ts",
55
"publish": {
66
"exclude": ["dist/"]
@@ -17,9 +17,9 @@
1717
}
1818
},
1919
"imports": {
20-
"@aicone/byte": "jsr:@aicone/byte@^0.7.9",
21-
"@noble/curves": "npm:@noble/curves@^1.8.1",
22-
"@noble/hashes": "jsr:@noble/hashes@^1.7.1",
20+
"@aicone/byte": "jsr:@aicone/byte@^0.8.2",
21+
"@noble/curves": "npm:@noble/curves@^1.8.2",
22+
"@noble/hashes": "jsr:@noble/hashes@^1.7.2",
2323
"@peculiar/x509": "npm:@peculiar/x509@^1.12.3",
2424
"@std/assert": "jsr:@std/assert@^1.0.12",
2525
"ec-key": "npm:ec-key@^0.0.6",

type/alert.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/**
22
* Represents alert levels in the protocol
33
* @see https://datatracker.ietf.org/doc/html/rfc8446#section-6
4+
* @version __VERSION__
45
*/
56
export class AlertLevel extends Enum {
67
/** @type {AlertLevel} warning level (1) */
@@ -22,6 +23,7 @@ export class AlertLevel extends Enum {
2223
/**
2324
* Enum class representing various TLS alert descriptions based on RFC 8446.
2425
* @see https://datatracker.ietf.org/doc/html/rfc8446#section-6
26+
* @version __VERSION__
2527
*/
2628
export class AlertDescription extends Enum {
2729
/**
@@ -155,6 +157,9 @@ export class AlertDescription extends Enum {
155157
get level(): AlertLevel;
156158
get byte(): Uint8;
157159
}
160+
/**
161+
* @version __VERSION__
162+
*/
158163
export declare class Alert extends Uint8Array {
159164
/**
160165
* The alert level (0 for warning, 1 for fatal).

type/bimap.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/**
22
* Represents a bidirectional map where keys and values can be interchanged.
3+
* @version __VERSION__
34
*/
45
export declare class BiMap {
56
constructor();

type/certificatetype.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { Uint8 } from "../src/dep.ts";
55
* Represents TLS Certificate Types.
66
* @see https://datatracker.ietf.org/doc/html/rfc8446#section-4.2.7
77
* @extends {Enum}
8+
* @version __VERSION__
89
*/
910
export class CertificateType extends Enum {
1011
/** Certificate type X.509 */

type/cipher.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Enum } from "../src/enum.js";
44
/**
55
* Represents a cipher suite used in TLS 1.3.
66
* The cipher suite includes the encryption algorithm, mode, and hash function.
7+
* @version __VERSION__
78
*/
89
export class Cipher extends Enum {
910
/**

type/contentype.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { Enum } from "../src/enum.js";
55
* Represents the higher-level protocol used to process the enclosed fragment.
66
* Defined in RFC 8446 Section 5.1.
77
* @see https://datatracker.ietf.org/doc/html/rfc8446#section-5.1
8+
* @version __VERSION__
89
*/
910
export class ContentType extends Enum {
1011
/** Represents an invalid ContentType (value 0). */

type/enum.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* }
1414
* }
1515
* ```
16+
* @version __VERSION__
1617
*/
1718
export class Enum {
1819
/**

type/extensiontype.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Enum } from "../src/enum.js";
44
/**
55
* Represents different TLS extension types.
66
* Each extension type is associated with a 16-bit value.
7+
* @version __VERSION__
78
*/
89
export class ExtensionType extends Enum {
910
/** Server Name Indication (SNI) - 0 */

type/handshaketype.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Enum } from "../src/enum.js";
44
/**
55
* Represents TLS 1.3 Handshake message types as defined in RFC 8446 Section 4.
66
* @see https://datatracker.ietf.org/doc/html/rfc8446#section-4
7+
* @version __VERSION__
78
*/
89
export declare class HandshakeType extends Enum {
910
/**

0 commit comments

Comments
 (0)