Skip to content

Commit 79f0748

Browse files
committed
build: update deps
1 parent 2700f88 commit 79f0748

File tree

6 files changed

+227
-224
lines changed

6 files changed

+227
-224
lines changed

examples/next-app/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"start": "next start"
88
},
99
"dependencies": {
10-
"@radix-ui/react-dropdown-menu": "2.1.1",
11-
"@radix-ui/react-icons": "1.3.0",
10+
"@radix-ui/react-dropdown-menu": "2.1.3",
11+
"@radix-ui/react-icons": "1.3.2",
1212
"next": "latest",
1313
"react": "latest",
1414
"react-dom": "latest"
@@ -27,8 +27,8 @@
2727
"eslint-config-flat-gitignore": "^0.3.0",
2828
"eslint-plugin-react-hooks": "^5.1.0",
2929
"eslint-plugin-react-refresh": "^0.4.16",
30-
"postcss": "8.4.41",
31-
"tailwindcss": "3.4.9",
30+
"postcss": "8.4.49",
31+
"tailwindcss": "3.4.16",
3232
"typescript": "^5.7.2",
3333
"typescript-eslint": "^8.18.0"
3434
}

examples/next-app/tsconfig.json

+20-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"compilerOptions": {
33
"target": "es5",
4-
"lib": ["dom", "dom.iterable", "esnext"],
4+
"lib": [
5+
"dom",
6+
"dom.iterable",
7+
"esnext"
8+
],
59
"allowJs": true,
610
"skipLibCheck": true,
711
"strict": false,
@@ -13,8 +17,20 @@
1317
"moduleResolution": "node",
1418
"resolveJsonModule": true,
1519
"isolatedModules": true,
16-
"jsx": "preserve"
20+
"jsx": "preserve",
21+
"plugins": [
22+
{
23+
"name": "next"
24+
}
25+
]
1726
},
18-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
19-
"exclude": ["node_modules"]
27+
"include": [
28+
"**/*.ts",
29+
"**/*.tsx",
30+
"next-env.d.ts",
31+
".next/types/**/*.ts"
32+
],
33+
"exclude": [
34+
"node_modules"
35+
]
2036
}

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"tsx": "^4.19.2",
9494
"turbo": "^2.3.3",
9595
"type-fest": "^4.30.1",
96-
"typedoc": "^0.27.4",
96+
"typedoc": "^0.27.5",
9797
"typedoc-plugin-markdown": "^4.3.2",
9898
"typedoc-plugin-rename-defaults": "^0.7.2",
9999
"typescript": "^5.7.2",
@@ -107,19 +107,19 @@
107107
},
108108
"pnpm": {
109109
"overrides": {
110-
"@types/react": "^19.0.1",
111-
"@types/react-dom": "^19.0.2",
112110
"array-flatten": "npm:@nolyfill/array-flatten@^1.0.42",
113-
"cross-spawn": "7.0.6",
114111
"is-core-module": "npm:@nolyfill/is-core-module@^1.0.39",
115112
"isarray": "npm:@nolyfill/isarray@^1.0.29",
116-
"react": "^19.0.0",
117-
"react-dom": "^19.0.0",
118113
"safe-buffer": "npm:@nolyfill/safe-buffer@^1.0.41",
119114
"safer-buffer": "npm:@nolyfill/safer-buffer@^1.0.41",
120115
"side-channel": "npm:@nolyfill/side-channel@^1.0.29",
121-
"ts-api-utils": "^2.0.0",
122116
"typedarray": "npm:@nolyfill/typedarray@^1.0.29",
117+
"@types/react": "^19.0.1",
118+
"@types/react-dom": "^19.0.2",
119+
"cross-spawn": "7.0.6",
120+
"react": "^19.0.0",
121+
"react-dom": "^19.0.0",
122+
"ts-api-utils": "^2.0.0",
123123
"typescript": "^5.7.2"
124124
}
125125
}

packages/tools/docs/Either.js/README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
- [Either](namespaces/Either/README.md)
1414
- [let](functions/let.md)
15-
- [match](functions/match.md)
1615
- [try](functions/try.md)
1716

1817
### combining
@@ -85,6 +84,10 @@
8584
- [Right](interfaces/Right.md)
8685
- [Either](type-aliases/Either.md)
8786

87+
### pattern matching
88+
89+
- [match](functions/match.md)
90+
8891
### sequencing
8992

9093
- [andThen](functions/andThen.md)

packages/tools/docs/Either.js/functions/match.md

+70-28
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
Takes two functions and an `Either` value, if the value is a `Left` the inner value is applied to the `onLeft function,
1010
if the value is a `Right` the inner value is applied to the `onRight` function.
1111

12-
@example
12+
## Example
13+
1314
```ts
1415
import { pipe, Either } from "effect"
1516

@@ -24,8 +25,9 @@ assert.deepStrictEqual(
2425
)
2526
```
2627

27-
@category pattern matching
28-
@since 2.0.0
28+
## Since
29+
30+
2.0.0
2931

3032
## Call Signature
3133

@@ -34,24 +36,6 @@ assert.deepStrictEqual(
3436
Takes two functions and an `Either` value, if the value is a `Left` the inner value is applied to the `onLeft function,
3537
if the value is a `Right` the inner value is applied to the `onRight` function.
3638

37-
@example
38-
```ts
39-
import { pipe, Either } from "effect"
40-
41-
const onLeft = (strings: ReadonlyArray<string>): string => `strings: ${strings.join(', ')}`
42-
43-
const onRight = (value: number): string => `Ok: ${value}`
44-
45-
assert.deepStrictEqual(pipe(Either.right(1), Either.match({ onLeft, onRight })), 'Ok: 1')
46-
assert.deepStrictEqual(
47-
pipe(Either.left(['string 1', 'string 2']), Either.match({ onLeft, onRight })),
48-
'strings: string 1, string 2'
49-
)
50-
```
51-
52-
@category pattern matching
53-
@since 2.0.0
54-
5539
### Type Parameters
5640

5741
**L**
@@ -88,14 +72,22 @@ assert.deepStrictEqual(
8872

8973
`B` \| `C`
9074

91-
## Call Signature
75+
### Examples
9276

93-
> **match**\<`R`, `L`, `B`, `C`\>(`self`, `options`): `B` \| `C`
77+
```ts
78+
import { pipe, Either } from "effect"
9479

95-
Takes two functions and an `Either` value, if the value is a `Left` the inner value is applied to the `onLeft function,
96-
if the value is a `Right` the inner value is applied to the `onRight` function.
80+
const onLeft = (strings: ReadonlyArray<string>): string => `strings: ${strings.join(', ')}`
81+
82+
const onRight = (value: number): string => `Ok: ${value}`
83+
84+
assert.deepStrictEqual(pipe(Either.right(1), Either.match({ onLeft, onRight })), 'Ok: 1')
85+
assert.deepStrictEqual(
86+
pipe(Either.left(['string 1', 'string 2']), Either.match({ onLeft, onRight })),
87+
'strings: string 1, string 2'
88+
)
89+
```
9790

98-
@example
9991
```ts
10092
import { pipe, Either } from "effect"
10193

@@ -110,8 +102,20 @@ assert.deepStrictEqual(
110102
)
111103
```
112104

113-
@category pattern matching
114-
@since 2.0.0
105+
### Since
106+
107+
2.0.0
108+
109+
### Since
110+
111+
2.0.0
112+
113+
## Call Signature
114+
115+
> **match**\<`R`, `L`, `B`, `C`\>(`self`, `options`): `B` \| `C`
116+
117+
Takes two functions and an `Either` value, if the value is a `Left` the inner value is applied to the `onLeft function,
118+
if the value is a `Right` the inner value is applied to the `onRight` function.
115119

116120
### Type Parameters
117121

@@ -142,3 +146,41 @@ assert.deepStrictEqual(
142146
### Returns
143147

144148
`B` \| `C`
149+
150+
### Examples
151+
152+
```ts
153+
import { pipe, Either } from "effect"
154+
155+
const onLeft = (strings: ReadonlyArray<string>): string => `strings: ${strings.join(', ')}`
156+
157+
const onRight = (value: number): string => `Ok: ${value}`
158+
159+
assert.deepStrictEqual(pipe(Either.right(1), Either.match({ onLeft, onRight })), 'Ok: 1')
160+
assert.deepStrictEqual(
161+
pipe(Either.left(['string 1', 'string 2']), Either.match({ onLeft, onRight })),
162+
'strings: string 1, string 2'
163+
)
164+
```
165+
166+
```ts
167+
import { pipe, Either } from "effect"
168+
169+
const onLeft = (strings: ReadonlyArray<string>): string => `strings: ${strings.join(', ')}`
170+
171+
const onRight = (value: number): string => `Ok: ${value}`
172+
173+
assert.deepStrictEqual(pipe(Either.right(1), Either.match({ onLeft, onRight })), 'Ok: 1')
174+
assert.deepStrictEqual(
175+
pipe(Either.left(['string 1', 'string 2']), Either.match({ onLeft, onRight })),
176+
'strings: string 1, string 2'
177+
)
178+
```
179+
180+
### Since
181+
182+
2.0.0
183+
184+
### Since
185+
186+
2.0.0

0 commit comments

Comments
 (0)