Skip to content

Commit

Permalink
rename object module to struct
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti committed Mar 28, 2021
1 parent 8f09669 commit a3fbaae
Show file tree
Hide file tree
Showing 40 changed files with 59 additions and 54 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
**Note**: A feature tagged as Experimental is in a
high state of flux, you're at risk of it changing without notice.

# 2.10.0-rc.7

- **Breaking Change** (with respect to `2.10.0-rc`)
- rename module `object` to `struct`

# 2.10.0-rc.6

- **Bug Fix**
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/Option.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Option.ts
nav_order: 64
nav_order: 63
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/OptionT.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: OptionT.ts
nav_order: 65
nav_order: 64
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/Ord.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Ord.ts
nav_order: 66
nav_order: 65
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/Ordering.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Ordering.ts
nav_order: 67
nav_order: 66
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/Pointed.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Pointed.ts
nav_order: 69
nav_order: 68
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/Profunctor.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Profunctor.ts
nav_order: 70
nav_order: 69
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/Random.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Random.ts
nav_order: 71
nav_order: 70
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/Reader.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Reader.ts
nav_order: 72
nav_order: 71
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ReaderEither.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: ReaderEither.ts
nav_order: 73
nav_order: 72
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ReaderT.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: ReaderT.ts
nav_order: 74
nav_order: 73
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ReaderTask.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: ReaderTask.ts
nav_order: 75
nav_order: 74
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ReaderTaskEither.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: ReaderTaskEither.ts
nav_order: 76
nav_order: 75
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ReadonlyArray.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: ReadonlyArray.ts
nav_order: 77
nav_order: 76
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ReadonlyMap.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: ReadonlyMap.ts
nav_order: 78
nav_order: 77
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ReadonlyNonEmptyArray.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: ReadonlyNonEmptyArray.ts
nav_order: 79
nav_order: 78
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ReadonlyRecord.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: ReadonlyRecord.ts
nav_order: 80
nav_order: 79
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ReadonlySet.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: ReadonlySet.ts
nav_order: 81
nav_order: 80
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ReadonlyTuple.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: ReadonlyTuple.ts
nav_order: 82
nav_order: 81
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/Record.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Record.ts
nav_order: 83
nav_order: 82
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/Ring.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Ring.ts
nav_order: 84
nav_order: 83
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/Semigroup.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Semigroup.ts
nav_order: 85
nav_order: 84
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/Semigroupoid.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Semigroupoid.ts
nav_order: 86
nav_order: 85
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/Semiring.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Semiring.ts
nav_order: 87
nav_order: 86
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/Separated.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Separated.ts
nav_order: 88
nav_order: 87
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/Set.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Set.ts
nav_order: 89
nav_order: 88
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/Show.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Show.ts
nav_order: 90
nav_order: 89
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/State.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: State.ts
nav_order: 91
nav_order: 90
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/StateReaderTaskEither.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: StateReaderTaskEither.ts
nav_order: 92
nav_order: 91
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/StateT.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: StateT.ts
nav_order: 93
nav_order: 92
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/Store.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Store.ts
nav_order: 94
nav_order: 93
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/Strong.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Strong.ts
nav_order: 96
nav_order: 95
parent: Modules
---

Expand Down
22 changes: 11 additions & 11 deletions docs/modules/index.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ Added in v2.0.0
- [monoid](#monoid)
- [nonEmptyArray](#nonemptyarray)
- [number](#number)
- [object](#object)
- [option](#option)
- [optionT](#optiont)
- [ord](#ord)
Expand Down Expand Up @@ -107,6 +106,7 @@ Added in v2.0.0
- [store](#store)
- [string](#string)
- [strong](#strong)
- [struct](#struct)
- [task](#task)
- [taskEither](#taskeither)
- [taskOption](#taskoption)
Expand Down Expand Up @@ -728,16 +728,6 @@ export declare const number: typeof number
Added in v2.10.0
## object
**Signature**
```ts
export declare const object: typeof object
```
Added in v2.10.0
## option
**Signature**
Expand Down Expand Up @@ -1068,6 +1058,16 @@ export declare const strong: typeof strong
Added in v2.0.0
## struct
**Signature**
```ts
export declare const struct: typeof struct
```
Added in v2.10.0
## task
**Signature**
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/pipeable.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: pipeable.ts
nav_order: 68
nav_order: 67
parent: Modules
---

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/string.ts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: string.ts
nav_order: 95
nav_order: 94
parent: Modules
---

Expand Down
8 changes: 4 additions & 4 deletions docs/modules/object.ts.md → docs/modules/struct.ts.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: object.ts
nav_order: 63
title: struct.ts
nav_order: 96
parent: Modules
---

## object overview
## struct overview

Added in v2.10.0

Expand Down Expand Up @@ -32,7 +32,7 @@ export declare const getAssignSemigroup: <A extends object = never>() => Semigro
**Example**
```ts
import { getAssignSemigroup } from 'fp-ts/object'
import { getAssignSemigroup } from 'fp-ts/struct'

interface Person {
readonly name: string
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fp-ts",
"version": "2.10.0-rc.6",
"version": "2.10.0-rc.7",
"description": "Functional programming in TypeScript",
"main": "lib/index.js",
"module": "es6/index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ import * as monadThrow from './MonadThrow'
import * as monoid from './Monoid'
import * as nonEmptyArray from './NonEmptyArray'
import * as number from './number'
import * as object from './object'
import * as option from './Option'
import * as optionT from './OptionT'
import * as ord from './Ord'
Expand Down Expand Up @@ -96,6 +95,7 @@ import * as stateT from './StateT'
import * as store from './Store'
import * as string from './string'
import * as strong from './Strong'
import * as struct from './struct'
import * as task from './Task'
import * as taskEither from './TaskEither'
import * as taskOption from './TaskOption'
Expand Down Expand Up @@ -352,7 +352,7 @@ export {
/**
* @since 2.10.0
*/
object,
struct,
/**
* @since 2.0.0
*/
Expand Down
2 changes: 1 addition & 1 deletion src/object.ts → src/struct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { getObjectSemigroup, Semigroup } from './Semigroup'
* Return a semigroup which works like `Object.assign`.
*
* @example
* import { getAssignSemigroup } from 'fp-ts/object'
* import { getAssignSemigroup } from 'fp-ts/struct'
*
* interface Person {
* readonly name: string
Expand Down
Loading

0 comments on commit a3fbaae

Please sign in to comment.