Skip to content

Commit

Permalink
Merge pull request backstage#21256 from backstage/renovate/typescript…
Browse files Browse the repository at this point in the history
…-5.x

chore(deps): update dependency typescript to v5.2.2
  • Loading branch information
freben authored Nov 16, 2023
2 parents 4cbd33e + aaa6fb3 commit 11a24e8
Show file tree
Hide file tree
Showing 10 changed files with 56 additions and 28 deletions.
8 changes: 8 additions & 0 deletions .changeset/kind-badgers-rush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@backstage/backend-openapi-utils': patch
'@backstage/plugin-scaffolder-react': patch
'@backstage/plugin-catalog-react': patch
'@backstage/plugin-scaffolder': patch
---

Minor updates for TypeScript 5.2.2+ compatibility
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"semver": "^7.5.3",
"shx": "^0.3.2",
"ts-node": "^10.4.0",
"typescript": "~5.0.0"
"typescript": "~5.2.0"
},
"prettier": "@spotify/prettier-config",
"lint-staged": {
Expand Down
13 changes: 7 additions & 6 deletions packages/backend-openapi-utils/api-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,13 @@ type ComponentTypes<Doc extends RequiredDoc> = Extract<
>;

// @public (undocumented)
type ConvertAll<T, R extends ReadonlyArray<unknown> = []> = T extends [
infer First extends JSONSchema7,
...infer Rest,
]
? ConvertAll<Rest, [...R, FromSchema<First>]>
: R;
type ConvertAll<T extends ReadonlyArray<unknown>> = {
[Index in keyof T]: T[Index] extends JSONSchema7
? FromSchema<T[Index]>
: T[Index];
} & {
length: T['length'];
};

// @public (undocumented)
interface CookieObject extends ParameterObject {
Expand Down
11 changes: 5 additions & 6 deletions packages/backend-openapi-utils/src/types/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,11 @@ export type TuplifyUnion<
/**
* @public
*/
export type ConvertAll<T, R extends ReadonlyArray<unknown> = []> = T extends [
infer First extends JSONSchema7,
...infer Rest,
]
? ConvertAll<Rest, [...R, FromSchema<First>]>
: R;
export type ConvertAll<T extends ReadonlyArray<unknown>> = {
[Index in keyof T]: T[Index] extends JSONSchema7
? FromSchema<T[Index]>
: T[Index];
} & { length: T['length'] };

/**
* @public
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export function EntityAutocompletePicker<
<Box pb={1} pt={1}>
<Typography variant="button" component="label">
{label}
<Autocomplete
<Autocomplete<string, true>
multiple
disableCloseOnSelect
options={availableOptions}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const EntityProcessingStatusPicker = () => {
<Box pb={1} pt={1}>
<Typography variant="button" component="label">
Processing Status
<Autocomplete
<Autocomplete<string, true>
multiple
disableCloseOnSelect
options={availableAdvancedItems}
Expand Down
16 changes: 8 additions & 8 deletions plugins/git-release-manager/api-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,42 +317,42 @@ function LinearProgressWithLabel(props: {
// Warning: (ae-missing-release-tag) "MOCK_RELEASE_BRANCH_NAME_CALVER" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
const MOCK_RELEASE_BRANCH_NAME_CALVER: string;
const MOCK_RELEASE_BRANCH_NAME_CALVER = 'rc/2020.01.01_1';

// Warning: (ae-missing-release-tag) "MOCK_RELEASE_BRANCH_NAME_SEMVER" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
const MOCK_RELEASE_BRANCH_NAME_SEMVER: string;
const MOCK_RELEASE_BRANCH_NAME_SEMVER = 'rc/1.2.3';

// Warning: (ae-missing-release-tag) "MOCK_RELEASE_CANDIDATE_TAG_NAME_CALVER" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
const MOCK_RELEASE_CANDIDATE_TAG_NAME_CALVER: string;
const MOCK_RELEASE_CANDIDATE_TAG_NAME_CALVER = 'rc-2020.01.01_1';

// Warning: (ae-missing-release-tag) "MOCK_RELEASE_CANDIDATE_TAG_NAME_SEMVER" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
const MOCK_RELEASE_CANDIDATE_TAG_NAME_SEMVER: string;
const MOCK_RELEASE_CANDIDATE_TAG_NAME_SEMVER = 'rc-1.2.3';

// Warning: (ae-missing-release-tag) "MOCK_RELEASE_NAME_CALVER" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
const MOCK_RELEASE_NAME_CALVER: string;
const MOCK_RELEASE_NAME_CALVER = 'Version 2020.01.01_1';

// Warning: (ae-missing-release-tag) "MOCK_RELEASE_NAME_SEMVER" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
const MOCK_RELEASE_NAME_SEMVER: string;
const MOCK_RELEASE_NAME_SEMVER = 'Version 1.2.3';

// Warning: (ae-missing-release-tag) "MOCK_RELEASE_VERSION_TAG_NAME_CALVER" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
const MOCK_RELEASE_VERSION_TAG_NAME_CALVER: string;
const MOCK_RELEASE_VERSION_TAG_NAME_CALVER = 'version-2020.01.01_1';

// Warning: (ae-missing-release-tag) "MOCK_RELEASE_VERSION_TAG_NAME_SEMVER" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
const MOCK_RELEASE_VERSION_TAG_NAME_SEMVER: string;
const MOCK_RELEASE_VERSION_TAG_NAME_SEMVER = 'version-1.2.3';

// Warning: (ae-missing-release-tag) "mockBumpedTag" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const TemplateCategoryPicker = () => {
>
Categories
</Typography>
<Autocomplete
<Autocomplete<string, true>
multiple
id="categories-picker"
options={availableTypes}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const TemplateTypePicker = () => {
>
Categories
</Typography>
<Autocomplete
<Autocomplete<string, true>
id="categories-picker"
multiple
options={availableTypes}
Expand Down
26 changes: 23 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -41169,7 +41169,7 @@ __metadata:
semver: ^7.5.3
shx: ^0.3.2
ts-node: ^10.4.0
typescript: ~5.0.0
typescript: ~5.2.0
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -44284,7 +44284,7 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:~5.0.0, typescript@npm:~5.0.4":
"typescript@npm:~5.0.4":
version: 5.0.4
resolution: "typescript@npm:5.0.4"
bin:
Expand All @@ -44304,7 +44304,17 @@ __metadata:
languageName: node
linkType: hard

"typescript@patch:typescript@~5.0.0#~builtin<compat/typescript>, typescript@patch:typescript@~5.0.4#~builtin<compat/typescript>":
"typescript@npm:~5.2.0":
version: 5.2.2
resolution: "typescript@npm:5.2.2"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 7912821dac4d962d315c36800fe387cdc0a6298dba7ec171b350b4a6e988b51d7b8f051317786db1094bd7431d526b648aba7da8236607febb26cf5b871d2d3c
languageName: node
linkType: hard

"typescript@patch:typescript@~5.0.4#~builtin<compat/typescript>":
version: 5.0.4
resolution: "typescript@patch:typescript@npm%3A5.0.4#~builtin<compat/typescript>::version=5.0.4&hash=a1c5e5"
bin:
Expand All @@ -44324,6 +44334,16 @@ __metadata:
languageName: node
linkType: hard

"typescript@patch:typescript@~5.2.0#~builtin<compat/typescript>":
version: 5.2.2
resolution: "typescript@patch:typescript@npm%3A5.2.2#~builtin<compat/typescript>::version=5.2.2&hash=a1c5e5"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 07106822b4305de3f22835cbba949a2b35451cad50888759b6818421290ff95d522b38ef7919e70fb381c5fe9c1c643d7dea22c8b31652a717ddbd57b7f4d554
languageName: node
linkType: hard

"ua-parser-js@npm:^0.7.30":
version: 0.7.33
resolution: "ua-parser-js@npm:0.7.33"
Expand Down

0 comments on commit 11a24e8

Please sign in to comment.