Skip to content

Commit c1fca2a

Browse files
chore: npm-check-updates && yarn upgrade (#4168)
Ran npm-check-updates and yarn upgrade to keep the `yarn.lock` file up-to-date.
1 parent 225ce91 commit c1fca2a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1267
-1195
lines changed

package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@
1616
},
1717
"devDependencies": {
1818
"@jest/types": "^28.1.3",
19-
"@types/jest": "^29.5.2",
20-
"@types/node": "^14.18.51",
21-
"@typescript-eslint/eslint-plugin": "^5.59.11",
22-
"@typescript-eslint/parser": "^5.59.11",
23-
"all-contributors-cli": "^6.26.0",
24-
"eslint": "^8.42.0",
19+
"@types/jest": "^29.5.3",
20+
"@types/node": "^14.18.53",
21+
"@typescript-eslint/eslint-plugin": "^6.0.0",
22+
"@typescript-eslint/parser": "^6.0.0",
23+
"all-contributors-cli": "^6.26.1",
24+
"eslint": "^8.44.0",
2525
"eslint-config-prettier": "^8.8.0",
2626
"eslint-import-resolver-node": "^0.3.7",
2727
"eslint-import-resolver-typescript": "^3.5.5",
2828
"eslint-plugin-import": "2.26.0",
29-
"eslint-plugin-prettier": "^4.2.1",
30-
"jest": "^29.5.0",
29+
"eslint-plugin-prettier": "^5.0.0",
30+
"jest": "^29.6.1",
3131
"jest-circus": "^28.1.3",
3232
"jest-config": "^28.1.3",
3333
"jest-expect-message": "^1.1.3",
34-
"lerna": "^7.0.1",
35-
"prettier": "^2.8.8",
34+
"lerna": "^7.1.3",
35+
"prettier": "^3.0.0",
3636
"standard-version": "^9.5.0",
3737
"ts-node": "^10.9.1",
3838
"typescript": "~4.7.4"

packages/@jsii/benchmarks/lib/benchmark.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class Benchmark<C> {
6666
#profile = false;
6767

6868
public constructor(private readonly name: string) {}
69-
#setup: () => C | Promise<C> = () => ({} as C);
69+
#setup: () => C | Promise<C> = () => ({}) as C;
7070
#subject: (ctx: C) => void | Promise<void> = () => undefined;
7171
#beforeEach: (ctx: C) => void | Promise<void> = () => undefined;
7272
#afterEach: (ctx: C) => void | Promise<void> = () => undefined;

packages/@jsii/benchmarks/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"devDependencies": {
1616
"@types/glob": "^8.1.0",
17-
"glob": "^10.2.7"
17+
"glob": "^10.3.3"
1818
},
1919
"scripts": {
2020
"build": "yarn --silent tsc --build && npm run lint",

packages/@jsii/check-node/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
},
3838
"dependencies": {
3939
"chalk": "^4.1.2",
40-
"semver": "^7.5.1"
40+
"semver": "^7.5.4"
4141
}
4242
}

packages/@jsii/dotnet-runtime/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@
4141
"@jsii/runtime": "^0.0.0",
4242
"@types/semver": "^7.5.0",
4343
"jsii-build-tools": "^0.0.0",
44-
"semver": "^7.5.1"
44+
"semver": "^7.5.4"
4545
}
4646
}

packages/@jsii/kernel/src/kernel.test.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ afterAll(() => {
5959

6060
function defineTest(
6161
name: string,
62-
method: (sandbox: Kernel) => Promise<any> | any,
62+
method: (sandbox: Kernel) => any,
6363
testFunc = test,
6464
) {
6565
const recording = name.replace(/[^A-Za-z]/g, '_');
@@ -71,10 +71,7 @@ function defineTest(
7171
});
7272
}
7373

74-
defineTest.skip = function (
75-
name: string,
76-
method: (sandbox: Kernel) => Promise<any> | any,
77-
) {
74+
defineTest.skip = function (name: string, method: (sandbox: Kernel) => any) {
7875
return defineTest(name, method, test.skip);
7976
};
8077

packages/@jsii/kernel/src/kernel.ts

+1
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ export class Kernel {
516516
const sandoxResult = this._toSandbox(
517517
result,
518518
cb.expectedReturnType ?? 'void',
519+
// eslint-disable-next-line @typescript-eslint/no-base-to-string
519520
`returned by callback ${cb.toString()}`,
520521
);
521522
this._debug('completed with result:', sandoxResult);

packages/@jsii/python-runtime/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@
4242
"jsii-build-tools": "^0.0.0",
4343
"jsii-calc": "^3.20.120",
4444
"jsii-pacmak": "^0.0.0",
45-
"pyright": "^1.1.314"
45+
"pyright": "^1.1.317"
4646
}
4747
}

packages/@jsii/python-runtime/tests/test_runtime_type_checking.py

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import pytest
22
import re
3+
from typing import Optional
34

45
from scope.jsii_calc_lib.custom_submodule_name import NestingClass
56
from scope.jsii_calc_lib import Number
67
import jsii_calc
8+
import jsii
79

810

911
class TestRuntimeTypeChecking:
@@ -35,12 +37,19 @@ def test_constructor_decorated(self):
3537
),
3638
):
3739
orig_init = jsii_calc.Calculator.__init__
40+
3841
# For toy, swap initial_value and maximum_values here
39-
jsii_calc.Calculator.__init__ = (
40-
lambda self, *, initial_value=None, maximum_value=None: orig_init(
42+
def decorated(
43+
self,
44+
*,
45+
initial_value: Optional[jsii.Number] = None,
46+
maximum_value: Optional[jsii.Number] = None,
47+
):
48+
orig_init(
4149
self, initial_value=maximum_value, maximum_value=initial_value
4250
)
43-
)
51+
52+
jsii_calc.Calculator.__init__ = decorated
4453
try:
4554
jsii_calc.Calculator(initial_value="nope") # type:ignore
4655
finally:

packages/@jsii/runtime/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"jsii-build-tools": "^0.0.0",
4545
"jsii-calc": "^3.20.120",
4646
"source-map-loader": "^4.0.1",
47-
"webpack": "^5.87.0",
47+
"webpack": "^5.88.1",
4848
"webpack-cli": "^5.1.4"
4949
}
5050
}

packages/@jsii/spec/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@
3636
"devDependencies": {
3737
"fs-extra": "^10.1.0",
3838
"jsii-build-tools": "^0.0.0",
39-
"typescript-json-schema": "^0.57.0"
39+
"typescript-json-schema": "^0.58.1"
4040
}
4141
}

packages/jsii-calc/lib/compliance.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -1597,12 +1597,14 @@ export class JsiiAgent {
15971597

15981598
// To support module augmentation classes must support multiple declaration sites
15991599
// (the tail of which must be interfaces)
1600+
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
16001601
export class AugmentableClass {
16011602
public methodOne(): void {
16021603
console.log('methodOne');
16031604
}
16041605
}
16051606

1607+
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
16061608
export interface AugmentableClass {
16071609
methodTwo(): void;
16081610
}
@@ -2013,7 +2015,7 @@ export class SingletonString {
20132015
private constructor() {}
20142016

20152017
public isSingletonString(value: string): boolean {
2016-
return value === SingletonStringEnum.SINGLETON_STRING;
2018+
return value === SingletonStringEnum.SINGLETON_STRING.valueOf();
20172019
}
20182020
}
20192021
/** A singleton string */
@@ -2029,7 +2031,7 @@ export enum SingletonStringEnum {
20292031
export class SingletonInt {
20302032
private constructor() {}
20312033
public isSingletonInt(value: number): boolean {
2032-
return value === SingletonIntEnum.SINGLETON_INT;
2034+
return value === SingletonIntEnum.SINGLETON_INT.valueOf();
20332035
}
20342036
}
20352037
/** A singleton integer. */

0 commit comments

Comments
 (0)