Skip to content

Commit

Permalink
chore: updated retype to v3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklafrance authored Sep 17, 2023
1 parent 2d0fdf1 commit a7aab11
Show file tree
Hide file tree
Showing 12 changed files with 1,563 additions and 1,486 deletions.
12 changes: 6 additions & 6 deletions docs/guides/implement-a-custom-logger.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,44 +16,44 @@ import { LogLevel, type Logger } from "@squide/react-router";
export class CustomLogger implements Logger {
readonly #logLevel: LogLevel;

constructor(logLevel: LogLevel = LogLevel.critical) {
constructor(logLevel: LogLevel = LogLevel.debug) {
this.#logLevel = logLevel;
}

debug(log: string, ...rest: unknown[]): Promise<unknown> {
if (this.#logLevel >= LogLevel.debug) {
if (this.#logLevel <= LogLevel.debug) {
console.log(`[custom-logger] ${log}`, ...rest);
}

return Promise.resolve();
}

information(log: string, ...rest: unknown[]): Promise<unknown> {
if (this.#logLevel >= LogLevel.information) {
if (this.#logLevel <= LogLevel.information) {
console.info(`[custom-logger] ${log}`, ...rest);
}

return Promise.resolve();
}

warning(log: string, ...rest: unknown[]): Promise<unknown> {
if (this.#logLevel >= LogLevel.warning) {
if (this.#logLevel <= LogLevel.warning) {
console.warn(`[custom-logger] ${log}`, ...rest);
}

return Promise.resolve();
}

error(log: string, ...rest: unknown[]): Promise<unknown> {
if (this.#logLevel >= LogLevel.error) {
if (this.#logLevel <= LogLevel.error) {
console.error(`[custom-logger] ${log}`, ...rest);
}

return Promise.resolve();
}

critical(log: string, ...rest: unknown[]): Promise<unknown> {
if (this.#logLevel >= LogLevel.critical) {
if (this.#logLevel <= LogLevel.critical) {
console.error(`[custom-logger] ${log}`, ...rest);
}

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
"devDependencies": {
"@changesets/changelog-github": "0.4.8",
"@changesets/cli": "2.26.2",
"@typescript-eslint/parser": "6.6.0",
"@typescript-eslint/parser": "6.7.0",
"@workleap/eslint-plugin": "2.1.0",
"@workleap/typescript-configs": "3.0.2",
"cross-env": "7.0.3",
"eslint": "8.49.0",
"jest": "29.6.4",
"netlify-cli": "16.3.1",
"retypeapp": "3.4.1",
"jest": "29.7.0",
"netlify-cli": "16.3.3",
"retypeapp": "3.5.0",
"ts-node": "10.9.1",
"typescript": "5.2.2"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/fakes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
"build": "tsup --config ./tsup.build.ts"
},
"devDependencies": {
"@types/jest": "29.5.4",
"@types/jest": "29.5.5",
"@workleap/eslint-plugin": "2.1.0",
"@workleap/tsup-configs": "3.0.0",
"@workleap/typescript-configs": "3.0.2",
"jest": "29.6.4",
"jest": "29.7.0",
"tsup": "7.2.0",
"typescript": "5.2.2"
},
Expand Down
10 changes: 5 additions & 5 deletions packages/react-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,23 @@
"react-router-dom": "*"
},
"devDependencies": {
"@swc/core": "1.3.83",
"@swc/core": "1.3.84",
"@swc/helpers": "0.5.2",
"@swc/jest": "0.2.29",
"@testing-library/react": "14.0.0",
"@types/jest": "29.5.4",
"@types/jest": "29.5.5",
"@types/react": "18.2.21",
"@types/react-dom": "18.2.7",
"@types/react-test-renderer": "18.0.1",
"@workleap/eslint-plugin": "2.1.0",
"@workleap/swc-configs": "2.1.1",
"@workleap/tsup-configs": "3.0.0",
"@workleap/typescript-configs": "3.0.2",
"jest": "29.6.4",
"jest-environment-jsdom": "29.6.4",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-router-dom": "6.15.0",
"react-router-dom": "6.16.0",
"react-test-renderer": "18.2.0",
"ts-jest": "29.1.1",
"tsup": "7.2.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/webpack-module-federation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@
"webpack": ">=5.0.0"
},
"devDependencies": {
"@swc/core": "1.3.83",
"@swc/core": "1.3.84",
"@swc/helpers": "0.5.2",
"@swc/jest": "0.2.29",
"@types/jest": "29.5.4",
"@types/node": "20.6.0",
"@types/jest": "29.5.5",
"@types/node": "20.6.2",
"@types/react": "18.2.21",
"@types/react-dom": "18.2.7",
"@workleap/eslint-plugin": "2.1.0",
"@workleap/swc-configs": "2.1.1",
"@workleap/tsup-configs": "3.0.0",
"@workleap/typescript-configs": "3.0.2",
"@workleap/webpack-configs": "1.0.6",
"jest": "29.6.4",
"jest": "29.7.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"ts-jest": "29.1.1",
Expand Down
Loading

0 comments on commit a7aab11

Please sign in to comment.