diff --git a/.changeset/tricky-cups-kiss.md b/.changeset/tricky-cups-kiss.md new file mode 100644 index 0000000..363a34a --- /dev/null +++ b/.changeset/tricky-cups-kiss.md @@ -0,0 +1,5 @@ +--- +"effect-log": minor +--- + +Update effect to 3.0. diff --git a/package.json b/package.json index 274788e..ed7043e 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 91ed4d7..c3033e9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -45,8 +45,8 @@ devDependencies: specifier: ^0.4.0 version: 0.4.0(@babel/core@7.24.4) effect: - specifier: 2.4.19 - version: 2.4.19 + specifier: 3.0.0 + version: 3.0.0 eslint: specifier: ^8.57.0 version: 8.57.0 @@ -84,8 +84,8 @@ devDependencies: specifier: ^5.4.5 version: 5.4.5 vite: - specifier: ^5.2.8 - version: 5.2.8 + specifier: ^5.2.9 + version: 5.2.9 vitest: specifier: ^1.5.0 version: 1.5.0 @@ -2510,8 +2510,8 @@ packages: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} dev: true - /effect@2.4.19: - resolution: {integrity: sha512-z/rn878Po3n522g/AYUDHD1SsZaZdvRxlTCLQ8xl8H6xA82nBwwooD1mdn/73Uywmp7d84oay3w3528r0Uyd0w==} + /effect@3.0.0: + resolution: {integrity: sha512-8yVxuahojpD8Y6ynrvIlSWD2xsea/PyGnjA4V5c7v0fOMJafgsKUNUHErBAr6YoPikmtOfR9zqNWRd9u5QaWEQ==} dev: true /electron-to-chromium@1.4.736: @@ -5756,7 +5756,7 @@ packages: debug: 4.3.4 pathe: 1.1.2 picocolors: 1.0.0 - vite: 5.2.8 + vite: 5.2.9 transitivePeerDependencies: - '@types/node' - less @@ -5768,8 +5768,8 @@ packages: - terser dev: true - /vite@5.2.8: - resolution: {integrity: sha512-OyZR+c1CE8yeHw5V5t59aXsUPPVTHMDjEZz8MgguLL/Q7NblxhZUlTu9xSPqlsUO/y+X7dlU05jdhvyycD55DA==} + /vite@5.2.9: + resolution: {integrity: sha512-uOQWfuZBlc6Y3W/DTuQ1Sr+oIXWvqljLvS881SVmAj00d5RdgShLcuXWxseWPd4HXwiYBFW/vXHfKFeqj9uQnw==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -5845,7 +5845,7 @@ packages: strip-literal: 2.1.0 tinybench: 2.7.0 tinypool: 0.8.4 - vite: 5.2.8 + vite: 5.2.9 vite-node: 1.5.0 why-is-node-running: 2.2.2 transitivePeerDependencies: diff --git a/src/PrettyLogger.ts b/src/PrettyLogger.ts index 7e2ce3d..6403db7 100644 --- a/src/PrettyLogger.ts +++ b/src/PrettyLogger.ts @@ -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" @@ -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" @@ -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 */