Skip to content
Merged
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
13 changes: 13 additions & 0 deletions .chronus/changes/upgrade-dependencies-2026-09-01-12-30-00.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
changeKind: dependencies
packages:
- "@typespec/graphql"
- "@typespec/html-program-viewer"
- "@typespec/http"
- "@typespec/http-server-js"
- "@typespec/playground"
- "@typespec/tspd"
- "typespec-vscode"
---

Update dependencies and keep upgraded build tooling compatible.
2 changes: 1 addition & 1 deletion packages/graphql/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*.ts", "src/**/*.tsx"],
"include": ["src/**/*.ts", "src/**/*.tsx", "generated-defs/**/*.ts"],
"exclude": ["**/*.test.*"],
Comment thread
iscai-msft marked this conversation as resolved.
"references": [
{ "path": "../compiler/tsconfig.build.json" },
Expand Down
9 changes: 9 additions & 0 deletions packages/graphql/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,14 @@ export default mergeConfig(
conditions: ["development"],
dedupe: ["@alloy-js/core", "graphql"],
},
ssr: {
// Force `graphql` (and packages that depend on it) through Vite's module graph instead of
// Node's native resolver, so all consumers share the exact same `graphql` module instance.
// Without this, `@pinterest/alloy-graphql`'s own `graphql` import can resolve through a
// different ESM/CJS entry point than the emitter's, producing two distinct classes and
// "Cannot use GraphQL*Type from another module or realm" errors even though both point at
// the very same installed version.
noExternal: ["graphql", "@pinterest/alloy-graphql"],
Comment thread
iscai-msft marked this conversation as resolved.
},
}),
);
2 changes: 1 addition & 1 deletion packages/html-program-viewer/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default defineConfig({
cssFileName: "style",
formats: ["es"],
},
rollupOptions: {
rolldownOptions: {
external: (id) => externals.some((x) => id.startsWith(x)),
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/html-program-viewer/vite.emitter.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default defineConfig({
},
outDir: "dist/emitter",

rollupOptions: {
rolldownOptions: {
external: externals,
},
},
Expand Down
24 changes: 12 additions & 12 deletions packages/http-server-js/generated-defs/package.json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
export const hsjsDependencies: Record<string, string> = {
"@types/express": "^5.0.6",
"@types/morgan": "^1.9.10",
"@types/node": "^26.0.0",
"@types/node": "^26.3.0",
"@types/swagger-ui-express": "^4.1.8",
"@typespec/compiler": "workspace:^",
"@typespec/http": "workspace:^",
Expand All @@ -15,21 +15,21 @@ export const hsjsDependencies: Record<string, string> = {
"@typespec/openapi3": "workspace:^",
"@typespec/spector": "workspace:^",
"@typespec/tspd": "workspace:^",
"@vitest/coverage-v8": "^4.1.3",
"@vitest/ui": "^4.1.3",
"@vitest/coverage-v8": "^4.1.11",
"@vitest/ui": "^4.1.11",
"decimal.js": "^10.6.0",
"express": "^5.2.1",
"@inquirer/prompts": "^8.4.1",
"morgan": "^1.10.1",
"ora": "^9.3.0",
"p-limit": "^7.3.0",
"@inquirer/prompts": "^8.6.0",
"morgan": "^1.11.0",
"ora": "^9.4.1",
"p-limit": "^7.3.1",
"pathe": "^2.0.3",
"picocolors": "^1.1.1",
"swagger-ui-express": "^5.0.1",
"temporal-polyfill": "^1.0.1",
"temporal-polyfill": "^1.0.4",
"typescript": "~6.0.2",
"vitest": "^4.1.3",
"yargs": "^18.0.0",
"prettier": "^3.9.5",
"yaml": "^2.8.3",
"vitest": "^4.1.11",
"yargs": "^18.1.0",
"prettier": "^3.9.6",
"yaml": "^2.9.0",
};
2 changes: 1 addition & 1 deletion packages/playground-website/vite.lib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default defineConfig({
},
outDir: "dist/lib",

rollupOptions: {
rolldownOptions: {
external: (id) => {
const normalized = id.replace(/\\/g, "/");
return (
Expand Down
14 changes: 6 additions & 8 deletions packages/playground/src/monaco-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@ export function registerMonacoDefaultWorkersForVite() {
getWorker: async function (workerId: string, label: string) {
switch (label) {
case "json": {
const { default: jsonWorker } = await import(
"monaco-editor/esm/vs/language/json/json.worker?worker" as any
);
return jsonWorker();
const { default: JsonWorker } =
await import("monaco-editor/language/json/json.worker.js?worker");
return new JsonWorker();
Comment thread
iscai-msft marked this conversation as resolved.
}
default: {
const { default: editorWorker } = await import(
"monaco-editor/esm/vs/editor/editor.worker?worker" as any
);
return editorWorker();
const { default: EditorWorker } =
await import("monaco-editor/editor/editor.worker.js?worker");
return new EditorWorker();
}
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/playground/src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
2 changes: 1 addition & 1 deletion packages/playground/src/vite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function definePlaygroundViteConfig(config: PlaygroundUserConfig): UserCo
build: {
target: "esnext",
chunkSizeWarningLimit: 5000,
rollupOptions: {
rolldownOptions: {
output: {
manualChunks(id) {
if (id.includes("/node_modules/monaco-editor/esm/vs/editor")) {
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export default defineConfig({
formats: ["es"],
},

rollupOptions: {
external: (id) => externals.some((x) => id.startsWith(x)),
rolldownOptions: {
external: (id) => !id.endsWith("?worker") && externals.some((x) => id.startsWith(x)),
},
},
assetsInclude: [/\.tsp$/],
Expand Down
2 changes: 1 addition & 1 deletion packages/react-components/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default defineConfig({
formats: ["es"],
},

rollupOptions: {
rolldownOptions: {
external: (id) => externals.some((x) => id.startsWith(x)),
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/spec-dashboard/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default defineConfig({
formats: ["es"],
},

rollupOptions: {
rolldownOptions: {
external: (id) => externals.some((x) => id.startsWith(x)),
},
},
Expand Down
6 changes: 3 additions & 3 deletions packages/typespec-vscode/ThirdPartyNotices.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ granted herein, whether by implication, estoppel or otherwise.
2. @babel/helper-validator-identifier version 7.29.7 (https://github.com/babel/babel)
3. ajv version 8.20.0 (ajv-validator/ajv)
4. balanced-match version 4.0.4 (https://github.com/juliangruber/balanced-match)
5. brace-expansion version 5.0.7 (https://github.com/juliangruber/brace-expansion)
5. brace-expansion version 5.0.9 (https://github.com/juliangruber/brace-expansion)
6. change-case version 5.4.4 (https://github.com/blakeembrey/change-case)
7. cross-spawn version 7.0.6 (git@github.com:moxystudio/node-cross-spawn)
8. fast-deep-equal version 3.1.3 (https://github.com/epoberezkin/fast-deep-equal)
9. fast-uri version 3.1.4 (https://github.com/fastify/fast-uri)
9. fast-uri version 3.1.6 (https://github.com/fastify/fast-uri)
10. is-unicode-supported version 2.1.0 (sindresorhus/is-unicode-supported)
11. isexe version 2.0.0 (https://github.com/isaacs/isexe)
12. isexe version 4.0.0 (https://github.com/isaacs/isexe)
13. js-tokens version 4.0.0 (lydell/js-tokens)
14. json-schema-traverse version 1.0.0 (https://github.com/epoberezkin/json-schema-traverse)
15. minimatch version 10.2.5 (git@github.com:isaacs/minimatch)
15. minimatch version 10.2.6 (git@github.com:isaacs/minimatch)
16. mustache version 4.2.0 (https://github.com/janl/mustache.js)
17. path-key version 3.1.1 (sindresorhus/path-key)
18. picocolors version 1.1.1 (alexeyraspopov/picocolors)
Expand Down
2 changes: 2 additions & 0 deletions packages/typespec-vscode/src/tsp-language-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ export class TspLanguageClient {
const options: LanguageClientOptions = {
synchronize: {
// Synchronize the setting section 'typespec' to the server
// Migrating to the pull configuration model is tracked in https://github.com/microsoft/typespec/issues/11829
// oxlint-disable-next-line typescript/no-deprecated
Comment thread
iscai-msft marked this conversation as resolved.
configurationSection: "typespec",
fileEvents: watchers,
},
Expand Down
Loading
Loading