Skip to content

Commit 03ee8fd

Browse files
authored
chore: bump dependencies (#79)
* deps: [email protected]>2.2.2, [email protected]>17.7.1 * deps: [email protected]>3.0.0 * deps: [email protected]>7.5.0 * devDeps: [email protected]>8.39.0 * deps: [email protected]>7.5.0, [email protected]>7.18.3 * deps: [email protected]>2.1.9 * deps: [email protected]>10.2.2 * deps: [email protected]>7.1.1 * deps: @metamask/[email protected]>5.0.2 * devDeps: @lavamoat/[email protected]>2.3.1 * devDeps: [email protected]>29.5.0 * devDeps: [email protected]>4.0.5 * tsconfig: set skipLibCheck = true unblocks error: node_modules/path-scurry/node_modules/lru-cache/dist/cjs/index.d.ts:244:15 - error TS2430: Interface 'FetchOptionsNoContext<K, V, FC>' incorrectly extends interface 'FetchOptions<K, V, FC>'. Types of property 'context' are incompatible. Type 'undefined' is not assignable to type 'FC'. 'FC' could be instantiated with an arbitrary type which could be unrelated to 'undefined'. 244 interface FetchOptionsNoContext<K, V, FC> extends FetchOptions<K, V, FC> { ~~~~~~~~~~~~~~~~~~~~~ Found 1 error in node_modules/path-scurry/node_modules/lru-cache/dist/cjs/index.d.ts:244 * test: update changed screen-scraped cli output
1 parent 0944ad4 commit 03ee8fd

File tree

7 files changed

+951
-1218
lines changed

7 files changed

+951
-1218
lines changed

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,29 @@
2424
},
2525
"dependencies": {
2626
"@metamask/action-utils": "^0.0.2",
27-
"@metamask/utils": "^3.0.3",
27+
"@metamask/utils": "^5.0.2",
2828
"debug": "^4.3.4",
29-
"execa": "^5.0.0",
30-
"glob": "^8.0.3",
31-
"pony-cause": "^2.1.0",
32-
"semver": "^7.3.7",
33-
"which": "^2.0.2",
34-
"yaml": "^2.1.1",
35-
"yargs": "^17.5.1"
29+
"execa": "^5.1.1",
30+
"glob": "^10.2.2",
31+
"pony-cause": "^2.1.9",
32+
"semver": "^7.5.0",
33+
"which": "^3.0.0",
34+
"yaml": "^2.2.2",
35+
"yargs": "^17.7.1"
3636
},
3737
"devDependencies": {
38-
"@lavamoat/allow-scripts": "^2.0.3",
38+
"@lavamoat/allow-scripts": "^2.3.1",
3939
"@metamask/auto-changelog": "^3.0.0",
4040
"@metamask/eslint-config": "^10.0.0",
4141
"@metamask/eslint-config-jest": "^10.0.0",
4242
"@metamask/eslint-config-nodejs": "^10.0.0",
4343
"@metamask/eslint-config-typescript": "^10.0.0",
4444
"@types/debug": "^4.1.7",
45-
"@types/jest": "^29.2.2",
45+
"@types/jest": "^29.5.1",
4646
"@types/jest-when": "^3.5.2",
4747
"@types/node": "^17.0.23",
48-
"@types/rimraf": "^3.0.2",
49-
"@types/which": "^2.0.1",
48+
"@types/rimraf": "^4.0.5",
49+
"@types/which": "^3.0.0",
5050
"@types/yargs": "^17.0.10",
5151
"@typescript-eslint/eslint-plugin": "^5.42.1",
5252
"@typescript-eslint/parser": "^5.42.1",
@@ -58,15 +58,15 @@
5858
"eslint-plugin-jsdoc": "^39.6.2",
5959
"eslint-plugin-node": "^11.1.0",
6060
"eslint-plugin-prettier": "^4.2.1",
61-
"jest": "^29.3.0",
61+
"jest": "^29.5.0",
6262
"jest-it-up": "^2.0.2",
6363
"jest-when": "^3.5.2",
6464
"nanoid": "^3.3.4",
6565
"prettier": "^2.2.1",
6666
"prettier-plugin-packagejson": "^2.3.0",
67-
"rimraf": "^3.0.2",
67+
"rimraf": "^4.0.5",
6868
"stdio-mock": "^1.2.0",
69-
"ts-jest": "^29.0.3",
69+
"ts-jest": "^29.1.0",
7070
"ts-node": "^10.7.0",
7171
"typescript": "~4.8.4"
7272
},

src/fs.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import fs from 'fs';
22
import path from 'path';
3-
import util from 'util';
4-
import rimraf from 'rimraf';
3+
import { rimraf } from 'rimraf';
54
import { when } from 'jest-when';
65
import * as actionUtils from '@metamask/action-utils';
76
import { withSandbox } from '../tests/helpers';
@@ -17,8 +16,6 @@ import {
1716

1817
jest.mock('@metamask/action-utils');
1918

20-
const promisifiedRimraf = util.promisify(rimraf);
21-
2219
describe('fs', () => {
2320
describe('readFile', () => {
2421
it('reads the contents of the given file as a UTF-8-encoded string', async () => {
@@ -62,7 +59,7 @@ describe('fs', () => {
6259

6360
it('re-throws any error that occurs as a new error that points to the original', async () => {
6461
await withSandbox(async (sandbox) => {
65-
await promisifiedRimraf(sandbox.directoryPath);
62+
await rimraf(sandbox.directoryPath);
6663
const filePath = path.join(sandbox.directoryPath, 'test');
6764

6865
await expect(writeFile(filePath, 'some content 😄')).rejects.toThrow(

src/functional.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,16 +654,16 @@ Error: Your release spec could not be processed due to the following issues:
654654
655655
* The following packages, which have changed since their latest release, are missing.
656656
657-
- @scope/b
658657
- @scope/d
658+
- @scope/b
659659
660660
Consider including them in the release spec so that any packages that rely on them won't break in production.
661661
662662
If you are ABSOLUTELY SURE that this won't occur, however, and want to postpone the release of a package, then list it with a directive of "intentionally-skip". For example:
663663
664664
packages:
665-
"@scope/b": intentionally-skip
666665
"@scope/d": intentionally-skip
666+
"@scope/b": intentionally-skip
667667
668668
The release spec file has been retained for you to edit again and make the necessary fixes. Once you've done this, re-run this tool.
669669

src/project.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import util from 'util';
2-
import glob from 'glob';
1+
import { glob } from 'glob';
32
import { WriteStreamLike } from './fs';
43
import {
54
Package,
@@ -48,11 +47,6 @@ export type Project = {
4847
releaseVersion: ReleaseVersion;
4948
};
5049

51-
/**
52-
* A promisified version of `glob`.
53-
*/
54-
const promisifiedGlob = util.promisify(glob);
55-
5650
/**
5751
* Given a SemVer version object, interprets the "major" part of the version
5852
* as the ordinary release number and the "minor" part as the backport release
@@ -100,7 +94,7 @@ export async function readProject(
10094
await Promise.all(
10195
rootPackage.validatedManifest[PackageManifestFieldNames.Workspaces].map(
10296
async (workspacePattern) => {
103-
return await promisifiedGlob(workspacePattern, {
97+
return await glob(workspacePattern, {
10498
cwd: projectDirectoryPath,
10599
absolute: true,
106100
});

tests/helpers.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
import fs from 'fs';
22
import os from 'os';
33
import path from 'path';
4-
import util from 'util';
54
import { nanoid } from 'nanoid';
6-
import rimraf from 'rimraf';
5+
import { rimraf } from 'rimraf';
76
import type { ExecaError } from 'execa';
87
import { hasProperty, isObject } from '@metamask/utils';
98

10-
/**
11-
* A promisified version of `rimraf`.
12-
*/
13-
const promisifiedRimraf = util.promisify(rimraf);
14-
159
/**
1610
* Information about the sandbox provided to tests that need access to the
1711
* filesystem.
@@ -66,7 +60,7 @@ export async function withSandbox(fn: (sandbox: Sandbox) => any) {
6660
try {
6761
await fn({ directoryPath });
6862
} finally {
69-
await promisifiedRimraf(directoryPath);
63+
await rimraf(directoryPath);
7064
}
7165
}
7266

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"moduleResolution": "node",
99
"noEmit": true,
1010
"noErrorTruncation": true,
11+
"skipLibCheck": true,
1112
"strict": true,
1213
"target": "es2017"
1314
},

0 commit comments

Comments
 (0)