Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade packages #401

Merged
merged 3 commits into from
Sep 9, 2022
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@commitlint/types": "^17.0.0",
"husky": "^8.0.0",
"lerna": "^5.0.0",
"typescript": "^4.5.5"
"typescript": "4.7.4"
},
"workspaces": {
"packages": [
Expand Down
18 changes: 9 additions & 9 deletions packages/browser-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
"@logto/browser": "^1.0.0-beta.3"
},
"devDependencies": {
"@parcel/core": "^2.6.2",
"@parcel/transformer-sass": "^2.6.2",
"@silverhand/eslint-config": "^0.17.0",
"@silverhand/eslint-config-react": "^0.17.0",
"@parcel/core": "^2.7.0",
"@parcel/transformer-sass": "^2.7.0",
"@silverhand/eslint-config": "^1.0.0",
"@silverhand/eslint-config-react": "^1.0.0",
"buffer": "^6.0.3",
"eslint": "^8.9.0",
"eslint": "^8.23.0",
"lint-staged": "^13.0.0",
"parcel": "^2.6.2",
"parcel": "^2.7.0",
"postcss": "^8.4.6",
"prettier": "^2.5.1",
"prettier": "^2.7.1",
"process": "^0.11.10",
"stylelint": "^14.8.2",
"typescript": "^4.6.2"
"stylelint": "^14.11.0",
"typescript": "4.7.4"
},
"eslintConfig": {
"extends": "@silverhand",
Expand Down
20 changes: 10 additions & 10 deletions packages/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,28 @@
},
"dependencies": {
"@logto/client": "^1.0.0-beta.3",
"@silverhand/essentials": "^1.1.6",
"@silverhand/essentials": "^1.2.0",
"js-base64": "^3.7.2"
},
"devDependencies": {
"@jest/types": "^27.5.1",
"@parcel/core": "^2.6.2",
"@parcel/packager-ts": "^2.6.2",
"@parcel/transformer-typescript-types": "^2.6.2",
"@silverhand/eslint-config": "^0.17.0",
"@silverhand/ts-config": "^0.17.0",
"@parcel/core": "^2.7.0",
"@parcel/packager-ts": "^2.7.0",
"@parcel/transformer-typescript-types": "^2.7.0",
"@silverhand/eslint-config": "^1.0.0",
"@silverhand/ts-config": "^1.0.0",
"@types/jest": "^27.4.0",
"eslint": "^8.9.0",
"eslint": "^8.23.0",
"jest": "^27.5.1",
"jest-location-mock": "^1.0.9",
"jest-matcher-specific-error": "^1.0.0",
"lint-staged": "^13.0.0",
"node-fetch": "^2.6.7",
"parcel": "^2.6.2",
"prettier": "^2.3.2",
"parcel": "^2.7.0",
"prettier": "^2.7.1",
"text-encoder": "^0.0.4",
"ts-jest": "^27.0.4",
"typescript": "^4.5.5"
"typescript": "4.7.4"
},
"eslintConfig": {
"extends": "@silverhand"
Expand Down
20 changes: 10 additions & 10 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"dependencies": {
"@logto/js": "^1.0.0-beta.2",
"@silverhand/essentials": "^1.1.6",
"@silverhand/essentials": "^1.2.0",
"camelcase-keys": "^7.0.1",
"jose": "^4.3.8",
"lodash.get": "^4.4.2",
Expand All @@ -39,26 +39,26 @@
},
"devDependencies": {
"@jest/types": "^27.5.1",
"@parcel/core": "^2.6.2",
"@parcel/packager-ts": "^2.6.2",
"@parcel/transformer-typescript-types": "^2.6.2",
"@silverhand/eslint-config": "^0.17.0",
"@silverhand/ts-config": "^0.17.0",
"@parcel/core": "^2.7.0",
"@parcel/packager-ts": "^2.7.0",
"@parcel/transformer-typescript-types": "^2.7.0",
"@silverhand/eslint-config": "^1.0.0",
"@silverhand/ts-config": "^1.0.0",
"@types/jest": "^27.4.1",
"@types/lodash.get": "^4.4.6",
"@types/lodash.once": "^4.1.7",
"@types/node": "^17.0.19",
"eslint": "^8.9.0",
"eslint": "^8.23.0",
"jest": "^27.5.1",
"jest-matcher-specific-error": "^1.0.0",
"lint-staged": "^13.0.0",
"nock": "^13.1.3",
"parcel": "^2.6.2",
"prettier": "^2.3.2",
"parcel": "^2.7.0",
"prettier": "^2.7.1",
"text-encoder": "^0.0.4",
"ts-jest": "^27.0.4",
"type-fest": "^2.10.0",
"typescript": "^4.5.5"
"typescript": "4.7.4"
},
"eslintConfig": {
"extends": "@silverhand"
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { Nullable } from '@silverhand/essentials';

export type StorageKey = 'idToken' | 'refreshToken' | 'accessToken' | 'signInSession';

export interface Storage {
export type Storage = {
getItem(key: StorageKey): Promise<Nullable<string>>;
setItem(key: StorageKey, value: string): Promise<void>;
removeItem(key: StorageKey): Promise<void>;
}
};

export type Navigate = (url: string) => void;

Expand Down
10 changes: 5 additions & 5 deletions packages/express-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@
"express-session": "^1.17.3"
},
"devDependencies": {
"@silverhand/eslint-config": "^0.17.0",
"@silverhand/ts-config": "^0.14.0",
"@silverhand/eslint-config": "^1.0.0",
"@silverhand/ts-config": "^1.0.0",
"@types/cookie-parser": "^1.4.3",
"@types/express": "^4.17.13",
"@types/express-session": "^1.17.5",
"@types/node": "^18.6.1",
"eslint": "^8.9.0",
"eslint": "^8.23.0",
"lint-staged": "^13.0.0",
"postcss": "^8.4.6",
"postcss-modules": "^4.3.0",
"prettier": "^2.5.1",
"prettier": "^2.7.1",
"ts-node": "^10.9.1",
"typescript": "^4.5.5"
"typescript": "4.7.4"
},
"eslintConfig": {
"extends": "@silverhand"
Expand Down
20 changes: 10 additions & 10 deletions packages/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,30 @@
},
"devDependencies": {
"@jest/types": "^27.5.1",
"@parcel/core": "^2.6.2",
"@parcel/packager-ts": "^2.6.2",
"@parcel/transformer-typescript-types": "^2.6.2",
"@silverhand/eslint-config": "^0.17.0",
"@silverhand/ts-config": "^0.14.0",
"@silverhand/ts-config-react": "^0.14.0",
"@parcel/core": "^2.7.0",
"@parcel/packager-ts": "^2.7.0",
"@parcel/transformer-typescript-types": "^2.7.0",
"@silverhand/eslint-config": "^1.0.0",
"@silverhand/ts-config": "^1.0.0",
"@silverhand/ts-config-react": "^1.0.0",
"@types/cookie-parser": "^1.4.3",
"@types/express": "^4.17.13",
"@types/express-session": "^1.17.5",
"@types/jest": "^27.4.0",
"@types/supertest": "^2.0.12",
"cookie-parser": "^1.4.6",
"eslint": "^8.9.0",
"eslint": "^8.23.0",
"express": "^4.18.1",
"express-session": "^1.17.3",
"jest": "^27.5.1",
"jest-location-mock": "^1.0.9",
"jest-matcher-specific-error": "^1.0.0",
"lint-staged": "^13.0.0",
"parcel": "^2.6.2",
"prettier": "^2.3.2",
"parcel": "^2.7.0",
"prettier": "^2.7.1",
"supertest": "^6.2.4",
"ts-jest": "^27.0.4",
"typescript": "^4.5.5"
"typescript": "4.7.4"
},
"peerDependencies": {
"express": ">=4"
Expand Down
2 changes: 2 additions & 0 deletions packages/express/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { LogtoConfig } from '@logto/node';

declare module 'http' {
// Honor module definition
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface IncomingMessage {
session: Record<string, string | undefined>;
}
Expand Down
20 changes: 10 additions & 10 deletions packages/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,33 +29,33 @@
"prepack": "pnpm test"
},
"dependencies": {
"@silverhand/essentials": "^1.1.6",
"@silverhand/essentials": "^1.2.0",
"camelcase-keys": "^7.0.1",
"jose": "^4.3.8",
"lodash.get": "^4.4.2",
"superstruct": "^0.16.0"
},
"devDependencies": {
"@jest/types": "^27.5.1",
"@parcel/core": "^2.6.2",
"@parcel/packager-ts": "^2.6.2",
"@parcel/transformer-typescript-types": "^2.6.2",
"@silverhand/eslint-config": "^0.17.0",
"@silverhand/ts-config": "^0.17.0",
"@parcel/core": "^2.7.0",
"@parcel/packager-ts": "^2.7.0",
"@parcel/transformer-typescript-types": "^2.7.0",
"@silverhand/eslint-config": "^1.0.0",
"@silverhand/ts-config": "^1.0.0",
"@types/jest": "^27.4.1",
"@types/lodash.get": "^4.4.6",
"@types/node": "^17.0.19",
"eslint": "^8.9.0",
"eslint": "^8.23.0",
"jest": "^27.5.1",
"jest-matcher-specific-error": "^1.0.0",
"lint-staged": "^13.0.0",
"nock": "^13.1.3",
"parcel": "^2.6.2",
"prettier": "^2.3.2",
"parcel": "^2.7.0",
"prettier": "^2.7.1",
"text-encoder": "^0.0.4",
"ts-jest": "^27.0.4",
"type-fest": "^2.10.0",
"typescript": "^4.5.5"
"typescript": "4.7.4"
},
"eslintConfig": {
"extends": "@silverhand"
Expand Down
8 changes: 1 addition & 7 deletions packages/js/src/utils/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,5 @@ export class LogtoRequestError extends Error {
}

export class OidcError {
error: string;
errorDescription?: string;

constructor(error: string, errorDescription?: string) {
this.error = error;
this.errorDescription = errorDescription;
}
constructor(public error: string, public errorDescription?: string) {}
}
16 changes: 8 additions & 8 deletions packages/next-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@
"swr": "^1.3.0"
},
"devDependencies": {
"@silverhand/eslint-config": "^0.17.0",
"@silverhand/eslint-config-react": "^0.17.0",
"@silverhand/ts-config": "^0.14.0",
"@silverhand/ts-config-react": "^0.14.0",
"@silverhand/eslint-config": "^1.0.0",
"@silverhand/eslint-config-react": "^1.0.0",
"@silverhand/ts-config": "^1.0.0",
"@silverhand/ts-config-react": "^1.0.0",
"@types/react": "^17.0.39",
"@types/react-dom": "^17.0.11",
"@types/react-router-dom": "^5.3.3",
"eslint": "^8.9.0",
"eslint": "^8.23.0",
"lint-staged": "^13.0.0",
"postcss": "^8.4.6",
"postcss-modules": "^4.3.0",
"prettier": "^2.5.1",
"stylelint": "^14.8.2",
"typescript": "^4.5.5"
"prettier": "^2.7.1",
"stylelint": "^14.11.0",
"typescript": "4.7.4"
},
"stylelint": {
"extends": "@silverhand/eslint-config-react/.stylelintrc"
Expand Down
20 changes: 10 additions & 10 deletions packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,26 @@
},
"devDependencies": {
"@jest/types": "^27.5.1",
"@parcel/core": "^2.6.2",
"@parcel/packager-ts": "^2.6.2",
"@parcel/transformer-typescript-types": "^2.6.2",
"@silverhand/eslint-config": "^0.17.0",
"@silverhand/ts-config": "^0.14.0",
"@silverhand/ts-config-react": "^0.14.0",
"@parcel/core": "^2.7.0",
"@parcel/packager-ts": "^2.7.0",
"@parcel/transformer-typescript-types": "^2.7.0",
"@silverhand/eslint-config": "^1.0.0",
"@silverhand/ts-config": "^1.0.0",
"@silverhand/ts-config-react": "^1.0.0",
"@types/jest": "^27.4.0",
"eslint": "^8.9.0",
"eslint": "^8.23.0",
"jest": "^27.5.1",
"jest-location-mock": "^1.0.9",
"jest-matcher-specific-error": "^1.0.0",
"lint-staged": "^13.0.0",
"next": "^12.2.2",
"next-test-api-route-handler": "^3.1.6",
"parcel": "^2.6.2",
"prettier": "^2.3.2",
"parcel": "^2.7.0",
"prettier": "^2.7.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"ts-jest": "^27.0.4",
"typescript": "^4.5.5"
"typescript": "4.7.4"
},
"peerDependencies": {
"next": ">=12"
Expand Down
2 changes: 2 additions & 0 deletions packages/next/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { NextApiRequest } from 'next';
export type NextRequestWithIronSession = NextApiRequest & { session: IronSession };

declare module 'iron-session' {
// Honor module definition
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface IronSessionData {
accessToken?: string;
idToken?: string;
Expand Down
20 changes: 10 additions & 10 deletions packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,27 @@
},
"dependencies": {
"@logto/client": "^1.0.0-beta.3",
"@silverhand/essentials": "^1.1.6",
"@silverhand/essentials": "^1.2.0",
"js-base64": "^3.7.2",
"node-fetch": "^2.6.7"
},
"devDependencies": {
"@jest/types": "^27.5.1",
"@parcel/core": "^2.6.2",
"@parcel/packager-ts": "^2.6.2",
"@parcel/transformer-typescript-types": "^2.6.2",
"@silverhand/eslint-config": "^0.17.0",
"@silverhand/ts-config": "^0.17.0",
"@parcel/core": "^2.7.0",
"@parcel/packager-ts": "^2.7.0",
"@parcel/transformer-typescript-types": "^2.7.0",
"@silverhand/eslint-config": "^1.0.0",
"@silverhand/ts-config": "^1.0.0",
"@types/jest": "^27.4.0",
"eslint": "^8.9.0",
"eslint": "^8.23.0",
"jest": "^27.5.1",
"jest-location-mock": "^1.0.9",
"jest-matcher-specific-error": "^1.0.0",
"lint-staged": "^13.0.0",
"parcel": "^2.6.2",
"prettier": "^2.3.2",
"parcel": "^2.7.0",
"prettier": "^2.7.1",
"ts-jest": "^27.0.4",
"typescript": "^4.5.5"
"typescript": "4.7.4"
},
"eslintConfig": {
"extends": "@silverhand"
Expand Down
2 changes: 2 additions & 0 deletions packages/node/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { IdTokenClaims } from '@logto/client';

declare module 'http' {
// Honor module definition
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface IncomingMessage {
user: LogtoContext;
}
Expand Down
Loading