Skip to content

Commit

Permalink
Update dependency typescript to ^4.4.2 (#6432)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] committed Sep 1, 2021
1 parent b45536e commit 0a189d5
Show file tree
Hide file tree
Showing 39 changed files with 77 additions and 43 deletions.
34 changes: 34 additions & 0 deletions .changeset/sixty-windows-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
'@keystone-ui/website': patch
'@keystone-next/website': patch
'@keystone-next/example-assets-cloud': patch
'@keystone-next/example-assets-local': patch
'@keystone-next/example-auth': patch
'@keystone-next/examples-app-basic': patch
'@keystone-next/example-ecommerce': patch
'@keystone-next/example-embedded-nextjs': patch
'@keystone-next/example-playground': patch
'@keystone-next/example-roles': patch
'@keystone-next/example-blog': patch
'@keystone-next/example-custom-admin-ui-logo': patch
'@keystone-next/example-custom-admin-ui-navigation': patch
'@keystone-next/example-custom-admin-ui-pages': patch
'@keystone-next/example-custom-field': patch
'@keystone-next/example-custom-field-view': patch
'@keystone-next/example-default-values': patch
'@keystone-next/example-document-field': patch
'@keystone-next/example-extend-graphql-schema': patch
'@keystone-next/example-json-field': patch
'@keystone-next/example-task-manager': patch
'@keystone-next/example-testing': patch
'@keystone-next/example-virtual-field': patch
'@keystone-next/example-with-auth': patch
'@keystone-next/auth': patch
'@keystone-next/fields-document': patch
'@keystone-next/keystone': patch
'@keystone-next/api-tests-legacy': patch
'@keystone-next/test-projects-basic': patch
'@keystone-next/test-projects-crud-notifications': patch
---

Updated `typescript` dependency to `^4.4.2`.
2 changes: 1 addition & 1 deletion design-system/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"tinycolor2": "^1.4.2"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@types/lodash.debounce": "^4.0.6",
"next-sitemap": "^1.6.164",
"start-server-and-test": "^1.13.1",
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion examples-staging/assets-cloud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dotenv": "^10.0.0"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion examples-staging/assets-local/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@keystone-next/keystone": "^24.0.0"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion examples-staging/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"react-dom": "^17.0.2"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion examples-staging/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"react-dom": "^17.0.2"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion examples-staging/ecommerce/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"stripe": "^8.171.0"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion examples-staging/embedded-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"react-dom": "^17.0.2"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion examples-staging/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@keystone-next/keystone": "^24.0.0"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": ">=v12.13.1"
Expand Down
2 changes: 1 addition & 1 deletion examples-staging/roles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"react-dom": "^17.0.2"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion examples/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@keystone-next/keystone": "^24.0.0"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-admin-ui-logo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"react": "^17.0.2"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-admin-ui-navigation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"react": "^17.0.2"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-admin-ui-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"react": "^17.0.2"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-field-view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"react": "^17.0.2"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-field/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"react": "^17.0.2"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion examples/default-values/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@keystone-next/keystone": "^24.0.0"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion examples/document-field/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"react": "^17.0.2"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion examples/extend-graphql-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@keystone-next/keystone": "^24.0.0"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion examples/json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@keystone-next/keystone": "^24.0.0"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion examples/task-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@keystone-next/keystone": "^24.0.0"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion examples/testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"devDependencies": {
"babel-jest": "^27.1.0",
"jest": "^27.1.0",
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion examples/virtual-field/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@keystone-next/keystone": "^24.0.0"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion examples/with-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@keystone-next/keystone": "^24.0.0"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"remark-toc": "^5.1.1",
"rimraf": "^3.0.2",
"terminal-link-cli": "^3.0.0",
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"prettier": {
"proseWrap": "preserve",
Expand Down
2 changes: 1 addition & 1 deletion packages/auth/src/lib/findMatchingIdentity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export async function findMatchingIdentity(
try {
const item = await dbItemAPI.findOne({ where: { [identityField]: identity } });
return { success: true, item };
} catch (err) {
} catch (err: any) {
if (err.message === 'You do not have access to this resource') {
return { success: false, code: 'IDENTITY_NOT_FOUND' };
}
Expand Down
2 changes: 1 addition & 1 deletion packages/fields-document/src/relationship-data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function addRelationshipData(
}}}`,
variables: { id },
});
} catch (err) {
} catch (err: any) {
if (err.message === 'You do not have access to this resource') {
// If we're unable to find the item (e.g. we have a dangling reference), or access was denied
// then simply return { id } and leave `label` and `data` undefined.
Expand Down
2 changes: 1 addition & 1 deletion packages/keystone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"resolve": "^1.20.0",
"source-map-support": "^0.5.19",
"supertest": "^6.1.6",
"typescript": "^4.3.5",
"typescript": "^4.4.2",
"uid-safe": "^2.1.5",
"uuid": "^8.3.2"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ function DeleteButton({
action: async () => {
try {
await deleteItem();
} catch (err) {
} catch (err: any) {
return toasts.addToast({
title: `Failed to delete ${list.singular} item: ${itemLabel}`,
message: err.message,
Expand Down
2 changes: 1 addition & 1 deletion packages/keystone/src/admin-ui/system/generateAdminUI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function getDoesAdminConfigExist() {
const configPath = Path.join(process.cwd(), 'admin', 'config');
resolve.sync(configPath, { extensions: ['.ts', '.tsx', '.js'], preserveSymlinks: false });
return true;
} catch (err) {
} catch (err: any) {
if (err.code === 'MODULE_NOT_FOUND') {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/keystone/src/artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export async function getCommittedArtifacts(
async function readFileButReturnNothingIfDoesNotExist(filename: string) {
try {
return await fs.readFile(filename, 'utf8');
} catch (err) {
} catch (err: any) {
if (err.code === 'ENOENT') {
return;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/keystone/src/lib/core/mutations/create-update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ async function getResolvedData(
resolvedData,
fieldPath,
});
} catch (error) {
} catch (error: any) {
fieldsErrors.push({ error, tag: `${list.listKey}.${fieldPath}` });
}
}
Expand All @@ -268,7 +268,7 @@ async function getResolvedData(
if (list.hooks.resolveInput) {
try {
resolvedData = (await list.hooks.resolveInput({ ...hookArgs, resolvedData })) as any;
} catch (error) {
} catch (error: any) {
throw extensionError(hookName, [{ error, tag: list.listKey }]);
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/keystone/src/lib/core/mutations/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export async function runSideEffectOnlyHook<
if (shouldRunFieldLevelHook(fieldPath)) {
try {
await field.hooks[hookName]?.({ fieldPath, ...args });
} catch (error) {
} catch (error: any) {
fieldsErrors.push({ error, tag: `${list.listKey}.${fieldPath}` });
}
}
Expand All @@ -48,7 +48,7 @@ export async function runSideEffectOnlyHook<
// List hooks
try {
await list.hooks[hookName]?.(args);
} catch (error) {
} catch (error: any) {
throw extensionError(hookName, [{ error, tag: list.listKey }]);
}
}
2 changes: 1 addition & 1 deletion packages/keystone/src/scripts/run/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export const dev = async (cwd: string, shouldDropDatabase: boolean) => {
server.close(async err => {
try {
await disconnect?.();
} catch (disconnectionError) {
} catch (disconnectionError: any) {
if (!err) {
err = disconnectionError;
} else {
Expand Down
2 changes: 1 addition & 1 deletion tests/api-tests/fields/unique.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ testModules
files: { upload: 'local', local: { storagePath: 'tmp_test_files' } },
}),
});
} catch (error) {
} catch (error: any) {
expect(error.message).toMatch(
"isIndexed: 'unique' is not a supported option for field type"
);
Expand Down
2 changes: 1 addition & 1 deletion tests/test-projects/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@keystone-next/keystone": "^24.0.0"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
2 changes: 1 addition & 1 deletion tests/test-projects/crud-notifications/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@keystone-next/keystone": "^24.0.0"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
Loading

0 comments on commit 0a189d5

Please sign in to comment.