Skip to content

Commit 509e86e

Browse files
simeng-lidarcyYe
andauthored
fix(deps): update withtyped and cloud dependency version (#6538)
* fix(deps): update withtyped and cloud dependency version update withtyped and cloud dependency version * chore: update cloud dependency * chore(core): update cloud client utils type --------- Co-authored-by: Darcy Ye <darcyye@silverhand.io>
1 parent b00ec49 commit 509e86e

File tree

9 files changed

+154
-110
lines changed

9 files changed

+154
-110
lines changed

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"@types/tar": "^6.1.12",
7575
"@types/yargs": "^17.0.13",
7676
"@vitest/coverage-v8": "^2.0.0",
77-
"@withtyped/server": "^0.13.6",
77+
"@withtyped/server": "^0.14.0",
7878
"eslint": "^8.56.0",
7979
"lint-staged": "^15.0.0",
8080
"prettier": "^3.0.0",

packages/connectors/connector-logto-email/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"access": "public"
5353
},
5454
"devDependencies": {
55-
"@logto/cloud": "0.2.5-3452c56",
55+
"@logto/cloud": "0.2.5-582d792",
5656
"@silverhand/eslint-config": "6.0.1",
5757
"@silverhand/ts-config": "6.0.0",
5858
"@types/node": "^20.11.20",

packages/console/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"devDependencies": {
2828
"@fontsource/roboto-mono": "^5.0.0",
2929
"@jest/types": "^29.5.0",
30-
"@logto/cloud": "0.2.5-9a1b047",
30+
"@logto/cloud": "0.2.5-582d792",
3131
"@logto/connector-kit": "workspace:^4.0.0",
3232
"@logto/core-kit": "workspace:^2.5.0",
3333
"@logto/elements": "workspace:^0.0.0",
@@ -59,7 +59,7 @@
5959
"@types/react-modal": "^3.13.1",
6060
"@types/react-syntax-highlighter": "^15.5.1",
6161
"@vitejs/plugin-react": "^4.3.1",
62-
"@withtyped/client": "^0.8.7",
62+
"@withtyped/client": "^0.8.8",
6363
"classnames": "^2.3.1",
6464
"clean-deep": "^3.4.0",
6565
"date-fns": "^2.29.3",

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@silverhand/essentials": "^2.9.1",
4848
"@silverhand/slonik": "31.0.0-beta.2",
4949
"@simplewebauthn/server": "^10.0.0",
50-
"@withtyped/client": "^0.8.7",
50+
"@withtyped/client": "^0.8.8",
5151
"camelcase": "^8.0.0",
5252
"camelcase-keys": "^9.1.3",
5353
"chalk": "^5.3.0",
@@ -96,7 +96,7 @@
9696
"zod": "^3.23.8"
9797
},
9898
"devDependencies": {
99-
"@logto/cloud": "0.2.5-a6cff75",
99+
"@logto/cloud": "0.2.5-582d792",
100100
"@silverhand/eslint-config": "6.0.1",
101101
"@silverhand/ts-config": "6.0.0",
102102
"@types/adm-zip": "^0.5.5",

packages/core/src/libraries/quota.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
reportSubscriptionUpdates,
99
isReportSubscriptionUpdatesUsageKey,
1010
} from '#src/utils/subscription/index.js';
11-
import { type SubscriptionQuota } from '#src/utils/subscription/types.js';
11+
import { type SubscriptionQuota, type SubscriptionUsage } from '#src/utils/subscription/types.js';
1212

1313
import { type CloudConnectionLibrary } from './cloud-connection.js';
1414

@@ -24,7 +24,7 @@ const shouldReportSubscriptionUpdates = (planId: string, key: keyof Subscription
2424
planId === ReservedPlanId.Pro && isReportSubscriptionUpdatesUsageKey(key);
2525

2626
export const createQuotaLibrary = (cloudConnection: CloudConnectionLibrary) => {
27-
const guardTenantUsageByKey = async (key: keyof SubscriptionQuota) => {
27+
const guardTenantUsageByKey = async (key: keyof SubscriptionUsage) => {
2828
const { isCloud, isIntegrationTest } = EnvSet.values;
2929

3030
// Cloud only feature, skip in non-cloud environments
@@ -146,7 +146,7 @@ export const createQuotaLibrary = (cloudConnection: CloudConnectionLibrary) => {
146146
);
147147
};
148148

149-
const reportSubscriptionUpdatesUsage = async (key: keyof SubscriptionQuota) => {
149+
const reportSubscriptionUpdatesUsage = async (key: keyof SubscriptionUsage) => {
150150
const { isCloud, isIntegrationTest } = EnvSet.values;
151151

152152
// Cloud only feature, skip in non-cloud environments

packages/core/src/middleware/koa-quota-guard.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { type Nullable } from '@silverhand/essentials';
22
import type { MiddlewareType } from 'koa';
33

44
import { type QuotaLibrary } from '#src/libraries/quota.js';
5-
import { type SubscriptionQuota } from '#src/utils/subscription/types.js';
5+
import { type SubscriptionUsage } from '#src/utils/subscription/types.js';
66

77
type Method = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'COPY' | 'HEAD' | 'OPTIONS';
88

99
type UsageGuardConfig = {
10-
key: keyof SubscriptionQuota;
10+
key: keyof SubscriptionUsage;
1111
quota: QuotaLibrary;
1212
/** Guard usage only for the specified method types. Guard all if not provided. */
1313
methods?: Method[];

packages/core/src/utils/subscription/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export type ReportSubscriptionUpdatesUsageKey = RouteRequestBodyType<
3838

3939
// Have to manually define this variable since we can only get the literal union from the @logto/cloud/routes module.
4040
export const allReportSubscriptionUpdatesUsageKeys = Object.freeze([
41-
'tokenLimit',
4241
'machineToMachineLimit',
4342
'resourcesLimit',
4443
'mfaEnabled',

packages/toolkit/connector-kit/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
"dependencies": {
3737
"@logto/language-kit": "workspace:^1.1.0",
3838
"@silverhand/essentials": "^2.9.1",
39-
"@withtyped/client": "^0.8.7",
40-
"@withtyped/server": "^0.13.6"
39+
"@withtyped/client": "^0.8.8",
40+
"@withtyped/server": "^0.14.0"
4141
},
4242
"optionalDependencies": {
4343
"zod": "^3.23.8"

0 commit comments

Comments
 (0)