Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .chronus/changes/dependency-audit-2026-3-1-19-4-24.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
changeKind: internal
packages:
- "@typespec/asset-emitter"
- "@typespec/bundler"
- "@typespec/compiler"
- "@typespec/eslint-plugin"
- "@typespec/events"
- "@typespec/html-program-viewer"
- "@typespec/http-client-js"
- "@typespec/http-server-csharp"
- "@typespec/http-server-js"
- "@typespec/http-specs"
- "@typespec/http"
- "@typespec/internal-build-utils"
- "@typespec/json-schema"
- "@typespec/library-linter"
- "@typespec/openapi"
- "@typespec/openapi3"
- "@typespec/playground"
- "@typespec/protobuf"
- "@typespec/rest"
- "@typespec/spec-api"
- "@typespec/spector"
- "@typespec/sse"
- "@typespec/streams"
- tmlanguage-generator
- "@typespec/tspd"
- typespec-vscode
- "@typespec/versioning"
- "@typespec/xml"
---

Dependency audit
1 change: 0 additions & 1 deletion packages/asset-emitter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"@typespec/compiler": "workspace:^",
"@vitest/coverage-v8": "catalog:",
"@vitest/ui": "catalog:",
"c8": "catalog:",
"rimraf": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
Expand Down
1 change: 0 additions & 1 deletion packages/best-practices/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"@typespec/compiler": "workspace:^",
"@vitest/coverage-v8": "catalog:",
"@vitest/ui": "catalog:",
"c8": "catalog:",
"rimraf": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
Expand Down
2 changes: 0 additions & 2 deletions packages/bundle-uploader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"@azure/storage-blob": "catalog:",
"@pnpm/workspace.find-packages": "catalog:",
"@typespec/bundler": "workspace:^",
"json5": "catalog:",
"picocolors": "catalog:",
"semver": "catalog:"
},
Expand All @@ -50,7 +49,6 @@
"@types/semver": "catalog:",
"@vitest/coverage-v8": "catalog:",
"@vitest/ui": "catalog:",
"c8": "catalog:",
"rimraf": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
Expand Down
1 change: 0 additions & 1 deletion packages/bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"@types/yargs": "catalog:",
"@vitest/coverage-v8": "catalog:",
"@vitest/ui": "catalog:",
"c8": "catalog:",
"rimraf": "catalog:",
"typescript": "catalog:",
"vite": "catalog:",
Expand Down
2 changes: 0 additions & 2 deletions packages/compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@
"@typespec/internal-build-utils": "workspace:^",
"@vitest/coverage-v8": "catalog:",
"@vitest/ui": "catalog:",
"c8": "catalog:",
"grammarkdown": "catalog:",
"pathe": "catalog:",
"rimraf": "catalog:",
"source-map-support": "catalog:",
Expand Down
1 change: 0 additions & 1 deletion packages/eslint-plugin-typespec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"@typescript-eslint/types": "catalog:",
"@vitest/coverage-v8": "catalog:",
"@vitest/ui": "catalog:",
"c8": "catalog:",
"eslint": "catalog:",
"rimraf": "catalog:",
"typescript": "catalog:",
Expand Down
1 change: 0 additions & 1 deletion packages/events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"@typespec/tspd": "workspace:^",
"@vitest/coverage-v8": "catalog:",
"@vitest/ui": "catalog:",
"c8": "catalog:",
"rimraf": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
Expand Down
1 change: 0 additions & 1 deletion packages/html-program-viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
"@vitejs/plugin-react": "catalog:",
"@vitest/coverage-v8": "catalog:",
"@vitest/ui": "catalog:",
"c8": "catalog:",
"rimraf": "catalog:",
"typescript": "catalog:",
"vite": "catalog:",
Expand Down
34 changes: 17 additions & 17 deletions packages/http-client-js/eng/scripts/emit-e2e.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/usr/bin/env node
/* eslint-disable no-console */
import { select } from "@inquirer/prompts";
import { execa } from "execa";
import pkg from "fs-extra";
import { copyFile, mkdir, rm } from "fs/promises";
import { access, copyFile, mkdir, readFile, rm, stat, writeFile } from "fs/promises";
import { globby } from "globby";
import inquirer from "inquirer";
import ora from "ora";
import pLimit from "p-limit";
import { basename, dirname, join, resolve } from "path";
Expand All @@ -13,11 +12,16 @@ import { fileURLToPath } from "url";
import { hideBin } from "yargs/helpers";
import yargs from "yargs/yargs";

const { pathExists, stat, readFile, writeFile } = pkg;

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

async function pathExists(path) {
return access(path).then(
() => true,
() => false,
);
}

const projectRoot = join(__dirname, "../..");
const tspConfig = join(__dirname, "tspconfig.yaml");

Expand Down Expand Up @@ -185,18 +189,14 @@ async function processFile(file, options) {
await writeFile(logFilePath, errorDetails, "utf8");

if (interactive) {
const { action } = await inquirer.prompt([
{
type: "list",
name: "action",
message: `Processing failed for ${relativePath}. What would you like to do?`,
choices: [
{ name: "Retry", value: "retry" },
{ name: "Skip to next file", value: "next" },
{ name: "Abort processing", value: "abort" },
],
},
]);
const action = await select({
message: `Processing failed for ${relativePath}. What would you like to do?`,
choices: [
{ name: "Retry", value: "retry" },
{ name: "Skip to next file", value: "next" },
{ name: "Abort processing", value: "abort" },
],
});

if (action === "retry") {
if (spinner) spinner.start(`Retrying: ${relativePath}`);
Expand Down
3 changes: 1 addition & 2 deletions packages/http-client-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@
"concurrently": "catalog:",
"cross-env": "catalog:",
"execa": "catalog:",
"fs-extra": "catalog:",
"globby": "catalog:",
"inquirer": "catalog:",
"@inquirer/prompts": "catalog:",
"ora": "catalog:",
"p-limit": "catalog:",
"picocolors": "catalog:",
Expand Down
35 changes: 19 additions & 16 deletions packages/http-server-csharp/eng/scripts/emit-scenarios.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/* eslint-disable no-console */
import { select } from "@inquirer/prompts";
import { run } from "@typespec/internal-build-utils";
import { copy, pathExists } from "fs-extra";
import { mkdir, readFile, rm, writeFile } from "fs/promises";
import { access, copyFile, mkdir, readFile, rm, writeFile } from "fs/promises";
import { globby } from "globby";
import inquirer from "inquirer";
import ora from "ora";
import pLimit from "p-limit";
import { basename, dirname, join, resolve } from "pathe";
Expand Down Expand Up @@ -40,6 +39,13 @@ const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const tspConfig = join(__dirname, "tspconfig.yaml");

async function pathExists(path: string): Promise<boolean> {
return access(path).then(
() => true,
() => false,
);
}

const basePath = join(__dirname, "../..");
const logDirRoot = join(basePath, "temp", "emit-scenarios-logs");
const reportFilePath = join(logDirRoot, "report.txt");
Expand Down Expand Up @@ -78,7 +84,8 @@ async function copySelectiveFiles(
for (const file of files) {
const src = join(sourceDir, file);
const dest = join(targetDir, file);
await copy(src, dest);
await mkdir(dirname(dest), { recursive: true });
await copyFile(src, dest);
}
}

Expand Down Expand Up @@ -165,18 +172,14 @@ async function compileSpec(file: string, options: CompileOptions): Promise<Compi
await writeFile(logFilePath, errorDetails, "utf8");

if (interactive) {
const { action } = await inquirer.prompt([
{
type: "list",
name: "action",
message: `Processing failed for ${relativePath}. What would you like to do?`,
choices: [
{ name: "Retry", value: "retry" },
{ name: "Skip to next file", value: "next" },
{ name: "Abort processing", value: "abort" },
],
},
]);
const action = await select({
message: `Processing failed for ${relativePath}. What would you like to do?`,
choices: [
{ name: "Retry", value: "retry" },
{ name: "Skip to next file", value: "next" },
{ name: "Abort processing", value: "abort" },
],
});

if (action === "retry") {
if (spinner) spinner.start(`Retrying: ${relativePath}`);
Expand Down
3 changes: 1 addition & 2 deletions packages/http-server-csharp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,8 @@
"@typespec/versioning": "workspace:^",
"@vitest/coverage-v8": "catalog:",
"@vitest/ui": "catalog:",
"fs-extra": "catalog:",
"globby": "catalog:",
"inquirer": "catalog:",
"@inquirer/prompts": "catalog:",
"ora": "catalog:",
"p-limit": "catalog:",
"pathe": "catalog:",
Expand Down
34 changes: 17 additions & 17 deletions packages/http-server-js/eng/scripts/emit-e2e.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/usr/bin/env node
/* eslint-disable no-console */
import { select } from "@inquirer/prompts";
import { run } from "@typespec/internal-build-utils";
import pkg from "fs-extra";
import { copyFile, mkdir, rm } from "fs/promises";
import { access, copyFile, mkdir, readFile, rm, stat, writeFile } from "fs/promises";
import { globby } from "globby";
import inquirer from "inquirer";
import ora from "ora";
import pLimit from "p-limit";
import { basename, dirname, join, resolve } from "path";
Expand All @@ -13,11 +12,16 @@ import { fileURLToPath } from "url";
import { hideBin } from "yargs/helpers";
import yargs from "yargs/yargs";

const { pathExists, stat, readFile, writeFile } = pkg;

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

async function pathExists(path) {
return access(path).then(
() => true,
() => false,
);
}

const projectRoot = join(__dirname, "../..");
const tspConfig = join(__dirname, "tspconfig.yaml");

Expand Down Expand Up @@ -181,18 +185,14 @@ async function processFile(file, options) {
await writeFile(logFilePath, errorDetails, "utf8");

if (interactive) {
const { action } = await inquirer.prompt([
{
type: "list",
name: "action",
message: `Processing failed for ${relativePath}. What would you like to do?`,
choices: [
{ name: "Retry", value: "retry" },
{ name: "Skip to next file", value: "next" },
{ name: "Abort processing", value: "abort" },
],
},
]);
const action = await select({
message: `Processing failed for ${relativePath}. What would you like to do?`,
choices: [
{ name: "Retry", value: "retry" },
{ name: "Skip to next file", value: "next" },
{ name: "Abort processing", value: "abort" },
],
});

if (action === "retry") {
if (spinner) spinner.start(`Retrying: ${relativePath}`);
Expand Down
3 changes: 1 addition & 2 deletions packages/http-server-js/generated-defs/package.json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ export const hsjsDependencies: Record<string, string> = {
"@vitest/ui": "^4.1.0",
"decimal.js": "^10.6.0",
"express": "^5.2.1",
"fs-extra": "^11.3.4",
"globby": "~16.1.1",
"inquirer": "^13.3.0",
"@inquirer/prompts": "^8.3.0",
"morgan": "^1.10.1",
"ora": "^9.3.0",
"p-limit": "^7.3.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/http-server-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@
"@vitest/ui": "catalog:",
"decimal.js": "catalog:",
"express": "catalog:",
"fs-extra": "catalog:",
"globby": "catalog:",
"inquirer": "catalog:",
"@inquirer/prompts": "catalog:",
"morgan": "catalog:",
"ora": "catalog:",
"p-limit": "catalog:",
Expand Down
4 changes: 1 addition & 3 deletions packages/http-specs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,9 @@
"homepage": "https://github.com/microsoft/typespec#readme",
"dependencies": {
"@typespec/spec-api": "workspace:^",
"@typespec/spector": "workspace:^",
"deep-equal": "catalog:"
"@typespec/spector": "workspace:^"
},
"devDependencies": {
"@types/deep-equal": "catalog:",
"@types/multer": "catalog:",
"@types/node": "catalog:",
"@typespec/json-schema": "workspace:^",
Expand Down
1 change: 0 additions & 1 deletion packages/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
"@typespec/tspd": "workspace:^",
"@vitest/coverage-v8": "catalog:",
"@vitest/ui": "catalog:",
"c8": "catalog:",
"rimraf": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
Expand Down
1 change: 0 additions & 1 deletion packages/internal-build-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"@types/yargs": "catalog:",
"@vitest/coverage-v8": "catalog:",
"@vitest/ui": "catalog:",
"c8": "catalog:",
"chokidar": "catalog:",
"rimraf": "catalog:",
"typescript": "catalog:",
Expand Down
1 change: 0 additions & 1 deletion packages/json-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
"@vitest/ui": "catalog:",
"ajv": "catalog:",
"ajv-formats": "catalog:",
"c8": "catalog:",
"rimraf": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
Expand Down
1 change: 0 additions & 1 deletion packages/library-linter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
"@typespec/compiler": "workspace:^",
"@vitest/coverage-v8": "catalog:",
"@vitest/ui": "catalog:",
"c8": "catalog:",
"rimraf": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
Expand Down
1 change: 0 additions & 1 deletion packages/monarch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"@types/node": "catalog:",
"@vitest/coverage-v8": "catalog:",
"@vitest/ui": "catalog:",
"c8": "catalog:",
"happy-dom": "catalog:",
"rimraf": "catalog:",
"typescript": "catalog:",
Expand Down
1 change: 0 additions & 1 deletion packages/openapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
"@typespec/tspd": "workspace:^",
"@vitest/coverage-v8": "catalog:",
"@vitest/ui": "catalog:",
"c8": "catalog:",
"rimraf": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
Expand Down
Loading
Loading