Skip to content

[dependency maintenance] @effect/match -> effect migration #181

@ari-becker

Description

@ari-becker

Description

a) proximate trigger: unmet peer dependency in syncpack 12:

 ERR_PNPM_PEER_DEP_ISSUES  Unmet peer dependencies

.
└─┬ syncpack 12.0.0
  └─┬ @effect/match 0.40.0
    └── ✕ unmet peer [email protected]: found 2.0.0-next.62

I see that 0.40.0 is indeed the latest version of @effect/match:
image

However, the package links to a repository which has been archived:

image

Apparently there was some kind of migration, Effect now recommends import { Effect } from "effect" and Effect.match:

https://www.effect.website/docs/error-management/matching

Suggested Solution

Follow upstream changes to solve the peer dependency issue?

Workaround

package.json:

{
  "pnpm": {
    "peerDependencyRules": {
      "allowedVersions": {
        "@effect/[email protected]>effect": "2.0.0-next.62"
      }
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions