Skip to content

Commit 9dae015

Browse files
committed
bump dependencies
1 parent 0a3bdde commit 9dae015

File tree

9 files changed

+1164
-1541
lines changed

9 files changed

+1164
-1541
lines changed

package-lock.json

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

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@
5454
"dependencies": {
5555
"@types/lodash-es": "^4.17.12",
5656
"@yeoman/namespace": "^1.0.1",
57-
"chalk": "^5.4.1",
57+
"chalk": "^5.6.0",
5858
"debug": "^4.4.1",
59-
"execa": "^9.5.3",
59+
"execa": "^9.6.0",
6060
"latest-version": "^9.0.0",
6161
"lodash-es": "^4.17.21",
6262
"mem-fs-editor": "^11.1.4",
6363
"minimist": "^1.2.8",
6464
"read-package-up": "^11.0.0",
6565
"semver": "^7.7.2",
66-
"simple-git": "^3.27.0",
66+
"simple-git": "^3.28.0",
6767
"sort-keys": "^5.1.0",
6868
"text-table": "^0.2.0",
6969
"type-fest": "^4.41.0"
@@ -75,20 +75,20 @@
7575
"@types/semver": "^7.7.0",
7676
"@types/sinon": "^17.0.4",
7777
"@types/text-table": "^0.2.5",
78-
"@vitest/coverage-v8": "^3.1.3",
78+
"@vitest/coverage-v8": "^3.2.4",
7979
"@yeoman/adapter": "^2.1.1",
80-
"@yeoman/eslint": "0.2.0",
80+
"@yeoman/eslint": "1.0.0",
8181
"@yeoman/transform": "^2.1.0",
82-
"cpy-cli": "^5.0.0",
82+
"cpy-cli": "^6.0.0",
8383
"ejs": "^3.1.10",
84-
"eslint": "9.12.0",
85-
"inquirer": "^12.6.1",
84+
"eslint": "9.33.0",
85+
"inquirer": "^12.9.3",
8686
"jsdoc": "^4.0.4",
87-
"prettier": "3.5.3",
88-
"prettier-plugin-packagejson": "2.5.12",
87+
"prettier": "3.6.2",
88+
"prettier-plugin-packagejson": "2.5.19",
8989
"sinon": "^21.0.0",
90-
"typescript": "5.8.3",
91-
"vitest": "^3.1.3",
90+
"typescript": "5.9.2",
91+
"vitest": "^3.2.4",
9292
"yeoman-assert": "^3.1.1",
9393
"yeoman-environment": "^5.0.0-beta.1",
9494
"yeoman-test": "^10.1.1"

src/actions/fs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ export class FsMixin {
293293
templates: Templates<D, typeof this>,
294294
templateData?: string | D,
295295
) {
296-
assert(Array.isArray(templates), 'Templates must an array');
296+
assert.ok(Array.isArray(templates), 'Templates must an array');
297297
if (templateData === undefined || typeof templateData === 'string') {
298298
templateData = this._templateData<D>(templateData);
299299
}
@@ -320,7 +320,7 @@ export class FsMixin {
320320
templates: Templates<D, typeof this>,
321321
templateData?: string | D,
322322
) {
323-
assert(Array.isArray(templates), 'Templates must an array');
323+
assert.ok(Array.isArray(templates), 'Templates must an array');
324324
if (templateData === undefined || typeof templateData === 'string') {
325325
templateData = this._templateData<D>(templateData);
326326
}

src/util/prompt-suggestion.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ export const prefillQuestions = <A extends PromptAnswers = PromptAnswers>(
113113
store: Storage,
114114
questions: Array<PromptQuestion<A>>,
115115
) => {
116-
assert(store, 'A store parameter is required');
117-
assert(questions, 'A questions parameter is required');
116+
assert.ok(store, 'A store parameter is required');
117+
assert.ok(questions, 'A questions parameter is required');
118118

119119
const promptValues = store.get<any>('promptValues') ?? {};
120120

@@ -166,9 +166,9 @@ export const prefillQuestions = <A extends PromptAnswers = PromptAnswers>(
166166
* @param storeAll Should store default values
167167
*/
168168
export const storeAnswers = (store: Storage, questions: any, answers: PromptAnswers, storeAll: boolean) => {
169-
assert(store, 'A store parameter is required');
170-
assert(answers, 'A answers parameter is required');
171-
assert(questions, 'A questions parameter is required');
169+
assert.ok(store, 'A store parameter is required');
170+
assert.ok(answers, 'A answers parameter is required');
171+
assert.ok(questions, 'A questions parameter is required');
172172
assert.ok(typeof answers === 'object', 'answers must be a object');
173173

174174
storeAll = storeAll || false;

src/util/storage.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class Storage<StorageRecord extends Record<string, any> = Record<string, any>> {
119119
throw new Error(`Check parameters`);
120120
}
121121

122-
assert(actualConfigPath, 'A config filepath is required to create a storage');
122+
assert.ok(actualConfigPath, 'A config filepath is required to create a storage');
123123

124124
this.path = actualConfigPath;
125125
this.name = actualName ?? actualOptions.name;
@@ -274,7 +274,7 @@ class Storage<StorageRecord extends Record<string, any> = Record<string, any>> {
274274
* @return val Whatever was passed in as val.
275275
*/
276276
setPath<const KeyPath extends string>(path: KeyPath, value: Get<StorageValue, KeyPath>): Get<StorageValue, KeyPath> {
277-
assert(typeof value !== 'function', "Storage value can't be a function");
277+
assert.ok(typeof value !== 'function', "Storage value can't be a function");
278278

279279
const store = this._store;
280280
set(store, path, value);
@@ -300,7 +300,7 @@ class Storage<StorageRecord extends Record<string, any> = Record<string, any>> {
300300
* @return val Returns the merged options.
301301
*/
302302
defaults(defaults: Partial<StorageRecord>): StorageRecord {
303-
assert(typeof defaults === 'object', 'Storage `defaults` method only accept objects');
303+
assert.ok(typeof defaults === 'object', 'Storage `defaults` method only accept objects');
304304
const store = setDefaults({}, this._store, defaults);
305305
this._persist(store);
306306
return this.getAll();
@@ -311,7 +311,7 @@ class Storage<StorageRecord extends Record<string, any> = Record<string, any>> {
311311
* @return val Returns the merged object.
312312
*/
313313
merge(source: Partial<StorageRecord>): StorageRecord {
314-
assert(typeof source === 'object', 'Storage `merge` method only accept objects');
314+
assert.ok(typeof source === 'object', 'Storage `merge` method only accept objects');
315315
const value = merge({}, this._store, source);
316316
this._persist(value);
317317
return this.getAll();

test/fs.test.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ describe('generators.Base (actions/fs)', () => {
159159
});
160160

161161
it('exists on the generator', () => {
162-
assert(operation.name in Base.prototype);
162+
assert.ok(operation.name in Base.prototype);
163163
});
164164

165165
it('returns the correct value', () => {
@@ -174,20 +174,20 @@ describe('generators.Base (actions/fs)', () => {
174174

175175
it.skip('handles the second parameter', () => {
176176
if (operation.second && operation.first === operation.second) {
177-
assert(secondArgumentHandler.calledTwice);
177+
assert.ok(secondArgumentHandler.calledTwice);
178178
expect(secondArgumentHandler.getCall(1).args[0]).toMatch(passedArg2);
179179
} else if (operation.second) {
180-
assert(secondArgumentHandler.calledOnce);
180+
assert.ok(secondArgumentHandler.calledOnce);
181181
expect(secondArgumentHandler.getCall(0).args[0]).toMatch(passedArg2);
182182
if (firstArgumentHandler) {
183-
assert(firstArgumentHandler.calledOnce);
183+
assert.ok(firstArgumentHandler.calledOnce);
184184
}
185185
}
186186
});
187187

188188
it('calls fs with correct arguments', () => {
189189
const destCall = base.fs[operation.dest];
190-
assert(destCall.calledOnce);
190+
assert.ok(destCall.calledOnce);
191191
const call = destCall.getCall(0);
192192
// First argument should be the trated first arguments
193193
expect(call.args[0]).toMatch(operation.first ? baseReturns[operation.first] : passedArg1);
@@ -241,7 +241,7 @@ describe('generators.Base (actions/fs)', () => {
241241
gen.renderTemplate('a', 'b');
242242
const { copyTpl } = gen.fs;
243243

244-
assert(copyTpl.calledOnce);
244+
assert.ok(copyTpl.calledOnce);
245245
const firsCall = copyTpl.getCall(0);
246246
assert.equal(firsCall.args[ARG_DATA], getAllReturn);
247247
});
@@ -250,7 +250,7 @@ describe('generators.Base (actions/fs)', () => {
250250
gen.renderTemplate('a', 'b', 'test');
251251
const { copyTpl } = gen.fs;
252252

253-
assert(copyTpl.calledOnce);
253+
assert.ok(copyTpl.calledOnce);
254254
const firsCall = copyTpl.getCall(0);
255255
assert.equal(firsCall.args[ARG_DATA], getPathReturn);
256256
});
@@ -263,7 +263,7 @@ describe('generators.Base (actions/fs)', () => {
263263
gen.renderTemplate(source, destination, data);
264264
const { copyTpl } = gen.fs;
265265

266-
assert(copyTpl.calledOnce);
266+
assert.ok(copyTpl.calledOnce);
267267
const firsCall = copyTpl.getCall(0);
268268
assert.equal(firsCall.args[ARG_FROM], path.join(...source));
269269
assert.equal(firsCall.args[ARG_TO], path.join(...destination));
@@ -300,7 +300,7 @@ describe('generators.Base (actions/fs)', () => {
300300
gen.renderTemplateAsync('a', 'b');
301301
const { copyTplAsync } = gen.fs;
302302

303-
assert(copyTplAsync.calledOnce);
303+
assert.ok(copyTplAsync.calledOnce);
304304
const firsCall = copyTplAsync.getCall(0);
305305
assert.equal(firsCall.args[ARG_DATA], getAllReturn);
306306
});
@@ -309,7 +309,7 @@ describe('generators.Base (actions/fs)', () => {
309309
await gen.renderTemplateAsync('a', 'b', 'test');
310310
const { copyTplAsync } = gen.fs;
311311

312-
assert(copyTplAsync.calledOnce);
312+
assert.ok(copyTplAsync.calledOnce);
313313
const firsCall = copyTplAsync.getCall(0);
314314
assert.equal(firsCall.args[ARG_DATA], getPathReturn);
315315
});
@@ -322,7 +322,7 @@ describe('generators.Base (actions/fs)', () => {
322322
gen.renderTemplateAsync(source, destination, data);
323323
const { copyTplAsync } = gen.fs;
324324

325-
assert(copyTplAsync.calledOnce);
325+
assert.ok(copyTplAsync.calledOnce);
326326
const firsCall = copyTplAsync.getCall(0);
327327
assert.equal(firsCall.args[ARG_FROM], path.join(...source));
328328
assert.equal(firsCall.args[ARG_TO], path.join(...destination));

test/storage.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,8 @@ describe('Storage', () => {
483483

484484
it('works with in operator', () => {
485485
store.set({ foo: 'bar', john: 'doe' });
486-
assert('foo' in proxy);
487-
assert(!('foo2' in proxy));
486+
assert.ok('foo' in proxy);
487+
assert.ok(!('foo2' in proxy));
488488
});
489489

490490
it('works with deepEquals', () => {
@@ -506,38 +506,38 @@ describe('Storage', () => {
506506
});
507507

508508
it('should load', () => {
509-
assert(store._cachedStore);
509+
assert.ok(store._cachedStore);
510510
});
511511

512512
it('should not load when disabled', () => {
513513
const store = new Storage('test', editor, storePath, {
514514
disableCache: true,
515515
});
516-
assert(store._cachedStore === undefined);
516+
assert.ok(store._cachedStore === undefined);
517517
store.get('foo');
518-
assert(store._cachedStore === undefined);
518+
assert.ok(store._cachedStore === undefined);
519519
});
520520

521521
it('cleanups when the file changes', () => {
522522
editor.writeJSON(store.path, {});
523-
assert(store._cachedStore === undefined);
523+
assert.ok(store._cachedStore === undefined);
524524
});
525525

526526
it("doesn't cleanup when another file changes", () => {
527527
editor.write('a.txt', 'anything');
528-
assert(store._cachedStore);
528+
assert.ok(store._cachedStore);
529529
});
530530

531531
it('cleanups when per file cache is disabled and another file changes', () => {
532532
editor.writeJSON(store.path, { disableCacheByFile: true });
533533
editor.write('a.txt', 'anything');
534-
assert(store._cachedStore === undefined);
534+
assert.ok(store._cachedStore === undefined);
535535
});
536536

537537
// Compatibility for mem-fs <= 1.1.3
538538
it('cleanups when change event argument is undefined', () => {
539539
memFsInstance.emit('change');
540-
assert(store._cachedStore === undefined);
540+
assert.ok(store._cachedStore === undefined);
541541
});
542542
});
543543

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
/* Emit */
2020
"outDir": "./dist" /* Specify an output folder for all emitted files. */,
2121
"declaration": true,
22+
"isolatedModules": true,
2223

2324
/* Interop Constraints */
2425
"allowSyntheticDefaultImports": true /* Allow 'import x from y' when a module doesn't have a default export. */,

vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineConfig } from 'vitest/config';
22

33
export default defineConfig({
44
test: {
5-
pool: 'vmForks',
5+
pool: 'forks',
66
dangerouslyIgnoreUnhandledErrors: true,
77
},
88
});

0 commit comments

Comments
 (0)