Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies - april 2024 #3169

Merged
merged 12 commits into from
Apr 15, 2024

This file was deleted.

25 changes: 25 additions & 0 deletions .chronus/changes/upgrade-deps-april-2024-2024-3-13-20-10-53.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
changeKind: dependencies
packages:
- "@typespec/bundler"
- "@typespec/compiler"
- "@typespec/eslint-plugin"
- "@typespec/html-program-viewer"
- "@typespec/http"
- "@typespec/internal-build-utils"
- "@typespec/json-schema"
- "@typespec/library-linter"
- "@typespec/openapi"
- "@typespec/openapi3"
- "@typespec/playground"
- "@typespec/prettier-plugin-typespec"
- "@typespec/protobuf"
- "@typespec/rest"
- tmlanguage-generator
- typespec-vscode
- "@typespec/versioning"
- "@typespec/xml"
---

Update dependencies
4 changes: 4 additions & 0 deletions .chronus/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,7 @@ changelog: ["@chronus/github/changelog", { repo: "microsoft/typespec" }]

ignore:
- "@typespec/http-client-csharp"

changedFiles:
timotheeguerin marked this conversation as resolved.
Show resolved Hide resolved
- "!**/*.md"
- "!**/*.test.ts"
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,27 @@
"watch": "tsc --build ./tsconfig.ws.json --watch"
},
"devDependencies": {
"@chronus/chronus": "^0.8.3",
"@chronus/github": "^0.2.2",
"@chronus/chronus": "^0.10.0",
"@chronus/github": "^0.3.2",
"@eslint/js": "^8.57.0",
"@pnpm/find-workspace-packages": "^6.0.9",
"@types/node": "~18.11.19",
"@typescript-eslint/parser": "^7.5.0",
"@typescript-eslint/utils": "^7.5.0",
"@typescript-eslint/parser": "^7.6.0",
"@typescript-eslint/utils": "^7.6.0",
"c8": "^9.1.0",
"cspell": "^8.6.1",
"cspell": "^8.7.0",
"eslint": "^8.57.0",
"eslint-plugin-deprecation": "^2.0.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-unicorn": "^51.0.1",
"eslint-plugin-vitest": "^0.4.1",
"eslint-plugin-unicorn": "^52.0.0",
"eslint-plugin-vitest": "^0.5.3",
"prettier": "~3.2.5",
"prettier-plugin-organize-imports": "~3.2.4",
"rimraf": "~5.0.5",
"syncpack": "^12.3.0",
"typescript": "~5.4.3",
"typescript-eslint": "^7.5.0",
"vitest": "^1.4.0"
"typescript": "~5.4.5",
"typescript-eslint": "^7.6.0",
"vitest": "^1.5.0"
},
"syncpack": {
"dependencyTypes": [
Expand Down
8 changes: 4 additions & 4 deletions packages/best-practices/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
"devDependencies": {
"@types/node": "~18.11.19",
"@typespec/compiler": "workspace:~",
"@vitest/coverage-v8": "^1.4.0",
"@vitest/ui": "^1.4.0",
"@vitest/coverage-v8": "^1.5.0",
"@vitest/ui": "^1.5.0",
"c8": "^9.1.0",
"rimraf": "~5.0.5",
"typescript": "~5.4.3",
"vitest": "^1.4.0"
"typescript": "~5.4.5",
"vitest": "^1.5.0"
}
}
10 changes: 5 additions & 5 deletions packages/bundle-uploader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"!dist/test/**"
],
"dependencies": {
"@azure/identity": "~4.0.1",
"@azure/identity": "~4.1.0",
"@azure/storage-blob": "~12.17.0",
"@pnpm/find-workspace-packages": "^6.0.9",
"@typespec/bundler": "workspace:~",
Expand All @@ -48,11 +48,11 @@
"devDependencies": {
"@types/node": "~18.11.19",
"@types/semver": "^7.5.8",
"@vitest/coverage-v8": "^1.4.0",
"@vitest/ui": "^1.4.0",
"@vitest/coverage-v8": "^1.5.0",
"@vitest/ui": "^1.5.0",
"c8": "^9.1.0",
"rimraf": "~5.0.5",
"typescript": "~5.4.3",
"vitest": "^1.4.0"
"typescript": "~5.4.5",
"vitest": "^1.5.0"
}
}
12 changes: 6 additions & 6 deletions packages/bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,18 @@
"@rollup/plugin-virtual": "~3.0.2",
"@typespec/compiler": "workspace:~",
"picocolors": "~1.0.0",
"rollup": "~4.13.2",
"rollup": "~4.14.3",
"yargs": "~17.7.2"
},
"devDependencies": {
"@types/node": "~18.11.19",
"@types/yargs": "~17.0.32",
"@vitest/coverage-v8": "^1.4.0",
"@vitest/ui": "^1.4.0",
"@vitest/coverage-v8": "^1.5.0",
"@vitest/ui": "^1.5.0",
"c8": "^9.1.0",
"rimraf": "~5.0.5",
"typescript": "~5.4.3",
"vite": "^5.2.7",
"vitest": "^1.4.0"
"typescript": "~5.4.5",
"vite": "^5.2.8",
"vitest": "^1.5.0"
}
}
12 changes: 5 additions & 7 deletions packages/compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"dependencies": {
"@babel/code-frame": "~7.24.2",
"ajv": "~8.12.0",
"change-case": "~5.4.3",
"change-case": "~5.4.4",
"globby": "~14.0.1",
"mustache": "~4.2.0",
"picocolors": "~1.0.0",
Expand All @@ -102,20 +102,18 @@
"@types/node": "~18.11.19",
"@types/prompts": "~2.4.9",
"@types/semver": "^7.5.8",
"@types/sinon": "~17.0.3",
"@types/yargs": "~17.0.32",
"@typespec/internal-build-utils": "workspace:~",
"@vitest/coverage-v8": "^1.4.0",
"@vitest/ui": "^1.4.0",
"@vitest/coverage-v8": "^1.5.0",
"@vitest/ui": "^1.5.0",
"c8": "^9.1.0",
"grammarkdown": "~3.3.2",
"rimraf": "~5.0.5",
"sinon": "~17.0.1",
"source-map-support": "~0.5.21",
"tmlanguage-generator": "workspace:~",
"ts-node": "~10.9.2",
"typescript": "~5.4.3",
"vitest": "^1.4.0",
"typescript": "~5.4.5",
"vitest": "^1.5.0",
"vscode-oniguruma": "~2.0.1",
"vscode-textmate": "~9.0.0"
}
Expand Down
13 changes: 4 additions & 9 deletions packages/compiler/test/emitter-framework/host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { resolvePath } from "../../src/core/index.js";
import { createAssetEmitter, TypeEmitter } from "../../src/emitter-framework/index.js";
import { createTestHost, TypeSpecTestLibrary } from "../../src/testing/index.js";

import assert from "assert";
import { SinonSpy, spy } from "sinon";
import { expect, MockInstance, vi } from "vitest";

export const lib: TypeSpecTestLibrary = {
name: "typespec-ts-interface-emitter",
Expand Down Expand Up @@ -56,7 +55,7 @@ export async function emitTypeSpec(
return emitter;
}

type EmitterSpies = Record<string, SinonSpy>;
type EmitterSpies = Record<string, MockInstance>;
function emitterSpies(emitter: typeof TypeEmitter<any, any>) {
const spies: EmitterSpies = {};
const methods = Object.getOwnPropertyNames(emitter.prototype);
Expand All @@ -67,7 +66,7 @@ function emitterSpies(emitter: typeof TypeEmitter<any, any>) {
return spies;
}
if (typeof (emitter.prototype as any)[key] !== "function") continue;
spies[key] = spy(emitter.prototype, key as any);
spies[key] = vi.spyOn(emitter.prototype, key as any);
}

return spies;
Expand All @@ -79,10 +78,6 @@ function assertSpiesCalled(
) {
for (const [key, spy] of Object.entries(spies)) {
const expectedCount = (callCounts as any)[key] ?? 1;
assert.equal(
spy.callCount,
expectedCount,
`Emitter method ${key} should called ${expectedCount} time(s), was called ${spy.callCount} time(s)`
);
expect(spy).toHaveBeenCalledTimes(expectedCount);
}
}
16 changes: 8 additions & 8 deletions packages/eslint-plugin-typespec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,18 @@
},
"devDependencies": {
"@types/node": "~18.11.19",
"@typescript-eslint/parser": "^7.5.0",
"@typescript-eslint/rule-tester": "~7.5.0",
"@typescript-eslint/types": "^7.5.0",
"@vitest/coverage-v8": "^1.4.0",
"@vitest/ui": "^1.4.0",
"@typescript-eslint/parser": "^7.6.0",
"@typescript-eslint/rule-tester": "^7.6.0",
"@typescript-eslint/types": "^7.6.0",
"@vitest/coverage-v8": "^1.5.0",
"@vitest/ui": "^1.5.0",
"c8": "^9.1.0",
"eslint": "^8.57.0",
"rimraf": "~5.0.5",
"typescript": "~5.4.3",
"vitest": "^1.4.0"
"typescript": "~5.4.5",
"vitest": "^1.5.0"
},
"dependencies": {
"@typescript-eslint/utils": "^7.5.0"
"@typescript-eslint/utils": "^7.6.0"
}
}
14 changes: 7 additions & 7 deletions packages/html-program-viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@
"react-is": "~18.2.0"
},
"devDependencies": {
"@babel/core": "^7.24.3",
"@babel/core": "^7.24.4",
"@types/node": "~18.11.19",
"@types/react": "~18.2.73",
"@types/react-dom": "~18.2.23",
"@types/react": "~18.2.78",
"@types/react-dom": "~18.2.25",
"@typespec/compiler": "workspace:~",
"@vitest/coverage-v8": "^1.4.0",
"@vitest/ui": "^1.4.0",
"@vitest/coverage-v8": "^1.5.0",
"@vitest/ui": "^1.5.0",
"c8": "^9.1.0",
"rimraf": "~5.0.5",
"typescript": "~5.4.3",
"vitest": "^1.4.0"
"typescript": "~5.4.5",
"vitest": "^1.5.0"
}
}
8 changes: 4 additions & 4 deletions packages/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@
"@typespec/compiler": "workspace:~",
"@typespec/library-linter": "workspace:~",
"@typespec/tspd": "workspace:~",
"@vitest/coverage-v8": "^1.4.0",
"@vitest/ui": "^1.4.0",
"@vitest/coverage-v8": "^1.5.0",
"@vitest/ui": "^1.5.0",
"c8": "^9.1.0",
"rimraf": "~5.0.5",
"typescript": "~5.4.3",
"vitest": "^1.4.0"
"typescript": "~5.4.5",
"vitest": "^1.5.0"
}
}
10 changes: 5 additions & 5 deletions packages/internal-build-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
],
"dependencies": {
"@pnpm/find-workspace-packages": "^6.0.9",
"cspell": "^8.6.1",
"cspell": "^8.7.0",
"semver": "^7.6.0",
"strip-json-comments": "~5.0.1",
"yargs": "~17.7.2"
Expand All @@ -50,12 +50,12 @@
"@types/node": "~18.11.19",
"@types/semver": "^7.5.8",
"@types/yargs": "~17.0.32",
"@vitest/coverage-v8": "^1.4.0",
"@vitest/ui": "^1.4.0",
"@vitest/coverage-v8": "^1.5.0",
"@vitest/ui": "^1.5.0",
"c8": "^9.1.0",
"chokidar": "~3.6.0",
"rimraf": "~5.0.5",
"typescript": "~5.4.3",
"vitest": "^1.4.0"
"typescript": "~5.4.5",
"vitest": "^1.5.0"
}
}
10 changes: 5 additions & 5 deletions packages/json-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@
"@typespec/internal-build-utils": "workspace:~",
"@typespec/library-linter": "workspace:~",
"@typespec/tspd": "workspace:~",
"@vitest/coverage-v8": "^1.4.0",
"@vitest/ui": "^1.4.0",
"@vitest/coverage-v8": "^1.5.0",
"@vitest/ui": "^1.5.0",
"ajv": "~8.12.0",
"ajv-formats": "~2.1.1",
"ajv-formats": "~3.0.1",
"c8": "^9.1.0",
"rimraf": "~5.0.5",
"typescript": "~5.4.3",
"vitest": "^1.4.0"
"typescript": "~5.4.5",
"vitest": "^1.5.0"
},
"dependencies": {
"yaml": "~2.4.1"
Expand Down
8 changes: 4 additions & 4 deletions packages/library-linter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@
"devDependencies": {
"@types/node": "~18.11.19",
"@typespec/compiler": "workspace:~",
"@vitest/coverage-v8": "^1.4.0",
"@vitest/ui": "^1.4.0",
"@vitest/coverage-v8": "^1.5.0",
"@vitest/ui": "^1.5.0",
"c8": "^9.1.0",
"rimraf": "~5.0.5",
"typescript": "~5.4.3",
"vitest": "^1.4.0"
"typescript": "~5.4.5",
"vitest": "^1.5.0"
}
}
10 changes: 5 additions & 5 deletions packages/monarch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@
],
"devDependencies": {
"@types/node": "~18.11.19",
"@vitest/coverage-v8": "^1.4.0",
"@vitest/ui": "^1.4.0",
"@vitest/coverage-v8": "^1.5.0",
"@vitest/ui": "^1.5.0",
"c8": "^9.1.0",
"happy-dom": "^14.3.9",
"happy-dom": "^14.7.1",
"rimraf": "~5.0.5",
"typescript": "~5.4.3",
"vitest": "^1.4.0"
"typescript": "~5.4.5",
"vitest": "^1.5.0"
},
"dependencies": {
"monaco-editor-core": "^0.47.0"
Expand Down
8 changes: 4 additions & 4 deletions packages/openapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@
"@typespec/library-linter": "workspace:~",
"@typespec/rest": "workspace:~",
"@typespec/tspd": "workspace:~",
"@vitest/coverage-v8": "^1.4.0",
"@vitest/ui": "^1.4.0",
"@vitest/coverage-v8": "^1.5.0",
"@vitest/ui": "^1.5.0",
"c8": "^9.1.0",
"rimraf": "~5.0.5",
"typescript": "~5.4.3",
"vitest": "^1.4.0"
"typescript": "~5.4.5",
"vitest": "^1.5.0"
}
}
Loading
Loading