Skip to content

Update fp-ts #89

@pierroberto

Description

@pierroberto

fp-ts introduced a breaking change in version 2.13.

fortepiano currently relies on version 2.12.1. Updating fortepiano to fp-ts version 2.13 or above causes some tests to fail.

For example:

Mock › Chain › chain › should transform Mock value and chain the result

    TypeError: f is not a function

      664 |
      665 |       it('should transform Mock value and chain the result', () => {
    > 666 |         const x = M()()
          |                   ^
      667 |
      668 |         expect(x.email).toBe(
      669 |           `${x.firstName}.${x.lastName}@pulp.com`.toLowerCase(),

      at node_modules/fp-ts/lib/IO.js:48:59
      at node_modules/fp-ts/lib/IO.js:50:63
      at node_modules/fp-ts/lib/IO.js:48:61
      at node_modules/fp-ts/lib/IO.js:50:63
      at Object.<anonymous> (src/Mock.test.ts:666:19)

This issue seems to stem from deprecated methods, such as flip in function module. Updating this module should allow fortepiano to be compatible with the latest version of fp-ts (currently 2.16.5).

Metadata

Metadata

Assignees

Labels

dependenciesPull requests that update a dependency file

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions