Skip to content

Commit ab0ce10

Browse files
Bump the dev-deps group across 1 directory with 9 updates (#1502)
* Bump the dev-deps group across 1 directory with 9 updates Bumps the dev-deps group with 9 updates in the / directory: | Package | From | To | | --- | --- | --- | | [@swc/jest](https://github.com/swc-project/pkgs) | `0.2.38` | `0.2.39` | | [@tsconfig/node16](https://github.com/tsconfig/bases/tree/HEAD/bases) | `16.1.4` | `16.1.6` | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `24.0.13` | `24.9.1` | | [eslint](https://github.com/eslint/eslint) | `9.31.0` | `9.38.0` | | [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest) | `30.0.4` | `30.2.0` | | [typescript](https://github.com/microsoft/TypeScript) | `5.8.3` | `5.9.3` | | [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) | `8.36.0` | `8.46.2` | | [oclif](https://github.com/oclif/oclif) | `4.20.6` | `4.22.38` | | [@types/express](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/express) | `5.0.3` | `5.0.4` | Updates `@swc/jest` from 0.2.38 to 0.2.39 - [Commits](https://github.com/swc-project/pkgs/commits) Updates `@tsconfig/node16` from 16.1.4 to 16.1.6 - [Commits](https://github.com/tsconfig/bases/commits/HEAD/bases) Updates `@types/node` from 24.0.13 to 24.9.1 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Updates `eslint` from 9.31.0 to 9.38.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](eslint/eslint@v9.31.0...v9.38.0) Updates `jest` from 30.0.4 to 30.2.0 - [Release notes](https://github.com/jestjs/jest/releases) - [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/jestjs/jest/commits/v30.2.0/packages/jest) Updates `typescript` from 5.8.3 to 5.9.3 - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml) - [Commits](microsoft/TypeScript@v5.8.3...v5.9.3) Updates `typescript-eslint` from 8.36.0 to 8.46.2 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.46.2/packages/typescript-eslint) Updates `oclif` from 4.20.6 to 4.22.38 - [Release notes](https://github.com/oclif/oclif/releases) - [Changelog](https://github.com/oclif/oclif/blob/main/CHANGELOG.md) - [Commits](oclif/oclif@4.20.6...4.22.38) Updates `@types/express` from 5.0.3 to 5.0.4 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/express) --- updated-dependencies: - dependency-name: "@swc/jest" dependency-version: 0.2.39 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: dev-deps - dependency-name: "@tsconfig/node16" dependency-version: 16.1.6 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: dev-deps - dependency-name: "@types/node" dependency-version: 24.9.1 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: dev-deps - dependency-name: eslint dependency-version: 9.38.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: dev-deps - dependency-name: jest dependency-version: 30.2.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: dev-deps - dependency-name: typescript dependency-version: 5.9.3 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: dev-deps - dependency-name: typescript-eslint dependency-version: 8.46.2 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: dev-deps - dependency-name: oclif dependency-version: 4.22.38 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: dev-deps - dependency-name: "@types/express" dependency-version: 5.0.4 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: dev-deps ... Signed-off-by: dependabot[bot] <[email protected]> * fix compile target for tests Signed-off-by: Brian DeHamer <[email protected]> * fix type errors Signed-off-by: Brian DeHamer <[email protected]> * update tsconfig/node to v20 Signed-off-by: Brian DeHamer <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Brian DeHamer <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Brian DeHamer <[email protected]>
1 parent cee51c0 commit ab0ce10

File tree

29 files changed

+1561
-1604
lines changed

29 files changed

+1561
-1604
lines changed

jest.config.base.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
module.exports = {
22
transform: {
3-
'^.+\\.ts$': '@swc/jest',
3+
'^.+\\.ts$': [
4+
'@swc/jest',
5+
{
6+
jsc: {
7+
target: "es2021",
8+
},
9+
},
10+
],
411
},
512
coverageThreshold: {
613
global: {

package-lock.json

Lines changed: 1480 additions & 1542 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@
1818
"license": "Apache-2.0",
1919
"devDependencies": {
2020
"@changesets/cli": "^2.29.7",
21-
"@swc/jest": "^0.2.38",
21+
"@swc/jest": "^0.2.39",
2222
"@total-typescript/shoehorn": "^0.1.2",
23-
"@tsconfig/node16": "^16.1.4",
23+
"@tsconfig/node20": "^20.1.8",
2424
"@types/jest": "^30.0.0",
25-
"@types/node": "^24.0.13",
26-
"eslint": "^9.31.0",
27-
"jest": "^30.0.4",
25+
"@types/node": "^24.9.1",
26+
"eslint": "^9.38.0",
27+
"jest": "^30.2.0",
2828
"nock": "^13.5.5",
2929
"prettier": "^3.6.2",
3030
"shx": "^0.4.0",
31-
"typescript": "^5.8.3",
32-
"typescript-eslint": "^8.36.0"
31+
"typescript": "^5.9.3",
32+
"typescript-eslint": "^8.46.2"
3333
},
3434
"workspaces": [
3535
"./packages/*"

packages/bundle/src/__tests__/__snapshots__/build.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`toDSSEBundle when the certificateChain option is true when a certificate chain provided returns a valid DSSE bundle 1`] = `
44
{

packages/bundle/src/__tests__/__snapshots__/serialized.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`bundleToJSON SerializedDSSEBundle (v0.3) matches the snapshot 1`] = `
44
{

packages/core/src/asn1/obj.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ import { ASN1Tag } from './tag';
2828
export class ASN1Obj {
2929
readonly tag: ASN1Tag;
3030
readonly subs: ASN1Obj[];
31-
readonly value: Buffer;
31+
readonly value: Buffer<ArrayBufferLike>;
3232

33-
constructor(tag: ASN1Tag, value: Buffer, subs: ASN1Obj[]) {
33+
constructor(tag: ASN1Tag, value: Buffer<ArrayBufferLike>, subs: ASN1Obj[]) {
3434
this.tag = tag;
3535
this.value = value;
3636
this.subs = subs;
3737
}
3838

3939
// Constructs an ASN.1 object from a Buffer of DER-encoded bytes.
40-
public static parseBuffer(buf: Buffer): ASN1Obj {
40+
public static parseBuffer(buf: Buffer<ArrayBuffer>): ASN1Obj {
4141
return parseStream(new ByteStream(buf));
4242
}
4343

packages/core/src/pem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ limitations under the License.
1616
const PEM_HEADER = /-----BEGIN (.*)-----/;
1717
const PEM_FOOTER = /-----END (.*)-----/;
1818

19-
export function toDER(certificate: string): Buffer {
19+
export function toDER(certificate: string): Buffer<ArrayBuffer> {
2020
let der = '';
2121

2222
certificate.split('\n').forEach((line) => {

packages/core/src/rfc3161/timestamp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class RFC3161Timestamp {
3030
this.root = asn1;
3131
}
3232

33-
public static parse(der: Buffer): RFC3161Timestamp {
33+
public static parse(der: Buffer<ArrayBuffer>): RFC3161Timestamp {
3434
const asn1 = ASN1Obj.parseBuffer(der);
3535
return new RFC3161Timestamp(asn1);
3636
}

packages/core/src/stream.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ class StreamError extends Error {}
1818
export class ByteStream {
1919
private static BLOCK_SIZE = 1024;
2020

21-
private buf: ArrayBuffer;
21+
private buf: Buffer<ArrayBufferLike>;
2222
private view: Buffer;
2323
private start = 0;
2424

25-
constructor(buffer?: ArrayBuffer) {
25+
constructor(buffer?: Buffer<ArrayBufferLike>) {
2626
if (buffer) {
2727
this.buf = buffer;
2828
this.view = Buffer.from(buffer);
2929
} else {
30-
this.buf = new ArrayBuffer(0);
30+
this.buf = Buffer.alloc(0);
3131
this.view = Buffer.from(this.buf);
3232
}
3333
}
@@ -129,7 +129,7 @@ export class ByteStream {
129129
}
130130

131131
private realloc(size: number) {
132-
const newArray = new ArrayBuffer(size);
132+
const newArray = Buffer.alloc(size);
133133
const newView = Buffer.from(newArray);
134134

135135
// Copy the old buffer into the new one

packages/core/src/x509/cert.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class X509Certificate {
4141
this.root = asn1;
4242
}
4343

44-
public static parse(cert: Buffer | string): X509Certificate {
44+
public static parse(cert: Buffer<ArrayBuffer> | string): X509Certificate {
4545
const der = typeof cert === 'string' ? pem.toDER(cert) : cert;
4646
const asn1 = ASN1Obj.parseBuffer(der);
4747
return new X509Certificate(asn1);

0 commit comments

Comments
 (0)