Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Commit

Permalink
chore: update deps (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart committed Jun 2, 2023
1 parent 0a67d9e commit 41ebc5c
Show file tree
Hide file tree
Showing 5 changed files with 136 additions and 279 deletions.
5 changes: 5 additions & 0 deletions .changeset/yellow-toes-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/match": minor
---

update deps
93 changes: 73 additions & 20 deletions docs/modules/index.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Added in v1.0.0
- [exhaustive](#exhaustive)
- [option](#option)
- [orElse](#orelse)
- [orElseAbsurd](#orelseabsurd)
- [model](#model)
- [Matcher (type alias)](#matcher-type-alias)
- [SafeSchema (interface)](#safeschema-interface)
Expand All @@ -37,6 +38,7 @@ Added in v1.0.0
- [date](#date)
- [defined](#defined)
- [instanceOf](#instanceof)
- [instanceOfUnsafe](#instanceofunsafe)
- [is](#is)
- [nonEmptyString](#nonemptystring)
- [null](#null)
Expand All @@ -63,18 +65,8 @@ Added in v1.0.0
```ts
export declare const discriminator: <D extends string>(
field: D
) => <
R,
P extends
| (Tags<D, R> & string)
| (Tags<D, R> & number)
| (Tags<D, R> & symbol)
| (Tags<D, R> & object)
| (Tags<D, R> & {}),
B
>(
first: P,
...values: (P | ((_: Extract<R, Record<D, P>>) => B))[]
) => <R, P extends Tags<D, R> & (string | number | symbol | object | {}), B>(
...pattern: [first: P, ...values: P[], f: (_: Extract<R, Record<D, P>>) => B]
) => <I, F, A, Pr>(
self: Matcher<I, F, R, A, Pr>
) => Matcher<
Expand All @@ -93,7 +85,12 @@ Added in v1.0.0
**Signature**

```ts
export declare const not: any
export declare const not: <R, const P extends PatternPrimitive<R> | PatternBase<R>, B>(
pattern: P,
f: (_: Exclude<R, ExtractMatch<R, SafeSchemaR<PredToSchema<P>>>>) => B
) => <I, F, A, Pr>(
self: Matcher<I, F, R, A, Pr>
) => Matcher<I, AddOnly<F, WhenMatch<R, P>>, ApplyFilters<I, AddOnly<F, WhenMatch<R, P>>>, B | A, Pr>
```

Added in v1.0.0
Expand All @@ -104,8 +101,7 @@ Added in v1.0.0

```ts
export declare const tag: <R, P, B>(
first: P,
...values: (P | ((_: Extract<R, Record<'_tag', P>>) => B))[]
...pattern: [first: P, ...values: P[], f: (_: Extract<R, Record<'_tag', P>>) => B]
) => <I, F, A, Pr>(
self: Matcher<I, F, R, A, Pr>
) => Matcher<
Expand All @@ -124,7 +120,18 @@ Added in v1.0.0
**Signature**

```ts
export declare const when: any
export declare const when: <R, const P extends PatternPrimitive<R> | PatternBase<R>, B>(
pattern: P,
f: (_: WhenMatch<R, P>) => B
) => <I, F, A, Pr>(
self: Matcher<I, F, R, A, Pr>
) => Matcher<
I,
AddWithout<F, SafeSchemaR<PredToSchema<P>>>,
ApplyFilters<I, AddWithout<F, SafeSchemaR<PredToSchema<P>>>>,
B | A,
Pr
>
```

Added in v1.0.0
Expand All @@ -134,7 +141,17 @@ Added in v1.0.0
**Signature**

```ts
export declare const whenAnd: any
export declare const whenAnd: <R, const P extends readonly (PatternPrimitive<R> | PatternBase<R>)[], B>(
...args: [...patterns: P, f: (_: WhenMatch<R, UnionToIntersection<P[number]>>) => B]
) => <I, F, A, Pr>(
self: Matcher<I, F, R, A, Pr>
) => Matcher<
I,
AddWithout<F, SafeSchemaR<PredToSchema<UnionToIntersection<P[number]>>>>,
ApplyFilters<I, AddWithout<F, SafeSchemaR<PredToSchema<UnionToIntersection<P[number]>>>>>,
B | A,
Pr
>
```

Added in v1.0.0
Expand All @@ -144,7 +161,17 @@ Added in v1.0.0
**Signature**

```ts
export declare const whenOr: any
export declare const whenOr: <R, const P extends readonly (PatternPrimitive<R> | PatternBase<R>)[], B>(
...args: [...patterns: P, f: (_: WhenMatch<R, P[number]>) => B]
) => <I, F, A, Pr>(
self: Matcher<I, F, R, A, Pr>
) => Matcher<
I,
AddWithout<F, SafeSchemaR<PredToSchema<P[number]>>>,
ApplyFilters<I, AddWithout<F, SafeSchemaR<PredToSchema<P[number]>>>>,
B | A,
Pr
>
```

Added in v1.0.0
Expand Down Expand Up @@ -221,6 +248,18 @@ export declare const orElse: <RA, B>(

Added in v1.0.0

## orElseAbsurd

**Signature**

```ts
export declare const orElseAbsurd: <I, R, RA, A, Pr>(
self: Matcher<I, R, RA, A, Pr>
) => [Pr] extends [never] ? (input: I) => Unify<A> : Unify<A>
```

Added in v1.0.0

# model

## Matcher (type alias)
Expand Down Expand Up @@ -306,7 +345,21 @@ Added in v1.0.0
**Signature**

```ts
export declare const instanceOf: new (...args: any) => any
export declare const instanceOf: <A extends abstract new (...args: any) => any>(
constructor: A
) => SafeSchema<InstanceType<A>, never>
```

Added in v1.0.0

## instanceOfUnsafe

**Signature**

```ts
export declare const instanceOfUnsafe: <A extends abstract new (...args: any) => any>(
constructor: A
) => SafeSchema<InstanceType<A>, InstanceType<A>>
```

Added in v1.0.0
Expand Down Expand Up @@ -358,7 +411,7 @@ Added in v1.0.0
**Signature**

```ts
export declare const record: Refinement<unknown, { [k: string]: any }>
export declare const record: Refinement<unknown, { [k: string]: any; [k: symbol]: any }>
```

Added in v1.0.0
Expand Down
13 changes: 4 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@
"build": "pnpm build-all && pnpm build-pack",
"build-cjs": "babel build/esm --config-file ./.babel.cjs.json --out-dir build/cjs --out-file-extension .js --source-maps",
"build-mjs": "babel build/esm --config-file ./.babel.mjs.json --out-dir build/mjs --out-file-extension .mjs --source-maps",
"build-post": "build-utils pack-v3",
"build-post": "build-utils pack-v4",
"build-pack": "concurrently \"pnpm build-cjs\" \"pnpm build-mjs\" && pnpm build-post",
"build-all": "tsc -b tsconfig.json",
"build-watch": "tsc -b tsconfig.json --watch",
"dtslint": "dtslint dtslint",
"lint": "eslint . --ext .ts,.tsx",
"autofix": "pnpm lint --fix",
"tc": "tsc --noEmit",
"docs": "docs-ts",
"docs": "docgen",
"docs-update": "git add --force --all docs/modules || true",
"circular": "madge --ts-config ./tsconfig.madge.json --circular --no-color --no-spinner --warning build/esm",
"test": "vitest",
Expand All @@ -66,8 +66,9 @@
"@babel/plugin-transform-modules-commonjs": "^7.21.5",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.1",
"@effect-ts/build-utils": "0.40.3",
"@effect-ts/build-utils": "0.40.7",
"@effect-ts/core": "^0.60.5",
"@effect/docgen": "^0.0.3",
"@effect/language-service": "^0.0.19",
"@types/benchmark": "^2.1.2",
"@types/chai": "^4.3.5",
Expand All @@ -84,7 +85,6 @@
"benny": "^3.7.1",
"concurrently": "^8.0.1",
"cpx": "^1.5.0",
"docs-ts": "^0.8.0",
"dtslint": "github:gcanti/dtslint",
"eslint": "^8.40.0",
"eslint-config-prettier": "^8.8.0",
Expand All @@ -107,11 +107,6 @@
"vite": "^4.3.6",
"vitest": "0.31.0"
},
"pnpm": {
"patchedDependencies": {
"@effect-ts/build-utils@0.40.3": "patches/@effect-ts__build-utils@0.40.3.patch"
}
},
"dependencies": {
"@effect/data": "^0.12.2",
"@effect/schema": "^0.19.0"
Expand Down
86 changes: 0 additions & 86 deletions patches/@effect-ts__build-utils@0.40.3.patch

This file was deleted.

Loading

0 comments on commit 41ebc5c

Please sign in to comment.