diff --git a/.changeset/clever-hornets-talk.md b/.changeset/clever-hornets-talk.md new file mode 100644 index 0000000000..54365eee6d --- /dev/null +++ b/.changeset/clever-hornets-talk.md @@ -0,0 +1,9 @@ +--- +"blitz": patch +"@blitzjs/next": patch +"@blitzjs/generator": patch +--- + +Upgrade tslog to `4.9.0`. + +This due a [tslog issue](https://github.com/fullstack-build/tslog/issues/227) that causes tslog to crash when attempting to log an error whose constructor expects more than one argument. diff --git a/packages/blitz-next/package.json b/packages/blitz-next/package.json index 89ad59eb1e..6fc47993e8 100644 --- a/packages/blitz-next/package.json +++ b/packages/blitz-next/package.json @@ -64,7 +64,7 @@ "react-dom": "18.2.0", "resolve-from": "5.0.0", "ts-jest": "27.1.4", - "tslog": "4.8.2", + "tslog": "4.9.0", "typescript": "^4.8.4", "unbuild": "0.7.6", "watch": "1.0.2" diff --git a/packages/blitz/package.json b/packages/blitz/package.json index e93344eb37..9d885454ce 100644 --- a/packages/blitz/package.json +++ b/packages/blitz/package.json @@ -76,7 +76,7 @@ "tar": "6.1.11", "ts-node": "10.9.1", "tsconfig-paths": "4.0.0", - "tslog": "4.8.2", + "tslog": "4.9.0", "watchpack": "2.1.1" }, "devDependencies": { diff --git a/packages/blitz/src/logging.ts b/packages/blitz/src/logging.ts index 10ddbe7701..001b3bf9be 100644 --- a/packages/blitz/src/logging.ts +++ b/packages/blitz/src/logging.ts @@ -1,4 +1,4 @@ -import {ILogObj, ISettingsParam, Logger, IMeta} from "tslog" +import {ILogObj, ISettingsParam, Logger} from "tslog" import c from "chalk" import {Table} from "console-table-printer" import ora from "ora" diff --git a/packages/generator/package.json b/packages/generator/package.json index 2b9eafa7bf..7dd06e350a 100644 --- a/packages/generator/package.json +++ b/packages/generator/package.json @@ -48,7 +48,7 @@ "prettier": "^2.7.1", "recast": "0.20.5", "supports-color": "8.1.1", - "tslog": "4.8.2", + "tslog": "4.9.0", "username": "5.1.0", "vinyl": "2.2.1", "zod": "3.20.2" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c43e63d9cb..2556c14120 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1427,8 +1427,8 @@ importers: specifier: 4.0.0 version: 4.0.0 tslog: - specifier: 4.8.2 - version: 4.8.2 + specifier: 4.9.0 + version: 4.9.0 watchpack: specifier: 2.1.1 version: 2.1.1 @@ -1715,8 +1715,8 @@ importers: specifier: 27.1.4 version: 27.1.4(@babel/core@7.12.10)(esbuild@0.14.51)(jest@27.5.1)(typescript@4.8.4) tslog: - specifier: 4.8.2 - version: 4.8.2 + specifier: 4.9.0 + version: 4.9.0 typescript: specifier: ^4.8.4 version: 4.8.4 @@ -1955,8 +1955,8 @@ importers: specifier: 8.1.1 version: 8.1.1 tslog: - specifier: 4.8.2 - version: 4.8.2 + specifier: 4.9.0 + version: 4.9.0 username: specifier: 5.1.0 version: 5.1.0 @@ -20640,10 +20640,10 @@ packages: integrity: sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==, } - /tslog@4.8.2: + /tslog@4.9.0: resolution: { - integrity: sha512-eAKIRjxfSKYLs06r1wT7oou6Uv9VN6NW9g0JPidBlqQwPBBl5+84dm7r8zSOPVq1kyfEw1P6B3/FLSpZCorAgA==, + integrity: sha512-YEb55YxukbKO0bSAAsd9eSnw6RA0e3jt3cniZ00wj9offySAbp20lBrjOh1OTn11L51r58V4kFy8h7dMPnbpmg==, } engines: {node: ">=16"}