Skip to content

Commit

Permalink
[path] update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
electrovir committed Sep 28, 2024
1 parent 4a00925 commit 00a5a8f
Show file tree
Hide file tree
Showing 16 changed files with 471 additions and 527 deletions.
926 changes: 437 additions & 489 deletions package-lock.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@
},
"devDependencies": {
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.11.0",
"@eslint/js": "^9.11.1",
"@stylistic/eslint-plugin": "^2.8.0",
"@stylistic/eslint-plugin-ts": "^2.8.0",
"@typescript-eslint/eslint-plugin": "^8.6.0",
"@typescript-eslint/eslint-plugin": "^8.7.0",
"cspell": "^8.14.4",
"dependency-cruiser": "^16.4.2",
"esbuild": "^0.24.0",
"eslint": "^9.11.0",
"eslint": "^9.11.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jsdoc": "^50.2.4",
"eslint-plugin-jsdoc": "^50.3.0",
"eslint-plugin-monorepo-cop": "^1.0.2",
"eslint-plugin-playwright": "^1.6.2",
"eslint-plugin-prettier": "^5.2.1",
Expand All @@ -65,8 +65,8 @@
"prettier-plugin-packagejson": "^2.5.2",
"prettier-plugin-sort-json": "^4.0.0",
"prettier-plugin-toml": "^2.0.1",
"typescript-eslint": "^8.6.0",
"virmator": "^13.3.15"
"typescript-eslint": "^8.7.0",
"virmator": "^13.4.1"
},
"engines": {
"node": ">=22"
Expand Down
2 changes: 1 addition & 1 deletion packages/assert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"dependencies": {
"@augment-vir/core": "^30.1.0",
"@date-vir/duration": "^6.0.0",
"@date-vir/duration": "^6.0.1",
"deep-eql": "^5.0.2",
"expect-type": "^0.20.0",
"type-fest": "^4.26.1"
Expand Down
6 changes: 3 additions & 3 deletions packages/assert/src/assertions/output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
stringify,
wait,
} from '@augment-vir/core';
import {convertDuration, DurationUnit} from '@date-vir/duration';
import {convertDuration} from '@date-vir/duration';
import type {IsAny} from 'type-fest';
import {AssertionError} from '../augments/assertion.error.js';
import type {GuardGroup} from '../guard-types/guard-group.js';
Expand Down Expand Up @@ -427,8 +427,8 @@ export async function waitUntilOutput(
? emptyOrFailureMessage
: (emptyOrFailureMessageOrOptions as string | undefined);

const timeout = convertDuration(options.timeout, DurationUnit.Milliseconds).milliseconds;
const interval = convertDuration(options.interval, DurationUnit.Milliseconds);
const timeout = convertDuration(options.timeout, {milliseconds: true}).milliseconds;
const interval = convertDuration(options.interval, {milliseconds: true});

let lastCallbackOutput: unknown = notSetSymbol;
let lastError: Error | undefined = undefined;
Expand Down
6 changes: 3 additions & 3 deletions packages/assert/src/guard-types/wait-until-function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
type Overwrite,
wait,
} from '@augment-vir/core';
import {type AnyDuration, convertDuration, DurationUnit} from '@date-vir/duration';
import {type AnyDuration, convertDuration} from '@date-vir/duration';
import type {AssertFunction} from './assert-function.js';
import {autoGuardSymbol, pickOverride} from './guard-override.js';

Expand Down Expand Up @@ -64,8 +64,8 @@ export async function executeWaitUntil<const Assert extends AssertFunction<any>>
) {
const {callback, extraAssertionArgs, failureMessage, options} = parseWaitUntilArgs(rawArgs);

const timeout = convertDuration(options.timeout, DurationUnit.Milliseconds).milliseconds;
const interval = convertDuration(options.interval, DurationUnit.Milliseconds);
const timeout = convertDuration(options.timeout, {milliseconds: true}).milliseconds;
const interval = convertDuration(options.interval, {milliseconds: true});

let lastCallbackOutput: unknown = notSetSymbol;
let lastError: Error | undefined = undefined;
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"dependencies": {
"@augment-vir/assert": "^30.1.0",
"@augment-vir/core": "^30.1.0",
"@date-vir/duration": "^6.0.0",
"@date-vir/duration": "^6.0.1",
"ansi-styles": "^6.2.1",
"json5": "^2.2.3",
"type-fest": "^4.26.1"
Expand Down
4 changes: 2 additions & 2 deletions packages/common/src/augments/function/debounce.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {type MaybePromise} from '@augment-vir/core';
import {AnyDuration, convertDuration, DurationUnit} from '@date-vir/duration';
import {AnyDuration, convertDuration} from '@date-vir/duration';

/**
* Different types of debouncing for the {@link Debounce} class.
Expand Down Expand Up @@ -106,6 +106,6 @@ export class Debounce {
}, this.debounceDuration.milliseconds);
}
this.nextCallTimestamp =
now + convertDuration(this.debounceDuration, DurationUnit.Milliseconds).milliseconds;
now + convertDuration(this.debounceDuration, {milliseconds: true}).milliseconds;
}
}
6 changes: 3 additions & 3 deletions packages/common/src/augments/promise/timed-promise.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {check} from '@augment-vir/assert';
import {ensureError} from '@augment-vir/core';
import {AnyDuration, convertDuration, DurationUnit} from '@date-vir/duration';
import {AnyDuration, convertDuration} from '@date-vir/duration';

/**
* An error thrown by {@link wrapPromiseInTimeout} when the timeout is reached.
Expand All @@ -19,7 +19,7 @@ export class PromiseTimeoutError extends Error {
super(
[
failureMessage,
`Promised timed out after ${convertDuration(duration, DurationUnit.Milliseconds).milliseconds} ms.`,
`Promised timed out after ${convertDuration(duration, {milliseconds: true}).milliseconds} ms.`,
]
.filter(check.isTruthy)
.join(': '),
Expand All @@ -40,7 +40,7 @@ export function wrapPromiseInTimeout<T>(
originalPromise: PromiseLike<T>,
failureMessage?: string | undefined,
): Promise<T> {
const milliseconds = convertDuration(duration, DurationUnit.Milliseconds).milliseconds;
const milliseconds = convertDuration(duration, {milliseconds: true}).milliseconds;

return new Promise<T>(async (resolve, reject) => {
const timeoutId =
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
"test:update": "npm test"
},
"dependencies": {
"@date-vir/duration": "^6.0.0",
"@date-vir/duration": "^6.0.1",
"browser-or-node": "^3.0.0",
"json5": "^2.2.3",
"type-fest": "^4.26.1"
},
"devDependencies": {
"@types/node": "^22.5.5",
"@types/node": "^22.7.4",
"c8": "^10.1.2",
"istanbul-smart-text-reporter": "^1.1.4"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/augments/promise/wait.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {AnyDuration, convertDuration, DurationUnit} from '@date-vir/duration';
import {AnyDuration, convertDuration} from '@date-vir/duration';
import {DeferredPromise} from './deferred-promise.js';

/**
Expand All @@ -12,7 +12,7 @@ import {DeferredPromise} from './deferred-promise.js';
*/
export function wait(duration: Readonly<AnyDuration>): Promise<void> {
const deferredPromise = new DeferredPromise();
const milliseconds = convertDuration(duration, DurationUnit.Milliseconds).milliseconds;
const milliseconds = convertDuration(duration, {milliseconds: true}).milliseconds;

if (milliseconds !== Infinity) {
setTimeout(
Expand Down
8 changes: 4 additions & 4 deletions packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@
"dependencies": {
"@augment-vir/assert": "^30.1.0",
"@augment-vir/common": "^30.1.0",
"@date-vir/duration": "^6.0.0",
"@date-vir/duration": "^6.0.1",
"ansi-styles": "^6.2.1",
"terminate": "^2.8.0",
"type-fest": "^4.26.1",
"typed-event-target": "^3.4.0"
},
"devDependencies": {
"@augment-vir/test": "^30.1.0",
"@prisma/client": "^5.19.1",
"@types/node": "^22.5.5",
"@prisma/client": "^5.20.0",
"@types/node": "^22.7.4",
"@web/dev-server-esbuild": "^1.0.2",
"@web/test-runner": "^0.19.0",
"@web/test-runner-commands": "^0.9.0",
Expand All @@ -57,7 +57,7 @@
"c8": "^10.1.2",
"concurrently": "^9.0.1",
"istanbul-smart-text-reporter": "^1.1.4",
"prisma": "^5.19.1"
"prisma": "^5.20.0"
},
"engines": {
"node": ">=22"
Expand Down
4 changes: 2 additions & 2 deletions packages/node/src/augments/terminal/question.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {log} from '@augment-vir/common';
import {convertDuration, DurationUnit, type AnyDuration} from '@date-vir/duration';
import {convertDuration, type AnyDuration} from '@date-vir/duration';
import {createInterface} from 'node:readline';

/** Can't test requiring user input. */
Expand Down Expand Up @@ -67,7 +67,7 @@ export async function askQuestion(
});

return new Promise((resolve, reject) => {
const timeoutMs = convertDuration(timeout, DurationUnit.Milliseconds).milliseconds;
const timeoutMs = convertDuration(timeout, {milliseconds: true}).milliseconds;

const timeoutId = timeoutMs
? setTimeout(() => {
Expand Down
4 changes: 2 additions & 2 deletions packages/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
"dependencies": {
"@augment-vir/assert": "^30.1.0",
"@augment-vir/core": "^30.1.0",
"@virmator/docs": "^13.3.15",
"@virmator/docs": "^13.4.1",
"jsdom": "^25.0.1",
"typedoc": "^0.26.7"
},
"devDependencies": {
"@augment-vir/test": "^30.1.0",
"@types/jsdom": "^21.1.7",
"@types/node": "^22.5.5"
"@types/node": "^22.7.4"
},
"engines": {
"node": ">=22"
Expand Down
2 changes: 1 addition & 1 deletion packages/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"type-fest": "^4.26.1"
},
"devDependencies": {
"@types/node": "^22.5.5",
"@types/node": "^22.7.4",
"@web/dev-server-esbuild": "^1.0.2",
"@web/test-runner": "^0.19.0",
"@web/test-runner-commands": "^0.9.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"dependencies": {
"@augment-vir/assert": "^30.1.0",
"@augment-vir/common": "^30.1.0",
"@date-vir/duration": "^6.0.0",
"@date-vir/duration": "^6.0.1",
"html-spec-tags": "^2.2.1",
"type-fest": "^4.26.1"
},
Expand Down
6 changes: 1 addition & 5 deletions todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,10 @@
- just a plain `diff` function
- better outputs from `diffArray` (it should output a partial)
- add a function that batches `Promise.all` calls
- allow readonly inputs to all guards (like assert.deepEquals)

## Immediately after v30 release

- finish updating `date-vir`
- add `parseJsonWithShape` to `object-shape-tester`
- in progress
- rename `runtimeType` in `object-shape-tester`
- deprecate `run-time-assertions`
- use `ListenTarget` for `ShellEmitter`
- update `typed-event-target` package
- convert `Debounce` into an ListenTarget and emit events when:
Expand Down

0 comments on commit 00a5a8f

Please sign in to comment.