Skip to content

Commit

Permalink
chore: update effect to 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sukovanej committed Apr 16, 2024
1 parent c8772b1 commit be6dbfb
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 16 deletions.
5 changes: 5 additions & 0 deletions .changeset/tricky-cups-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"effect-log": minor
---

Update effect to 3.0.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@typescript-eslint/parser": "^7.7.0",
"@vitest/coverage-v8": "^1.5.0",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"effect": "2.4.19",
"effect": "3.0.0",
"eslint": "^8.57.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-codegen": "0.28.0",
Expand All @@ -62,10 +62,10 @@
"rimraf": "^5.0.5",
"tsx": "^4.7.2",
"typescript": "^5.4.5",
"vite": "^5.2.8",
"vite": "^5.2.9",
"vitest": "^1.5.0"
},
"peerDependencies": {
"effect": "^2.4.19"
"effect": "^3.0.0"
}
}
20 changes: 10 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/PrettyLogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*
* @since 1.0.0
*/
import * as Array from "effect/Array"
import * as Cause from "effect/Cause"
import * as FiberId from "effect/FiberId"
import { identity, pipe } from "effect/Function"
Expand All @@ -12,7 +13,6 @@ import * as List from "effect/List"
import * as Logger from "effect/Logger"
import type * as LogLevel from "effect/LogLevel"
import type * as LogSpan from "effect/LogSpan"
import * as ReadonlyArray from "effect/ReadonlyArray"

import { serializeUnknown } from "./internal/serializeUnkown.js"

Expand Down Expand Up @@ -157,8 +157,8 @@ const createText = (
) =>
pipe(
[createCauseMessage(cause), messageText(colorService, message)],
ReadonlyArray.filter((i) => i !== ""),
ReadonlyArray.join(" ")
Array.filter((i) => i !== ""),
Array.join(" ")
)

/** @internal */
Expand Down

0 comments on commit be6dbfb

Please sign in to comment.