Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
Upgrade to latest effect packages (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
IMax153 authored Jul 24, 2023
1 parent 093c255 commit 22ceac1
Show file tree
Hide file tree
Showing 8 changed files with 380 additions and 280 deletions.
6 changes: 6 additions & 0 deletions .changeset/popular-pillows-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@effect/printer-ansi": minor
"@effect/printer": minor
---

upgrade to @effect/data@0.16.1, @effect/io@0.35.2, and @effect/typeclass@0.2.0
4 changes: 2 additions & 2 deletions docs/printer/DocTree.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ import * as Doc from '@effect/printer/Doc'
import * as DocTree from '@effect/printer/DocTree'
import * as Layout from '@effect/printer/Layout'
import { identity, pipe } from '@effect/data/Function'
import * as Monoid from '@effect/typeclass/Monoid'
import * as String from '@effect/typeclass/data/String'

const doc: Doc.Doc<void> = Doc.hsep([
Doc.text('hello'),
Expand All @@ -484,7 +484,7 @@ const tree = DocTree.treeForm(Layout.pretty(Layout.defaultOptions)(doc))

const rendered = pipe(
tree,
DocTree.renderSimplyDecorated(Monoid.string, identity, (_, x) => `>>>${x}<<<`)
DocTree.renderSimplyDecorated(String.Monoid, identity, (_, x) => `>>>${x}<<<`)
)

assert.strictEqual(rendered, 'hello >>>world<<<!')
Expand Down
12 changes: 6 additions & 6 deletions flake.lock

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

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"version": "changeset version && pnpm install --no-frozen-lockfile"
},
"devDependencies": {
"@babel/cli": "^7.22.6",
"@babel/core": "^7.22.8",
"@babel/cli": "^7.22.9",
"@babel/core": "^7.22.9",
"@babel/plugin-transform-modules-commonjs": "^7.22.5",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
Expand All @@ -38,15 +38,15 @@
"@repo-tooling/eslint-plugin-dprint": "^0.0.4",
"@rollup/pluginutils": "^5.0.2",
"@types/chai": "^4.3.5",
"@types/node": "^20.4.1",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"@vitejs/plugin-react": "^4.0.2",
"@types/node": "^20.4.4",
"@typescript-eslint/eslint-plugin": "^6.1.0",
"@typescript-eslint/parser": "^6.1.0",
"@vitejs/plugin-react": "^4.0.3",
"@vitest/coverage-v8": "^0.33.0",
"@vitest/expect": "^0.33.0",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"concurrently": "^8.2.0",
"eslint": "^8.44.0",
"eslint": "^8.45.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-codegen": "0.17.0",
"eslint-plugin-deprecation": "^1.4.1",
Expand All @@ -59,7 +59,7 @@
"ts-node": "^10.9.1",
"typescript": "^5.1.6",
"ultra-runner": "^3.10.5",
"vite": "^4.4.2",
"vite": "^4.4.6",
"vitest": "0.33.0"
}
}
6 changes: 3 additions & 3 deletions packages/printer-ansi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
}
},
"dependencies": {
"@effect/data": "~0.13.5",
"@effect/io": "~0.31.3",
"@effect/data": "~0.16.1",
"@effect/io": "~0.35.2",
"@effect/printer": "workspace:^",
"@effect/typeclass": "~0.1.0"
"@effect/typeclass": "~0.2.0"
},
"config": {
"side": [],
Expand Down
6 changes: 3 additions & 3 deletions packages/printer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
}
},
"dependencies": {
"@effect/data": "~0.13.5",
"@effect/io": "~0.31.3",
"@effect/typeclass": "~0.1.0"
"@effect/data": "~0.16.1",
"@effect/io": "~0.35.2",
"@effect/typeclass": "~0.2.0"
},
"config": {
"side": [],
Expand Down
4 changes: 2 additions & 2 deletions packages/printer/src/DocTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export const foldMap: {
* import * as DocTree from "@effect/printer/DocTree"
* import * as Layout from "@effect/printer/Layout"
* import { identity, pipe } from "@effect/data/Function"
* import * as Monoid from "@effect/typeclass/Monoid"
* import * as String from "@effect/typeclass/data/String"
*
* const doc: Doc.Doc<void> = Doc.hsep([
* Doc.text("hello"),
Expand All @@ -309,7 +309,7 @@ export const foldMap: {
*
* const rendered = pipe(
* tree,
* DocTree.renderSimplyDecorated(Monoid.string, identity, (_, x) => `>>>${x}<<<`)
* DocTree.renderSimplyDecorated(String.Monoid, identity, (_, x) => `>>>${x}<<<`)
* )
*
* assert.strictEqual(
Expand Down
Loading

0 comments on commit 22ceac1

Please sign in to comment.