Skip to content

Commit

Permalink
version 0.5.19
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti committed Oct 12, 2022
1 parent d132c73 commit 7916c8a
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 14 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@
**Note**: Gaps between patch versions are faulty/broken releases. **Note**: A feature tagged as Experimental is in a
high state of flux, you're at risk of it changing without notice.

# 0.5.19

- **New Feature**
- add `mapFromEntries`, `readonlyMapFromEntries` codecs, #172 (@mlegenhausen)

# 0.5.18

- **Polish**
- add output indexed types to option and either #171 (@mlegenhausen)
- add output indexed types to option and either, #171 (@mlegenhausen)

# 0.5.17

Expand Down
6 changes: 3 additions & 3 deletions docs/modules/mapFromEntries.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ parent: Modules

# mapFromEntries overview

Added in v0.5.18
Added in v0.5.19

---

Expand All @@ -26,7 +26,7 @@ export interface MapFromEntriesC<K extends t.Mixed, V extends t.Mixed>
extends t.Type<Map<t.TypeOf<K>, t.TypeOf<V>>, Array<[t.OutputOf<K>, t.OutputOf<V>]>, unknown> {}
```

Added in v0.5.18
Added in v0.5.19

# mapFromEntries

Expand All @@ -41,4 +41,4 @@ export function mapFromEntries<K extends t.Mixed, V extends t.Mixed>(
): MapFromEntriesC<K, V> { ... }
```

Added in v0.5.18
Added in v0.5.19
6 changes: 3 additions & 3 deletions docs/modules/readonlyMapFromEntries.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ parent: Modules

# readonlyMapFromEntries overview

Added in v0.5.18
Added in v0.5.19

---

Expand All @@ -26,7 +26,7 @@ export interface ReadonlyMapFromEntriesC<K extends t.Mixed, V extends t.Mixed>
extends t.Type<ReadonlyMap<t.TypeOf<K>, t.TypeOf<V>>, ReadonlyArray<[t.OutputOf<K>, t.OutputOf<V>]>, unknown> {}
```

Added in v0.5.18
Added in v0.5.19

# readonlyMapFromEntries

Expand All @@ -41,4 +41,4 @@ export function readonlyMapFromEntries<K extends t.Mixed, V extends t.Mixed>(
): ReadonlyMapFromEntriesC<K, V> { ... }
```

Added in v0.5.18
Added in v0.5.19
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "io-ts-types",
"version": "0.5.18",
"version": "0.5.19",
"description": "A collection of codecs and combinators for use with io-ts",
"main": "lib/index.js",
"module": "es6/index.js",
Expand Down
6 changes: 3 additions & 3 deletions src/mapFromEntries.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @since 0.5.18
* @since 0.5.19
*/
import * as A from 'fp-ts/lib/Array'
import { chain } from 'fp-ts/lib/Either'
Expand All @@ -26,13 +26,13 @@ const every = <K, V>(pk: Predicate<K>, pv: Predicate<V>) => (ma: Map<K, V>): boo
}

/**
* @since 0.5.18
* @since 0.5.19
*/
export interface MapFromEntriesC<K extends t.Mixed, V extends t.Mixed>
extends t.Type<Map<t.TypeOf<K>, t.TypeOf<V>>, Array<[t.OutputOf<K>, t.OutputOf<V>]>, unknown> {}

/**
* @since 0.5.18
* @since 0.5.19
*/
export function mapFromEntries<K extends t.Mixed, V extends t.Mixed>(
keyCodec: K,
Expand Down
6 changes: 3 additions & 3 deletions src/readonlyMapFromEntries.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/**
* @since 0.5.18
* @since 0.5.19
*/
import { Ord } from 'fp-ts/lib/Ord'
import * as t from 'io-ts'
import { mapFromEntries } from './mapFromEntries'

/**
* @since 0.5.18
* @since 0.5.19
*/
export interface ReadonlyMapFromEntriesC<K extends t.Mixed, V extends t.Mixed>
extends t.Type<ReadonlyMap<t.TypeOf<K>, t.TypeOf<V>>, ReadonlyArray<[t.OutputOf<K>, t.OutputOf<V>]>, unknown> {}

/**
* @since 0.5.18
* @since 0.5.19
*/
export function readonlyMapFromEntries<K extends t.Mixed, V extends t.Mixed>(
keyCodec: K,
Expand Down

0 comments on commit 7916c8a

Please sign in to comment.