Skip to content

Commit

Permalink
Update dependencies - feb 2024 (microsoft#2900)
Browse files Browse the repository at this point in the history
General dependency updates, notable:
- typescript 5.3
- chronus 0.6.0 (BREAKING  THE CHANGELOG FORMAT)
  • Loading branch information
timotheeguerin authored Feb 8, 2024
1 parent 173c0de commit 7452fe9
Show file tree
Hide file tree
Showing 44 changed files with 4,227 additions and 4,760 deletions.
8 changes: 0 additions & 8 deletions .changeset/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/config.json

This file was deleted.

23 changes: 0 additions & 23 deletions .chronus.yaml

This file was deleted.

26 changes: 26 additions & 0 deletions .chronus/changes/update-dependencies-feb-2024-2024-1-8-21-21-28.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
# Change versionKind to one of: internal, fix, feature, deprecation, breaking
changeKind: dependencies
packages:
- "@typespec/bundler"
- "@typespec/compiler"
- "@typespec/eslint-config-typespec"
- "@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-vs
- typespec-vscode
- "@typespec/versioning"
---

Update dependencies
55 changes: 55 additions & 0 deletions .chronus/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
baseBranch: main

changeKinds:
internal:
versionType: none
title: Internal
description: Internal changes that are not user facing

fix:
versionType: patch
title: Bug Fix
description: Fixes to existing features

dependencies:
versionType: patch
title: Bump dependencies
description: Bumps dependencies

feature:
versionType: minor
title: Feature
description: Adds new features

deprecation:
versionType: minor
title: Deprecation
description: Change that deprecate an existing feature but is not breaking.

breaking:
versionType: major
title: Breaking Change
description: Changes that break existing features

versionPolicies:
- name: typespec
type: lockstep
step: minor
packages:
- "@typespec/compiler"
- "@typespec/http"
- "@typespec/versioning"
- "@typespec/rest"
- "@typespec/openapi"
- "@typespec/openapi3"
- "@typespec/protobuf"
- "@typespec/prettier-plugin-typespec"
- "@typespec/eslint-config-typespec"
- "@typespec/eslint-plugin"
- "@typespec/html-program-viewer"
- "@typespec/json-schema"
- "@typespec/internal-build-utils"
- "typespec-vs"
- "typespec-vscode"
- "@typespec/library-linter"
- "@typespec/best-practices"
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
**/.docusaurus/
common/temp/
common/scripts/
common/changes/
.chronus/changes/

# Pnpm lock file
pnpm-lock.yaml
Expand Down
16 changes: 8 additions & 8 deletions docs/extending-typespec/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,20 +185,20 @@ TypeSpec libraries are defined using `peerDependencies` so we don't end-up with
```jsonc
{
"dependencies": {
"yaml": "~2.3.1" // This is a regular package this library/emitter will use
"yaml": "~2.3.1", // This is a regular package this library/emitter will use
},
"peerDependencies": {
// Those are all TypeSpec libraries this library/emitter depend on
"@typespec/compiler": "~0.43.0",
"@typespec/http": "~0.43.1",
"@typespec/openapi": "~0.43.0"
"@typespec/openapi": "~0.43.0",
},
"devDependencies": {
// This TypeSpec library is only used in the tests but is not required to use this library.
"@typespec/versioning": "~0.43.0",
// Typescript is only used during development
"typescript": "~5.0.2"
}
"typescript": "~5.0.2",
},
}
```

Expand Down Expand Up @@ -258,13 +258,13 @@ export const MyTestLibrary = createTestLibrary({
"exports": {
".": {
"default": "./dist/src/index.js",
"types": "./dist/src/index.d.ts"
"types": "./dist/src/index.d.ts",
},
"./testing": {
"default": "./dist/src/testing/index.js",
"types": "./dist/src/testing/index.d.ts"
}
}
"types": "./dist/src/testing/index.d.ts",
},
},
}
```

Expand Down
3 changes: 3 additions & 0 deletions eng/pipelines/jobs/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ steps:
- ${{ if ne(variables['Agent.OS'], 'Windows_NT') }}:
- template: ../templates/install-browsers.yml

- script: pnpm run check-version-mismatch
displayName: Check version mismatch

- template: ../templates/build.yml

- script: pnpm run test-official
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/pr-tryit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
steps:
- checkout: self

- script: npx -p @chronus/github-pr-commenter chronus-github-pr-commenter verify
- script: npx -p @chronus/github-pr-commenter@0.2.0 chronus-github-pr-commenter verify
displayName: Make comment about changes
env:
GITHUB_TOKEN: $(azuresdk-github-pat)
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@
"watch": "tsc --build ./tsconfig.ws.json --watch"
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@chronus/chronus": "^0.5.1",
"@changesets/cli": "^2.27.1",
"@chronus/chronus": "^0.6.0",
"@pnpm/find-workspace-packages": "^6.0.9",
"c8": "^8.0.1",
"cspell": "^6.31.1",
"prettier": "~3.1.1",
"c8": "^9.1.0",
"cspell": "^8.3.2",
"prettier": "~3.2.5",
"prettier-plugin-organize-imports": "~3.2.4",
"rimraf": "~5.0.1",
"syncpack": "^11.2.1",
"rimraf": "~5.0.5",
"syncpack": "^12.3.0",
"typescript": "~5.3.3",
"vitest": "^1.1.0"
"vitest": "^1.2.2"
},
"syncpack": {
"dependencyTypes": [
Expand Down
24 changes: 12 additions & 12 deletions packages/best-practices/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@
"!dist/test/**"
],
"peerDependencies": {
"@typespec/compiler": "workspace:~0.53.1"
"@typespec/compiler": "workspace:~"
},
"devDependencies": {
"@types/node": "~18.11.9",
"@typespec/compiler": "workspace:~0.53.1",
"@typespec/eslint-config-typespec": "workspace:~0.53.0",
"@typespec/eslint-plugin": "workspace:~0.53.0",
"eslint": "^8.55.0",
"vitest": "^1.2.0",
"@vitest/coverage-v8": "^1.1.0",
"@vitest/ui": "~1.1.3",
"c8": "~8.0.1",
"rimraf": "~5.0.1",
"typescript": "~5.3.3"
"@types/node": "~18.11.19",
"@typespec/compiler": "workspace:~",
"@typespec/eslint-config-typespec": "workspace:~",
"@typespec/eslint-plugin": "workspace:~",
"@vitest/coverage-v8": "^1.2.2",
"@vitest/ui": "^1.2.2",
"c8": "^9.1.0",
"eslint": "^8.56.0",
"rimraf": "~5.0.5",
"typescript": "~5.3.3",
"vitest": "^1.2.2"
}
}
22 changes: 11 additions & 11 deletions packages/bundle-uploader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,24 @@
"!dist/test/**"
],
"dependencies": {
"@azure/identity": "~4.0.0",
"@azure/identity": "~4.0.1",
"@azure/storage-blob": "~12.17.0",
"@pnpm/find-workspace-packages": "^6.0.9",
"@typespec/bundler": "workspace:~0.1.0",
"@typespec/bundler": "workspace:~",
"json5": "^2.2.3",
"picocolors": "~1.0.0",
"semver": "^7.5.4"
"semver": "^7.6.0"
},
"devDependencies": {
"@types/node": "~18.11.9",
"@types/node": "~18.11.19",
"@types/semver": "^7.5.6",
"@typespec/eslint-config-typespec": "workspace:~0.53.0",
"@vitest/coverage-v8": "^1.1.0",
"@vitest/ui": "~1.1.3",
"c8": "~8.0.1",
"eslint": "^8.55.0",
"rimraf": "~5.0.1",
"@typespec/eslint-config-typespec": "workspace:~",
"@vitest/coverage-v8": "^1.2.2",
"@vitest/ui": "^1.2.2",
"c8": "^9.1.0",
"eslint": "^8.56.0",
"rimraf": "~5.0.5",
"typescript": "~5.3.3",
"vitest": "^1.2.0"
"vitest": "^1.2.2"
}
}
41 changes: 19 additions & 22 deletions packages/bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"typespec"
],
"type": "module",
"bin": {
"typespec-bundler": "./dist/src/cli.js"
},
"main": "dist/src/index.js",
"exports": {
".": "./dist/src/index.js",
Expand All @@ -45,28 +42,28 @@
"!dist/test/**"
],
"dependencies": {
"@typespec/compiler": "workspace:~0.53.1",
"@rollup/plugin-virtual": "~3.0.1",
"@rollup/plugin-commonjs": "~25.0.4",
"@rollup/plugin-alias": "~5.1.0",
"@rollup/plugin-commonjs": "~25.0.7",
"@rollup/plugin-json": "~6.1.0",
"@rollup/plugin-node-resolve": "~15.2.1",
"@rollup/plugin-multi-entry": "~6.0.0",
"rollup": "~4.9.0",
"@rollup/plugin-alias": "~5.0.0",
"yargs": "~17.7.2",
"picocolors": "~1.0.0"
"@rollup/plugin-multi-entry": "~6.0.1",
"@rollup/plugin-node-resolve": "~15.2.3",
"@rollup/plugin-virtual": "~3.0.2",
"@typespec/compiler": "workspace:~",
"picocolors": "~1.0.0",
"rollup": "~4.9.6",
"yargs": "~17.7.2"
},
"devDependencies": {
"@types/node": "~18.11.9",
"@typespec/eslint-config-typespec": "workspace:~0.53.0",
"eslint": "^8.55.0",
"vitest": "^1.2.0",
"@vitest/coverage-v8": "^1.1.0",
"@vitest/ui": "~1.1.3",
"c8": "~8.0.1",
"rimraf": "~5.0.1",
"@types/node": "~18.11.19",
"@types/yargs": "~17.0.32",
"@typespec/eslint-config-typespec": "workspace:~",
"@vitest/coverage-v8": "^1.2.2",
"@vitest/ui": "^1.2.2",
"c8": "^9.1.0",
"eslint": "^8.56.0",
"rimraf": "~5.0.5",
"typescript": "~5.3.3",
"vite": "^5.0.12",
"@types/yargs": "~17.0.32"
"vite": "^5.1.0",
"vitest": "^1.2.2"
}
}
2 changes: 1 addition & 1 deletion packages/bundler/src/vite/vite-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function typespecBundlePlugin(options: TypeSpecBundlePluginOptions): Plug
await watchBundleLibrary(config.root, library, (bundle) => {
bundles[library] = bundle;
definitions[library] = bundle.definition;
server.ws.send({ type: "full-reload" });
server.hot.send({ type: "full-reload" });
});
}

Expand Down
Loading

0 comments on commit 7452fe9

Please sign in to comment.