From 95a9cedadb47aea41c882511e74bbdb0c12947ef Mon Sep 17 00:00:00 2001 From: Chris Wilkinson Date: Thu, 13 Jun 2024 16:12:33 +0100 Subject: [PATCH] Make the fp-ts ecosystem compatible with ESM Refs #1750, https://github.com/gcanti/fp-ts/issues/1910#issuecomment-1997922197 --- .eslintrc.json | 9 ++--- integration/author-invite.spec.ts | 8 ++--- integration/base.ts | 2 +- integration/log-in.spec.ts | 8 ++--- integration/publishing-a-prereview.spec.ts | 8 ++--- src/about-us.ts | 4 +-- src/app.ts | 12 +++---- .../author-invite-published.ts | 8 ++--- src/author-invite-flow/author-invite-start.ts | 8 ++--- src/author-invite-flow/author-invite.ts | 10 +++--- src/author-invite-flow/check-page/index.ts | 8 ++--- .../decline-page/decline-page.ts | 4 +-- src/author-invite-flow/decline-page/index.ts | 10 +++--- .../enter-email-address-form.ts | 2 +- .../enter-email-address-page/index.ts | 16 ++++----- .../index.ts | 8 ++--- src/author-invite-flow/persona-page/index.ts | 12 +++---- .../persona-page/persona-form.ts | 2 +- .../verify-email-address.ts | 8 ++--- src/author-invite.ts | 10 +++--- src/avatar.ts | 6 ++-- src/career-stage.ts | 8 ++--- src/cloudinary.ts | 20 +++++------ src/club-details.ts | 12 +++---- src/club-profile-page/club-profile-page.ts | 6 ++-- src/club-profile-page/index.ts | 6 ++-- src/club-profile-page/prereviews.ts | 8 ++--- src/clubs.ts | 4 +-- src/code-of-conduct.ts | 4 +-- src/connect-orcid/connect-orcid.ts | 4 +-- src/connect-orcid/disconnect-orcid.ts | 6 ++-- src/connect-orcid/oauth-code.ts | 16 ++++----- src/connect-orcid/oauth-start.ts | 8 ++--- src/connect-slack-page/index.ts | 24 ++++++------- src/contact-email-address.ts | 10 +++--- src/crossref.ts | 16 ++++----- src/datacite.ts | 14 ++++---- src/detect-language.ts | 4 +-- src/disconnect-slack-page/index.ts | 6 ++-- src/edia-statement.ts | 4 +-- src/email.ts | 8 ++--- src/env.ts | 12 +++---- src/feature-flags.ts | 2 +- src/fetch.ts | 4 +-- src/flash-message.ts | 8 ++--- src/form.ts | 18 +++++----- src/funding.ts | 4 +-- src/ghost.ts | 12 +++---- src/home-page/home-page.ts | 6 ++-- src/home-page/index.ts | 4 +-- src/home-page/recent-prereviews.ts | 8 ++--- src/home-page/recent-review-requests.ts | 6 ++-- src/how-to-use.ts | 4 +-- src/html.ts | 10 +++--- src/http-error.ts | 4 +-- src/index.ts | 8 ++--- src/is-open-for-requests.ts | 12 +++---- src/keyv.ts | 16 ++++----- src/languages.ts | 8 ++--- src/legacy-prereview.ts | 18 +++++----- src/legacy-routes/index.ts | 16 ++++----- src/live-reviews.ts | 4 +-- src/location.ts | 8 ++--- src/log-in/index.ts | 22 ++++++------ src/mailjet.ts | 16 ++++----- src/middleware.ts | 4 +-- .../change-avatar-form-page.ts | 2 +- src/my-details-page/change-avatar.ts | 12 +++---- .../change-career-stage-form-page.ts | 2 +- .../change-career-stage-visibility.ts | 10 +++--- src/my-details-page/change-career-stage.ts | 12 +++---- .../change-contact-email-address-form-page.ts | 2 +- .../change-contact-email-address.ts | 16 ++++----- .../change-languages-form-page.ts | 2 +- .../change-languages-visibility.ts | 10 +++--- src/my-details-page/change-languages.ts | 12 +++---- .../change-location-form-page.ts | 2 +- .../change-location-visibility.ts | 10 +++--- src/my-details-page/change-location.ts | 12 +++---- .../change-open-for-requests-form-page.ts | 2 +- .../change-open-for-requests-visibility.ts | 10 +++--- .../change-open-for-requests.ts | 12 +++---- .../change-research-interests-form-page.ts | 2 +- .../change-research-interests-visibility.ts | 10 +++--- .../change-research-interests.ts | 12 +++---- src/my-details-page/my-details-page.ts | 2 +- src/my-details-page/my-details.ts | 8 ++--- src/my-details-page/remove-avatar.ts | 8 ++--- .../verify-contact-email-address.ts | 6 ++-- src/my-prereviews-page/index.ts | 6 ++-- src/my-prereviews-page/list-of-prereviews.ts | 6 ++-- src/my-prereviews-page/no-prereviews.ts | 6 ++-- src/my-prereviews-page/prereviews.ts | 8 ++--- src/my-prereviews-page/require-log-in.ts | 2 +- src/nodemailer.ts | 10 +++--- src/openalex/http.ts | 2 +- src/openalex/index.ts | 8 ++--- src/openalex/work.ts | 20 +++++------ src/orcid-token.ts | 12 +++---- src/orcid.ts | 16 ++++----- src/page.ts | 10 +++--- src/people.ts | 4 +-- src/philsci.ts | 14 ++++---- src/preprint-reviews-page/index.ts | 6 ++-- src/preprint-reviews-page/preprint-reviews.ts | 10 +++--- src/preprint-reviews-page/prereviews.ts | 6 ++-- src/preprint-reviews-page/rapid-prereviews.ts | 4 +-- src/preprint.ts | 6 ++-- .../construct-coar-payload.ts | 4 +-- .../get-recent-review-requests.ts | 14 ++++---- src/prereview-coar-notify/index.ts | 6 ++-- .../send-review-action-offer.ts | 4 +-- src/privacy-policy.ts | 4 +-- src/profile-page/create-page.ts | 6 ++-- src/profile-page/index.ts | 6 ++-- src/profile-page/name.ts | 6 ++-- src/profile-page/orcid-profile.ts | 4 +-- src/profile-page/prereviews.ts | 8 ++--- src/profile-page/pseudonym-profile.ts | 4 +-- src/profile-page/render-list-of-prereviews.ts | 6 ++-- src/public-url.ts | 6 ++-- src/request-a-prereview-page/form.ts | 8 ++--- src/request-a-prereview-page/index.ts | 4 +-- src/request-a-prereview-page/make-decision.ts | 16 ++++----- src/request-review-flow/check-page/index.ts | 10 +++--- src/request-review-flow/persona-page/index.ts | 10 +++--- .../persona-page/persona-form.ts | 2 +- .../published-page/index.ts | 6 ++-- .../request-review-page/index.ts | 6 ++-- src/request-review-flow/start-page/index.ts | 6 ++-- src/research-interests.ts | 8 ++--- src/resources.ts | 4 +-- src/response.ts | 14 ++++---- src/review-a-preprint-page/index.ts | 12 +++---- .../review-a-preprint.ts | 2 +- src/review-page/index.ts | 6 ++-- src/review-page/prereview.ts | 6 ++-- src/review-page/review-page.ts | 4 +-- src/review-request.ts | 10 +++--- src/review-requests-page/index.ts | 6 ++-- .../review-requests-page.ts | 14 ++++---- src/review-requests-page/review-requests.ts | 8 ++--- src/reviews-data/index.ts | 16 ++++----- src/reviews-page/index.ts | 6 ++-- src/reviews-page/recent-prereviews.ts | 8 ++--- src/reviews-page/reviews-page.ts | 14 ++++---- src/router.ts | 26 +++++++------- src/routes.ts | 8 ++--- src/sciety-list/index.ts | 14 ++++---- src/sciety.ts | 6 ++-- src/slack-user-id.ts | 14 ++++---- src/slack-user.ts | 6 ++-- src/slack.ts | 16 ++++----- src/trainings.ts | 4 +-- src/types/club-id.ts | 6 ++-- src/types/email-address.ts | 10 +++--- src/types/preprint-id.ts | 8 ++--- src/types/pseudonym.ts | 6 ++-- src/types/string.ts | 12 +++---- src/types/uuid.ts | 10 +++--- src/user-onboarding.ts | 8 ++--- src/user.ts | 16 ++++----- .../add-author-page/add-author-form.ts | 2 +- src/write-review/add-author-page/index.ts | 14 ++++---- .../add-authors-page/add-authors-form.ts | 4 +-- src/write-review/add-authors-page/index.ts | 14 ++++---- .../change-author-page/change-author-form.ts | 2 +- src/write-review/change-author-page/index.ts | 16 ++++----- src/write-review/completed-form.ts | 6 ++-- src/write-review/form.ts | 16 ++++----- src/write-review/publish-page/index.ts | 12 +++---- src/write-review/publish-page/publish-form.ts | 6 ++-- src/write-review/published-review.ts | 14 ++++---- src/write-review/remove-author-page/index.ts | 14 ++++---- .../remove-author-page/remove-author-form.ts | 2 +- src/write-review/start-page/index.ts | 6 ++-- src/write-review/user-is-author.ts | 10 +++--- .../write-a-prereview-page/index.ts | 8 ++--- .../write-a-prereview-page.ts | 4 +-- src/write-review/write-review-authors.ts | 10 +++--- .../write-review-competing-interests.ts | 10 +++--- src/write-review/write-review-conduct.ts | 8 ++--- .../write-review-data-presentation.ts | 10 +++--- .../write-review-enter-email-address.ts | 12 +++---- .../write-review-findings-next-steps.ts | 10 +++--- .../write-review-introduction-matches.ts | 10 +++--- .../write-review-language-editing.ts | 10 +++--- .../write-review-methods-appropriate.ts | 10 +++--- ...ite-review-need-to-verify-email-address.ts | 6 ++-- src/write-review/write-review-novel.ts | 10 +++--- src/write-review/write-review-page/index.ts | 10 +++--- .../write-review-page/paste-review-form.ts | 2 +- .../write-review-page/write-review-form.ts | 2 +- src/write-review/write-review-persona.ts | 8 ++--- src/write-review/write-review-published.ts | 6 ++-- .../write-review-ready-full-review.ts | 10 +++--- .../write-review-results-supported.ts | 10 +++--- src/write-review/write-review-review-type.ts | 10 +++--- src/write-review/write-review-should-read.ts | 10 +++--- .../write-review-verify-email-address.ts | 4 +-- src/zenodo.ts | 34 +++++++++---------- .../author-invite-check.test.ts | 2 +- .../author-invite-decline.test.ts | 2 +- .../author-invite-enter-email-address.test.ts | 2 +- ...nvite-need-to-verify-email-address.test.ts | 2 +- .../author-invite-persona.test.ts | 2 +- .../author-invite-published.test.ts | 2 +- .../author-invite-start.test.ts | 2 +- ...author-invite-verify-email-address.test.ts | 2 +- test/author-invite-flow/author-invite.test.ts | 2 +- test/career-stage.test.ts | 4 +-- test/cloudinary.test.ts | 6 ++-- test/club-details.test.ts | 2 +- test/club-profile-page/club-profile.test.ts | 2 +- test/connect-orcid/connect-orcid.test.ts | 2 +- test/connect-orcid/disconnect-orcid.test.ts | 2 +- test/connect-orcid/oauth-code.test.ts | 2 +- test/connect-slack-page/connect-slack.test.ts | 8 ++--- test/crossref.test.ts | 2 +- test/datacite.test.ts | 2 +- test/detect-language.test.ts | 2 +- .../disconnect-slack.test.ts | 2 +- test/email.test.ts | 4 +-- test/fc.ts | 16 ++++----- test/fetch.test.ts | 2 +- test/flash-message.test.ts | 6 ++-- test/ghost.test.ts | 2 +- test/home-page/home.test.ts | 2 +- test/html.test.ts | 4 +-- test/keyv.test.ts | 4 +-- test/legacy-prereview.test.ts | 4 +-- test/legacy-routes/legacy-routes.test.ts | 8 ++--- test/log-in/log-in.test.ts | 6 ++-- test/mailjet.test.ts | 4 +-- test/middleware.test.ts | 4 +-- test/middleware.ts | 12 +++---- test/my-details-page/change-avatar.test.ts | 2 +- .../change-career-stage-visibility.test.ts | 2 +- .../change-career-stage.test.ts | 2 +- .../change-contact-email-address.test.ts | 2 +- .../change-languages-visibility.test.ts | 2 +- test/my-details-page/change-languages.test.ts | 2 +- .../change-location-visibility.test.ts | 2 +- test/my-details-page/change-location.test.ts | 2 +- ...hange-open-for-requests-visibility.test.ts | 2 +- .../change-open-for-requests.test.ts | 2 +- ...ange-research-interests-visibility.test.ts | 2 +- .../change-research-interests.test.ts | 2 +- test/my-details-page/my-details.test.ts | 2 +- test/my-details-page/remove-avatar.test.ts | 2 +- .../verify-contact-email-address.test.ts | 2 +- test/my-prereviews-page/no-prereviews.test.ts | 2 +- .../my-prereviews-page/require-log-in.test.ts | 2 +- test/nodemailer.test.ts | 4 +-- test/openalex/work.test.ts | 2 +- test/orcid.test.ts | 4 +-- test/philsci.test.ts | 2 +- .../preprint-reviews.test.ts | 2 +- .../get-recent-review-requests.test.ts | 4 +-- .../send-review-action-offer.test.ts | 2 +- test/profile-page/index.test.ts | 2 +- .../make-decision.test.ts | 2 +- .../request-review-check.test.ts | 2 +- .../request-review-persona.test.ts | 2 +- .../request-review-published.test.ts | 2 +- .../request-review-start.test.ts | 2 +- .../request-review.test.ts | 2 +- test/research-interests.test.ts | 4 +-- test/response.test.ts | 4 +-- .../review-a-preprint.test.ts | 2 +- test/review-page/review-page.test.ts | 2 +- .../review-requests.test.ts | 2 +- test/reviews-page/reviews-page.test.ts | 2 +- test/slack.test.ts | 4 +-- test/types/club-id.test.ts | 2 +- test/types/email-address.test.ts | 2 +- test/types/preprint-id.test.ts | 2 +- test/types/pseudonym.test.ts | 2 +- test/types/string.test.ts | 2 +- test/user.test.ts | 8 ++--- test/write-review/user-is-author.test.ts | 2 +- .../write-review-add-author.test.ts | 2 +- .../write-review-add-authors.test.ts | 2 +- .../write-review/write-review-authors.test.ts | 6 ++-- .../write-review-change-author.test.ts | 2 +- .../write-review-competing-interests.test.ts | 6 ++-- .../write-review/write-review-conduct.test.ts | 6 ++-- .../write-review-data-presentation.test.ts | 6 ++-- .../write-review-enter-email-address.test.ts | 6 ++-- .../write-review-findings-next-steps.test.ts | 6 ++-- .../write-review-introduction-matches.test.ts | 6 ++-- .../write-review-language-editing.test.ts | 6 ++-- .../write-review-methods-appropriate.test.ts | 6 ++-- ...eview-need-to-verify-email-address.test.ts | 6 ++-- test/write-review/write-review-novel.test.ts | 6 ++-- .../write-review/write-review-persona.test.ts | 6 ++-- .../write-review/write-review-publish.test.ts | 8 ++--- .../write-review-published.test.ts | 6 ++-- .../write-review-ready-full-review.test.ts | 6 ++-- .../write-review-remove-author.test.ts | 2 +- .../write-review-results-supported.test.ts | 6 ++-- .../write-review-review-type.test.ts | 2 +- test/write-review/write-review-review.test.ts | 2 +- .../write-review-should-read.test.ts | 6 ++-- test/write-review/write-review-start.test.ts | 2 +- .../write-review-verify-email-address.test.ts | 6 ++-- test/write-review/write-review.test.ts | 2 +- test/zenodo.test.ts | 12 +++---- .../author-invite-enter-email-address.test.ts | 2 +- .../author-invite-persona.test.ts | 2 +- .../author-invite-published.test.ts | 2 +- .../author-invite-start.test.ts | 2 +- .../author-invite-flow/author-invite.test.ts | 2 +- .../change-avatar-form-page.spec.ts | 2 +- .../change-career-stage-form-page.spec.ts | 2 +- ...ge-contact-email-address-form-page.spec.ts | 2 +- .../change-languages-form-page.spec.ts | 2 +- .../change-location-form-page.spec.ts | 2 +- ...change-open-for-requests-form-page.spec.ts | 2 +- ...hange-research-interests-form-page.spec.ts | 2 +- .../my-details/my-details-page.spec.ts | 2 +- .../review-request-persona.test.ts | 2 +- .../review-a-preprint.spec.ts | 2 +- .../write-review-add-author.spec.ts | 2 +- .../write-review-add-authors.spec.ts | 2 +- .../write-review-change-author.spec.ts | 2 +- .../paste-review-form.spec.ts | 2 +- .../write-review-form.spec.ts | 2 +- .../write-review-remove-author.spec.ts | 2 +- 329 files changed, 1077 insertions(+), 1076 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 4bde20ce9..454bedfc4 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -50,6 +50,7 @@ "@typescript-eslint/prefer-nullish-coalescing": ["error", { "ignoreConditionalTests": true }], "@typescript-eslint/restrict-template-expressions": ["error", { "allowNumber": true }], "@typescript-eslint/strict-boolean-expressions": "error", + "fp-ts/no-lib-imports": "off", "fp-ts/no-module-imports": "off", "import/no-cycle": "error", "import/no-duplicates": ["error", { "prefer-inline": true }], @@ -69,12 +70,12 @@ "error", { "allow": [ - "fp-ts/*", - "fp-ts-contrib/*", - "io-ts/*", + "fp-ts/lib/*", + "fp-ts-contrib/lib/*", + "io-ts/lib/*", "iso-639-3/to-*.json", "http-proxy-middleware/dist/types", - "hyper-ts/*", + "hyper-ts/lib/*", "logging-ts/lib/*", "nanohtml/*", "remixicon/**/*.svg", diff --git a/integration/author-invite.spec.ts b/integration/author-invite.spec.ts index 81a7a1ec1..79813d1e6 100644 --- a/integration/author-invite.spec.ts +++ b/integration/author-invite.spec.ts @@ -1,8 +1,8 @@ import type { FetchMockSandbox } from 'fetch-mock' -import * as E from 'fp-ts/Either' -import * as J from 'fp-ts/Json' -import { pipe } from 'fp-ts/function' -import * as D from 'io-ts/Decoder' +import * as E from 'fp-ts/lib/Either.js' +import * as J from 'fp-ts/lib/Json.js' +import { pipe } from 'fp-ts/lib/function.js' +import * as D from 'io-ts/lib/Decoder.js' import { canLogIn, expect, diff --git a/integration/base.ts b/integration/base.ts index 6d924fdf2..fda0f89f0 100644 --- a/integration/base.ts +++ b/integration/base.ts @@ -8,7 +8,7 @@ import { import { SystemClock } from 'clock-ts' import type { Doi } from 'doi-ts' import fetchMock, { type FetchMockSandbox } from 'fetch-mock' -import type { JsonRecord } from 'fp-ts/Json' +import type { JsonRecord } from 'fp-ts/lib/Json.js' import * as fs from 'fs/promises' import type { Server } from 'http' import { Status } from 'hyper-ts' diff --git a/integration/log-in.spec.ts b/integration/log-in.spec.ts index 83c703731..b7e896b89 100644 --- a/integration/log-in.spec.ts +++ b/integration/log-in.spec.ts @@ -1,9 +1,9 @@ import type { FetchMockSandbox } from 'fetch-mock' -import * as E from 'fp-ts/Either' -import * as J from 'fp-ts/Json' -import { pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import * as J from 'fp-ts/lib/Json.js' +import { pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as D from 'io-ts/Decoder' +import * as D from 'io-ts/lib/Decoder.js' import type { MutableRedirectUri } from 'oauth2-mock-server' import path from 'path' import { diff --git a/integration/publishing-a-prereview.spec.ts b/integration/publishing-a-prereview.spec.ts index 85628c097..078dce8fb 100644 --- a/integration/publishing-a-prereview.spec.ts +++ b/integration/publishing-a-prereview.spec.ts @@ -1,10 +1,10 @@ import type { Doi } from 'doi-ts' import type { FetchMockSandbox } from 'fetch-mock' -import * as E from 'fp-ts/Either' -import * as J from 'fp-ts/Json' -import { constVoid, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import * as J from 'fp-ts/lib/Json.js' +import { constVoid, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as D from 'io-ts/Decoder' +import * as D from 'io-ts/lib/Decoder.js' import type { MutableRedirectUri } from 'oauth2-mock-server' import type { Orcid } from 'orcid-id-ts' import { URL } from 'url' diff --git a/src/about-us.ts b/src/about-us.ts index 449e674c7..9c1b935b3 100644 --- a/src/about-us.ts +++ b/src/about-us.ts @@ -1,6 +1,6 @@ import { format } from 'fp-ts-routing' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import { getPage } from './ghost.js' import { type Html, fixHeadingLevels, html, plainText } from './html.js' import { havingProblemsPage } from './http-error.js' diff --git a/src/app.ts b/src/app.ts index 15683d3bd..28b839831 100644 --- a/src/app.ts +++ b/src/app.ts @@ -1,17 +1,17 @@ import slashes from 'connect-slashes' import express from 'express' import asyncHandler from 'express-async-handler' -import type { Json } from 'fp-ts/Json' -import * as R from 'fp-ts/Reader' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { apply, flow, identity, pipe } from 'fp-ts/function' +import type { Json } from 'fp-ts/lib/Json.js' +import * as R from 'fp-ts/lib/Reader.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { apply, flow, identity, pipe } from 'fp-ts/lib/function.js' import helmet from 'helmet' import http from 'http' import { createProxyMiddleware } from 'http-proxy-middleware' import type { ResponseEnded, StatusOpen } from 'hyper-ts' import { getSession } from 'hyper-ts-session' -import * as RM from 'hyper-ts/ReaderMiddleware' -import { toRequestHandler } from 'hyper-ts/express' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import { toRequestHandler } from 'hyper-ts/lib/express.js' import * as L from 'logger-fp-ts' import * as l from 'logging-ts/lib/IO.js' import { match, P as p } from 'ts-pattern' diff --git a/src/author-invite-flow/author-invite-published.ts b/src/author-invite-flow/author-invite-published.ts index 3d4284904..8ec4f06a5 100644 --- a/src/author-invite-flow/author-invite-published.ts +++ b/src/author-invite-flow/author-invite-published.ts @@ -1,9 +1,9 @@ import type { Doi } from 'doi-ts' import { format } from 'fp-ts-routing' -import type * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { pipe } from 'fp-ts/function' +import type * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import type { LanguageCode } from 'iso-639-1' import { P, match } from 'ts-pattern' import type { Uuid } from 'uuid-ts' diff --git a/src/author-invite-flow/author-invite-start.ts b/src/author-invite-flow/author-invite-start.ts index 015b5201a..b78ce0a13 100644 --- a/src/author-invite-flow/author-invite-start.ts +++ b/src/author-invite-flow/author-invite-start.ts @@ -1,8 +1,8 @@ import { format } from 'fp-ts-routing' -import type * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { pipe } from 'fp-ts/function' +import type * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import type { LanguageCode } from 'iso-639-1' import { P, match } from 'ts-pattern' import type { Uuid } from 'uuid-ts' diff --git a/src/author-invite-flow/author-invite.ts b/src/author-invite-flow/author-invite.ts index 819a10030..b7d60bdc1 100644 --- a/src/author-invite-flow/author-invite.ts +++ b/src/author-invite-flow/author-invite.ts @@ -1,11 +1,11 @@ import { Temporal } from '@js-temporal/polyfill' import type { Doi } from 'doi-ts' import { format } from 'fp-ts-routing' -import type * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import type * as TE from 'fp-ts/TaskEither' -import { flow, pipe } from 'fp-ts/function' +import type * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import type { LanguageCode } from 'iso-639-1' import { type Orcid, Eq as eqOrcid } from 'orcid-id-ts' import { getLangDir } from 'rtl-detect' diff --git a/src/author-invite-flow/check-page/index.ts b/src/author-invite-flow/check-page/index.ts index 660de87a8..123bf4425 100644 --- a/src/author-invite-flow/check-page/index.ts +++ b/src/author-invite-flow/check-page/index.ts @@ -1,8 +1,8 @@ import { format } from 'fp-ts-routing' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { pipe } from 'fp-ts/function' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import type { LanguageCode } from 'iso-639-1' import { P, match } from 'ts-pattern' import type { Uuid } from 'uuid-ts' diff --git a/src/author-invite-flow/decline-page/decline-page.ts b/src/author-invite-flow/decline-page/decline-page.ts index 05cde5afd..683f10dbd 100644 --- a/src/author-invite-flow/decline-page/decline-page.ts +++ b/src/author-invite-flow/decline-page/decline-page.ts @@ -1,6 +1,6 @@ import { format } from 'fp-ts-routing' -import * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import { flow, pipe } from 'fp-ts/function' +import * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' import type { Orcid } from 'orcid-id-ts' import { getLangDir } from 'rtl-detect' diff --git a/src/author-invite-flow/decline-page/index.ts b/src/author-invite-flow/decline-page/index.ts index 7e01cac78..806502b61 100644 --- a/src/author-invite-flow/decline-page/index.ts +++ b/src/author-invite-flow/decline-page/index.ts @@ -1,11 +1,11 @@ import { Temporal } from '@js-temporal/polyfill' import type { Doi } from 'doi-ts' import { format } from 'fp-ts-routing' -import type * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import type * as TE from 'fp-ts/TaskEither' -import { pipe } from 'fp-ts/function' +import type * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import type { LanguageCode } from 'iso-639-1' import type { Orcid } from 'orcid-id-ts' import { P, match } from 'ts-pattern' diff --git a/src/author-invite-flow/enter-email-address-page/enter-email-address-form.ts b/src/author-invite-flow/enter-email-address-page/enter-email-address-form.ts index 5742a253a..177345ea7 100644 --- a/src/author-invite-flow/enter-email-address-page/enter-email-address-form.ts +++ b/src/author-invite-flow/enter-email-address-page/enter-email-address-form.ts @@ -1,5 +1,5 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { Status } from 'hyper-ts' import { P, match } from 'ts-pattern' import type { Uuid } from 'uuid-ts' diff --git a/src/author-invite-flow/enter-email-address-page/index.ts b/src/author-invite-flow/enter-email-address-page/index.ts index 26be8d292..683273bba 100644 --- a/src/author-invite-flow/enter-email-address-page/index.ts +++ b/src/author-invite-flow/enter-email-address-page/index.ts @@ -1,12 +1,12 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as O from 'fp-ts/Option' -import * as RIO from 'fp-ts/ReaderIO' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { pipe } from 'fp-ts/function' -import * as D from 'io-ts/Decoder' +import * as E from 'fp-ts/lib/Either.js' +import * as O from 'fp-ts/lib/Option.js' +import * as RIO from 'fp-ts/lib/ReaderIO.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' +import * as D from 'io-ts/lib/Decoder.js' import type { LanguageCode } from 'iso-639-1' import { get } from 'spectacles-ts' import { P, match } from 'ts-pattern' diff --git a/src/author-invite-flow/need-to-verify-email-address-page/index.ts b/src/author-invite-flow/need-to-verify-email-address-page/index.ts index 7a48f1685..7817ae3c4 100644 --- a/src/author-invite-flow/need-to-verify-email-address-page/index.ts +++ b/src/author-invite-flow/need-to-verify-email-address-page/index.ts @@ -1,8 +1,8 @@ import { format } from 'fp-ts-routing' -import type * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { pipe } from 'fp-ts/function' +import type * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import type { LanguageCode } from 'iso-639-1' import { P, match } from 'ts-pattern' import type { Uuid } from 'uuid-ts' diff --git a/src/author-invite-flow/persona-page/index.ts b/src/author-invite-flow/persona-page/index.ts index 36f82080c..8b1c5255c 100644 --- a/src/author-invite-flow/persona-page/index.ts +++ b/src/author-invite-flow/persona-page/index.ts @@ -1,10 +1,10 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { pipe } from 'fp-ts/function' -import * as D from 'io-ts/Decoder' +import * as E from 'fp-ts/lib/Either.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' +import * as D from 'io-ts/lib/Decoder.js' import type { LanguageCode } from 'iso-639-1' import { get } from 'spectacles-ts' import { P, match } from 'ts-pattern' diff --git a/src/author-invite-flow/persona-page/persona-form.ts b/src/author-invite-flow/persona-page/persona-form.ts index 8845b972f..ed28fee4d 100644 --- a/src/author-invite-flow/persona-page/persona-form.ts +++ b/src/author-invite-flow/persona-page/persona-form.ts @@ -1,5 +1,5 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { Status } from 'hyper-ts' import { match } from 'ts-pattern' import type { Uuid } from 'uuid-ts' diff --git a/src/author-invite-flow/verify-email-address.ts b/src/author-invite-flow/verify-email-address.ts index b72fe956b..cca7eed09 100644 --- a/src/author-invite-flow/verify-email-address.ts +++ b/src/author-invite-flow/verify-email-address.ts @@ -1,8 +1,8 @@ import { format } from 'fp-ts-routing' -import type * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { pipe } from 'fp-ts/function' +import type * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import type { LanguageCode } from 'iso-639-1' import { P, match } from 'ts-pattern' import type { Uuid } from 'uuid-ts' diff --git a/src/author-invite.ts b/src/author-invite.ts index 1c3d2ed16..6908e057f 100644 --- a/src/author-invite.ts +++ b/src/author-invite.ts @@ -1,8 +1,8 @@ -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { pipe } from 'fp-ts/function' -import * as C from 'io-ts/Codec' -import * as D from 'io-ts/Decoder' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' +import * as C from 'io-ts/lib/Codec.js' +import * as D from 'io-ts/lib/Decoder.js' import { type Orcid, isOrcid } from 'orcid-id-ts' import { match } from 'ts-pattern' import type { Uuid } from 'uuid-ts' diff --git a/src/avatar.ts b/src/avatar.ts index 4012b6f4b..ae413e92b 100644 --- a/src/avatar.ts +++ b/src/avatar.ts @@ -1,6 +1,6 @@ -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { flow, pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import type { Orcid } from 'orcid-id-ts' import { match } from 'ts-pattern' diff --git a/src/career-stage.ts b/src/career-stage.ts index 308b479dd..be8d146d6 100644 --- a/src/career-stage.ts +++ b/src/career-stage.ts @@ -1,7 +1,7 @@ -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { flow } from 'fp-ts/function' -import * as C from 'io-ts/Codec' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { flow } from 'fp-ts/lib/function.js' +import * as C from 'io-ts/lib/Codec.js' import type { Orcid } from 'orcid-id-ts' import { match } from 'ts-pattern' diff --git a/src/cloudinary.ts b/src/cloudinary.ts index c588c7c69..762d5def2 100644 --- a/src/cloudinary.ts +++ b/src/cloudinary.ts @@ -1,17 +1,17 @@ import { now } from 'clock-ts' import { v2 as cloudinary } from 'cloudinary' import * as F from 'fetch-fp-ts' -import * as E from 'fp-ts/Either' -import * as J from 'fp-ts/Json' -import * as R from 'fp-ts/Reader' -import type { Reader } from 'fp-ts/Reader' -import * as RIO from 'fp-ts/ReaderIO' -import * as RTE from 'fp-ts/ReaderTaskEither' -import * as TE from 'fp-ts/TaskEither' -import { constVoid, flow, pipe } from 'fp-ts/function' -import * as s from 'fp-ts/string' +import * as E from 'fp-ts/lib/Either.js' +import * as J from 'fp-ts/lib/Json.js' +import * as R from 'fp-ts/lib/Reader.js' +import type { Reader } from 'fp-ts/lib/Reader.js' +import * as RIO from 'fp-ts/lib/ReaderIO.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import * as TE from 'fp-ts/lib/TaskEither.js' +import { constVoid, flow, pipe } from 'fp-ts/lib/function.js' +import * as s from 'fp-ts/lib/string.js' import { MediaType, Status } from 'hyper-ts' -import * as D from 'io-ts/Decoder' +import * as D from 'io-ts/lib/Decoder.js' import * as L from 'logger-fp-ts' import type { Orcid } from 'orcid-id-ts' import { P, match } from 'ts-pattern' diff --git a/src/club-details.ts b/src/club-details.ts index 43ed592ef..4a065266d 100644 --- a/src/club-details.ts +++ b/src/club-details.ts @@ -1,9 +1,9 @@ -import type * as O from 'fp-ts/Option' -import * as RA from 'fp-ts/ReadonlyArray' -import type * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import * as RR from 'fp-ts/ReadonlyRecord' -import { flow, pipe } from 'fp-ts/function' -import { Eq as stringEq } from 'fp-ts/string' +import type * as O from 'fp-ts/lib/Option.js' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' +import type * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import * as RR from 'fp-ts/lib/ReadonlyRecord.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import { Eq as stringEq } from 'fp-ts/lib/string.js' import { type Orcid, Eq as eqOrcid } from 'orcid-id-ts' import { get } from 'spectacles-ts' import { type Html, html } from './html.js' diff --git a/src/club-profile-page/club-profile-page.ts b/src/club-profile-page/club-profile-page.ts index b799566a8..8256f2408 100644 --- a/src/club-profile-page/club-profile-page.ts +++ b/src/club-profile-page/club-profile-page.ts @@ -1,7 +1,7 @@ import { format } from 'fp-ts-routing' -import * as RA from 'fp-ts/ReadonlyArray' -import * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import { flow, pipe } from 'fp-ts/function' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' +import * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { getLangDir } from 'rtl-detect' import { match } from 'ts-pattern' import type { Club } from '../club-details.js' diff --git a/src/club-profile-page/index.ts b/src/club-profile-page/index.ts index 9a519d540..5eeb0a68f 100644 --- a/src/club-profile-page/index.ts +++ b/src/club-profile-page/index.ts @@ -1,6 +1,6 @@ -import type * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { pipe } from 'fp-ts/function' +import type * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import { getClubDetails } from '../club-details.js' import { havingProblemsPage } from '../http-error.js' import type { PageResponse } from '../response.js' diff --git a/src/club-profile-page/prereviews.ts b/src/club-profile-page/prereviews.ts index 06d12b225..efe8e7b96 100644 --- a/src/club-profile-page/prereviews.ts +++ b/src/club-profile-page/prereviews.ts @@ -1,8 +1,8 @@ import { Temporal } from '@js-temporal/polyfill' -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import type * as TE from 'fp-ts/TaskEither' -import { pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import type { LanguageCode } from 'iso-639-1' import type { Html } from '../html.js' import type { ClubId } from '../types/club-id.js' diff --git a/src/clubs.ts b/src/clubs.ts index aeb524308..03d9109e5 100644 --- a/src/clubs.ts +++ b/src/clubs.ts @@ -1,6 +1,6 @@ import { format } from 'fp-ts-routing' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import { getPage } from './ghost.js' import { type Html, fixHeadingLevels, html, plainText } from './html.js' import { havingProblemsPage } from './http-error.js' diff --git a/src/code-of-conduct.ts b/src/code-of-conduct.ts index 4a20c97d6..1aa5730d1 100644 --- a/src/code-of-conduct.ts +++ b/src/code-of-conduct.ts @@ -1,6 +1,6 @@ import { format } from 'fp-ts-routing' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import { getPage } from './ghost.js' import { type Html, fixHeadingLevels, html, plainText } from './html.js' import { havingProblemsPage } from './http-error.js' diff --git a/src/connect-orcid/connect-orcid.ts b/src/connect-orcid/connect-orcid.ts index e2aa4ec2c..8aca1b2e4 100644 --- a/src/connect-orcid/connect-orcid.ts +++ b/src/connect-orcid/connect-orcid.ts @@ -1,6 +1,6 @@ import { format } from 'fp-ts-routing' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { P, match } from 'ts-pattern' import { canConnectOrcidProfile } from '../feature-flags.js' import { havingProblemsPage, pageNotFound } from '../http-error.js' diff --git a/src/connect-orcid/disconnect-orcid.ts b/src/connect-orcid/disconnect-orcid.ts index bb698b764..2594b4631 100644 --- a/src/connect-orcid/disconnect-orcid.ts +++ b/src/connect-orcid/disconnect-orcid.ts @@ -1,8 +1,8 @@ import * as F from 'fetch-fp-ts' import { format } from 'fp-ts-routing' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { identity, pipe } from 'fp-ts/function' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { identity, pipe } from 'fp-ts/lib/function.js' import { MediaType, Status } from 'hyper-ts' import { P, match } from 'ts-pattern' import { havingProblemsPage } from '../http-error.js' diff --git a/src/connect-orcid/oauth-code.ts b/src/connect-orcid/oauth-code.ts index a0598d5a3..581b94a1d 100644 --- a/src/connect-orcid/oauth-code.ts +++ b/src/connect-orcid/oauth-code.ts @@ -1,14 +1,14 @@ import * as F from 'fetch-fp-ts' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as J from 'fp-ts/Json' -import type { Ord } from 'fp-ts/Ord' -import * as RTE from 'fp-ts/ReaderTaskEither' -import * as RS from 'fp-ts/ReadonlySet' -import { identity, pipe } from 'fp-ts/function' -import { split } from 'fp-ts/string' +import * as E from 'fp-ts/lib/Either.js' +import * as J from 'fp-ts/lib/Json.js' +import type { Ord } from 'fp-ts/lib/Ord.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import * as RS from 'fp-ts/lib/ReadonlySet.js' +import { identity, pipe } from 'fp-ts/lib/function.js' +import { split } from 'fp-ts/lib/string.js' import { MediaType, Status } from 'hyper-ts' -import * as D from 'io-ts/Decoder' +import * as D from 'io-ts/lib/Decoder.js' import type { Orcid } from 'orcid-id-ts' import { maybeGetOrcidToken, saveOrcidToken } from '../orcid-token.js' import { toUrl } from '../public-url.js' diff --git a/src/connect-orcid/oauth-start.ts b/src/connect-orcid/oauth-start.ts index 8013edfe4..d0c907839 100644 --- a/src/connect-orcid/oauth-start.ts +++ b/src/connect-orcid/oauth-start.ts @@ -1,8 +1,8 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as R from 'fp-ts/Reader' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import * as R from 'fp-ts/lib/Reader.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { match } from 'ts-pattern' import { canConnectOrcidProfile } from '../feature-flags.js' import { pageNotFound } from '../http-error.js' diff --git a/src/connect-slack-page/index.ts b/src/connect-slack-page/index.ts index 2003d7a99..94d864dd8 100644 --- a/src/connect-slack-page/index.ts +++ b/src/connect-slack-page/index.ts @@ -1,20 +1,20 @@ import cookie from 'cookie' import * as F from 'fetch-fp-ts' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as J from 'fp-ts/Json' -import type * as O from 'fp-ts/Option' -import type { Ord } from 'fp-ts/Ord' -import * as R from 'fp-ts/Reader' -import * as RTE from 'fp-ts/ReaderTaskEither' -import * as RR from 'fp-ts/ReadonlyRecord' -import * as RS from 'fp-ts/ReadonlySet' -import { flow, identity, pipe } from 'fp-ts/function' -import { split } from 'fp-ts/string' +import * as E from 'fp-ts/lib/Either.js' +import * as J from 'fp-ts/lib/Json.js' +import type * as O from 'fp-ts/lib/Option.js' +import type { Ord } from 'fp-ts/lib/Ord.js' +import * as R from 'fp-ts/lib/Reader.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import * as RR from 'fp-ts/lib/ReadonlyRecord.js' +import * as RS from 'fp-ts/lib/ReadonlySet.js' +import { flow, identity, pipe } from 'fp-ts/lib/function.js' +import { split } from 'fp-ts/lib/string.js' import { MediaType, type ResponseEnded, Status, type StatusOpen } from 'hyper-ts' import type { OAuthEnv } from 'hyper-ts-oauth' -import * as RM from 'hyper-ts/ReaderMiddleware' -import * as D from 'io-ts/Decoder' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import * as D from 'io-ts/lib/Decoder.js' import { get } from 'spectacles-ts' import { P, match } from 'ts-pattern' import { setFlashMessage } from '../flash-message.js' diff --git a/src/contact-email-address.ts b/src/contact-email-address.ts index 6a25119c1..d6335e3d7 100644 --- a/src/contact-email-address.ts +++ b/src/contact-email-address.ts @@ -1,8 +1,8 @@ -import * as RTE from 'fp-ts/ReaderTaskEither' -import type { Refinement } from 'fp-ts/Refinement' -import type * as TE from 'fp-ts/TaskEither' -import { flow } from 'fp-ts/function' -import * as C from 'io-ts/Codec' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type { Refinement } from 'fp-ts/lib/Refinement.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { flow } from 'fp-ts/lib/function.js' +import * as C from 'io-ts/lib/Codec.js' import type { Orcid } from 'orcid-id-ts' import { match } from 'ts-pattern' import type { Uuid } from 'uuid-ts' diff --git a/src/crossref.ts b/src/crossref.ts index 04d6fa72b..9df22385d 100644 --- a/src/crossref.ts +++ b/src/crossref.ts @@ -1,14 +1,14 @@ import { type Work, getWork } from 'crossref-ts' import { type Doi, hasRegistrant } from 'doi-ts' -import * as E from 'fp-ts/Either' -import * as O from 'fp-ts/Option' -import * as RTE from 'fp-ts/ReaderTaskEither' -import * as RA from 'fp-ts/ReadonlyArray' -import type { Refinement } from 'fp-ts/Refinement' -import { flow, pipe } from 'fp-ts/function' -import { isString } from 'fp-ts/string' +import * as E from 'fp-ts/lib/Either.js' +import * as O from 'fp-ts/lib/Option.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' +import type { Refinement } from 'fp-ts/lib/Refinement.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import { isString } from 'fp-ts/lib/string.js' import { Status } from 'hyper-ts' -import * as D from 'io-ts/Decoder' +import * as D from 'io-ts/lib/Decoder.js' import { P, isMatching, match } from 'ts-pattern' import { detectLanguage, detectLanguageFrom } from './detect-language.js' import { revalidateIfStale, timeoutRequest, useStaleCache } from './fetch.js' diff --git a/src/datacite.ts b/src/datacite.ts index 51795bf91..d0ebe502c 100644 --- a/src/datacite.ts +++ b/src/datacite.ts @@ -1,14 +1,14 @@ import { Temporal } from '@js-temporal/polyfill' import { type Work, getWork } from 'datacite-ts' import { type Doi, hasRegistrant } from 'doi-ts' -import * as E from 'fp-ts/Either' -import * as O from 'fp-ts/Option' -import * as RTE from 'fp-ts/ReaderTaskEither' -import * as RA from 'fp-ts/ReadonlyArray' -import type { Refinement } from 'fp-ts/Refinement' -import { flow, identity, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import * as O from 'fp-ts/lib/Option.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' +import type { Refinement } from 'fp-ts/lib/Refinement.js' +import { flow, identity, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as D from 'io-ts/Decoder' +import * as D from 'io-ts/lib/Decoder.js' import { parse } from 'orcid-id-ts' import { P, match } from 'ts-pattern' import { detectLanguage, detectLanguageFrom } from './detect-language.js' diff --git a/src/detect-language.ts b/src/detect-language.ts index 8283057cc..a62755180 100644 --- a/src/detect-language.ts +++ b/src/detect-language.ts @@ -1,5 +1,5 @@ -import * as O from 'fp-ts/Option' -import { flow, pipe } from 'fp-ts/function' +import * as O from 'fp-ts/lib/Option.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import iso6391, { type LanguageCode } from 'iso-639-1' import { detect } from 'tinyld/heavy' import { type Html, plainText } from './html.js' diff --git a/src/disconnect-slack-page/index.ts b/src/disconnect-slack-page/index.ts index f49226b62..b889bd768 100644 --- a/src/disconnect-slack-page/index.ts +++ b/src/disconnect-slack-page/index.ts @@ -1,7 +1,7 @@ import { format } from 'fp-ts-routing' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, pipe } from 'fp-ts/function' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { P, match } from 'ts-pattern' import { havingProblemsPage } from '../http-error.js' import { FlashMessageResponse, LogInResponse, type PageResponse, RedirectResponse } from '../response.js' diff --git a/src/edia-statement.ts b/src/edia-statement.ts index ba1064ff9..8ead58211 100644 --- a/src/edia-statement.ts +++ b/src/edia-statement.ts @@ -1,6 +1,6 @@ import { format } from 'fp-ts-routing' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import { getPage } from './ghost.js' import { type Html, fixHeadingLevels, html, plainText } from './html.js' import { havingProblemsPage } from './http-error.js' diff --git a/src/email.ts b/src/email.ts index 243cdb9ae..801b28f3b 100644 --- a/src/email.ts +++ b/src/email.ts @@ -1,7 +1,7 @@ -import * as R from 'fp-ts/Reader' -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { pipe } from 'fp-ts/function' +import * as R from 'fp-ts/lib/Reader.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import type { Uuid } from 'uuid-ts' import type { UnverifiedContactEmailAddress } from './contact-email-address.js' import { type Html, html, mjmlToHtml, plainText } from './html.js' diff --git a/src/env.ts b/src/env.ts index 17855d128..ddfbc2327 100644 --- a/src/env.ts +++ b/src/env.ts @@ -1,9 +1,9 @@ -import * as C from 'fp-ts/Console' -import * as E from 'fp-ts/Either' -import * as IOE from 'fp-ts/IOEither' -import { flow, pipe } from 'fp-ts/function' -import { split } from 'fp-ts/string' -import * as D from 'io-ts/Decoder' +import * as C from 'fp-ts/lib/Console.js' +import * as E from 'fp-ts/lib/Either.js' +import * as IOE from 'fp-ts/lib/IOEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import { split } from 'fp-ts/lib/string.js' +import * as D from 'io-ts/lib/Decoder.js' import { isOrcid } from 'orcid-id-ts' import { v4 } from 'uuid-ts' import { rawHtml } from './html.js' diff --git a/src/feature-flags.ts b/src/feature-flags.ts index 810411c78..2679c31f9 100644 --- a/src/feature-flags.ts +++ b/src/feature-flags.ts @@ -1,4 +1,4 @@ -import * as R from 'fp-ts/Reader' +import * as R from 'fp-ts/lib/Reader.js' import type { User } from './user.js' export interface CanConnectOrcidProfileEnv { diff --git a/src/fetch.ts b/src/fetch.ts index 75c13f9e3..70f35b679 100644 --- a/src/fetch.ts +++ b/src/fetch.ts @@ -1,6 +1,6 @@ import type * as F from 'fetch-fp-ts' -import type { Json } from 'fp-ts/Json' -import { constVoid } from 'fp-ts/function' +import type { Json } from 'fp-ts/lib/Json.js' +import { constVoid } from 'fp-ts/lib/function.js' import * as L from 'logger-fp-ts' export interface SleepEnv { diff --git a/src/flash-message.ts b/src/flash-message.ts index 773c62f4a..b9349c140 100644 --- a/src/flash-message.ts +++ b/src/flash-message.ts @@ -1,9 +1,9 @@ import cookie from 'cookie' -import * as RR from 'fp-ts/ReadonlyRecord' -import { flow, pipe } from 'fp-ts/function' +import * as RR from 'fp-ts/lib/ReadonlyRecord.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import type { HeadersOpen } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' -import * as D from 'io-ts/Decoder' +import * as M from 'hyper-ts/lib/Middleware.js' +import * as D from 'io-ts/lib/Decoder.js' export const deleteFlashMessage = pipe( M.decodeHeader('Cookie', D.string.decode), diff --git a/src/form.ts b/src/form.ts index d56ba3b5c..a98d5d8de 100644 --- a/src/form.ts +++ b/src/form.ts @@ -1,12 +1,12 @@ -import { sequenceS } from 'fp-ts/Apply' -import * as E from 'fp-ts/Either' -import * as O from 'fp-ts/Option' -import * as RR from 'fp-ts/ReadonlyRecord' -import { flow, pipe } from 'fp-ts/function' -import { isString } from 'fp-ts/string' -import * as DE from 'io-ts/DecodeError' -import type * as D from 'io-ts/Decoder' -import * as FS from 'io-ts/FreeSemigroup' +import { sequenceS } from 'fp-ts/lib/Apply.js' +import * as E from 'fp-ts/lib/Either.js' +import * as O from 'fp-ts/lib/Option.js' +import * as RR from 'fp-ts/lib/ReadonlyRecord.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import { isString } from 'fp-ts/lib/string.js' +import * as DE from 'io-ts/lib/DecodeError.js' +import type * as D from 'io-ts/lib/Decoder.js' +import * as FS from 'io-ts/lib/FreeSemigroup.js' export type FieldDecoders = EnforceNonEmptyRecord E.Either>> diff --git a/src/funding.ts b/src/funding.ts index 1acfcb96d..b4cfff419 100644 --- a/src/funding.ts +++ b/src/funding.ts @@ -1,6 +1,6 @@ import { format } from 'fp-ts-routing' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import { getPage } from './ghost.js' import { type Html, fixHeadingLevels, html, plainText } from './html.js' import { havingProblemsPage } from './http-error.js' diff --git a/src/ghost.ts b/src/ghost.ts index b6726180e..381fabe59 100644 --- a/src/ghost.ts +++ b/src/ghost.ts @@ -1,11 +1,11 @@ import * as F from 'fetch-fp-ts' -import * as E from 'fp-ts/Either' -import * as J from 'fp-ts/Json' -import * as R from 'fp-ts/Reader' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, identity, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import * as J from 'fp-ts/lib/Json.js' +import * as R from 'fp-ts/lib/Reader.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, identity, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as D from 'io-ts/Decoder' +import * as D from 'io-ts/lib/Decoder.js' import { get } from 'spectacles-ts' import { match } from 'ts-pattern' import { URL } from 'url' diff --git a/src/home-page/home-page.ts b/src/home-page/home-page.ts index db160410a..f90d32037 100644 --- a/src/home-page/home-page.ts +++ b/src/home-page/home-page.ts @@ -1,7 +1,7 @@ import { format } from 'fp-ts-routing' -import * as RA from 'fp-ts/ReadonlyArray' -import * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import { flow, pipe } from 'fp-ts/function' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' +import * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { getLangDir } from 'rtl-detect' import { match } from 'ts-pattern' import { getClubName } from '../club-details.js' diff --git a/src/home-page/index.ts b/src/home-page/index.ts index 2d1416e0b..7d336caa8 100644 --- a/src/home-page/index.ts +++ b/src/home-page/index.ts @@ -1,5 +1,5 @@ -import * as RT from 'fp-ts/ReaderTask' -import { pipe } from 'fp-ts/function' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import { pipe } from 'fp-ts/lib/function.js' import { type CanRequestReviewsEnv, type CanSeeGatesLogoEnv, diff --git a/src/home-page/recent-prereviews.ts b/src/home-page/recent-prereviews.ts index 6f2d211b4..00246ceff 100644 --- a/src/home-page/recent-prereviews.ts +++ b/src/home-page/recent-prereviews.ts @@ -1,8 +1,8 @@ import { Temporal } from '@js-temporal/polyfill' -import * as RT from 'fp-ts/ReaderTask' -import type * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import type * as T from 'fp-ts/Task' -import { pipe } from 'fp-ts/function' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import type * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import type * as T from 'fp-ts/lib/Task.js' +import { pipe } from 'fp-ts/lib/function.js' import type { LanguageCode } from 'iso-639-1' import type { Html } from '../html.js' import type { ClubId } from '../types/club-id.js' diff --git a/src/home-page/recent-review-requests.ts b/src/home-page/recent-review-requests.ts index 816a8f17f..b249ea3e0 100644 --- a/src/home-page/recent-review-requests.ts +++ b/src/home-page/recent-review-requests.ts @@ -1,7 +1,7 @@ import { Temporal } from '@js-temporal/polyfill' -import * as RT from 'fp-ts/ReaderTask' -import type * as T from 'fp-ts/Task' -import { pipe } from 'fp-ts/function' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import type * as T from 'fp-ts/lib/Task.js' +import { pipe } from 'fp-ts/lib/function.js' import type { LanguageCode } from 'iso-639-1' import type { Html } from '../html.js' import type { FieldId } from '../types/field.js' diff --git a/src/how-to-use.ts b/src/how-to-use.ts index 8a1ae88c3..7df635526 100644 --- a/src/how-to-use.ts +++ b/src/how-to-use.ts @@ -1,6 +1,6 @@ import { format } from 'fp-ts-routing' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import { getPage } from './ghost.js' import { type Html, fixHeadingLevels, html, plainText } from './html.js' import { havingProblemsPage } from './http-error.js' diff --git a/src/html.ts b/src/html.ts index fa355bcd4..55120c87e 100644 --- a/src/html.ts +++ b/src/html.ts @@ -1,10 +1,10 @@ -import type { Refinement } from 'fp-ts/Refinement' -import { pipe } from 'fp-ts/function' +import type { Refinement } from 'fp-ts/lib/Refinement.js' +import { pipe } from 'fp-ts/lib/function.js' import { decode } from 'html-entities' import { type HeadersOpen, MediaType, type ResponseEnded } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' -import * as C from 'io-ts/Codec' -import * as D from 'io-ts/Decoder' +import * as M from 'hyper-ts/lib/Middleware.js' +import * as C from 'io-ts/lib/Codec.js' +import * as D from 'io-ts/lib/Decoder.js' import katex from 'katex' import processMjml from 'mjml' import nanohtml from 'nanohtml' diff --git a/src/http-error.ts b/src/http-error.ts index 33aad1edc..156afabbc 100644 --- a/src/http-error.ts +++ b/src/http-error.ts @@ -1,7 +1,7 @@ -import { pipe } from 'fp-ts/function' +import { pipe } from 'fp-ts/lib/function.js' import type { HttpError } from 'http-errors' import { Status } from 'hyper-ts' -import * as RM from 'hyper-ts/ReaderMiddleware' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' import { match } from 'ts-pattern' import { html, plainText, sendHtml } from './html.js' import { templatePage } from './page.js' diff --git a/src/index.ts b/src/index.ts index 363bc9727..9552508dd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,10 +2,10 @@ import { createTerminus } from '@godaddy/terminus' import KeyvRedis from '@keyv/redis' import { SystemClock } from 'clock-ts' import * as dns from 'dns' -import * as C from 'fp-ts/Console' -import * as E from 'fp-ts/Either' -import * as RT from 'fp-ts/ReaderTask' -import { pipe } from 'fp-ts/function' +import * as C from 'fp-ts/lib/Console.js' +import * as E from 'fp-ts/lib/Either.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import { pipe } from 'fp-ts/lib/function.js' import Redis from 'ioredis' import Keyv from 'keyv' import * as L from 'logger-fp-ts' diff --git a/src/is-open-for-requests.ts b/src/is-open-for-requests.ts index 2637073c5..7b451f979 100644 --- a/src/is-open-for-requests.ts +++ b/src/is-open-for-requests.ts @@ -1,9 +1,9 @@ -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { flow, pipe } from 'fp-ts/function' -import * as C from 'io-ts/Codec' -import * as D from 'io-ts/Decoder' -import * as E from 'io-ts/Encoder' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as C from 'io-ts/lib/Codec.js' +import * as D from 'io-ts/lib/Decoder.js' +import * as E from 'io-ts/lib/Encoder.js' import type { Orcid } from 'orcid-id-ts' import { match } from 'ts-pattern' diff --git a/src/keyv.ts b/src/keyv.ts index dc467b56f..fd000c526 100644 --- a/src/keyv.ts +++ b/src/keyv.ts @@ -1,11 +1,11 @@ -import * as E from 'fp-ts/Either' -import * as RTE from 'fp-ts/ReaderTaskEither' -import * as TE from 'fp-ts/TaskEither' -import { flow, identity, pipe } from 'fp-ts/function' -import type { Decoder } from 'io-ts/Decoder' -import * as D from 'io-ts/Decoder' -import type { Encoder } from 'io-ts/Encoder' -import * as EN from 'io-ts/Encoder' +import * as E from 'fp-ts/lib/Either.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import * as TE from 'fp-ts/lib/TaskEither.js' +import { flow, identity, pipe } from 'fp-ts/lib/function.js' +import type { Decoder } from 'io-ts/lib/Decoder.js' +import * as D from 'io-ts/lib/Decoder.js' +import type { Encoder } from 'io-ts/lib/Encoder.js' +import * as EN from 'io-ts/lib/Encoder.js' import type Keyv from 'keyv' import * as L from 'logger-fp-ts' import type { Orcid } from 'orcid-id-ts' diff --git a/src/languages.ts b/src/languages.ts index 1bdb629ee..b9865da04 100644 --- a/src/languages.ts +++ b/src/languages.ts @@ -1,7 +1,7 @@ -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { flow } from 'fp-ts/function' -import * as C from 'io-ts/Codec' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { flow } from 'fp-ts/lib/function.js' +import * as C from 'io-ts/lib/Codec.js' import type { Orcid } from 'orcid-id-ts' import { match } from 'ts-pattern' import { type NonEmptyString, NonEmptyStringC } from './types/string.js' diff --git a/src/legacy-prereview.ts b/src/legacy-prereview.ts index 037ae8859..07ecc2ac8 100644 --- a/src/legacy-prereview.ts +++ b/src/legacy-prereview.ts @@ -1,15 +1,15 @@ import { type Doi, isDoi } from 'doi-ts' import * as F from 'fetch-fp-ts' -import * as E from 'fp-ts/Either' -import * as J from 'fp-ts/Json' -import * as O from 'fp-ts/Option' -import * as R from 'fp-ts/Reader' -import * as RTE from 'fp-ts/ReaderTaskEither' -import * as RA from 'fp-ts/ReadonlyArray' -import * as b from 'fp-ts/boolean' -import { constVoid, flow, identity, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import * as J from 'fp-ts/lib/Json.js' +import * as O from 'fp-ts/lib/Option.js' +import * as R from 'fp-ts/lib/Reader.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' +import * as b from 'fp-ts/lib/boolean.js' +import { constVoid, flow, identity, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as D from 'io-ts/Decoder' +import * as D from 'io-ts/lib/Decoder.js' import { type Orcid, isOrcid } from 'orcid-id-ts' import { get } from 'spectacles-ts' import { P, match } from 'ts-pattern' diff --git a/src/legacy-routes/index.ts b/src/legacy-routes/index.ts index e9e77d935..47a2ff9af 100644 --- a/src/legacy-routes/index.ts +++ b/src/legacy-routes/index.ts @@ -1,17 +1,17 @@ import { type Doi, isDoi } from 'doi-ts' import { format } from 'fp-ts-routing' import * as P from 'fp-ts-routing' -import { concatAll } from 'fp-ts/Monoid' -import * as O from 'fp-ts/Option' -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { constant, flow, pipe, tuple } from 'fp-ts/function' +import { concatAll } from 'fp-ts/lib/Monoid.js' +import * as O from 'fp-ts/lib/Option.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { constant, flow, pipe, tuple } from 'fp-ts/lib/function.js' import { NotFound } from 'http-errors' import type { ResponseEnded, StatusOpen } from 'hyper-ts' import { route } from 'hyper-ts-routing' -import * as RM from 'hyper-ts/ReaderMiddleware' -import * as C from 'io-ts/Codec' -import * as D from 'io-ts/Decoder' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import * as C from 'io-ts/lib/Codec.js' +import * as D from 'io-ts/lib/Decoder.js' import { match, P as p } from 'ts-pattern' import type { Uuid } from 'uuid-ts' import { movedPermanently, notFound, serviceUnavailable } from '../middleware.js' diff --git a/src/live-reviews.ts b/src/live-reviews.ts index 41f4eb367..5d0f53c93 100644 --- a/src/live-reviews.ts +++ b/src/live-reviews.ts @@ -1,6 +1,6 @@ import { format } from 'fp-ts-routing' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import { getPage } from './ghost.js' import { type Html, fixHeadingLevels, html, plainText } from './html.js' import { havingProblemsPage } from './http-error.js' diff --git a/src/location.ts b/src/location.ts index f69034c67..c9c819beb 100644 --- a/src/location.ts +++ b/src/location.ts @@ -1,7 +1,7 @@ -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { flow } from 'fp-ts/function' -import * as C from 'io-ts/Codec' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { flow } from 'fp-ts/lib/function.js' +import * as C from 'io-ts/lib/Codec.js' import type { Orcid } from 'orcid-id-ts' import { match } from 'ts-pattern' import { type NonEmptyString, NonEmptyStringC } from './types/string.js' diff --git a/src/log-in/index.ts b/src/log-in/index.ts index 4a2bde519..eacdd8532 100644 --- a/src/log-in/index.ts +++ b/src/log-in/index.ts @@ -1,18 +1,18 @@ import type { FetchEnv } from 'fetch-fp-ts' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as O from 'fp-ts/Option' -import * as R from 'fp-ts/Reader' -import * as RE from 'fp-ts/ReaderEither' -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { constant, flow, pipe } from 'fp-ts/function' -import { isString } from 'fp-ts/string' +import * as E from 'fp-ts/lib/Either.js' +import * as O from 'fp-ts/lib/Option.js' +import * as R from 'fp-ts/lib/Reader.js' +import * as RE from 'fp-ts/lib/ReaderEither.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { constant, flow, pipe } from 'fp-ts/lib/function.js' +import { isString } from 'fp-ts/lib/string.js' import { type OAuthEnv, exchangeAuthorizationCode, requestAuthorizationCode } from 'hyper-ts-oauth' import { endSession as _endSession, storeSession } from 'hyper-ts-session' -import * as RM from 'hyper-ts/ReaderMiddleware' -import * as C from 'io-ts/Codec' -import * as D from 'io-ts/Decoder' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import * as C from 'io-ts/lib/Codec.js' +import * as D from 'io-ts/lib/Decoder.js' import * as L from 'logger-fp-ts' import { type Orcid, isOrcid } from 'orcid-id-ts' import { get } from 'spectacles-ts' diff --git a/src/mailjet.ts b/src/mailjet.ts index 22ef81e4a..b4b810bd8 100644 --- a/src/mailjet.ts +++ b/src/mailjet.ts @@ -1,13 +1,13 @@ import * as F from 'fetch-fp-ts' -import { mapLeft } from 'fp-ts/Either' -import type { Json } from 'fp-ts/Json' -import * as J from 'fp-ts/Json' -import * as RTE from 'fp-ts/ReaderTaskEither' -import * as TE from 'fp-ts/TaskEither' -import { constVoid, flow, pipe } from 'fp-ts/function' +import { mapLeft } from 'fp-ts/lib/Either.js' +import type { Json } from 'fp-ts/lib/Json.js' +import * as J from 'fp-ts/lib/Json.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import * as TE from 'fp-ts/lib/TaskEither.js' +import { constVoid, flow, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as D from 'io-ts/Decoder' -import * as E from 'io-ts/Encoder' +import * as D from 'io-ts/lib/Decoder.js' +import * as E from 'io-ts/lib/Encoder.js' import * as L from 'logger-fp-ts' import type { Email } from './email.js' import { RawHtmlC } from './html.js' diff --git a/src/middleware.ts b/src/middleware.ts index 34c45cce4..6a12c2f44 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -1,7 +1,7 @@ -import { pipe } from 'fp-ts/function' +import { pipe } from 'fp-ts/lib/function.js' import { NotFound, ServiceUnavailable } from 'http-errors' import { type ResponseEnded, Status, type StatusOpen } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' +import * as M from 'hyper-ts/lib/Middleware.js' import { handleError } from './http-error.js' export const seeOther: (location: string) => M.Middleware = location => diff --git a/src/my-details-page/change-avatar-form-page.ts b/src/my-details-page/change-avatar-form-page.ts index d8f52dfc2..2bfc80f89 100644 --- a/src/my-details-page/change-avatar-form-page.ts +++ b/src/my-details-page/change-avatar-form-page.ts @@ -1,5 +1,5 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { Status } from 'hyper-ts' import { match } from 'ts-pattern' import { type MissingE, type TooBigE, type WrongTypeE, hasAnError } from '../form.js' diff --git a/src/my-details-page/change-avatar.ts b/src/my-details-page/change-avatar.ts index d32826e1f..48caab3a4 100644 --- a/src/my-details-page/change-avatar.ts +++ b/src/my-details-page/change-avatar.ts @@ -1,10 +1,10 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import type { Reader } from 'fp-ts/Reader' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, pipe } from 'fp-ts/function' -import * as D from 'io-ts/Decoder' +import * as E from 'fp-ts/lib/Either.js' +import type { Reader } from 'fp-ts/lib/Reader.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as D from 'io-ts/lib/Decoder.js' import { P, match } from 'ts-pattern' import { saveAvatar } from '../avatar.js' import { canUploadAvatar } from '../feature-flags.js' diff --git a/src/my-details-page/change-career-stage-form-page.ts b/src/my-details-page/change-career-stage-form-page.ts index afbe07b05..03e9a23dc 100644 --- a/src/my-details-page/change-career-stage-form-page.ts +++ b/src/my-details-page/change-career-stage-form-page.ts @@ -1,5 +1,5 @@ import { format } from 'fp-ts-routing' -import type * as O from 'fp-ts/Option' +import type * as O from 'fp-ts/lib/Option.js' import { Status } from 'hyper-ts' import { match } from 'ts-pattern' import type { CareerStage } from '../career-stage.js' diff --git a/src/my-details-page/change-career-stage-visibility.ts b/src/my-details-page/change-career-stage-visibility.ts index cef70bf9c..a5727bc22 100644 --- a/src/my-details-page/change-career-stage-visibility.ts +++ b/src/my-details-page/change-career-stage-visibility.ts @@ -1,9 +1,9 @@ import { format } from 'fp-ts-routing' -import type { Reader } from 'fp-ts/Reader' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, pipe } from 'fp-ts/function' -import * as D from 'io-ts/Decoder' +import type { Reader } from 'fp-ts/lib/Reader.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as D from 'io-ts/lib/Decoder.js' import { match } from 'ts-pattern' import { type CareerStage, getCareerStage, saveCareerStage } from '../career-stage.js' import { havingProblemsPage } from '../http-error.js' diff --git a/src/my-details-page/change-career-stage.ts b/src/my-details-page/change-career-stage.ts index f8798aa7c..92f6614c8 100644 --- a/src/my-details-page/change-career-stage.ts +++ b/src/my-details-page/change-career-stage.ts @@ -1,10 +1,10 @@ import { format } from 'fp-ts-routing' -import * as O from 'fp-ts/Option' -import type { Reader } from 'fp-ts/Reader' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, pipe } from 'fp-ts/function' -import * as D from 'io-ts/Decoder' +import * as O from 'fp-ts/lib/Option.js' +import type { Reader } from 'fp-ts/lib/Reader.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as D from 'io-ts/lib/Decoder.js' import { get } from 'spectacles-ts' import { P, match } from 'ts-pattern' import { deleteCareerStage, getCareerStage, saveCareerStage } from '../career-stage.js' diff --git a/src/my-details-page/change-contact-email-address-form-page.ts b/src/my-details-page/change-contact-email-address-form-page.ts index 4efca7714..8e75e62cb 100644 --- a/src/my-details-page/change-contact-email-address-form-page.ts +++ b/src/my-details-page/change-contact-email-address-form-page.ts @@ -1,5 +1,5 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { Status } from 'hyper-ts' import { P, match } from 'ts-pattern' import { type InvalidE, type MissingE, hasAnError } from '../form.js' diff --git a/src/my-details-page/change-contact-email-address.ts b/src/my-details-page/change-contact-email-address.ts index 0f131e1e6..56d3b3817 100644 --- a/src/my-details-page/change-contact-email-address.ts +++ b/src/my-details-page/change-contact-email-address.ts @@ -1,12 +1,12 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as O from 'fp-ts/Option' -import type { Reader } from 'fp-ts/Reader' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, pipe } from 'fp-ts/function' -import * as s from 'fp-ts/string' -import * as D from 'io-ts/Decoder' +import * as E from 'fp-ts/lib/Either.js' +import * as O from 'fp-ts/lib/Option.js' +import type { Reader } from 'fp-ts/lib/Reader.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as s from 'fp-ts/lib/string.js' +import * as D from 'io-ts/lib/Decoder.js' import { get } from 'spectacles-ts' import { P, match } from 'ts-pattern' import { diff --git a/src/my-details-page/change-languages-form-page.ts b/src/my-details-page/change-languages-form-page.ts index 5e4666e9f..be29ba3e3 100644 --- a/src/my-details-page/change-languages-form-page.ts +++ b/src/my-details-page/change-languages-form-page.ts @@ -1,5 +1,5 @@ import { format } from 'fp-ts-routing' -import * as O from 'fp-ts/Option' +import * as O from 'fp-ts/lib/Option.js' import { P, match } from 'ts-pattern' import { html, plainText } from '../html.js' import type { Languages } from '../languages.js' diff --git a/src/my-details-page/change-languages-visibility.ts b/src/my-details-page/change-languages-visibility.ts index 343ee2aeb..43a669079 100644 --- a/src/my-details-page/change-languages-visibility.ts +++ b/src/my-details-page/change-languages-visibility.ts @@ -1,9 +1,9 @@ import { format } from 'fp-ts-routing' -import type { Reader } from 'fp-ts/Reader' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, pipe } from 'fp-ts/function' -import * as D from 'io-ts/Decoder' +import type { Reader } from 'fp-ts/lib/Reader.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as D from 'io-ts/lib/Decoder.js' import { match } from 'ts-pattern' import { havingProblemsPage } from '../http-error.js' import { type Languages, getLanguages, saveLanguages } from '../languages.js' diff --git a/src/my-details-page/change-languages.ts b/src/my-details-page/change-languages.ts index d0eaf03cf..1c16a8e55 100644 --- a/src/my-details-page/change-languages.ts +++ b/src/my-details-page/change-languages.ts @@ -1,10 +1,10 @@ import { format } from 'fp-ts-routing' -import * as O from 'fp-ts/Option' -import type { Reader } from 'fp-ts/Reader' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, pipe } from 'fp-ts/function' -import * as D from 'io-ts/Decoder' +import * as O from 'fp-ts/lib/Option.js' +import type { Reader } from 'fp-ts/lib/Reader.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as D from 'io-ts/lib/Decoder.js' import { get } from 'spectacles-ts' import { match } from 'ts-pattern' import { havingProblemsPage } from '../http-error.js' diff --git a/src/my-details-page/change-location-form-page.ts b/src/my-details-page/change-location-form-page.ts index 419587831..2a55e5940 100644 --- a/src/my-details-page/change-location-form-page.ts +++ b/src/my-details-page/change-location-form-page.ts @@ -1,5 +1,5 @@ import { format } from 'fp-ts-routing' -import * as O from 'fp-ts/Option' +import * as O from 'fp-ts/lib/Option.js' import { P, match } from 'ts-pattern' import { html, plainText } from '../html.js' import type { Location } from '../location.js' diff --git a/src/my-details-page/change-location-visibility.ts b/src/my-details-page/change-location-visibility.ts index 24ee299c3..e41aae224 100644 --- a/src/my-details-page/change-location-visibility.ts +++ b/src/my-details-page/change-location-visibility.ts @@ -1,9 +1,9 @@ import { format } from 'fp-ts-routing' -import type { Reader } from 'fp-ts/Reader' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, pipe } from 'fp-ts/function' -import * as D from 'io-ts/Decoder' +import type { Reader } from 'fp-ts/lib/Reader.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as D from 'io-ts/lib/Decoder.js' import { match } from 'ts-pattern' import { havingProblemsPage } from '../http-error.js' import { type Location, getLocation, saveLocation } from '../location.js' diff --git a/src/my-details-page/change-location.ts b/src/my-details-page/change-location.ts index fbc483574..bcd96764d 100644 --- a/src/my-details-page/change-location.ts +++ b/src/my-details-page/change-location.ts @@ -1,10 +1,10 @@ import { format } from 'fp-ts-routing' -import * as O from 'fp-ts/Option' -import type { Reader } from 'fp-ts/Reader' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, pipe } from 'fp-ts/function' -import * as D from 'io-ts/Decoder' +import * as O from 'fp-ts/lib/Option.js' +import type { Reader } from 'fp-ts/lib/Reader.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as D from 'io-ts/lib/Decoder.js' import { get } from 'spectacles-ts' import { match } from 'ts-pattern' import { havingProblemsPage } from '../http-error.js' diff --git a/src/my-details-page/change-open-for-requests-form-page.ts b/src/my-details-page/change-open-for-requests-form-page.ts index 8efab5241..1eefbbd3c 100644 --- a/src/my-details-page/change-open-for-requests-form-page.ts +++ b/src/my-details-page/change-open-for-requests-form-page.ts @@ -1,5 +1,5 @@ import { format } from 'fp-ts-routing' -import type * as O from 'fp-ts/Option' +import type * as O from 'fp-ts/lib/Option.js' import { Status } from 'hyper-ts' import { match } from 'ts-pattern' import { html, plainText, rawHtml } from '../html.js' diff --git a/src/my-details-page/change-open-for-requests-visibility.ts b/src/my-details-page/change-open-for-requests-visibility.ts index d6fd9d265..c83d411de 100644 --- a/src/my-details-page/change-open-for-requests-visibility.ts +++ b/src/my-details-page/change-open-for-requests-visibility.ts @@ -1,9 +1,9 @@ import { format } from 'fp-ts-routing' -import type { Reader } from 'fp-ts/Reader' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, pipe } from 'fp-ts/function' -import * as D from 'io-ts/Decoder' +import type { Reader } from 'fp-ts/lib/Reader.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as D from 'io-ts/lib/Decoder.js' import { match } from 'ts-pattern' import { havingProblemsPage } from '../http-error.js' import { type IsOpenForRequests, isOpenForRequests, saveOpenForRequests } from '../is-open-for-requests.js' diff --git a/src/my-details-page/change-open-for-requests.ts b/src/my-details-page/change-open-for-requests.ts index c8986a929..b13c31ceb 100644 --- a/src/my-details-page/change-open-for-requests.ts +++ b/src/my-details-page/change-open-for-requests.ts @@ -1,10 +1,10 @@ import { format } from 'fp-ts-routing' -import * as O from 'fp-ts/Option' -import type { Reader } from 'fp-ts/Reader' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, identity, pipe } from 'fp-ts/function' -import * as D from 'io-ts/Decoder' +import * as O from 'fp-ts/lib/Option.js' +import type { Reader } from 'fp-ts/lib/Reader.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, identity, pipe } from 'fp-ts/lib/function.js' +import * as D from 'io-ts/lib/Decoder.js' import { P, match } from 'ts-pattern' import { havingProblemsPage } from '../http-error.js' import { diff --git a/src/my-details-page/change-research-interests-form-page.ts b/src/my-details-page/change-research-interests-form-page.ts index 0addf2527..7dc441ab2 100644 --- a/src/my-details-page/change-research-interests-form-page.ts +++ b/src/my-details-page/change-research-interests-form-page.ts @@ -1,5 +1,5 @@ import { format } from 'fp-ts-routing' -import * as O from 'fp-ts/Option' +import * as O from 'fp-ts/lib/Option.js' import { P, match } from 'ts-pattern' import { html, plainText, rawHtml } from '../html.js' import type { ResearchInterests } from '../research-interests.js' diff --git a/src/my-details-page/change-research-interests-visibility.ts b/src/my-details-page/change-research-interests-visibility.ts index 4803feefc..c718892df 100644 --- a/src/my-details-page/change-research-interests-visibility.ts +++ b/src/my-details-page/change-research-interests-visibility.ts @@ -1,9 +1,9 @@ import { format } from 'fp-ts-routing' -import type { Reader } from 'fp-ts/Reader' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, pipe } from 'fp-ts/function' -import * as D from 'io-ts/Decoder' +import type { Reader } from 'fp-ts/lib/Reader.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as D from 'io-ts/lib/Decoder.js' import { match } from 'ts-pattern' import { havingProblemsPage } from '../http-error.js' import { type ResearchInterests, getResearchInterests, saveResearchInterests } from '../research-interests.js' diff --git a/src/my-details-page/change-research-interests.ts b/src/my-details-page/change-research-interests.ts index b4b5d294b..d30e19625 100644 --- a/src/my-details-page/change-research-interests.ts +++ b/src/my-details-page/change-research-interests.ts @@ -1,10 +1,10 @@ import { format } from 'fp-ts-routing' -import * as O from 'fp-ts/Option' -import type { Reader } from 'fp-ts/Reader' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, pipe } from 'fp-ts/function' -import * as D from 'io-ts/Decoder' +import * as O from 'fp-ts/lib/Option.js' +import type { Reader } from 'fp-ts/lib/Reader.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as D from 'io-ts/lib/Decoder.js' import { get } from 'spectacles-ts' import { match } from 'ts-pattern' import { havingProblemsPage } from '../http-error.js' diff --git a/src/my-details-page/my-details-page.ts b/src/my-details-page/my-details-page.ts index aaeaba485..3fda246ca 100644 --- a/src/my-details-page/my-details-page.ts +++ b/src/my-details-page/my-details-page.ts @@ -1,5 +1,5 @@ import { format } from 'fp-ts-routing' -import * as O from 'fp-ts/Option' +import * as O from 'fp-ts/lib/Option.js' import { P, match } from 'ts-pattern' import type { CareerStage } from '../career-stage.js' import type { ContactEmailAddress } from '../contact-email-address.js' diff --git a/src/my-details-page/my-details.ts b/src/my-details-page/my-details.ts index a8818f399..7a83372a3 100644 --- a/src/my-details-page/my-details.ts +++ b/src/my-details-page/my-details.ts @@ -1,8 +1,8 @@ import { format } from 'fp-ts-routing' -import * as O from 'fp-ts/Option' -import type { Reader } from 'fp-ts/Reader' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { pipe } from 'fp-ts/function' +import * as O from 'fp-ts/lib/Option.js' +import type { Reader } from 'fp-ts/lib/Reader.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import { match } from 'ts-pattern' import { maybeGetAvatar } from '../avatar.js' import { maybeGetCareerStage } from '../career-stage.js' diff --git a/src/my-details-page/remove-avatar.ts b/src/my-details-page/remove-avatar.ts index b7a55c669..1dbd076a3 100644 --- a/src/my-details-page/remove-avatar.ts +++ b/src/my-details-page/remove-avatar.ts @@ -1,8 +1,8 @@ import { format } from 'fp-ts-routing' -import type { Reader } from 'fp-ts/Reader' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { pipe } from 'fp-ts/function' +import type { Reader } from 'fp-ts/lib/Reader.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import { match } from 'ts-pattern' import { deleteAvatar, getAvatar } from '../avatar.js' import { havingProblemsPage } from '../http-error.js' diff --git a/src/my-details-page/verify-contact-email-address.ts b/src/my-details-page/verify-contact-email-address.ts index 69c4f698e..38a6c63f9 100644 --- a/src/my-details-page/verify-contact-email-address.ts +++ b/src/my-details-page/verify-contact-email-address.ts @@ -1,7 +1,7 @@ import { format } from 'fp-ts-routing' -import type { Reader } from 'fp-ts/Reader' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, pipe } from 'fp-ts/function' +import type { Reader } from 'fp-ts/lib/Reader.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { match } from 'ts-pattern' import type { Uuid } from 'uuid-ts' import { getContactEmailAddress, isUnverified, saveContactEmailAddress } from '../contact-email-address.js' diff --git a/src/my-prereviews-page/index.ts b/src/my-prereviews-page/index.ts index e47ea2fa1..4f1618506 100644 --- a/src/my-prereviews-page/index.ts +++ b/src/my-prereviews-page/index.ts @@ -1,6 +1,6 @@ -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, identity, pipe } from 'fp-ts/function' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, identity, pipe } from 'fp-ts/lib/function.js' import { get } from 'spectacles-ts' import { match } from 'ts-pattern' import type { Response } from '../response.js' diff --git a/src/my-prereviews-page/list-of-prereviews.ts b/src/my-prereviews-page/list-of-prereviews.ts index 139426854..29a45fb19 100644 --- a/src/my-prereviews-page/list-of-prereviews.ts +++ b/src/my-prereviews-page/list-of-prereviews.ts @@ -1,7 +1,7 @@ import { format } from 'fp-ts-routing' -import * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import type { ReadonlyNonEmptyArray } from 'fp-ts/ReadonlyNonEmptyArray' -import { flow, pipe } from 'fp-ts/function' +import * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import type { ReadonlyNonEmptyArray } from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { getLangDir } from 'rtl-detect' import { match } from 'ts-pattern' import { type Html, html, plainText, rawHtml } from '../html.js' diff --git a/src/my-prereviews-page/no-prereviews.ts b/src/my-prereviews-page/no-prereviews.ts index e83f8ff4a..04aee27a5 100644 --- a/src/my-prereviews-page/no-prereviews.ts +++ b/src/my-prereviews-page/no-prereviews.ts @@ -1,7 +1,7 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as RA from 'fp-ts/ReadonlyArray' -import type { ReadonlyNonEmptyArray } from 'fp-ts/ReadonlyNonEmptyArray' +import * as E from 'fp-ts/lib/Either.js' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' +import type { ReadonlyNonEmptyArray } from 'fp-ts/lib/ReadonlyNonEmptyArray.js' import { html, plainText } from '../html.js' import { PageResponse } from '../response.js' import { myPrereviewsMatch, reviewAPreprintMatch } from '../routes.js' diff --git a/src/my-prereviews-page/prereviews.ts b/src/my-prereviews-page/prereviews.ts index 703306573..6caa4031a 100644 --- a/src/my-prereviews-page/prereviews.ts +++ b/src/my-prereviews-page/prereviews.ts @@ -1,8 +1,8 @@ import { Temporal } from '@js-temporal/polyfill' -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import type * as TE from 'fp-ts/TaskEither' -import { pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import type { LanguageCode } from 'iso-639-1' import type { Html } from '../html.js' import type { ClubId } from '../types/club-id.js' diff --git a/src/my-prereviews-page/require-log-in.ts b/src/my-prereviews-page/require-log-in.ts index f5319c4a0..703d6a2f3 100644 --- a/src/my-prereviews-page/require-log-in.ts +++ b/src/my-prereviews-page/require-log-in.ts @@ -1,5 +1,5 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import * as Response from '../response.js' import { myPrereviewsMatch } from '../routes.js' import type { User } from '../user.js' diff --git a/src/nodemailer.ts b/src/nodemailer.ts index cd2eb91db..7518d00c7 100644 --- a/src/nodemailer.ts +++ b/src/nodemailer.ts @@ -1,8 +1,8 @@ -import { toError } from 'fp-ts/Either' -import * as RTE from 'fp-ts/ReaderTaskEither' -import * as TE from 'fp-ts/TaskEither' -import { flow, pipe } from 'fp-ts/function' -import type * as E from 'io-ts/Encoder' +import { toError } from 'fp-ts/lib/Either.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import * as TE from 'fp-ts/lib/TaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import type * as E from 'io-ts/lib/Encoder.js' import * as L from 'logger-fp-ts' import type { SendMailOptions, Transporter } from 'nodemailer' import type { Email } from './email.js' diff --git a/src/openalex/http.ts b/src/openalex/http.ts index 731c57a4d..20b807cbe 100644 --- a/src/openalex/http.ts +++ b/src/openalex/http.ts @@ -1,4 +1,4 @@ -import type * as D from 'io-ts/Decoder' +import type * as D from 'io-ts/lib/Decoder.js' export interface NetworkError { readonly _tag: 'NetworkError' diff --git a/src/openalex/index.ts b/src/openalex/index.ts index 250392953..f20df669f 100644 --- a/src/openalex/index.ts +++ b/src/openalex/index.ts @@ -1,8 +1,8 @@ -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, pipe } from 'fp-ts/function' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as D from 'io-ts/Decoder' +import * as D from 'io-ts/lib/Decoder.js' import * as L from 'logger-fp-ts' import { P, match } from 'ts-pattern' import { revalidateIfStale, useStaleCache } from '../fetch.js' diff --git a/src/openalex/work.ts b/src/openalex/work.ts index 929ef0176..d1bacb2ac 100644 --- a/src/openalex/work.ts +++ b/src/openalex/work.ts @@ -1,16 +1,16 @@ import { type Doi, toUrl } from 'doi-ts' import * as F from 'fetch-fp-ts' -import * as E from 'fp-ts/Either' -import * as Eq from 'fp-ts/Eq' -import * as J from 'fp-ts/Json' -import * as RTE from 'fp-ts/ReaderTaskEither' -import * as RA from 'fp-ts/ReadonlyArray' -import * as TE from 'fp-ts/TaskEither' -import { flow, pipe } from 'fp-ts/function' -import * as s from 'fp-ts/string' +import * as E from 'fp-ts/lib/Either.js' +import * as Eq from 'fp-ts/lib/Eq.js' +import * as J from 'fp-ts/lib/Json.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' +import * as TE from 'fp-ts/lib/TaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as s from 'fp-ts/lib/string.js' import { Status } from 'hyper-ts' -import * as C from 'io-ts/Codec' -import * as D from 'io-ts/Decoder' +import * as C from 'io-ts/lib/Codec.js' +import * as D from 'io-ts/lib/Decoder.js' import { get } from 'spectacles-ts' import { timeoutRequest } from '../fetch.js' import { NetworkError, UnableToDecodeBody, UnexpectedStatusCode } from './http.js' diff --git a/src/orcid-token.ts b/src/orcid-token.ts index 029303e2d..29e7944b2 100644 --- a/src/orcid-token.ts +++ b/src/orcid-token.ts @@ -1,9 +1,9 @@ -import type { Ord } from 'fp-ts/Ord' -import * as RTE from 'fp-ts/ReaderTaskEither' -import * as RS from 'fp-ts/ReadonlySet' -import type * as TE from 'fp-ts/TaskEither' -import { flow, pipe } from 'fp-ts/function' -import * as C from 'io-ts/Codec' +import type { Ord } from 'fp-ts/lib/Ord.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import * as RS from 'fp-ts/lib/ReadonlySet.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as C from 'io-ts/lib/Codec.js' import type { Orcid } from 'orcid-id-ts' import { match } from 'ts-pattern' import { type NonEmptyString, NonEmptyStringC, ordNonEmptyString } from './types/string.js' diff --git a/src/orcid.ts b/src/orcid.ts index 07e03b56b..e06ae37d3 100644 --- a/src/orcid.ts +++ b/src/orcid.ts @@ -1,13 +1,13 @@ import * as F from 'fetch-fp-ts' -import * as E from 'fp-ts/Either' -import * as J from 'fp-ts/Json' -import * as R from 'fp-ts/Reader' -import * as RTE from 'fp-ts/ReaderTaskEither' -import * as TE from 'fp-ts/TaskEither' -import { flow, identity, pipe } from 'fp-ts/function' -import * as s from 'fp-ts/string' +import * as E from 'fp-ts/lib/Either.js' +import * as J from 'fp-ts/lib/Json.js' +import * as R from 'fp-ts/lib/Reader.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import * as TE from 'fp-ts/lib/TaskEither.js' +import { flow, identity, pipe } from 'fp-ts/lib/function.js' +import * as s from 'fp-ts/lib/string.js' import { Status } from 'hyper-ts' -import * as D from 'io-ts/Decoder' +import * as D from 'io-ts/lib/Decoder.js' import * as L from 'logger-fp-ts' import type { Orcid } from 'orcid-id-ts' import { P, match } from 'ts-pattern' diff --git a/src/page.ts b/src/page.ts index 1326cda42..bf267df04 100644 --- a/src/page.ts +++ b/src/page.ts @@ -1,9 +1,9 @@ import { format } from 'fp-ts-routing' -import type { Eq } from 'fp-ts/Eq' -import * as R from 'fp-ts/Reader' -import * as RA from 'fp-ts/ReadonlyArray' -import { flow, pipe } from 'fp-ts/function' -import * as s from 'fp-ts/string' +import type { Eq } from 'fp-ts/lib/Eq.js' +import * as R from 'fp-ts/lib/Reader.js' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as s from 'fp-ts/lib/string.js' import { match } from 'ts-pattern' import { type Html, type PlainText, html, rawHtml } from './html.js' import * as assets from './manifest.json' diff --git a/src/people.ts b/src/people.ts index d32ffbff9..18f2bcd8c 100644 --- a/src/people.ts +++ b/src/people.ts @@ -1,6 +1,6 @@ import { format } from 'fp-ts-routing' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import { getPage } from './ghost.js' import { type Html, fixHeadingLevels, html, plainText } from './html.js' import { havingProblemsPage } from './http-error.js' diff --git a/src/philsci.ts b/src/philsci.ts index c0c5897a9..c23fb3c80 100644 --- a/src/philsci.ts +++ b/src/philsci.ts @@ -1,13 +1,13 @@ import { Temporal } from '@js-temporal/polyfill' import * as F from 'fetch-fp-ts' -import * as E from 'fp-ts/Either' -import * as J from 'fp-ts/Json' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { isNonEmpty } from 'fp-ts/ReadonlyArray' -import * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import { flow, identity, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import * as J from 'fp-ts/lib/Json.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { isNonEmpty } from 'fp-ts/lib/ReadonlyArray.js' +import * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import { flow, identity, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as D from 'io-ts/Decoder' +import * as D from 'io-ts/lib/Decoder.js' import { isOrcid } from 'orcid-id-ts' import { P, match } from 'ts-pattern' import { revalidateIfStale, timeoutRequest, useStaleCache } from './fetch.js' diff --git a/src/preprint-reviews-page/index.ts b/src/preprint-reviews-page/index.ts index 6bf770e9f..bd63214fd 100644 --- a/src/preprint-reviews-page/index.ts +++ b/src/preprint-reviews-page/index.ts @@ -1,6 +1,6 @@ -import type * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { pipe } from 'fp-ts/function' +import type * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import { match } from 'ts-pattern' import { type CanRequestReviewsEnv, canRequestReviews } from '../feature-flags.js' import { pageNotFound } from '../http-error.js' diff --git a/src/preprint-reviews-page/preprint-reviews.ts b/src/preprint-reviews-page/preprint-reviews.ts index fdececa45..c7d8e908a 100644 --- a/src/preprint-reviews-page/preprint-reviews.ts +++ b/src/preprint-reviews-page/preprint-reviews.ts @@ -1,10 +1,10 @@ import { isDoi, toUrl } from 'doi-ts' import { format } from 'fp-ts-routing' -import * as I from 'fp-ts/Identity' -import * as RA from 'fp-ts/ReadonlyArray' -import type { ReadonlyNonEmptyArray } from 'fp-ts/ReadonlyNonEmptyArray' -import * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import { flow, pipe } from 'fp-ts/function' +import * as I from 'fp-ts/lib/Identity.js' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' +import type { ReadonlyNonEmptyArray } from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import type { Orcid } from 'orcid-id-ts' import { getLangDir } from 'rtl-detect' import { get } from 'spectacles-ts' diff --git a/src/preprint-reviews-page/prereviews.ts b/src/preprint-reviews-page/prereviews.ts index e556703b6..f0a2a91ec 100644 --- a/src/preprint-reviews-page/prereviews.ts +++ b/src/preprint-reviews-page/prereviews.ts @@ -1,6 +1,6 @@ -import * as RTE from 'fp-ts/ReaderTaskEither' -import type { ReadonlyNonEmptyArray } from 'fp-ts/ReadonlyNonEmptyArray' -import type * as TE from 'fp-ts/TaskEither' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type { ReadonlyNonEmptyArray } from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' import type { LanguageCode } from 'iso-639-1' import type { Orcid } from 'orcid-id-ts' import type { Html } from '../html.js' diff --git a/src/preprint-reviews-page/rapid-prereviews.ts b/src/preprint-reviews-page/rapid-prereviews.ts index 05acf492c..f7f86b4f9 100644 --- a/src/preprint-reviews-page/rapid-prereviews.ts +++ b/src/preprint-reviews-page/rapid-prereviews.ts @@ -1,5 +1,5 @@ -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' import type { Orcid } from 'orcid-id-ts' import type { PreprintId } from '../types/preprint-id.js' diff --git a/src/preprint.ts b/src/preprint.ts index ac1016485..8f78fbe70 100644 --- a/src/preprint.ts +++ b/src/preprint.ts @@ -1,6 +1,6 @@ -import * as RTE from 'fp-ts/ReaderTaskEither' -import type { ReadonlyNonEmptyArray } from 'fp-ts/ReadonlyNonEmptyArray' -import type * as TE from 'fp-ts/TaskEither' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type { ReadonlyNonEmptyArray } from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' import type { LanguageCode } from 'iso-639-1' import type { Orcid } from 'orcid-id-ts' import type { Html } from './html.js' diff --git a/src/prereview-coar-notify/construct-coar-payload.ts b/src/prereview-coar-notify/construct-coar-payload.ts index a28fae373..f14e4901f 100644 --- a/src/prereview-coar-notify/construct-coar-payload.ts +++ b/src/prereview-coar-notify/construct-coar-payload.ts @@ -1,7 +1,7 @@ import { toUrl } from 'doi-ts' import { format } from 'fp-ts-routing' -import * as RIO from 'fp-ts/ReaderIO' -import { pipe } from 'fp-ts/function' +import * as RIO from 'fp-ts/lib/ReaderIO.js' +import { pipe } from 'fp-ts/lib/function.js' import { match } from 'ts-pattern' import type { ReviewRequestPreprintId } from '../review-request.js' import { profileMatch } from '../routes.js' diff --git a/src/prereview-coar-notify/get-recent-review-requests.ts b/src/prereview-coar-notify/get-recent-review-requests.ts index ec1314bc9..299a930a7 100644 --- a/src/prereview-coar-notify/get-recent-review-requests.ts +++ b/src/prereview-coar-notify/get-recent-review-requests.ts @@ -1,14 +1,14 @@ import { Temporal } from '@js-temporal/polyfill' import * as Doi from 'doi-ts' import * as F from 'fetch-fp-ts' -import * as E from 'fp-ts/Either' -import * as J from 'fp-ts/Json' -import * as RTE from 'fp-ts/ReaderTaskEither' -import * as TE from 'fp-ts/TaskEither' -import { flow, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import * as J from 'fp-ts/lib/Json.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import * as TE from 'fp-ts/lib/TaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as C from 'io-ts/Codec' -import * as D from 'io-ts/Decoder' +import * as C from 'io-ts/lib/Codec.js' +import * as D from 'io-ts/lib/Decoder.js' import iso6391, { type LanguageCode } from 'iso-639-1' import * as L from 'logger-fp-ts' import safeStableStringify from 'safe-stable-stringify' diff --git a/src/prereview-coar-notify/index.ts b/src/prereview-coar-notify/index.ts index 22afedd4c..a7556c205 100644 --- a/src/prereview-coar-notify/index.ts +++ b/src/prereview-coar-notify/index.ts @@ -1,8 +1,8 @@ import type * as F from 'fetch-fp-ts' import type { FetchEnv } from 'fetch-fp-ts' -import * as RTE from 'fp-ts/ReaderTaskEither' -import * as RA from 'fp-ts/ReadonlyArray' -import { flow, identity, pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' +import { flow, identity, pipe } from 'fp-ts/lib/function.js' import type { LanguageCode } from 'iso-639-1' import type { LoggerEnv } from 'logger-fp-ts' import { match } from 'ts-pattern' diff --git a/src/prereview-coar-notify/send-review-action-offer.ts b/src/prereview-coar-notify/send-review-action-offer.ts index 189473fd0..44cf180e7 100644 --- a/src/prereview-coar-notify/send-review-action-offer.ts +++ b/src/prereview-coar-notify/send-review-action-offer.ts @@ -1,6 +1,6 @@ import * as F from 'fetch-fp-ts' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { identity, pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { identity, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' import { timeoutRequest } from '../fetch.js' import type { CoarReviewActionOfferPayload } from './coar-review-action-offer-payload.js' diff --git a/src/privacy-policy.ts b/src/privacy-policy.ts index e671f07a5..df593f727 100644 --- a/src/privacy-policy.ts +++ b/src/privacy-policy.ts @@ -1,6 +1,6 @@ import { format } from 'fp-ts-routing' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import { getPage } from './ghost.js' import { type Html, fixHeadingLevels, html, plainText } from './html.js' import { havingProblemsPage } from './http-error.js' diff --git a/src/profile-page/create-page.ts b/src/profile-page/create-page.ts index ecf156f63..02407f95d 100644 --- a/src/profile-page/create-page.ts +++ b/src/profile-page/create-page.ts @@ -1,7 +1,7 @@ import { format } from 'fp-ts-routing' -import * as RA from 'fp-ts/ReadonlyArray' -import * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import { flow, pipe } from 'fp-ts/function' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' +import * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { P, match } from 'ts-pattern' import { getClubName } from '../club-details.js' import { type Html, html, plainText, rawHtml } from '../html.js' diff --git a/src/profile-page/index.ts b/src/profile-page/index.ts index 4f4fa0fea..0c747ccbe 100644 --- a/src/profile-page/index.ts +++ b/src/profile-page/index.ts @@ -1,6 +1,6 @@ -import type { Reader } from 'fp-ts/Reader' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow } from 'fp-ts/function' +import type { Reader } from 'fp-ts/lib/Reader.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow } from 'fp-ts/lib/function.js' import { match } from 'ts-pattern' import { havingProblemsPage, pageNotFound } from '../http-error.js' import type { ProfileId } from '../types/profile-id.js' diff --git a/src/profile-page/name.ts b/src/profile-page/name.ts index d315d57a3..5ef2d8226 100644 --- a/src/profile-page/name.ts +++ b/src/profile-page/name.ts @@ -1,6 +1,6 @@ -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import type { Orcid } from 'orcid-id-ts' import type { NonEmptyString } from '../types/string.js' diff --git a/src/profile-page/orcid-profile.ts b/src/profile-page/orcid-profile.ts index 68c4f1886..d023cb9a0 100644 --- a/src/profile-page/orcid-profile.ts +++ b/src/profile-page/orcid-profile.ts @@ -1,5 +1,5 @@ -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, identity, pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, identity, pipe } from 'fp-ts/lib/function.js' import type { Orcid } from 'orcid-id-ts' import { P, match } from 'ts-pattern' import { maybeGetAvatar } from '../avatar.js' diff --git a/src/profile-page/prereviews.ts b/src/profile-page/prereviews.ts index 5d10fd9f4..03ec99758 100644 --- a/src/profile-page/prereviews.ts +++ b/src/profile-page/prereviews.ts @@ -1,8 +1,8 @@ import { Temporal } from '@js-temporal/polyfill' -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import type * as TE from 'fp-ts/TaskEither' -import { pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import type { LanguageCode } from 'iso-639-1' import type { Html } from '../html.js' import type { ClubId } from '../types/club-id.js' diff --git a/src/profile-page/pseudonym-profile.ts b/src/profile-page/pseudonym-profile.ts index 146e17935..31cb1b189 100644 --- a/src/profile-page/pseudonym-profile.ts +++ b/src/profile-page/pseudonym-profile.ts @@ -1,5 +1,5 @@ -import * as RTE from 'fp-ts/ReaderTaskEither' -import { pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import type { PseudonymProfileId } from '../types/profile-id.js' import type { Pseudonym } from '../types/pseudonym.js' import { type Prereviews, getPrereviews } from './prereviews.js' diff --git a/src/profile-page/render-list-of-prereviews.ts b/src/profile-page/render-list-of-prereviews.ts index 242e46093..fde55fc6c 100644 --- a/src/profile-page/render-list-of-prereviews.ts +++ b/src/profile-page/render-list-of-prereviews.ts @@ -1,7 +1,7 @@ import { format } from 'fp-ts-routing' -import * as RA from 'fp-ts/ReadonlyArray' -import * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import { flow, pipe } from 'fp-ts/function' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' +import * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { getLangDir } from 'rtl-detect' import { match } from 'ts-pattern' import { getClubName } from '../club-details.js' diff --git a/src/public-url.ts b/src/public-url.ts index 489ec3ffb..a33dd82b6 100644 --- a/src/public-url.ts +++ b/src/public-url.ts @@ -1,7 +1,7 @@ import { type Formatter, format } from 'fp-ts-routing' -import * as R from 'fp-ts/Reader' -import * as RE from 'fp-ts/ReaderEither' -import { constant, pipe } from 'fp-ts/function' +import * as R from 'fp-ts/lib/Reader.js' +import * as RE from 'fp-ts/lib/ReaderEither.js' +import { constant, pipe } from 'fp-ts/lib/function.js' export interface PublicUrlEnv { publicUrl: URL diff --git a/src/request-a-prereview-page/form.ts b/src/request-a-prereview-page/form.ts index 5282e05ba..03bf1b1d3 100644 --- a/src/request-a-prereview-page/form.ts +++ b/src/request-a-prereview-page/form.ts @@ -1,8 +1,8 @@ import * as Doi from 'doi-ts' -import * as E from 'fp-ts/Either' -import * as O from 'fp-ts/Option' -import { flow, pipe } from 'fp-ts/function' -import * as D from 'io-ts/Decoder' +import * as E from 'fp-ts/lib/Either.js' +import * as O from 'fp-ts/lib/Option.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as D from 'io-ts/lib/Decoder.js' import { getInput } from '../form.js' export interface ValidForm { diff --git a/src/request-a-prereview-page/index.ts b/src/request-a-prereview-page/index.ts index ce61a7d48..cb9174637 100644 --- a/src/request-a-prereview-page/index.ts +++ b/src/request-a-prereview-page/index.ts @@ -1,5 +1,5 @@ -import * as RT from 'fp-ts/ReaderTask' -import { flow } from 'fp-ts/function' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import { flow } from 'fp-ts/lib/function.js' import { handleDecision } from './handle-decision.js' import { makeDecision } from './make-decision.js' diff --git a/src/request-a-prereview-page/make-decision.ts b/src/request-a-prereview-page/make-decision.ts index d6792cf45..da70a381a 100644 --- a/src/request-a-prereview-page/make-decision.ts +++ b/src/request-a-prereview-page/make-decision.ts @@ -1,11 +1,11 @@ -import * as E from 'fp-ts/Either' -import type { Reader } from 'fp-ts/Reader' -import * as R from 'fp-ts/Reader' -import type * as RE from 'fp-ts/ReaderEither' -import type * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import * as b from 'fp-ts/boolean' -import { flow, identity, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import type { Reader } from 'fp-ts/lib/Reader.js' +import * as R from 'fp-ts/lib/Reader.js' +import type * as RE from 'fp-ts/lib/ReaderEither.js' +import type * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import * as b from 'fp-ts/lib/boolean.js' +import { flow, identity, pipe } from 'fp-ts/lib/function.js' import { P, match } from 'ts-pattern' import { type CanRequestReviewsEnv, canRequestReviews } from '../feature-flags.js' import * as Preprint from '../preprint.js' diff --git a/src/request-review-flow/check-page/index.ts b/src/request-review-flow/check-page/index.ts index 270ad599c..8042e1b62 100644 --- a/src/request-review-flow/check-page/index.ts +++ b/src/request-review-flow/check-page/index.ts @@ -1,9 +1,9 @@ import { format } from 'fp-ts-routing' -import * as R from 'fp-ts/Reader' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { flow, pipe } from 'fp-ts/function' +import * as R from 'fp-ts/lib/Reader.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { P, match } from 'ts-pattern' import { havingProblemsPage, pageNotFound } from '../../http-error.js' import { type GetPreprintTitleEnv, getPreprintTitle } from '../../preprint.js' diff --git a/src/request-review-flow/persona-page/index.ts b/src/request-review-flow/persona-page/index.ts index 756392fd6..d0898874e 100644 --- a/src/request-review-flow/persona-page/index.ts +++ b/src/request-review-flow/persona-page/index.ts @@ -1,9 +1,9 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, pipe } from 'fp-ts/function' -import * as D from 'io-ts/Decoder' +import * as E from 'fp-ts/lib/Either.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as D from 'io-ts/lib/Decoder.js' import { get } from 'spectacles-ts' import { P, match } from 'ts-pattern' import { missingE } from '../../form.js' diff --git a/src/request-review-flow/persona-page/persona-form.ts b/src/request-review-flow/persona-page/persona-form.ts index 3bc62753c..c56dabce0 100644 --- a/src/request-review-flow/persona-page/persona-form.ts +++ b/src/request-review-flow/persona-page/persona-form.ts @@ -1,5 +1,5 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { Status } from 'hyper-ts' import { match } from 'ts-pattern' import { type MissingE, hasAnError } from '../../form.js' diff --git a/src/request-review-flow/published-page/index.ts b/src/request-review-flow/published-page/index.ts index ff85d3198..bb9240280 100644 --- a/src/request-review-flow/published-page/index.ts +++ b/src/request-review-flow/published-page/index.ts @@ -1,7 +1,7 @@ import { format } from 'fp-ts-routing' -import type * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, pipe } from 'fp-ts/function' +import type * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { match } from 'ts-pattern' import { havingProblemsPage, pageNotFound } from '../../http-error.js' import { type GetPreprintTitleEnv, getPreprintTitle } from '../../preprint.js' diff --git a/src/request-review-flow/request-review-page/index.ts b/src/request-review-flow/request-review-page/index.ts index f4818a383..63f522664 100644 --- a/src/request-review-flow/request-review-page/index.ts +++ b/src/request-review-flow/request-review-page/index.ts @@ -1,7 +1,7 @@ import { format } from 'fp-ts-routing' -import type * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, pipe } from 'fp-ts/function' +import type * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { P, match } from 'ts-pattern' import { type CanRequestReviewsEnv, canRequestReviews } from '../../feature-flags.js' import { havingProblemsPage, pageNotFound } from '../../http-error.js' diff --git a/src/request-review-flow/start-page/index.ts b/src/request-review-flow/start-page/index.ts index 9c64e96aa..d24bf524b 100644 --- a/src/request-review-flow/start-page/index.ts +++ b/src/request-review-flow/start-page/index.ts @@ -1,7 +1,7 @@ import { format } from 'fp-ts-routing' -import type * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, pipe } from 'fp-ts/function' +import type * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { P, match } from 'ts-pattern' import { type CanRequestReviewsEnv, canRequestReviews } from '../../feature-flags.js' import { havingProblemsPage, pageNotFound } from '../../http-error.js' diff --git a/src/research-interests.ts b/src/research-interests.ts index 4070a235d..f2e92ef54 100644 --- a/src/research-interests.ts +++ b/src/research-interests.ts @@ -1,7 +1,7 @@ -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { flow } from 'fp-ts/function' -import * as C from 'io-ts/Codec' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { flow } from 'fp-ts/lib/function.js' +import * as C from 'io-ts/lib/Codec.js' import type { Orcid } from 'orcid-id-ts' import { match } from 'ts-pattern' import { type NonEmptyString, NonEmptyStringC } from './types/string.js' diff --git a/src/resources.ts b/src/resources.ts index 80ac6b30f..dbc9e1e19 100644 --- a/src/resources.ts +++ b/src/resources.ts @@ -1,6 +1,6 @@ import { format } from 'fp-ts-routing' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import { getPage } from './ghost.js' import { type Html, fixHeadingLevels, html, plainText } from './html.js' import { havingProblemsPage } from './http-error.js' diff --git a/src/response.ts b/src/response.ts index ea273ced9..85b36c238 100644 --- a/src/response.ts +++ b/src/response.ts @@ -1,13 +1,13 @@ import cookie from 'cookie' -import * as R from 'fp-ts/Reader' -import * as RA from 'fp-ts/ReadonlyArray' -import * as RR from 'fp-ts/ReadonlyRecord' -import { pipe } from 'fp-ts/function' +import * as R from 'fp-ts/lib/Reader.js' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' +import * as RR from 'fp-ts/lib/ReadonlyRecord.js' +import { pipe } from 'fp-ts/lib/function.js' import { type HeadersOpen, type ResponseEnded, Status, type StatusOpen } from 'hyper-ts' import { type OAuthEnv, requestAuthorizationCode } from 'hyper-ts-oauth' -import * as M from 'hyper-ts/Middleware' -import * as RM from 'hyper-ts/ReaderMiddleware' -import * as D from 'io-ts/Decoder' +import * as M from 'hyper-ts/lib/Middleware.js' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import * as D from 'io-ts/lib/Decoder.js' import { P, match } from 'ts-pattern' import { deleteFlashMessage, getFlashMessage, setFlashMessage } from './flash-message.js' import { type Html, html, sendHtml } from './html.js' diff --git a/src/review-a-preprint-page/index.ts b/src/review-a-preprint-page/index.ts index 3bdd406c9..371916a7f 100644 --- a/src/review-a-preprint-page/index.ts +++ b/src/review-a-preprint-page/index.ts @@ -1,11 +1,11 @@ import { type Doi, isDoi, parse } from 'doi-ts' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as O from 'fp-ts/Option' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, identity, pipe } from 'fp-ts/function' -import * as D from 'io-ts/Decoder' +import * as E from 'fp-ts/lib/Either.js' +import * as O from 'fp-ts/lib/Option.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, identity, pipe } from 'fp-ts/lib/function.js' +import * as D from 'io-ts/lib/Decoder.js' import { P, match } from 'ts-pattern' import { getInput, invalidE } from '../form.js' import { type DoesPreprintExistEnv, doesPreprintExist } from '../preprint.js' diff --git a/src/review-a-preprint-page/review-a-preprint.ts b/src/review-a-preprint-page/review-a-preprint.ts index bb570e42e..7e582d243 100644 --- a/src/review-a-preprint-page/review-a-preprint.ts +++ b/src/review-a-preprint-page/review-a-preprint.ts @@ -1,6 +1,6 @@ import type { Doi } from 'doi-ts' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { Status } from 'hyper-ts' import { P, match } from 'ts-pattern' import type { InvalidE } from '../form.js' diff --git a/src/review-page/index.ts b/src/review-page/index.ts index 5ffeea16e..2790f2a91 100644 --- a/src/review-page/index.ts +++ b/src/review-page/index.ts @@ -1,6 +1,6 @@ -import type * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { pipe } from 'fp-ts/function' +import type * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import { match } from 'ts-pattern' import { pageNotFound } from '../http-error.js' import type { PageResponse } from '../response.js' diff --git a/src/review-page/prereview.ts b/src/review-page/prereview.ts index 1a8a63964..251da0495 100644 --- a/src/review-page/prereview.ts +++ b/src/review-page/prereview.ts @@ -1,8 +1,8 @@ import { Temporal } from '@js-temporal/polyfill' import type { Doi } from 'doi-ts' -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import type * as TE from 'fp-ts/TaskEither' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' import type { LanguageCode } from 'iso-639-1' import type { Orcid } from 'orcid-id-ts' import type { Html } from '../html.js' diff --git a/src/review-page/review-page.ts b/src/review-page/review-page.ts index 593734234..33024bb0f 100644 --- a/src/review-page/review-page.ts +++ b/src/review-page/review-page.ts @@ -1,7 +1,7 @@ import { toUrl } from 'doi-ts' import { format } from 'fp-ts-routing' -import * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import { flow, pipe } from 'fp-ts/function' +import * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import type { Orcid } from 'orcid-id-ts' import { getLangDir } from 'rtl-detect' import { match } from 'ts-pattern' diff --git a/src/review-request.ts b/src/review-request.ts index 1a968f371..4048eef5f 100644 --- a/src/review-request.ts +++ b/src/review-request.ts @@ -1,8 +1,8 @@ -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { flow, pipe } from 'fp-ts/function' -import * as C from 'io-ts/Codec' -import * as D from 'io-ts/Decoder' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as C from 'io-ts/lib/Codec.js' +import * as D from 'io-ts/lib/Decoder.js' import type { Orcid } from 'orcid-id-ts' import { match } from 'ts-pattern' import type { diff --git a/src/review-requests-page/index.ts b/src/review-requests-page/index.ts index 9cee554f3..c812c11c0 100644 --- a/src/review-requests-page/index.ts +++ b/src/review-requests-page/index.ts @@ -1,6 +1,6 @@ -import type * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { pipe } from 'fp-ts/function' +import type * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import type { LanguageCode } from 'iso-639-1' import { match } from 'ts-pattern' import { havingProblemsPage, pageNotFound } from '../http-error.js' diff --git a/src/review-requests-page/review-requests-page.ts b/src/review-requests-page/review-requests-page.ts index ef9e54e21..b8b2a5ab1 100644 --- a/src/review-requests-page/review-requests-page.ts +++ b/src/review-requests-page/review-requests-page.ts @@ -1,11 +1,11 @@ import { format } from 'fp-ts-routing' -import * as Ord from 'fp-ts/Ord' -import { type Ordering, sign } from 'fp-ts/Ordering' -import * as RA from 'fp-ts/ReadonlyArray' -import type * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import { snd } from 'fp-ts/ReadonlyTuple' -import { flow, pipe } from 'fp-ts/function' -import { isString } from 'fp-ts/string' +import * as Ord from 'fp-ts/lib/Ord.js' +import { type Ordering, sign } from 'fp-ts/lib/Ordering.js' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' +import type * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import { snd } from 'fp-ts/lib/ReadonlyTuple.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import { isString } from 'fp-ts/lib/string.js' import iso6391, { type LanguageCode } from 'iso-639-1' import { getLangDir } from 'rtl-detect' import { match } from 'ts-pattern' diff --git a/src/review-requests-page/review-requests.ts b/src/review-requests-page/review-requests.ts index e77ecf948..5f13cd615 100644 --- a/src/review-requests-page/review-requests.ts +++ b/src/review-requests-page/review-requests.ts @@ -1,8 +1,8 @@ import { Temporal } from '@js-temporal/polyfill' -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import type * as TE from 'fp-ts/TaskEither' -import { pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import type { LanguageCode } from 'iso-639-1' import type { Html } from '../html.js' import type { FieldId } from '../types/field.js' diff --git a/src/reviews-data/index.ts b/src/reviews-data/index.ts index df6e214fc..a3029725b 100644 --- a/src/reviews-data/index.ts +++ b/src/reviews-data/index.ts @@ -1,14 +1,14 @@ import { Temporal } from '@js-temporal/polyfill' import { type Doi, isDoi } from 'doi-ts' -import type { Json, JsonRecord } from 'fp-ts/Json' -import * as RTE from 'fp-ts/ReaderTaskEither' -import * as RA from 'fp-ts/ReadonlyArray' -import type * as TE from 'fp-ts/TaskEither' -import { constVoid, flow, pipe } from 'fp-ts/function' +import type { Json, JsonRecord } from 'fp-ts/lib/Json.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { constVoid, flow, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as RM from 'hyper-ts/ReaderMiddleware' -import * as D from 'io-ts/Decoder' -import * as E from 'io-ts/Encoder' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import * as D from 'io-ts/lib/Decoder.js' +import * as E from 'io-ts/lib/Encoder.js' import type { Orcid } from 'orcid-id-ts' import safeStableStringify from 'safe-stable-stringify' import { P, match } from 'ts-pattern' diff --git a/src/reviews-page/index.ts b/src/reviews-page/index.ts index ad016422e..acc78d3ac 100644 --- a/src/reviews-page/index.ts +++ b/src/reviews-page/index.ts @@ -1,6 +1,6 @@ -import type * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { pipe } from 'fp-ts/function' +import type * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import type { LanguageCode } from 'iso-639-1' import { match } from 'ts-pattern' import { pageNotFound } from '../http-error.js' diff --git a/src/reviews-page/recent-prereviews.ts b/src/reviews-page/recent-prereviews.ts index 2ddccea3a..510c49c52 100644 --- a/src/reviews-page/recent-prereviews.ts +++ b/src/reviews-page/recent-prereviews.ts @@ -1,8 +1,8 @@ import { Temporal } from '@js-temporal/polyfill' -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import type * as TE from 'fp-ts/TaskEither' -import { pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import type { LanguageCode } from 'iso-639-1' import type { Html } from '../html.js' import type { ClubId } from '../types/club-id.js' diff --git a/src/reviews-page/reviews-page.ts b/src/reviews-page/reviews-page.ts index 9406b6eff..db9989ad2 100644 --- a/src/reviews-page/reviews-page.ts +++ b/src/reviews-page/reviews-page.ts @@ -1,11 +1,11 @@ import { format } from 'fp-ts-routing' -import * as Ord from 'fp-ts/Ord' -import { type Ordering, sign } from 'fp-ts/Ordering' -import * as RA from 'fp-ts/ReadonlyArray' -import * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import { snd } from 'fp-ts/ReadonlyTuple' -import { flow, pipe } from 'fp-ts/function' -import { isString } from 'fp-ts/string' +import * as Ord from 'fp-ts/lib/Ord.js' +import { type Ordering, sign } from 'fp-ts/lib/Ordering.js' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' +import * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import { snd } from 'fp-ts/lib/ReadonlyTuple.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import { isString } from 'fp-ts/lib/string.js' import iso6391, { type LanguageCode } from 'iso-639-1' import { getLangDir } from 'rtl-detect' import { match } from 'ts-pattern' diff --git a/src/router.ts b/src/router.ts index 777e1d760..4042aee5e 100644 --- a/src/router.ts +++ b/src/router.ts @@ -1,22 +1,22 @@ import cookieSignature from 'cookie-signature' import * as P from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import { concatAll } from 'fp-ts/Monoid' -import * as O from 'fp-ts/Option' -import * as R from 'fp-ts/Reader' -import * as RIO from 'fp-ts/ReaderIO' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import * as RA from 'fp-ts/ReadonlyArray' -import * as T from 'fp-ts/Task' -import { constVoid, constant, flow, pipe } from 'fp-ts/function' -import { isString } from 'fp-ts/string' +import * as E from 'fp-ts/lib/Either.js' +import { concatAll } from 'fp-ts/lib/Monoid.js' +import * as O from 'fp-ts/lib/Option.js' +import * as R from 'fp-ts/lib/Reader.js' +import * as RIO from 'fp-ts/lib/ReaderIO.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' +import * as T from 'fp-ts/lib/Task.js' +import { constVoid, constant, flow, pipe } from 'fp-ts/lib/function.js' +import { isString } from 'fp-ts/lib/string.js' import { NotFound } from 'http-errors' import type { ResponseEnded, StatusOpen } from 'hyper-ts' import { route } from 'hyper-ts-routing' import type { SessionEnv } from 'hyper-ts-session' -import * as RM from 'hyper-ts/ReaderMiddleware' -import { fromRequestHandler } from 'hyper-ts/express' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import { fromRequestHandler } from 'hyper-ts/lib/express.js' import type * as L from 'logger-fp-ts' import multer, { MulterError } from 'multer' import type { Orcid } from 'orcid-id-ts' diff --git a/src/routes.ts b/src/routes.ts index c1826e47e..cf355a60a 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -1,10 +1,10 @@ import { capitalCase } from 'case-anything' import { isDoi } from 'doi-ts' import * as P from 'fp-ts-routing' -import * as O from 'fp-ts/Option' -import { identity, pipe, tuple } from 'fp-ts/function' -import * as C from 'io-ts/Codec' -import * as D from 'io-ts/Decoder' +import * as O from 'fp-ts/lib/Option.js' +import { identity, pipe, tuple } from 'fp-ts/lib/function.js' +import * as C from 'io-ts/lib/Codec.js' +import * as D from 'io-ts/lib/Decoder.js' import iso6391, { type LanguageCode } from 'iso-639-1' import { isOrcid } from 'orcid-id-ts' import { match, P as p } from 'ts-pattern' diff --git a/src/sciety-list/index.ts b/src/sciety-list/index.ts index 016640ac3..a2ec54520 100644 --- a/src/sciety-list/index.ts +++ b/src/sciety-list/index.ts @@ -1,13 +1,13 @@ import { Temporal } from '@js-temporal/polyfill' import { type Doi, isDoi } from 'doi-ts' -import type { Json, JsonRecord } from 'fp-ts/Json' -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { constVoid, flow, pipe } from 'fp-ts/function' +import type { Json, JsonRecord } from 'fp-ts/lib/Json.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { constVoid, flow, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as RM from 'hyper-ts/ReaderMiddleware' -import * as D from 'io-ts/Decoder' -import * as E from 'io-ts/Encoder' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import * as D from 'io-ts/lib/Decoder.js' +import * as E from 'io-ts/lib/Encoder.js' import safeStableStringify from 'safe-stable-stringify' import { P, match } from 'ts-pattern' import type { IndeterminatePreprintId } from '../types/preprint-id.js' diff --git a/src/sciety.ts b/src/sciety.ts index 31937be62..5fe09ea07 100644 --- a/src/sciety.ts +++ b/src/sciety.ts @@ -1,7 +1,7 @@ import { hasRegistrant } from 'doi-ts' -import * as O from 'fp-ts/Option' -import { type Refinement, fromOptionK } from 'fp-ts/Refinement' -import { pipe } from 'fp-ts/function' +import * as O from 'fp-ts/lib/Option.js' +import { type Refinement, fromOptionK } from 'fp-ts/lib/Refinement.js' +import { pipe } from 'fp-ts/lib/function.js' import { P, match } from 'ts-pattern' import type { AfricarxivOsfPreprintId, diff --git a/src/slack-user-id.ts b/src/slack-user-id.ts index 541cc62cc..37db7cb8d 100644 --- a/src/slack-user-id.ts +++ b/src/slack-user-id.ts @@ -1,10 +1,10 @@ -import type { Ord } from 'fp-ts/Ord' -import * as RTE from 'fp-ts/ReaderTaskEither' -import * as RS from 'fp-ts/ReadonlySet' -import type * as TE from 'fp-ts/TaskEither' -import { pipe } from 'fp-ts/function' -import * as C from 'io-ts/Codec' -import type { Codec } from 'io-ts/Codec' +import type { Ord } from 'fp-ts/lib/Ord.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import * as RS from 'fp-ts/lib/ReadonlySet.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' +import * as C from 'io-ts/lib/Codec.js' +import type { Codec } from 'io-ts/lib/Codec.js' import type { Orcid } from 'orcid-id-ts' import { type NonEmptyString, NonEmptyStringC, ordNonEmptyString } from './types/string.js' diff --git a/src/slack-user.ts b/src/slack-user.ts index b725c4db8..19748b8df 100644 --- a/src/slack-user.ts +++ b/src/slack-user.ts @@ -1,6 +1,6 @@ -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { flow, pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import type { Orcid } from 'orcid-id-ts' import { match } from 'ts-pattern' diff --git a/src/slack.ts b/src/slack.ts index e5d6c7960..8469cedb2 100644 --- a/src/slack.ts +++ b/src/slack.ts @@ -1,13 +1,13 @@ import * as F from 'fetch-fp-ts' -import * as E from 'fp-ts/Either' -import * as J from 'fp-ts/Json' -import * as R from 'fp-ts/Reader' -import * as RTE from 'fp-ts/ReaderTaskEither' -import * as TE from 'fp-ts/TaskEither' -import * as b from 'fp-ts/boolean' -import { constVoid, flow, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import * as J from 'fp-ts/lib/Json.js' +import * as R from 'fp-ts/lib/Reader.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import * as TE from 'fp-ts/lib/TaskEither.js' +import * as b from 'fp-ts/lib/boolean.js' +import { constVoid, flow, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as D from 'io-ts/Decoder' +import * as D from 'io-ts/lib/Decoder.js' import * as L from 'logger-fp-ts' import { type Orcid, toUrl } from 'orcid-id-ts' import { P, match } from 'ts-pattern' diff --git a/src/trainings.ts b/src/trainings.ts index 2e19fbb65..5daf67fa2 100644 --- a/src/trainings.ts +++ b/src/trainings.ts @@ -1,6 +1,6 @@ import { format } from 'fp-ts-routing' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { pipe } from 'fp-ts/function' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import { getPage } from './ghost.js' import { type Html, fixHeadingLevels, html, plainText } from './html.js' import { havingProblemsPage } from './http-error.js' diff --git a/src/types/club-id.ts b/src/types/club-id.ts index dde11ba08..fc91f25b7 100644 --- a/src/types/club-id.ts +++ b/src/types/club-id.ts @@ -1,6 +1,6 @@ -import { pipe } from 'fp-ts/function' -import * as C from 'io-ts/Codec' -import * as D from 'io-ts/Decoder' +import { pipe } from 'fp-ts/lib/function.js' +import * as C from 'io-ts/lib/Codec.js' +import * as D from 'io-ts/lib/Decoder.js' export const clubIds = [ 'asapbio-cancer-biology', diff --git a/src/types/email-address.ts b/src/types/email-address.ts index 59c276843..f56e796a6 100644 --- a/src/types/email-address.ts +++ b/src/types/email-address.ts @@ -1,9 +1,9 @@ import { isEmailValid } from '@hapi/address' -import type { Eq } from 'fp-ts/Eq' -import { pipe } from 'fp-ts/function' -import * as s from 'fp-ts/string' -import * as C from 'io-ts/Codec' -import * as D from 'io-ts/Decoder' +import type { Eq } from 'fp-ts/lib/Eq.js' +import { pipe } from 'fp-ts/lib/function.js' +import * as s from 'fp-ts/lib/string.js' +import * as C from 'io-ts/lib/Codec.js' +import * as D from 'io-ts/lib/Decoder.js' import type { NonEmptyString } from './string.js' export type EmailAddress = NonEmptyString & EmailAddressBrand diff --git a/src/types/preprint-id.ts b/src/types/preprint-id.ts index dbf4cfc45..4517369f5 100644 --- a/src/types/preprint-id.ts +++ b/src/types/preprint-id.ts @@ -1,8 +1,8 @@ import { type Doi, hasRegistrant, isDoi, parse } from 'doi-ts' -import * as O from 'fp-ts/Option' -import { type Refinement, compose } from 'fp-ts/Refinement' -import { flow, pipe } from 'fp-ts/function' -import * as D from 'io-ts/Decoder' +import * as O from 'fp-ts/lib/Option.js' +import { type Refinement, compose } from 'fp-ts/lib/Refinement.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as D from 'io-ts/lib/Decoder.js' import { P, match } from 'ts-pattern' export type PreprintId = diff --git a/src/types/pseudonym.ts b/src/types/pseudonym.ts index c68dee79f..442a590ed 100644 --- a/src/types/pseudonym.ts +++ b/src/types/pseudonym.ts @@ -1,8 +1,8 @@ import { animals, colors } from 'anonymus' import { capitalCase } from 'case-anything' -import { pipe } from 'fp-ts/function' -import * as C from 'io-ts/Codec' -import * as D from 'io-ts/Decoder' +import { pipe } from 'fp-ts/lib/function.js' +import * as C from 'io-ts/lib/Codec.js' +import * as D from 'io-ts/lib/Decoder.js' import type { NonEmptyString } from './string.js' export type Pseudonym = NonEmptyString & PseudonymBrand diff --git a/src/types/string.ts b/src/types/string.ts index 5baf3e5ec..4dc41c576 100644 --- a/src/types/string.ts +++ b/src/types/string.ts @@ -1,9 +1,9 @@ -import type { Eq } from 'fp-ts/Eq' -import type { Ord } from 'fp-ts/Ord' -import { pipe } from 'fp-ts/function' -import * as s from 'fp-ts/string' -import * as C from 'io-ts/Codec' -import * as D from 'io-ts/Decoder' +import type { Eq } from 'fp-ts/lib/Eq.js' +import type { Ord } from 'fp-ts/lib/Ord.js' +import { pipe } from 'fp-ts/lib/function.js' +import * as s from 'fp-ts/lib/string.js' +import * as C from 'io-ts/lib/Codec.js' +import * as D from 'io-ts/lib/Decoder.js' export type NonEmptyString = string & NonEmptyStringBrand diff --git a/src/types/uuid.ts b/src/types/uuid.ts index ee7773265..9d228495a 100644 --- a/src/types/uuid.ts +++ b/src/types/uuid.ts @@ -1,8 +1,8 @@ -import type { IO } from 'fp-ts/IO' -import * as RIO from 'fp-ts/ReaderIO' -import { pipe } from 'fp-ts/function' -import * as C from 'io-ts/Codec' -import * as D from 'io-ts/Decoder' +import type { IO } from 'fp-ts/lib/IO.js' +import * as RIO from 'fp-ts/lib/ReaderIO.js' +import { pipe } from 'fp-ts/lib/function.js' +import * as C from 'io-ts/lib/Codec.js' +import * as D from 'io-ts/lib/Decoder.js' import { type Uuid, isUuid } from 'uuid-ts' export interface GenerateUuidEnv { diff --git a/src/user-onboarding.ts b/src/user-onboarding.ts index 5f02779e0..582de6417 100644 --- a/src/user-onboarding.ts +++ b/src/user-onboarding.ts @@ -1,7 +1,7 @@ -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { flow } from 'fp-ts/function' -import * as C from 'io-ts/Codec' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { flow } from 'fp-ts/lib/function.js' +import * as C from 'io-ts/lib/Codec.js' import type { Orcid } from 'orcid-id-ts' export interface UserOnboarding { diff --git a/src/user.ts b/src/user.ts index 5be802db3..da33fedc7 100644 --- a/src/user.ts +++ b/src/user.ts @@ -1,12 +1,12 @@ -import type { JsonRecord } from 'fp-ts/Json' -import * as O from 'fp-ts/Option' -import * as RR from 'fp-ts/ReadonlyRecord' -import { flow, pipe } from 'fp-ts/function' +import type { JsonRecord } from 'fp-ts/lib/Json.js' +import * as O from 'fp-ts/lib/Option.js' +import * as RR from 'fp-ts/lib/ReadonlyRecord.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import type { StatusOpen } from 'hyper-ts' -import type * as M from 'hyper-ts/Middleware' -import * as RM from 'hyper-ts/ReaderMiddleware' -import * as C from 'io-ts/Codec' -import * as D from 'io-ts/Decoder' +import type * as M from 'hyper-ts/lib/Middleware.js' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import * as C from 'io-ts/lib/Codec.js' +import * as D from 'io-ts/lib/Decoder.js' import { isOrcid } from 'orcid-id-ts' import { PseudonymC } from './types/pseudonym.js' diff --git a/src/write-review/add-author-page/add-author-form.ts b/src/write-review/add-author-page/add-author-form.ts index d0a01c7ed..38b04a2d0 100644 --- a/src/write-review/add-author-page/add-author-form.ts +++ b/src/write-review/add-author-page/add-author-form.ts @@ -1,5 +1,5 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { Status } from 'hyper-ts' import { P, match } from 'ts-pattern' import { type InvalidE, type MissingE, hasAnError } from '../../form.js' diff --git a/src/write-review/add-author-page/index.ts b/src/write-review/add-author-page/index.ts index e6f6cc3b7..0cbadfca7 100644 --- a/src/write-review/add-author-page/index.ts +++ b/src/write-review/add-author-page/index.ts @@ -1,11 +1,11 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as O from 'fp-ts/Option' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { pipe } from 'fp-ts/function' -import * as s from 'fp-ts/string' -import * as D from 'io-ts/Decoder' +import * as E from 'fp-ts/lib/Either.js' +import * as O from 'fp-ts/lib/Option.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' +import * as s from 'fp-ts/lib/string.js' +import * as D from 'io-ts/lib/Decoder.js' import { get } from 'spectacles-ts' import { P, match } from 'ts-pattern' import { getInput, invalidE, missingE } from '../../form.js' diff --git a/src/write-review/add-authors-page/add-authors-form.ts b/src/write-review/add-authors-page/add-authors-form.ts index bab8b5624..1bcb7160d 100644 --- a/src/write-review/add-authors-page/add-authors-form.ts +++ b/src/write-review/add-authors-page/add-authors-form.ts @@ -1,6 +1,6 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import type { ReadonlyNonEmptyArray } from 'fp-ts/ReadonlyNonEmptyArray' +import * as E from 'fp-ts/lib/Either.js' +import type { ReadonlyNonEmptyArray } from 'fp-ts/lib/ReadonlyNonEmptyArray.js' import { Status } from 'hyper-ts' import { match } from 'ts-pattern' import { type MissingE, hasAnError } from '../../form.js' diff --git a/src/write-review/add-authors-page/index.ts b/src/write-review/add-authors-page/index.ts index 66419adfb..c2aab15c4 100644 --- a/src/write-review/add-authors-page/index.ts +++ b/src/write-review/add-authors-page/index.ts @@ -1,11 +1,11 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as O from 'fp-ts/Option' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import { flow, pipe } from 'fp-ts/function' -import * as D from 'io-ts/Decoder' +import * as E from 'fp-ts/lib/Either.js' +import * as O from 'fp-ts/lib/Option.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as D from 'io-ts/lib/Decoder.js' import { get } from 'spectacles-ts' import { match } from 'ts-pattern' import { missingE } from '../../form.js' diff --git a/src/write-review/change-author-page/change-author-form.ts b/src/write-review/change-author-page/change-author-form.ts index 149bdabda..c457d6e18 100644 --- a/src/write-review/change-author-page/change-author-form.ts +++ b/src/write-review/change-author-page/change-author-form.ts @@ -1,5 +1,5 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { Status } from 'hyper-ts' import { P, match } from 'ts-pattern' import { type InvalidE, type MissingE, hasAnError } from '../../form.js' diff --git a/src/write-review/change-author-page/index.ts b/src/write-review/change-author-page/index.ts index 432d6eb0c..34924ac87 100644 --- a/src/write-review/change-author-page/index.ts +++ b/src/write-review/change-author-page/index.ts @@ -1,12 +1,12 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as O from 'fp-ts/Option' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import * as RA from 'fp-ts/ReadonlyArray' -import { flow, pipe } from 'fp-ts/function' -import * as s from 'fp-ts/string' -import * as D from 'io-ts/Decoder' +import * as E from 'fp-ts/lib/Either.js' +import * as O from 'fp-ts/lib/Option.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as s from 'fp-ts/lib/string.js' +import * as D from 'io-ts/lib/Decoder.js' import { get } from 'spectacles-ts' import { P, match } from 'ts-pattern' import { getInput, invalidE, missingE } from '../../form.js' diff --git a/src/write-review/completed-form.ts b/src/write-review/completed-form.ts index e9266b2e5..dbbbc522f 100644 --- a/src/write-review/completed-form.ts +++ b/src/write-review/completed-form.ts @@ -1,6 +1,6 @@ -import { pipe } from 'fp-ts/function' -import * as C from 'io-ts/Codec' -import * as E from 'io-ts/Encoder' +import { pipe } from 'fp-ts/lib/function.js' +import * as C from 'io-ts/lib/Codec.js' +import * as E from 'io-ts/lib/Encoder.js' import { RawHtmlC } from '../html.js' import { EmailAddressC } from '../types/email-address.js' import { NonEmptyStringC } from '../types/string.js' diff --git a/src/write-review/form.ts b/src/write-review/form.ts index 4f35c2816..b860a098d 100644 --- a/src/write-review/form.ts +++ b/src/write-review/form.ts @@ -1,14 +1,14 @@ import { isDoi } from 'doi-ts' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import type { JsonRecord } from 'fp-ts/Json' -import type { ReaderTaskEither } from 'fp-ts/ReaderTaskEither' -import * as TE from 'fp-ts/TaskEither' -import { flow, identity, pipe } from 'fp-ts/function' -import { getAssignSemigroup } from 'fp-ts/struct' +import * as E from 'fp-ts/lib/Either.js' +import type { JsonRecord } from 'fp-ts/lib/Json.js' +import type { ReaderTaskEither } from 'fp-ts/lib/ReaderTaskEither.js' +import * as TE from 'fp-ts/lib/TaskEither.js' +import { flow, identity, pipe } from 'fp-ts/lib/function.js' +import { getAssignSemigroup } from 'fp-ts/lib/struct.js' import { Status } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' -import * as C from 'io-ts/Codec' +import * as M from 'hyper-ts/lib/Middleware.js' +import * as C from 'io-ts/lib/Codec.js' import type Keyv from 'keyv' import type { Orcid } from 'orcid-id-ts' import { P, match } from 'ts-pattern' diff --git a/src/write-review/publish-page/index.ts b/src/write-review/publish-page/index.ts index c7dc54d16..fba8f4d6c 100644 --- a/src/write-review/publish-page/index.ts +++ b/src/write-review/publish-page/index.ts @@ -1,13 +1,13 @@ import type { Doi } from 'doi-ts' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as O from 'fp-ts/Option' -import * as RTE from 'fp-ts/ReaderTaskEither' -import type * as TE from 'fp-ts/TaskEither' -import { flow, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import * as O from 'fp-ts/lib/Option.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type * as TE from 'fp-ts/lib/TaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { type ResponseEnded, Status, type StatusOpen } from 'hyper-ts' import type { SessionEnv } from 'hyper-ts-session' -import * as RM from 'hyper-ts/ReaderMiddleware' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' import type { LanguageCode } from 'iso-639-1' import { P, match } from 'ts-pattern' import { type ContactEmailAddress, maybeGetContactEmailAddress } from '../../contact-email-address.js' diff --git a/src/write-review/publish-page/publish-form.ts b/src/write-review/publish-page/publish-form.ts index 5fe273c65..9d052ce15 100644 --- a/src/write-review/publish-page/publish-form.ts +++ b/src/write-review/publish-page/publish-form.ts @@ -1,7 +1,7 @@ import { format } from 'fp-ts-routing' -import * as RA from 'fp-ts/ReadonlyArray' -import * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import { flow, pipe } from 'fp-ts/function' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' +import * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import type { Orcid } from 'orcid-id-ts' import { getLangDir } from 'rtl-detect' import { get } from 'spectacles-ts' diff --git a/src/write-review/published-review.ts b/src/write-review/published-review.ts index 855b28ab6..00d462796 100644 --- a/src/write-review/published-review.ts +++ b/src/write-review/published-review.ts @@ -1,13 +1,13 @@ import { type Doi, isDoi } from 'doi-ts' -import * as E from 'fp-ts/Either' -import type { Json, JsonRecord } from 'fp-ts/Json' -import * as RR from 'fp-ts/ReadonlyRecord' -import { flow, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import type { Json, JsonRecord } from 'fp-ts/lib/Json.js' +import * as RR from 'fp-ts/lib/ReadonlyRecord.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import type { HeadersOpen } from 'hyper-ts' import { getSession, storeSession } from 'hyper-ts-session' -import * as RM from 'hyper-ts/ReaderMiddleware' -import * as C from 'io-ts/Codec' -import * as D from 'io-ts/Decoder' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import * as C from 'io-ts/lib/Codec.js' +import * as D from 'io-ts/lib/Decoder.js' import { type CompletedForm, CompletedFormC } from './completed-form.js' import { FormC } from './form.js' diff --git a/src/write-review/remove-author-page/index.ts b/src/write-review/remove-author-page/index.ts index 315d93159..02f1467d1 100644 --- a/src/write-review/remove-author-page/index.ts +++ b/src/write-review/remove-author-page/index.ts @@ -1,11 +1,11 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as O from 'fp-ts/Option' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import * as RA from 'fp-ts/ReadonlyArray' -import { flow, pipe } from 'fp-ts/function' -import * as D from 'io-ts/Decoder' +import * as E from 'fp-ts/lib/Either.js' +import * as O from 'fp-ts/lib/Option.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as D from 'io-ts/lib/Decoder.js' import { get } from 'spectacles-ts' import { P, match } from 'ts-pattern' import { missingE } from '../../form.js' diff --git a/src/write-review/remove-author-page/remove-author-form.ts b/src/write-review/remove-author-page/remove-author-form.ts index 631054b75..f347c14e7 100644 --- a/src/write-review/remove-author-page/remove-author-form.ts +++ b/src/write-review/remove-author-page/remove-author-form.ts @@ -1,5 +1,5 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { Status } from 'hyper-ts' import { match } from 'ts-pattern' import { type MissingE, hasAnError } from '../../form.js' diff --git a/src/write-review/start-page/index.ts b/src/write-review/start-page/index.ts index bbdd7141a..569aac579 100644 --- a/src/write-review/start-page/index.ts +++ b/src/write-review/start-page/index.ts @@ -1,7 +1,7 @@ import { format } from 'fp-ts-routing' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { pipe } from 'fp-ts/function' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' import { P, match } from 'ts-pattern' import { havingProblemsPage, pageNotFound } from '../../http-error.js' import { type GetPreprintEnv, getPreprint } from '../../preprint.js' diff --git a/src/write-review/user-is-author.ts b/src/write-review/user-is-author.ts index d5fed8819..8d49fc70e 100644 --- a/src/write-review/user-is-author.ts +++ b/src/write-review/user-is-author.ts @@ -1,8 +1,8 @@ -import * as E from 'fp-ts/Either' -import * as Eq from 'fp-ts/Eq' -import * as O from 'fp-ts/Option' -import { not } from 'fp-ts/Predicate' -import * as RA from 'fp-ts/ReadonlyArray' +import * as E from 'fp-ts/lib/Either.js' +import * as Eq from 'fp-ts/lib/Eq.js' +import * as O from 'fp-ts/lib/Option.js' +import { not } from 'fp-ts/lib/Predicate.js' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' import { Eq as eqOrcid } from 'orcid-id-ts' import type { Preprint } from '../preprint.js' import type { User } from '../user.js' diff --git a/src/write-review/write-a-prereview-page/index.ts b/src/write-review/write-a-prereview-page/index.ts index 0a6a2ed1f..4bca3b947 100644 --- a/src/write-review/write-a-prereview-page/index.ts +++ b/src/write-review/write-a-prereview-page/index.ts @@ -1,8 +1,8 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { P, match } from 'ts-pattern' import { havingProblemsPage, pageNotFound } from '../../http-error.js' import { type GetPreprintEnv, getPreprint } from '../../preprint.js' diff --git a/src/write-review/write-a-prereview-page/write-a-prereview-page.ts b/src/write-review/write-a-prereview-page/write-a-prereview-page.ts index c24fac40e..1c7d65f0d 100644 --- a/src/write-review/write-a-prereview-page/write-a-prereview-page.ts +++ b/src/write-review/write-a-prereview-page/write-a-prereview-page.ts @@ -1,7 +1,7 @@ import { isDoi } from 'doi-ts' import { format } from 'fp-ts-routing' -import * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import { flow, pipe } from 'fp-ts/function' +import * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { getLangDir } from 'rtl-detect' import { P, match } from 'ts-pattern' import { type Html, fixHeadingLevels, html, plainText, rawHtml } from '../../html.js' diff --git a/src/write-review/write-review-authors.ts b/src/write-review/write-review-authors.ts index 09f29ac74..f580ff478 100644 --- a/src/write-review/write-review-authors.ts +++ b/src/write-review/write-review-authors.ts @@ -1,10 +1,10 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as I from 'fp-ts/Identity' -import { flow, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import * as I from 'fp-ts/lib/Identity.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as RM from 'hyper-ts/ReaderMiddleware' -import * as D from 'io-ts/Decoder' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import * as D from 'io-ts/lib/Decoder.js' import { get } from 'spectacles-ts' import { P, match } from 'ts-pattern' import { type MissingE, hasAnError, missingE } from '../form.js' diff --git a/src/write-review/write-review-competing-interests.ts b/src/write-review/write-review-competing-interests.ts index 6513209ba..d3f533efd 100644 --- a/src/write-review/write-review-competing-interests.ts +++ b/src/write-review/write-review-competing-interests.ts @@ -1,10 +1,10 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as I from 'fp-ts/Identity' -import { flow, identity, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import * as I from 'fp-ts/lib/Identity.js' +import { flow, identity, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as RM from 'hyper-ts/ReaderMiddleware' -import * as D from 'io-ts/Decoder' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import * as D from 'io-ts/lib/Decoder.js' import { get } from 'spectacles-ts' import { P, match } from 'ts-pattern' import { type MissingE, hasAnError, missingE } from '../form.js' diff --git a/src/write-review/write-review-conduct.ts b/src/write-review/write-review-conduct.ts index 74b8d0a96..f8d177a0f 100644 --- a/src/write-review/write-review-conduct.ts +++ b/src/write-review/write-review-conduct.ts @@ -1,9 +1,9 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import { flow, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as RM from 'hyper-ts/ReaderMiddleware' -import * as D from 'io-ts/Decoder' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import * as D from 'io-ts/lib/Decoder.js' import { get } from 'spectacles-ts' import { P, match } from 'ts-pattern' import { type MissingE, hasAnError, missingE } from '../form.js' diff --git a/src/write-review/write-review-data-presentation.ts b/src/write-review/write-review-data-presentation.ts index 949b42959..14b5ca687 100644 --- a/src/write-review/write-review-data-presentation.ts +++ b/src/write-review/write-review-data-presentation.ts @@ -1,10 +1,10 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import { flow, identity, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import { flow, identity, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as RM from 'hyper-ts/ReaderMiddleware' -import * as D from 'io-ts/Decoder' -import type { Encoder } from 'io-ts/Encoder' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import * as D from 'io-ts/lib/Decoder.js' +import type { Encoder } from 'io-ts/lib/Encoder.js' import { P, match } from 'ts-pattern' import { type FieldDecoders, diff --git a/src/write-review/write-review-enter-email-address.ts b/src/write-review/write-review-enter-email-address.ts index 7c2da7e60..a05514f2c 100644 --- a/src/write-review/write-review-enter-email-address.ts +++ b/src/write-review/write-review-enter-email-address.ts @@ -1,11 +1,11 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as O from 'fp-ts/Option' -import { flow, pipe } from 'fp-ts/function' -import * as s from 'fp-ts/string' +import * as E from 'fp-ts/lib/Either.js' +import * as O from 'fp-ts/lib/Option.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as s from 'fp-ts/lib/string.js' import { Status } from 'hyper-ts' -import * as RM from 'hyper-ts/ReaderMiddleware' -import * as D from 'io-ts/Decoder' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import * as D from 'io-ts/lib/Decoder.js' import { get } from 'spectacles-ts' import { P, match } from 'ts-pattern' import { diff --git a/src/write-review/write-review-findings-next-steps.ts b/src/write-review/write-review-findings-next-steps.ts index f69429b22..efecb64dc 100644 --- a/src/write-review/write-review-findings-next-steps.ts +++ b/src/write-review/write-review-findings-next-steps.ts @@ -1,10 +1,10 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import { flow, identity, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import { flow, identity, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as RM from 'hyper-ts/ReaderMiddleware' -import * as D from 'io-ts/Decoder' -import type { Encoder } from 'io-ts/Encoder' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import * as D from 'io-ts/lib/Decoder.js' +import type { Encoder } from 'io-ts/lib/Encoder.js' import { P, match } from 'ts-pattern' import { type FieldDecoders, diff --git a/src/write-review/write-review-introduction-matches.ts b/src/write-review/write-review-introduction-matches.ts index 158780e16..22cfd50c3 100644 --- a/src/write-review/write-review-introduction-matches.ts +++ b/src/write-review/write-review-introduction-matches.ts @@ -1,10 +1,10 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import { flow, identity, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import { flow, identity, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as RM from 'hyper-ts/ReaderMiddleware' -import * as D from 'io-ts/Decoder' -import type { Encoder } from 'io-ts/Encoder' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import * as D from 'io-ts/lib/Decoder.js' +import type { Encoder } from 'io-ts/lib/Encoder.js' import { P, match } from 'ts-pattern' import { type FieldDecoders, diff --git a/src/write-review/write-review-language-editing.ts b/src/write-review/write-review-language-editing.ts index 99aae6779..0c20b4072 100644 --- a/src/write-review/write-review-language-editing.ts +++ b/src/write-review/write-review-language-editing.ts @@ -1,10 +1,10 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import { flow, identity, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import { flow, identity, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as RM from 'hyper-ts/ReaderMiddleware' -import * as D from 'io-ts/Decoder' -import type { Encoder } from 'io-ts/Encoder' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import * as D from 'io-ts/lib/Decoder.js' +import type { Encoder } from 'io-ts/lib/Encoder.js' import { P, match } from 'ts-pattern' import { type FieldDecoders, diff --git a/src/write-review/write-review-methods-appropriate.ts b/src/write-review/write-review-methods-appropriate.ts index 1f6340554..cd8e3f500 100644 --- a/src/write-review/write-review-methods-appropriate.ts +++ b/src/write-review/write-review-methods-appropriate.ts @@ -1,10 +1,10 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import { flow, identity, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import { flow, identity, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as RM from 'hyper-ts/ReaderMiddleware' -import * as D from 'io-ts/Decoder' -import type { Encoder } from 'io-ts/Encoder' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import * as D from 'io-ts/lib/Decoder.js' +import type { Encoder } from 'io-ts/lib/Encoder.js' import { P, match } from 'ts-pattern' import { type FieldDecoders, diff --git a/src/write-review/write-review-need-to-verify-email-address.ts b/src/write-review/write-review-need-to-verify-email-address.ts index 225fdf474..193aa536e 100644 --- a/src/write-review/write-review-need-to-verify-email-address.ts +++ b/src/write-review/write-review-need-to-verify-email-address.ts @@ -1,8 +1,8 @@ import { format } from 'fp-ts-routing' -import { flow, pipe } from 'fp-ts/function' +import { flow, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as RM from 'hyper-ts/ReaderMiddleware' -import * as D from 'io-ts/Decoder' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import * as D from 'io-ts/lib/Decoder.js' import { P, match } from 'ts-pattern' import { type UnverifiedContactEmailAddress, diff --git a/src/write-review/write-review-novel.ts b/src/write-review/write-review-novel.ts index c08695825..dc0d78ecd 100644 --- a/src/write-review/write-review-novel.ts +++ b/src/write-review/write-review-novel.ts @@ -1,10 +1,10 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import { flow, identity, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import { flow, identity, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as RM from 'hyper-ts/ReaderMiddleware' -import * as D from 'io-ts/Decoder' -import type { Encoder } from 'io-ts/Encoder' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import * as D from 'io-ts/lib/Decoder.js' +import type { Encoder } from 'io-ts/lib/Encoder.js' import { P, match } from 'ts-pattern' import { type FieldDecoders, diff --git a/src/write-review/write-review-page/index.ts b/src/write-review/write-review-page/index.ts index 9b3b68805..aaf72694e 100644 --- a/src/write-review/write-review-page/index.ts +++ b/src/write-review/write-review-page/index.ts @@ -1,9 +1,9 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, pipe } from 'fp-ts/function' -import * as D from 'io-ts/Decoder' +import * as E from 'fp-ts/lib/Either.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' +import * as D from 'io-ts/lib/Decoder.js' import markdownIt from 'markdown-it' import { P, match } from 'ts-pattern' import { invalidE, missingE } from '../../form.js' diff --git a/src/write-review/write-review-page/paste-review-form.ts b/src/write-review/write-review-page/paste-review-form.ts index e389e0f18..733eef6ce 100644 --- a/src/write-review/write-review-page/paste-review-form.ts +++ b/src/write-review/write-review-page/paste-review-form.ts @@ -1,5 +1,5 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { Status } from 'hyper-ts' import { P, match } from 'ts-pattern' import { type MissingE, hasAnError } from '../../form.js' diff --git a/src/write-review/write-review-page/write-review-form.ts b/src/write-review/write-review-page/write-review-form.ts index a9866a9ac..d6fa84de5 100644 --- a/src/write-review/write-review-page/write-review-form.ts +++ b/src/write-review/write-review-page/write-review-form.ts @@ -1,5 +1,5 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { Status } from 'hyper-ts' import markdownIt from 'markdown-it' import { P, match } from 'ts-pattern' diff --git a/src/write-review/write-review-persona.ts b/src/write-review/write-review-persona.ts index 40651978f..409c0a125 100644 --- a/src/write-review/write-review-persona.ts +++ b/src/write-review/write-review-persona.ts @@ -1,9 +1,9 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import { flow, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as RM from 'hyper-ts/ReaderMiddleware' -import * as D from 'io-ts/Decoder' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import * as D from 'io-ts/lib/Decoder.js' import { get } from 'spectacles-ts' import { P, match } from 'ts-pattern' import { type MissingE, hasAnError, missingE } from '../form.js' diff --git a/src/write-review/write-review-published.ts b/src/write-review/write-review-published.ts index 3e9083072..51427efd6 100644 --- a/src/write-review/write-review-published.ts +++ b/src/write-review/write-review-published.ts @@ -1,8 +1,8 @@ import { format } from 'fp-ts-routing' -import * as R from 'fp-ts/Reader' -import { flow, pipe } from 'fp-ts/function' +import * as R from 'fp-ts/lib/Reader.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as RM from 'hyper-ts/ReaderMiddleware' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' import { P, match } from 'ts-pattern' import { html, plainText, sendHtml } from '../html.js' import { notFound, seeOther, serviceUnavailable } from '../middleware.js' diff --git a/src/write-review/write-review-ready-full-review.ts b/src/write-review/write-review-ready-full-review.ts index 5f950ebe3..b2a6c90d4 100644 --- a/src/write-review/write-review-ready-full-review.ts +++ b/src/write-review/write-review-ready-full-review.ts @@ -1,10 +1,10 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import { flow, identity, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import { flow, identity, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as RM from 'hyper-ts/ReaderMiddleware' -import * as D from 'io-ts/Decoder' -import type { Encoder } from 'io-ts/Encoder' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import * as D from 'io-ts/lib/Decoder.js' +import type { Encoder } from 'io-ts/lib/Encoder.js' import { P, match } from 'ts-pattern' import { type FieldDecoders, diff --git a/src/write-review/write-review-results-supported.ts b/src/write-review/write-review-results-supported.ts index 461193cf6..9a3bd8c2f 100644 --- a/src/write-review/write-review-results-supported.ts +++ b/src/write-review/write-review-results-supported.ts @@ -1,10 +1,10 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import { flow, identity, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import { flow, identity, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as RM from 'hyper-ts/ReaderMiddleware' -import * as D from 'io-ts/Decoder' -import type { Encoder } from 'io-ts/Encoder' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import * as D from 'io-ts/lib/Decoder.js' +import type { Encoder } from 'io-ts/lib/Encoder.js' import { P, match } from 'ts-pattern' import { type FieldDecoders, diff --git a/src/write-review/write-review-review-type.ts b/src/write-review/write-review-review-type.ts index 2ffd07e42..8b2198789 100644 --- a/src/write-review/write-review-review-type.ts +++ b/src/write-review/write-review-review-type.ts @@ -1,10 +1,10 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import { flow, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import { flow, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as D from 'io-ts/Decoder' +import * as D from 'io-ts/lib/Decoder.js' import { get } from 'spectacles-ts' import { P, match } from 'ts-pattern' import { type MissingE, hasAnError, missingE } from '../form.js' diff --git a/src/write-review/write-review-should-read.ts b/src/write-review/write-review-should-read.ts index fa32a2bae..4a42d7a89 100644 --- a/src/write-review/write-review-should-read.ts +++ b/src/write-review/write-review-should-read.ts @@ -1,10 +1,10 @@ import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import { flow, identity, pipe } from 'fp-ts/function' +import * as E from 'fp-ts/lib/Either.js' +import { flow, identity, pipe } from 'fp-ts/lib/function.js' import { Status } from 'hyper-ts' -import * as RM from 'hyper-ts/ReaderMiddleware' -import * as D from 'io-ts/Decoder' -import type { Encoder } from 'io-ts/Encoder' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' +import * as D from 'io-ts/lib/Decoder.js' +import type { Encoder } from 'io-ts/lib/Encoder.js' import { P, match } from 'ts-pattern' import { type FieldDecoders, diff --git a/src/write-review/write-review-verify-email-address.ts b/src/write-review/write-review-verify-email-address.ts index e88efa798..f85706b6d 100644 --- a/src/write-review/write-review-verify-email-address.ts +++ b/src/write-review/write-review-verify-email-address.ts @@ -1,7 +1,7 @@ import { format } from 'fp-ts-routing' -import { flow, pipe } from 'fp-ts/function' +import { flow, pipe } from 'fp-ts/lib/function.js' import type { ResponseEnded, StatusOpen } from 'hyper-ts' -import * as RM from 'hyper-ts/ReaderMiddleware' +import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' import { P, match } from 'ts-pattern' import type { Uuid } from 'uuid-ts' import { getContactEmailAddress, isUnverified, saveContactEmailAddress } from '../contact-email-address.js' diff --git a/src/zenodo.ts b/src/zenodo.ts index d0349e18f..f096899e2 100644 --- a/src/zenodo.ts +++ b/src/zenodo.ts @@ -1,25 +1,25 @@ import { toTemporalInstant } from '@js-temporal/polyfill' import { type Doi, isDoi } from 'doi-ts' import * as F from 'fetch-fp-ts' -import { sequenceS } from 'fp-ts/Apply' -import * as A from 'fp-ts/Array' -import * as E from 'fp-ts/Either' -import * as NEA from 'fp-ts/NonEmptyArray' -import * as O from 'fp-ts/Option' -import { and } from 'fp-ts/Predicate' -import * as R from 'fp-ts/Reader' -import * as RIO from 'fp-ts/ReaderIO' -import * as RT from 'fp-ts/ReaderTask' -import * as RTE from 'fp-ts/ReaderTaskEither' -import type { ReaderTaskEither } from 'fp-ts/ReaderTaskEither' -import * as RA from 'fp-ts/ReadonlyArray' -import * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' -import type * as T from 'fp-ts/Task' -import { constVoid, flow, identity, pipe } from 'fp-ts/function' -import { toUpperCase } from 'fp-ts/string' +import { sequenceS } from 'fp-ts/lib/Apply.js' +import * as A from 'fp-ts/lib/Array.js' +import * as E from 'fp-ts/lib/Either.js' +import * as NEA from 'fp-ts/lib/NonEmptyArray.js' +import * as O from 'fp-ts/lib/Option.js' +import { and } from 'fp-ts/lib/Predicate.js' +import * as R from 'fp-ts/lib/Reader.js' +import * as RIO from 'fp-ts/lib/ReaderIO.js' +import * as RT from 'fp-ts/lib/ReaderTask.js' +import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' +import type { ReaderTaskEither } from 'fp-ts/lib/ReaderTaskEither.js' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' +import * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' +import type * as T from 'fp-ts/lib/Task.js' +import { constVoid, flow, identity, pipe } from 'fp-ts/lib/function.js' +import { toUpperCase } from 'fp-ts/lib/string.js' import { type HttpError, NotFound } from 'http-errors' import { Status } from 'hyper-ts' -import * as D from 'io-ts/Decoder' +import * as D from 'io-ts/lib/Decoder.js' import type { LanguageCode } from 'iso-639-1' import * as L from 'logger-fp-ts' import { get } from 'spectacles-ts' diff --git a/test/author-invite-flow/author-invite-check.test.ts b/test/author-invite-flow/author-invite-check.test.ts index 9ccedb493..fbceab816 100644 --- a/test/author-invite-flow/author-invite-check.test.ts +++ b/test/author-invite-flow/author-invite-check.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import { Eq as eqOrcid } from 'orcid-id-ts' import type { AddAuthorToPrereviewEnv, GetPrereviewEnv } from '../../src/author-invite-flow/check-page/index.js' diff --git a/test/author-invite-flow/author-invite-decline.test.ts b/test/author-invite-flow/author-invite-decline.test.ts index 40653fbec..e7dccbd7f 100644 --- a/test/author-invite-flow/author-invite-decline.test.ts +++ b/test/author-invite-flow/author-invite-decline.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import type { GetPrereviewEnv } from '../../src/author-invite-flow/decline-page/index.js' import * as _ from '../../src/author-invite-flow/index.js' diff --git a/test/author-invite-flow/author-invite-enter-email-address.test.ts b/test/author-invite-flow/author-invite-enter-email-address.test.ts index 32ba1594f..d0d1c1644 100644 --- a/test/author-invite-flow/author-invite-enter-email-address.test.ts +++ b/test/author-invite-flow/author-invite-enter-email-address.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import { Eq as eqOrcid } from 'orcid-id-ts' import * as _ from '../../src/author-invite-flow/enter-email-address-page/index.js' diff --git a/test/author-invite-flow/author-invite-need-to-verify-email-address.test.ts b/test/author-invite-flow/author-invite-need-to-verify-email-address.test.ts index b580eee11..c00ab5062 100644 --- a/test/author-invite-flow/author-invite-need-to-verify-email-address.test.ts +++ b/test/author-invite-flow/author-invite-need-to-verify-email-address.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import { Eq as eqOrcid } from 'orcid-id-ts' import * as _ from '../../src/author-invite-flow/need-to-verify-email-address-page/index.js' diff --git a/test/author-invite-flow/author-invite-persona.test.ts b/test/author-invite-flow/author-invite-persona.test.ts index f63e446d1..4159b20b0 100644 --- a/test/author-invite-flow/author-invite-persona.test.ts +++ b/test/author-invite-flow/author-invite-persona.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import { Eq as eqOrcid } from 'orcid-id-ts' import type { GetPrereviewEnv } from '../../src/author-invite-flow/check-page/index.js' diff --git a/test/author-invite-flow/author-invite-published.test.ts b/test/author-invite-flow/author-invite-published.test.ts index 74967cf98..ef0025cce 100644 --- a/test/author-invite-flow/author-invite-published.test.ts +++ b/test/author-invite-flow/author-invite-published.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import type { GetPrereviewEnv } from '../../src/author-invite-flow/author-invite-published.js' import * as _ from '../../src/author-invite-flow/index.js' diff --git a/test/author-invite-flow/author-invite-start.test.ts b/test/author-invite-flow/author-invite-start.test.ts index 32c048917..def522879 100644 --- a/test/author-invite-flow/author-invite-start.test.ts +++ b/test/author-invite-flow/author-invite-start.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import { Eq as eqOrcid } from 'orcid-id-ts' import type { GetPrereviewEnv } from '../../src/author-invite-flow/author-invite-start.js' diff --git a/test/author-invite-flow/author-invite-verify-email-address.test.ts b/test/author-invite-flow/author-invite-verify-email-address.test.ts index 5daebc7f8..1ef525781 100644 --- a/test/author-invite-flow/author-invite-verify-email-address.test.ts +++ b/test/author-invite-flow/author-invite-verify-email-address.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import { Eq as eqOrcid } from 'orcid-id-ts' import * as _ from '../../src/author-invite-flow/verify-email-address.js' diff --git a/test/author-invite-flow/author-invite.test.ts b/test/author-invite-flow/author-invite.test.ts index ba9c8e0c4..72763d60e 100644 --- a/test/author-invite-flow/author-invite.test.ts +++ b/test/author-invite-flow/author-invite.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import { Eq as eqOrcid } from 'orcid-id-ts' import type { GetPrereviewEnv } from '../../src/author-invite-flow/author-invite.js' diff --git a/test/career-stage.test.ts b/test/career-stage.test.ts index a1b95d2a4..29cb39052 100644 --- a/test/career-stage.test.ts +++ b/test/career-stage.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' -import * as E from 'fp-ts/Either' -import * as D from 'io-ts/Decoder' +import * as E from 'fp-ts/lib/Either.js' +import * as D from 'io-ts/lib/Decoder.js' import * as _ from '../src/career-stage.js' import * as fc from './fc.js' diff --git a/test/cloudinary.test.ts b/test/cloudinary.test.ts index 3c6d7384a..03307cc95 100644 --- a/test/cloudinary.test.ts +++ b/test/cloudinary.test.ts @@ -2,9 +2,9 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { FixedClock } from 'clock-ts' import fetchMock from 'fetch-mock' -import * as E from 'fp-ts/Either' -import * as IO from 'fp-ts/IO' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as IO from 'fp-ts/lib/IO.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' import { P, isMatching } from 'ts-pattern' import * as _ from '../src/cloudinary.js' diff --git a/test/club-details.test.ts b/test/club-details.test.ts index 005e3141a..7577feae6 100644 --- a/test/club-details.test.ts +++ b/test/club-details.test.ts @@ -1,6 +1,6 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' -import * as O from 'fp-ts/Option' +import * as O from 'fp-ts/lib/Option.js' import type { Orcid } from 'orcid-id-ts' import * as _ from '../src/club-details.js' import * as fc from './fc.js' diff --git a/test/club-profile-page/club-profile.test.ts b/test/club-profile-page/club-profile.test.ts index f1f833253..dfe477f3d 100644 --- a/test/club-profile-page/club-profile.test.ts +++ b/test/club-profile-page/club-profile.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { encode } from 'html-entities' import { Status } from 'hyper-ts' import { getClubName } from '../../src/club-details.js' diff --git a/test/connect-orcid/connect-orcid.test.ts b/test/connect-orcid/connect-orcid.test.ts index 356cdc180..0cd9cd90f 100644 --- a/test/connect-orcid/connect-orcid.test.ts +++ b/test/connect-orcid/connect-orcid.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import * as _ from '../../src/connect-orcid/connect-orcid.js' import type { CanConnectOrcidProfileEnv } from '../../src/feature-flags.js' diff --git a/test/connect-orcid/disconnect-orcid.test.ts b/test/connect-orcid/disconnect-orcid.test.ts index fe25be02d..8be7b6016 100644 --- a/test/connect-orcid/disconnect-orcid.test.ts +++ b/test/connect-orcid/disconnect-orcid.test.ts @@ -2,7 +2,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import fetchMock from 'fetch-mock' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' import * as _ from '../../src/connect-orcid/disconnect-orcid.js' import type { DeleteOrcidTokenEnv, GetOrcidTokenEnv } from '../../src/orcid-token.js' diff --git a/test/connect-orcid/oauth-code.test.ts b/test/connect-orcid/oauth-code.test.ts index a955180d6..43721d5e5 100644 --- a/test/connect-orcid/oauth-code.test.ts +++ b/test/connect-orcid/oauth-code.test.ts @@ -2,7 +2,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import fetchMock from 'fetch-mock' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' import Keyv from 'keyv' import * as _ from '../../src/connect-orcid/oauth-code.js' diff --git a/test/connect-slack-page/connect-slack.test.ts b/test/connect-slack-page/connect-slack.test.ts index 106d40652..6b2b5398d 100644 --- a/test/connect-slack-page/connect-slack.test.ts +++ b/test/connect-slack-page/connect-slack.test.ts @@ -2,11 +2,11 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import fetchMock from 'fetch-mock' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as O from 'fp-ts/Option' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as O from 'fp-ts/lib/Option.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' +import * as M from 'hyper-ts/lib/Middleware.js' import Keyv from 'keyv' import * as _ from '../../src/connect-slack-page/index.js' import { rawHtml } from '../../src/html.js' diff --git a/test/crossref.test.ts b/test/crossref.test.ts index 4d0e95de6..7451b6daa 100644 --- a/test/crossref.test.ts +++ b/test/crossref.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' import fetchMock from 'fetch-mock' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { Status } from 'hyper-ts' import * as _ from '../src/crossref.js' import { rawHtml } from '../src/html.js' diff --git a/test/datacite.test.ts b/test/datacite.test.ts index 8eea29456..3087f5306 100644 --- a/test/datacite.test.ts +++ b/test/datacite.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' import fetchMock from 'fetch-mock' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { Status } from 'hyper-ts' import * as _ from '../src/datacite.js' import { rawHtml } from '../src/html.js' diff --git a/test/detect-language.test.ts b/test/detect-language.test.ts index 6d5105f37..b01a9c27d 100644 --- a/test/detect-language.test.ts +++ b/test/detect-language.test.ts @@ -1,5 +1,5 @@ import { describe, expect, test } from '@jest/globals' -import * as O from 'fp-ts/Option' +import * as O from 'fp-ts/lib/Option.js' import * as _ from '../src/detect-language.js' import { html, rawHtml } from '../src/html.js' diff --git a/test/disconnect-slack-page/disconnect-slack.test.ts b/test/disconnect-slack-page/disconnect-slack.test.ts index e07f2369e..e43030f26 100644 --- a/test/disconnect-slack-page/disconnect-slack.test.ts +++ b/test/disconnect-slack-page/disconnect-slack.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import * as _ from '../../src/disconnect-slack-page/index.js' import { disconnectSlackMatch, myDetailsMatch } from '../../src/routes.js' diff --git a/test/email.test.ts b/test/email.test.ts index 880d1e313..4741900c5 100644 --- a/test/email.test.ts +++ b/test/email.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' -import * as E from 'fp-ts/Either' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import * as _ from '../src/email.js' import * as fc from './fc.js' diff --git a/test/fc.ts b/test/fc.ts index 5809c6450..cffac464c 100644 --- a/test/fc.ts +++ b/test/fc.ts @@ -6,17 +6,17 @@ import { mod11_2 } from 'cdigit' import { type Doi, isDoi } from 'doi-ts' import type { Request, Response } from 'express' import type * as F from 'fetch-fp-ts' -import { isNonEmpty } from 'fp-ts/Array' -import * as E from 'fp-ts/Either' -import type { Json, JsonRecord } from 'fp-ts/Json' -import type { NonEmptyArray } from 'fp-ts/NonEmptyArray' -import * as O from 'fp-ts/Option' -import { not } from 'fp-ts/Predicate' -import type { Refinement } from 'fp-ts/Refinement' +import { isNonEmpty } from 'fp-ts/lib/Array.js' +import * as E from 'fp-ts/lib/Either.js' +import type { Json, JsonRecord } from 'fp-ts/lib/Json.js' +import type { NonEmptyArray } from 'fp-ts/lib/NonEmptyArray.js' +import * as O from 'fp-ts/lib/Option.js' +import { not } from 'fp-ts/lib/Predicate.js' +import type { Refinement } from 'fp-ts/lib/Refinement.js' import type * as H from 'hyper-ts' import { Status } from 'hyper-ts' import type { OAuthEnv } from 'hyper-ts-oauth' -import { ExpressConnection } from 'hyper-ts/express' +import { ExpressConnection } from 'hyper-ts/lib/express.js' import ISO6391, { type LanguageCode } from 'iso-639-1' import { type Body, diff --git a/test/fetch.test.ts b/test/fetch.test.ts index 0063f5569..ca4b8aa22 100644 --- a/test/fetch.test.ts +++ b/test/fetch.test.ts @@ -2,7 +2,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { SystemClock } from 'clock-ts' import fetchMock from 'fetch-mock' -import * as IO from 'fp-ts/IO' +import * as IO from 'fp-ts/lib/IO.js' import * as _ from '../src/fetch.js' import * as fc from './fc.js' import { shouldNotBeCalled } from './should-not-be-called.js' diff --git a/test/flash-message.test.ts b/test/flash-message.test.ts index 686be90c6..111ce043c 100644 --- a/test/flash-message.test.ts +++ b/test/flash-message.test.ts @@ -1,9 +1,9 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import type { HeadersOpen } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' -import * as D from 'io-ts/Decoder' +import * as M from 'hyper-ts/lib/Middleware.js' +import * as D from 'io-ts/lib/Decoder.js' import * as _ from '../src/flash-message.js' import * as fc from './fc.js' import { runMiddleware } from './middleware.js' diff --git a/test/ghost.test.ts b/test/ghost.test.ts index 5729d2a04..a7334bdb7 100644 --- a/test/ghost.test.ts +++ b/test/ghost.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' import fetchMock from 'fetch-mock' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { Status } from 'hyper-ts' import * as _ from '../src/ghost.js' import { rawHtml } from '../src/html.js' diff --git a/test/home-page/home.test.ts b/test/home-page/home.test.ts index 5cf547db8..4acfaaa44 100644 --- a/test/home-page/home.test.ts +++ b/test/home-page/home.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as T from 'fp-ts/Task' +import * as T from 'fp-ts/lib/Task.js' import { Status } from 'hyper-ts' import type { CanRequestReviewsEnv } from '../../src/feature-flags.js' import * as _ from '../../src/home-page/index.js' diff --git a/test/html.test.ts b/test/html.test.ts index 00c7924b6..9a0f44212 100644 --- a/test/html.test.ts +++ b/test/html.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' -import * as E from 'fp-ts/Either' -import * as D from 'io-ts/Decoder' +import * as E from 'fp-ts/lib/Either.js' +import * as D from 'io-ts/lib/Decoder.js' import * as _ from '../src/html.js' import * as fc from './fc.js' diff --git a/test/keyv.test.ts b/test/keyv.test.ts index e86a550f0..282601c1e 100644 --- a/test/keyv.test.ts +++ b/test/keyv.test.ts @@ -1,8 +1,8 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' import { SystemClock } from 'clock-ts' -import * as E from 'fp-ts/Either' -import * as IO from 'fp-ts/IO' +import * as E from 'fp-ts/lib/Either.js' +import * as IO from 'fp-ts/lib/IO.js' import Keyv from 'keyv' import { get } from 'spectacles-ts' import { ContactEmailAddressC } from '../src/contact-email-address.js' diff --git a/test/legacy-prereview.test.ts b/test/legacy-prereview.test.ts index 872c6d8e7..216389a5b 100644 --- a/test/legacy-prereview.test.ts +++ b/test/legacy-prereview.test.ts @@ -1,8 +1,8 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' import fetchMock from 'fetch-mock' -import * as E from 'fp-ts/Either' -import * as O from 'fp-ts/Option' +import * as E from 'fp-ts/lib/Either.js' +import * as O from 'fp-ts/lib/Option.js' import { Status } from 'hyper-ts' import { rawHtml } from '../src/html.js' import * as _ from '../src/legacy-prereview.js' diff --git a/test/legacy-routes/legacy-routes.test.ts b/test/legacy-routes/legacy-routes.test.ts index 00dc9c67d..aa80ea86a 100644 --- a/test/legacy-routes/legacy-routes.test.ts +++ b/test/legacy-routes/legacy-routes.test.ts @@ -1,11 +1,11 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' -import { ExpressConnection } from 'hyper-ts/express' +import * as M from 'hyper-ts/lib/Middleware.js' +import { ExpressConnection } from 'hyper-ts/lib/express.js' import { createRequest, createResponse } from 'node-mocks-http' import { rawHtml } from '../../src/html.js' import * as _ from '../../src/legacy-routes/index.js' diff --git a/test/log-in/log-in.test.ts b/test/log-in/log-in.test.ts index 4c9c6b6f7..dc096b6b3 100644 --- a/test/log-in/log-in.test.ts +++ b/test/log-in/log-in.test.ts @@ -4,9 +4,9 @@ import { SystemClock } from 'clock-ts' import cookieSignature from 'cookie-signature' import fetchMock from 'fetch-mock' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as IO from 'fp-ts/IO' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as IO from 'fp-ts/lib/IO.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' import all from 'it-all' import Keyv from 'keyv' diff --git a/test/mailjet.test.ts b/test/mailjet.test.ts index 7c986ec9b..29c9e95f3 100644 --- a/test/mailjet.test.ts +++ b/test/mailjet.test.ts @@ -2,8 +2,8 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' import { SystemClock } from 'clock-ts' import fetchMock from 'fetch-mock' -import * as E from 'fp-ts/Either' -import * as IO from 'fp-ts/IO' +import * as E from 'fp-ts/lib/Either.js' +import * as IO from 'fp-ts/lib/IO.js' import * as _ from '../src/mailjet.js' import * as fc from './fc.js' diff --git a/test/middleware.test.ts b/test/middleware.test.ts index 095a57f0d..f06cff209 100644 --- a/test/middleware.test.ts +++ b/test/middleware.test.ts @@ -1,8 +1,8 @@ import { test } from '@fast-check/jest' import { expect, jest } from '@jest/globals' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { MediaType, Status } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' +import * as M from 'hyper-ts/lib/Middleware.js' import { rawHtml } from '../src/html.js' import * as _ from '../src/middleware.js' import type { TemplatePageEnv } from '../src/page.js' diff --git a/test/middleware.ts b/test/middleware.ts index bd3856bd5..3c6bf6eae 100644 --- a/test/middleware.ts +++ b/test/middleware.ts @@ -1,9 +1,9 @@ -import * as L from 'fp-ts-contrib/List' -import * as TE from 'fp-ts/TaskEither' -import { pipe } from 'fp-ts/function' -import type { Middleware } from 'hyper-ts/Middleware' -import * as M from 'hyper-ts/Middleware' -import type { Action, ExpressConnection } from 'hyper-ts/express' +import * as L from 'fp-ts-contrib/lib/List.js' +import * as TE from 'fp-ts/lib/TaskEither.js' +import { pipe } from 'fp-ts/lib/function.js' +import type { Middleware } from 'hyper-ts/lib/Middleware.js' +import * as M from 'hyper-ts/lib/Middleware.js' +import type { Action, ExpressConnection } from 'hyper-ts/lib/express.js' export function runMiddleware( ma: Middleware, diff --git a/test/my-details-page/change-avatar.test.ts b/test/my-details-page/change-avatar.test.ts index cf236807a..ade03fc39 100644 --- a/test/my-details-page/change-avatar.test.ts +++ b/test/my-details-page/change-avatar.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import * as _ from '../../src/my-details-page/change-avatar.js' import { changeAvatarMatch, myDetailsMatch } from '../../src/routes.js' diff --git a/test/my-details-page/change-career-stage-visibility.test.ts b/test/my-details-page/change-career-stage-visibility.test.ts index c20b847d3..8401bc48c 100644 --- a/test/my-details-page/change-career-stage-visibility.test.ts +++ b/test/my-details-page/change-career-stage-visibility.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import * as _ from '../../src/my-details-page/change-career-stage-visibility.js' import { changeCareerStageVisibilityMatch, myDetailsMatch } from '../../src/routes.js' diff --git a/test/my-details-page/change-career-stage.test.ts b/test/my-details-page/change-career-stage.test.ts index 35f9ee46a..2daaf7857 100644 --- a/test/my-details-page/change-career-stage.test.ts +++ b/test/my-details-page/change-career-stage.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import * as _ from '../../src/my-details-page/change-career-stage.js' import { changeCareerStageMatch, myDetailsMatch } from '../../src/routes.js' diff --git a/test/my-details-page/change-contact-email-address.test.ts b/test/my-details-page/change-contact-email-address.test.ts index 00a690eb9..cabc40c80 100644 --- a/test/my-details-page/change-contact-email-address.test.ts +++ b/test/my-details-page/change-contact-email-address.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import * as _ from '../../src/my-details-page/change-contact-email-address.js' import { changeContactEmailAddressMatch, myDetailsMatch } from '../../src/routes.js' diff --git a/test/my-details-page/change-languages-visibility.test.ts b/test/my-details-page/change-languages-visibility.test.ts index ef336756d..bbe2f1616 100644 --- a/test/my-details-page/change-languages-visibility.test.ts +++ b/test/my-details-page/change-languages-visibility.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import * as _ from '../../src/my-details-page/change-languages-visibility.js' import { changeLanguagesVisibilityMatch, myDetailsMatch } from '../../src/routes.js' diff --git a/test/my-details-page/change-languages.test.ts b/test/my-details-page/change-languages.test.ts index 27d71bab8..a9f3d6977 100644 --- a/test/my-details-page/change-languages.test.ts +++ b/test/my-details-page/change-languages.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import * as _ from '../../src/my-details-page/change-languages.js' import { changeLanguagesMatch, myDetailsMatch } from '../../src/routes.js' diff --git a/test/my-details-page/change-location-visibility.test.ts b/test/my-details-page/change-location-visibility.test.ts index f0a342653..7dc6de2cd 100644 --- a/test/my-details-page/change-location-visibility.test.ts +++ b/test/my-details-page/change-location-visibility.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import * as _ from '../../src/my-details-page/change-location-visibility.js' import { changeLocationVisibilityMatch, myDetailsMatch } from '../../src/routes.js' diff --git a/test/my-details-page/change-location.test.ts b/test/my-details-page/change-location.test.ts index 1b906d075..89d3c0238 100644 --- a/test/my-details-page/change-location.test.ts +++ b/test/my-details-page/change-location.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import * as _ from '../../src/my-details-page/change-location.js' import { changeLocationMatch, myDetailsMatch } from '../../src/routes.js' diff --git a/test/my-details-page/change-open-for-requests-visibility.test.ts b/test/my-details-page/change-open-for-requests-visibility.test.ts index 3ab9dfe6f..f3b9428bd 100644 --- a/test/my-details-page/change-open-for-requests-visibility.test.ts +++ b/test/my-details-page/change-open-for-requests-visibility.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import * as _ from '../../src/my-details-page/change-open-for-requests-visibility.js' import { changeOpenForRequestsVisibilityMatch, myDetailsMatch } from '../../src/routes.js' diff --git a/test/my-details-page/change-open-for-requests.test.ts b/test/my-details-page/change-open-for-requests.test.ts index 7c3629561..997f8f4a8 100644 --- a/test/my-details-page/change-open-for-requests.test.ts +++ b/test/my-details-page/change-open-for-requests.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import * as _ from '../../src/my-details-page/change-open-for-requests.js' import { changeOpenForRequestsMatch, myDetailsMatch } from '../../src/routes.js' diff --git a/test/my-details-page/change-research-interests-visibility.test.ts b/test/my-details-page/change-research-interests-visibility.test.ts index 74f887b9c..2a83be07a 100644 --- a/test/my-details-page/change-research-interests-visibility.test.ts +++ b/test/my-details-page/change-research-interests-visibility.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import * as _ from '../../src/my-details-page/change-research-interests-visibility.js' import { changeResearchInterestsVisibilityMatch, myDetailsMatch } from '../../src/routes.js' diff --git a/test/my-details-page/change-research-interests.test.ts b/test/my-details-page/change-research-interests.test.ts index c285b327f..64c4a1612 100644 --- a/test/my-details-page/change-research-interests.test.ts +++ b/test/my-details-page/change-research-interests.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import * as _ from '../../src/my-details-page/change-research-interests.js' import { changeResearchInterestsMatch, myDetailsMatch } from '../../src/routes.js' diff --git a/test/my-details-page/my-details.test.ts b/test/my-details-page/my-details.test.ts index 3ca4118e5..05a9f8776 100644 --- a/test/my-details-page/my-details.test.ts +++ b/test/my-details-page/my-details.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import * as _ from '../../src/my-details-page/my-details.js' import { myDetailsMatch } from '../../src/routes.js' diff --git a/test/my-details-page/remove-avatar.test.ts b/test/my-details-page/remove-avatar.test.ts index 4bf087a09..363f34335 100644 --- a/test/my-details-page/remove-avatar.test.ts +++ b/test/my-details-page/remove-avatar.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import * as _ from '../../src/my-details-page/remove-avatar.js' import { myDetailsMatch, removeAvatarMatch } from '../../src/routes.js' diff --git a/test/my-details-page/verify-contact-email-address.test.ts b/test/my-details-page/verify-contact-email-address.test.ts index c061b7199..dfd85ef0c 100644 --- a/test/my-details-page/verify-contact-email-address.test.ts +++ b/test/my-details-page/verify-contact-email-address.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import * as _ from '../../src/my-details-page/verify-contact-email-address.js' import { myDetailsMatch, verifyContactEmailAddressMatch } from '../../src/routes.js' diff --git a/test/my-prereviews-page/no-prereviews.test.ts b/test/my-prereviews-page/no-prereviews.test.ts index b7bc198ca..1c44e8af0 100644 --- a/test/my-prereviews-page/no-prereviews.test.ts +++ b/test/my-prereviews-page/no-prereviews.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { Status } from 'hyper-ts' import * as _ from '../../src/my-prereviews-page/no-prereviews.js' import { myPrereviewsMatch } from '../../src/routes.js' diff --git a/test/my-prereviews-page/require-log-in.test.ts b/test/my-prereviews-page/require-log-in.test.ts index 9c851a02f..19fe704c8 100644 --- a/test/my-prereviews-page/require-log-in.test.ts +++ b/test/my-prereviews-page/require-log-in.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import * as _ from '../../src/my-prereviews-page/require-log-in.js' import { myPrereviewsMatch } from '../../src/routes.js' import * as fc from '../fc.js' diff --git a/test/nodemailer.test.ts b/test/nodemailer.test.ts index 56bba9456..beacc13dd 100644 --- a/test/nodemailer.test.ts +++ b/test/nodemailer.test.ts @@ -1,8 +1,8 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { SystemClock } from 'clock-ts' -import * as E from 'fp-ts/Either' -import * as IO from 'fp-ts/IO' +import * as E from 'fp-ts/lib/Either.js' +import * as IO from 'fp-ts/lib/IO.js' import nodemailer from 'nodemailer' import * as _ from '../src/nodemailer.js' import * as fc from './fc.js' diff --git a/test/openalex/work.test.ts b/test/openalex/work.test.ts index eccb0f04a..a368cfd20 100644 --- a/test/openalex/work.test.ts +++ b/test/openalex/work.test.ts @@ -2,7 +2,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { toUrl } from 'doi-ts' import type { FetchEnv } from 'fetch-fp-ts' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { Status } from 'hyper-ts' import { NetworkError, UnexpectedStatusCode } from '../../src/openalex/http.js' import * as _ from '../../src/openalex/work.js' diff --git a/test/orcid.test.ts b/test/orcid.test.ts index 62045ba7e..3b6164c76 100644 --- a/test/orcid.test.ts +++ b/test/orcid.test.ts @@ -2,8 +2,8 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' import { SystemClock } from 'clock-ts' import fetchMock from 'fetch-mock' -import * as E from 'fp-ts/Either' -import * as IO from 'fp-ts/IO' +import * as E from 'fp-ts/lib/Either.js' +import * as IO from 'fp-ts/lib/IO.js' import { Status } from 'hyper-ts' import type { Orcid } from 'orcid-id-ts' import * as _ from '../src/orcid.js' diff --git a/test/philsci.test.ts b/test/philsci.test.ts index 5eeb69673..da0488b8c 100644 --- a/test/philsci.test.ts +++ b/test/philsci.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' import fetchMock from 'fetch-mock' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { Status } from 'hyper-ts' import { rawHtml } from '../src/html.js' import * as _ from '../src/philsci.js' diff --git a/test/preprint-reviews-page/preprint-reviews.test.ts b/test/preprint-reviews-page/preprint-reviews.test.ts index 45c6b6c86..e47079f09 100644 --- a/test/preprint-reviews-page/preprint-reviews.test.ts +++ b/test/preprint-reviews-page/preprint-reviews.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import * as _ from '../../src/preprint-reviews-page/index.js' import type { GetPreprintEnv } from '../../src/preprint.js' diff --git a/test/prereview-coar-notify/get-recent-review-requests.test.ts b/test/prereview-coar-notify/get-recent-review-requests.test.ts index ee4d95211..f1fde5050 100644 --- a/test/prereview-coar-notify/get-recent-review-requests.test.ts +++ b/test/prereview-coar-notify/get-recent-review-requests.test.ts @@ -2,8 +2,8 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { SystemClock } from 'clock-ts' import type { Fetch } from 'fetch-fp-ts' -import * as E from 'fp-ts/Either' -import * as IO from 'fp-ts/IO' +import * as E from 'fp-ts/lib/Either.js' +import * as IO from 'fp-ts/lib/IO.js' import { Status } from 'hyper-ts' import * as _ from '../../src/prereview-coar-notify/get-recent-review-requests.js' import { RecentReviewRequestsC } from '../../src/prereview-coar-notify/get-recent-review-requests.js' diff --git a/test/prereview-coar-notify/send-review-action-offer.test.ts b/test/prereview-coar-notify/send-review-action-offer.test.ts index f49e4ae70..3cc169904 100644 --- a/test/prereview-coar-notify/send-review-action-offer.test.ts +++ b/test/prereview-coar-notify/send-review-action-offer.test.ts @@ -1,6 +1,6 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { Status } from 'hyper-ts' import * as _ from '../../src/prereview-coar-notify/send-review-action-offer.js' import * as fc from './fc.js' diff --git a/test/profile-page/index.test.ts b/test/profile-page/index.test.ts index 14a163030..9893c1526 100644 --- a/test/profile-page/index.test.ts +++ b/test/profile-page/index.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import { plainText } from '../../src/html.js' import * as _ from '../../src/profile-page/index.js' diff --git a/test/request-a-prereview-page/make-decision.test.ts b/test/request-a-prereview-page/make-decision.test.ts index 35d9d526a..91d3c6b02 100644 --- a/test/request-a-prereview-page/make-decision.test.ts +++ b/test/request-a-prereview-page/make-decision.test.ts @@ -1,6 +1,6 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import type { CanRequestReviewsEnv } from '../../src/feature-flags.js' import * as _ from '../../src/request-a-prereview-page/make-decision.js' import * as fc from '../fc.js' diff --git a/test/request-review-flow/request-review-check.test.ts b/test/request-review-flow/request-review-check.test.ts index d557167cf..93d636b7f 100644 --- a/test/request-review-flow/request-review-check.test.ts +++ b/test/request-review-flow/request-review-check.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import type { GetPreprintTitleEnv } from '../../src/preprint.js' import * as _ from '../../src/request-review-flow/check-page/index.js' diff --git a/test/request-review-flow/request-review-persona.test.ts b/test/request-review-flow/request-review-persona.test.ts index 01717875b..698ed24a0 100644 --- a/test/request-review-flow/request-review-persona.test.ts +++ b/test/request-review-flow/request-review-persona.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import type { GetPreprintTitleEnv } from '../../src/preprint.js' import * as _ from '../../src/request-review-flow/persona-page/index.js' diff --git a/test/request-review-flow/request-review-published.test.ts b/test/request-review-flow/request-review-published.test.ts index eb7f7a888..e438ca792 100644 --- a/test/request-review-flow/request-review-published.test.ts +++ b/test/request-review-flow/request-review-published.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import * as _ from '../../src/request-review-flow/index.js' import type { GetReviewRequestEnv } from '../../src/review-request.js' diff --git a/test/request-review-flow/request-review-start.test.ts b/test/request-review-flow/request-review-start.test.ts index 7ece6f86d..6b0021c54 100644 --- a/test/request-review-flow/request-review-start.test.ts +++ b/test/request-review-flow/request-review-start.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import type { CanRequestReviewsEnv } from '../../src/feature-flags.js' import * as _ from '../../src/request-review-flow/index.js' diff --git a/test/request-review-flow/request-review.test.ts b/test/request-review-flow/request-review.test.ts index 66652fa87..9fae9ab2b 100644 --- a/test/request-review-flow/request-review.test.ts +++ b/test/request-review-flow/request-review.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import type { CanRequestReviewsEnv } from '../../src/feature-flags.js' import type { GetPreprintTitleEnv } from '../../src/preprint.js' diff --git a/test/research-interests.test.ts b/test/research-interests.test.ts index 5100cdd46..17d572dfc 100644 --- a/test/research-interests.test.ts +++ b/test/research-interests.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' -import * as E from 'fp-ts/Either' -import * as D from 'io-ts/Decoder' +import * as E from 'fp-ts/lib/Either.js' +import * as D from 'io-ts/lib/Decoder.js' import * as _ from '../src/research-interests.js' import * as fc from './fc.js' diff --git a/test/response.test.ts b/test/response.test.ts index 06afc33e0..289d3867f 100644 --- a/test/response.test.ts +++ b/test/response.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' -import * as E from 'fp-ts/Either' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' import { rawHtml } from '../src/html.js' import type { TemplatePageEnv } from '../src/page.js' diff --git a/test/review-a-preprint-page/review-a-preprint.test.ts b/test/review-a-preprint-page/review-a-preprint.test.ts index ed99772e3..7c829a828 100644 --- a/test/review-a-preprint-page/review-a-preprint.test.ts +++ b/test/review-a-preprint-page/review-a-preprint.test.ts @@ -2,7 +2,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import type { Doi } from 'doi-ts' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import type { DoesPreprintExistEnv } from '../../src/preprint.js' import * as _ from '../../src/review-a-preprint-page/index.js' diff --git a/test/review-page/review-page.test.ts b/test/review-page/review-page.test.ts index f482f4c43..d04b2a8d7 100644 --- a/test/review-page/review-page.test.ts +++ b/test/review-page/review-page.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import * as _ from '../../src/review-page/index.js' import { reviewMatch } from '../../src/routes.js' diff --git a/test/review-requests-page/review-requests.test.ts b/test/review-requests-page/review-requests.test.ts index 4209800bd..e26b2f8a5 100644 --- a/test/review-requests-page/review-requests.test.ts +++ b/test/review-requests-page/review-requests.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import { html } from '../../src/html.js' import * as _ from '../../src/review-requests-page/index.js' diff --git a/test/reviews-page/reviews-page.test.ts b/test/reviews-page/reviews-page.test.ts index c105e4f46..87bd83798 100644 --- a/test/reviews-page/reviews-page.test.ts +++ b/test/reviews-page/reviews-page.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import { html } from '../../src/html.js' import * as _ from '../../src/reviews-page/index.js' diff --git a/test/slack.test.ts b/test/slack.test.ts index f8b0b04ea..0f7b5b007 100644 --- a/test/slack.test.ts +++ b/test/slack.test.ts @@ -2,8 +2,8 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' import { SystemClock } from 'clock-ts' import fetchMock from 'fetch-mock' -import * as E from 'fp-ts/Either' -import * as IO from 'fp-ts/IO' +import * as E from 'fp-ts/lib/Either.js' +import * as IO from 'fp-ts/lib/IO.js' import { Status } from 'hyper-ts' import { toUrl } from 'orcid-id-ts' import { URL } from 'url' diff --git a/test/types/club-id.test.ts b/test/types/club-id.test.ts index 6e869c1af..9e365077c 100644 --- a/test/types/club-id.test.ts +++ b/test/types/club-id.test.ts @@ -1,6 +1,6 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' -import * as D from 'io-ts/Decoder' +import * as D from 'io-ts/lib/Decoder.js' import * as _ from '../../src/types/club-id.js' import * as fc from '../fc.js' diff --git a/test/types/email-address.test.ts b/test/types/email-address.test.ts index 6dc4cf4a6..52467bbf7 100644 --- a/test/types/email-address.test.ts +++ b/test/types/email-address.test.ts @@ -1,6 +1,6 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' -import * as D from 'io-ts/Decoder' +import * as D from 'io-ts/lib/Decoder.js' import * as _ from '../../src/types/email-address.js' import * as fc from '../fc.js' diff --git a/test/types/preprint-id.test.ts b/test/types/preprint-id.test.ts index 9e632ec93..36c624b7c 100644 --- a/test/types/preprint-id.test.ts +++ b/test/types/preprint-id.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' import { type Doi, toUrl } from 'doi-ts' -import * as O from 'fp-ts/Option' +import * as O from 'fp-ts/lib/Option.js' import * as _ from '../../src/types/preprint-id.js' import * as fc from '../fc.js' diff --git a/test/types/pseudonym.test.ts b/test/types/pseudonym.test.ts index c2b9300bb..f3c72eb29 100644 --- a/test/types/pseudonym.test.ts +++ b/test/types/pseudonym.test.ts @@ -1,6 +1,6 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' -import * as D from 'io-ts/Decoder' +import * as D from 'io-ts/lib/Decoder.js' import * as _ from '../../src/types/pseudonym.js' import * as fc from '../fc.js' diff --git a/test/types/string.test.ts b/test/types/string.test.ts index 6d0765243..2940d3055 100644 --- a/test/types/string.test.ts +++ b/test/types/string.test.ts @@ -1,6 +1,6 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' -import * as D from 'io-ts/Decoder' +import * as D from 'io-ts/lib/Decoder.js' import * as _ from '../../src/types/string.js' import * as fc from '../fc.js' diff --git a/test/user.test.ts b/test/user.test.ts index 2cf7c5b60..94810d1ff 100644 --- a/test/user.test.ts +++ b/test/user.test.ts @@ -1,9 +1,9 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' -import * as E from 'fp-ts/Either' -import * as O from 'fp-ts/Option' -import { pipe } from 'fp-ts/function' -import * as D from 'io-ts/Decoder' +import * as E from 'fp-ts/lib/Either.js' +import * as O from 'fp-ts/lib/Option.js' +import { pipe } from 'fp-ts/lib/function.js' +import * as D from 'io-ts/lib/Decoder.js' import * as _ from '../src/user.js' import * as fc from './fc.js' diff --git a/test/write-review/user-is-author.test.ts b/test/write-review/user-is-author.test.ts index 400cd5e5c..8ffaec947 100644 --- a/test/write-review/user-is-author.test.ts +++ b/test/write-review/user-is-author.test.ts @@ -1,6 +1,6 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import * as _ from '../../src/write-review/user-is-author.js' import * as fc from './fc.js' diff --git a/test/write-review/write-review-add-author.test.ts b/test/write-review/write-review-add-author.test.ts index b4d1bc5af..28afc05b7 100644 --- a/test/write-review/write-review-add-author.test.ts +++ b/test/write-review/write-review-add-author.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import Keyv from 'keyv' import type { GetPreprintTitleEnv } from '../../src/preprint.js' diff --git a/test/write-review/write-review-add-authors.test.ts b/test/write-review/write-review-add-authors.test.ts index be4f3d874..f2e52bb20 100644 --- a/test/write-review/write-review-add-authors.test.ts +++ b/test/write-review/write-review-add-authors.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import Keyv from 'keyv' import type { GetPreprintTitleEnv } from '../../src/preprint.js' diff --git a/test/write-review/write-review-authors.test.ts b/test/write-review/write-review-authors.test.ts index bae43c7e9..267394cb8 100644 --- a/test/write-review/write-review-authors.test.ts +++ b/test/write-review/write-review-authors.test.ts @@ -1,10 +1,10 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' +import * as M from 'hyper-ts/lib/Middleware.js' import Keyv from 'keyv' import { rawHtml } from '../../src/html.js' import type { TemplatePageEnv } from '../../src/page.js' diff --git a/test/write-review/write-review-change-author.test.ts b/test/write-review/write-review-change-author.test.ts index c8658cb83..8300d013c 100644 --- a/test/write-review/write-review-change-author.test.ts +++ b/test/write-review/write-review-change-author.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import Keyv from 'keyv' import type { GetPreprintTitleEnv } from '../../src/preprint.js' diff --git a/test/write-review/write-review-competing-interests.test.ts b/test/write-review/write-review-competing-interests.test.ts index d5209b2e7..856060737 100644 --- a/test/write-review/write-review-competing-interests.test.ts +++ b/test/write-review/write-review-competing-interests.test.ts @@ -1,10 +1,10 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' +import * as M from 'hyper-ts/lib/Middleware.js' import Keyv from 'keyv' import { rawHtml } from '../../src/html.js' import type { TemplatePageEnv } from '../../src/page.js' diff --git a/test/write-review/write-review-conduct.test.ts b/test/write-review/write-review-conduct.test.ts index 7df679803..60a0f0293 100644 --- a/test/write-review/write-review-conduct.test.ts +++ b/test/write-review/write-review-conduct.test.ts @@ -1,10 +1,10 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' +import * as M from 'hyper-ts/lib/Middleware.js' import Keyv from 'keyv' import { rawHtml } from '../../src/html.js' import type { TemplatePageEnv } from '../../src/page.js' diff --git a/test/write-review/write-review-data-presentation.test.ts b/test/write-review/write-review-data-presentation.test.ts index d336264cf..4cf6d48aa 100644 --- a/test/write-review/write-review-data-presentation.test.ts +++ b/test/write-review/write-review-data-presentation.test.ts @@ -1,10 +1,10 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' +import * as M from 'hyper-ts/lib/Middleware.js' import Keyv from 'keyv' import { rawHtml } from '../../src/html.js' import type { TemplatePageEnv } from '../../src/page.js' diff --git a/test/write-review/write-review-enter-email-address.test.ts b/test/write-review/write-review-enter-email-address.test.ts index e0218149e..9824c2bef 100644 --- a/test/write-review/write-review-enter-email-address.test.ts +++ b/test/write-review/write-review-enter-email-address.test.ts @@ -1,10 +1,10 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' +import * as M from 'hyper-ts/lib/Middleware.js' import Keyv from 'keyv' import type { SaveContactEmailAddressEnv, diff --git a/test/write-review/write-review-findings-next-steps.test.ts b/test/write-review/write-review-findings-next-steps.test.ts index 778e041b3..e4be4ce68 100644 --- a/test/write-review/write-review-findings-next-steps.test.ts +++ b/test/write-review/write-review-findings-next-steps.test.ts @@ -1,10 +1,10 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' +import * as M from 'hyper-ts/lib/Middleware.js' import Keyv from 'keyv' import { rawHtml } from '../../src/html.js' import type { TemplatePageEnv } from '../../src/page.js' diff --git a/test/write-review/write-review-introduction-matches.test.ts b/test/write-review/write-review-introduction-matches.test.ts index 8e6785753..a6ed3284e 100644 --- a/test/write-review/write-review-introduction-matches.test.ts +++ b/test/write-review/write-review-introduction-matches.test.ts @@ -1,10 +1,10 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' +import * as M from 'hyper-ts/lib/Middleware.js' import Keyv from 'keyv' import { rawHtml } from '../../src/html.js' import type { TemplatePageEnv } from '../../src/page.js' diff --git a/test/write-review/write-review-language-editing.test.ts b/test/write-review/write-review-language-editing.test.ts index ee2e690bb..9f721bb8f 100644 --- a/test/write-review/write-review-language-editing.test.ts +++ b/test/write-review/write-review-language-editing.test.ts @@ -1,10 +1,10 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' +import * as M from 'hyper-ts/lib/Middleware.js' import Keyv from 'keyv' import { rawHtml } from '../../src/html.js' import type { TemplatePageEnv } from '../../src/page.js' diff --git a/test/write-review/write-review-methods-appropriate.test.ts b/test/write-review/write-review-methods-appropriate.test.ts index 415486964..115e82547 100644 --- a/test/write-review/write-review-methods-appropriate.test.ts +++ b/test/write-review/write-review-methods-appropriate.test.ts @@ -1,10 +1,10 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' +import * as M from 'hyper-ts/lib/Middleware.js' import Keyv from 'keyv' import { rawHtml } from '../../src/html.js' import type { TemplatePageEnv } from '../../src/page.js' diff --git a/test/write-review/write-review-need-to-verify-email-address.test.ts b/test/write-review/write-review-need-to-verify-email-address.test.ts index 16fad3775..9ba4d9045 100644 --- a/test/write-review/write-review-need-to-verify-email-address.test.ts +++ b/test/write-review/write-review-need-to-verify-email-address.test.ts @@ -1,10 +1,10 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' +import * as M from 'hyper-ts/lib/Middleware.js' import Keyv from 'keyv' import type { VerifyContactEmailAddressForReviewEnv } from '../../src/contact-email-address.js' import { rawHtml } from '../../src/html.js' diff --git a/test/write-review/write-review-novel.test.ts b/test/write-review/write-review-novel.test.ts index cf5814a9e..8ea047af5 100644 --- a/test/write-review/write-review-novel.test.ts +++ b/test/write-review/write-review-novel.test.ts @@ -1,10 +1,10 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' +import * as M from 'hyper-ts/lib/Middleware.js' import Keyv from 'keyv' import { rawHtml } from '../../src/html.js' import type { TemplatePageEnv } from '../../src/page.js' diff --git a/test/write-review/write-review-persona.test.ts b/test/write-review/write-review-persona.test.ts index debad0d0a..ca9b5a784 100644 --- a/test/write-review/write-review-persona.test.ts +++ b/test/write-review/write-review-persona.test.ts @@ -1,10 +1,10 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' +import * as M from 'hyper-ts/lib/Middleware.js' import Keyv from 'keyv' import { rawHtml } from '../../src/html.js' import type { TemplatePageEnv } from '../../src/page.js' diff --git a/test/write-review/write-review-publish.test.ts b/test/write-review/write-review-publish.test.ts index b06de7466..956a6c017 100644 --- a/test/write-review/write-review-publish.test.ts +++ b/test/write-review/write-review-publish.test.ts @@ -2,11 +2,11 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import cookieSignature from 'cookie-signature' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as O from 'fp-ts/Option' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as O from 'fp-ts/lib/Option.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' +import * as M from 'hyper-ts/lib/Middleware.js' import Keyv from 'keyv' import { merge } from 'ts-deepmerge' import { rawHtml } from '../../src/html.js' diff --git a/test/write-review/write-review-published.test.ts b/test/write-review/write-review-published.test.ts index bb0276334..b38b0b54b 100644 --- a/test/write-review/write-review-published.test.ts +++ b/test/write-review/write-review-published.test.ts @@ -2,10 +2,10 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import cookieSignature from 'cookie-signature' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' +import * as M from 'hyper-ts/lib/Middleware.js' import Keyv from 'keyv' import { rawHtml } from '../../src/html.js' import type { TemplatePageEnv } from '../../src/page.js' diff --git a/test/write-review/write-review-ready-full-review.test.ts b/test/write-review/write-review-ready-full-review.test.ts index 89ff3b810..edd06e74d 100644 --- a/test/write-review/write-review-ready-full-review.test.ts +++ b/test/write-review/write-review-ready-full-review.test.ts @@ -1,10 +1,10 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' +import * as M from 'hyper-ts/lib/Middleware.js' import Keyv from 'keyv' import { rawHtml } from '../../src/html.js' import type { TemplatePageEnv } from '../../src/page.js' diff --git a/test/write-review/write-review-remove-author.test.ts b/test/write-review/write-review-remove-author.test.ts index c0de2a37d..30604ec75 100644 --- a/test/write-review/write-review-remove-author.test.ts +++ b/test/write-review/write-review-remove-author.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import Keyv from 'keyv' import type { GetPreprintTitleEnv } from '../../src/preprint.js' diff --git a/test/write-review/write-review-results-supported.test.ts b/test/write-review/write-review-results-supported.test.ts index ca60697cc..39eae3ea0 100644 --- a/test/write-review/write-review-results-supported.test.ts +++ b/test/write-review/write-review-results-supported.test.ts @@ -1,10 +1,10 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' +import * as M from 'hyper-ts/lib/Middleware.js' import Keyv from 'keyv' import { rawHtml } from '../../src/html.js' import type { TemplatePageEnv } from '../../src/page.js' diff --git a/test/write-review/write-review-review-type.test.ts b/test/write-review/write-review-review-type.test.ts index 81c7280e3..150e75d0a 100644 --- a/test/write-review/write-review-review-type.test.ts +++ b/test/write-review/write-review-review-type.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import Keyv from 'keyv' import { merge } from 'ts-deepmerge' diff --git a/test/write-review/write-review-review.test.ts b/test/write-review/write-review-review.test.ts index 0e406ac02..c2efd48d6 100644 --- a/test/write-review/write-review-review.test.ts +++ b/test/write-review/write-review-review.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import Keyv from 'keyv' import { diff --git a/test/write-review/write-review-should-read.test.ts b/test/write-review/write-review-should-read.test.ts index 3aa078470..98803dccc 100644 --- a/test/write-review/write-review-should-read.test.ts +++ b/test/write-review/write-review-should-read.test.ts @@ -1,10 +1,10 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' +import * as M from 'hyper-ts/lib/Middleware.js' import Keyv from 'keyv' import { rawHtml } from '../../src/html.js' import type { TemplatePageEnv } from '../../src/page.js' diff --git a/test/write-review/write-review-start.test.ts b/test/write-review/write-review-start.test.ts index 646b49c24..d787f8e93 100644 --- a/test/write-review/write-review-start.test.ts +++ b/test/write-review/write-review-start.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import Keyv from 'keyv' import { writeReviewReviewTypeMatch, writeReviewStartMatch } from '../../src/routes.js' diff --git a/test/write-review/write-review-verify-email-address.test.ts b/test/write-review/write-review-verify-email-address.test.ts index f642a50ad..363dc2da1 100644 --- a/test/write-review/write-review-verify-email-address.test.ts +++ b/test/write-review/write-review-verify-email-address.test.ts @@ -1,10 +1,10 @@ import { test } from '@fast-check/jest' import { describe, expect, jest } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { MediaType, Status } from 'hyper-ts' -import * as M from 'hyper-ts/Middleware' +import * as M from 'hyper-ts/lib/Middleware.js' import Keyv from 'keyv' import type { GetContactEmailAddressEnv, SaveContactEmailAddressEnv } from '../../src/contact-email-address.js' import { rawHtml } from '../../src/html.js' diff --git a/test/write-review/write-review.test.ts b/test/write-review/write-review.test.ts index 5a3022b94..6788d6fa5 100644 --- a/test/write-review/write-review.test.ts +++ b/test/write-review/write-review.test.ts @@ -1,7 +1,7 @@ import { test } from '@fast-check/jest' import { describe, expect } from '@jest/globals' import { format } from 'fp-ts-routing' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import Keyv from 'keyv' import { writeReviewMatch, writeReviewStartMatch } from '../../src/routes.js' diff --git a/test/zenodo.test.ts b/test/zenodo.test.ts index 2396514b6..9c4282028 100644 --- a/test/zenodo.test.ts +++ b/test/zenodo.test.ts @@ -5,12 +5,12 @@ import { SystemClock } from 'clock-ts' import type { Doi } from 'doi-ts' import fetchMock from 'fetch-mock' import { format } from 'fp-ts-routing' -import * as E from 'fp-ts/Either' -import * as IO from 'fp-ts/IO' -import * as O from 'fp-ts/Option' -import * as RA from 'fp-ts/ReadonlyArray' -import * as T from 'fp-ts/Task' -import * as TE from 'fp-ts/TaskEither' +import * as E from 'fp-ts/lib/Either.js' +import * as IO from 'fp-ts/lib/IO.js' +import * as O from 'fp-ts/lib/Option.js' +import * as RA from 'fp-ts/lib/ReadonlyArray.js' +import * as T from 'fp-ts/lib/Task.js' +import * as TE from 'fp-ts/lib/TaskEither.js' import { Status } from 'hyper-ts' import { match } from 'ts-pattern' import { diff --git a/visual-regression/author-invite-flow/author-invite-enter-email-address.test.ts b/visual-regression/author-invite-flow/author-invite-enter-email-address.test.ts index 48feea72c..e2fb79404 100644 --- a/visual-regression/author-invite-flow/author-invite-enter-email-address.test.ts +++ b/visual-regression/author-invite-flow/author-invite-enter-email-address.test.ts @@ -1,4 +1,4 @@ -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import type { Uuid } from 'uuid-ts' import { enterEmailAddressForm } from '../../src/author-invite-flow/enter-email-address-page/enter-email-address-form.js' import { invalidE, missingE } from '../../src/form.js' diff --git a/visual-regression/author-invite-flow/author-invite-persona.test.ts b/visual-regression/author-invite-flow/author-invite-persona.test.ts index 7d84ea824..7bd2e19dd 100644 --- a/visual-regression/author-invite-flow/author-invite-persona.test.ts +++ b/visual-regression/author-invite-flow/author-invite-persona.test.ts @@ -1,4 +1,4 @@ -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import type { Orcid } from 'orcid-id-ts' import type { Uuid } from 'uuid-ts' import { personaForm } from '../../src/author-invite-flow/persona-page/persona-form.js' diff --git a/visual-regression/author-invite-flow/author-invite-published.test.ts b/visual-regression/author-invite-flow/author-invite-published.test.ts index 7f596c690..37e83ebf1 100644 --- a/visual-regression/author-invite-flow/author-invite-published.test.ts +++ b/visual-regression/author-invite-flow/author-invite-published.test.ts @@ -1,5 +1,5 @@ import type { Doi } from 'doi-ts' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import type { Orcid } from 'orcid-id-ts' import type { Uuid } from 'uuid-ts' import { authorInvitePublished } from '../../src/author-invite-flow/index.js' diff --git a/visual-regression/author-invite-flow/author-invite-start.test.ts b/visual-regression/author-invite-flow/author-invite-start.test.ts index 6b970b294..2cc955d55 100644 --- a/visual-regression/author-invite-flow/author-invite-start.test.ts +++ b/visual-regression/author-invite-flow/author-invite-start.test.ts @@ -1,4 +1,4 @@ -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import type { Orcid } from 'orcid-id-ts' import type { Uuid } from 'uuid-ts' import { authorInviteStart } from '../../src/author-invite-flow/index.js' diff --git a/visual-regression/author-invite-flow/author-invite.test.ts b/visual-regression/author-invite-flow/author-invite.test.ts index 66abb503c..38c861767 100644 --- a/visual-regression/author-invite-flow/author-invite.test.ts +++ b/visual-regression/author-invite-flow/author-invite.test.ts @@ -1,6 +1,6 @@ import { Temporal } from '@js-temporal/polyfill' import type { Doi } from 'doi-ts' -import * as TE from 'fp-ts/TaskEither' +import * as TE from 'fp-ts/lib/TaskEither.js' import type { Orcid } from 'orcid-id-ts' import type { Uuid } from 'uuid-ts' import { authorInvite } from '../../src/author-invite-flow/index.js' diff --git a/visual-regression/my-details/change-avatar-form-page.spec.ts b/visual-regression/my-details/change-avatar-form-page.spec.ts index 22ebe331c..2c20d781c 100644 --- a/visual-regression/my-details/change-avatar-form-page.spec.ts +++ b/visual-regression/my-details/change-avatar-form-page.spec.ts @@ -1,4 +1,4 @@ -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { missingE, tooBigE, wrongTypeE } from '../../src/form.js' import { createPage } from '../../src/my-details-page/change-avatar-form-page.js' import { expect, test } from '../base.js' diff --git a/visual-regression/my-details/change-career-stage-form-page.spec.ts b/visual-regression/my-details/change-career-stage-form-page.spec.ts index b13bfd376..2def4ae15 100644 --- a/visual-regression/my-details/change-career-stage-form-page.spec.ts +++ b/visual-regression/my-details/change-career-stage-form-page.spec.ts @@ -1,4 +1,4 @@ -import * as O from 'fp-ts/Option' +import * as O from 'fp-ts/lib/Option.js' import { createFormPage } from '../../src/my-details-page/change-career-stage-form-page.js' import { expect, test } from '../base.js' diff --git a/visual-regression/my-details/change-contact-email-address-form-page.spec.ts b/visual-regression/my-details/change-contact-email-address-form-page.spec.ts index b585c6b5b..c73554871 100644 --- a/visual-regression/my-details/change-contact-email-address-form-page.spec.ts +++ b/visual-regression/my-details/change-contact-email-address-form-page.spec.ts @@ -1,4 +1,4 @@ -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { invalidE, missingE } from '../../src/form.js' import { createFormPage } from '../../src/my-details-page/change-contact-email-address-form-page.js' import type { EmailAddress } from '../../src/types/email-address.js' diff --git a/visual-regression/my-details/change-languages-form-page.spec.ts b/visual-regression/my-details/change-languages-form-page.spec.ts index 8b787c24e..d403a6481 100644 --- a/visual-regression/my-details/change-languages-form-page.spec.ts +++ b/visual-regression/my-details/change-languages-form-page.spec.ts @@ -1,4 +1,4 @@ -import * as O from 'fp-ts/Option' +import * as O from 'fp-ts/lib/Option.js' import { createFormPage } from '../../src/my-details-page/change-languages-form-page.js' import type { NonEmptyString } from '../../src/types/string.js' import { expect, test } from '../base.js' diff --git a/visual-regression/my-details/change-location-form-page.spec.ts b/visual-regression/my-details/change-location-form-page.spec.ts index 0b8ca2f10..634653375 100644 --- a/visual-regression/my-details/change-location-form-page.spec.ts +++ b/visual-regression/my-details/change-location-form-page.spec.ts @@ -1,4 +1,4 @@ -import * as O from 'fp-ts/Option' +import * as O from 'fp-ts/lib/Option.js' import { createFormPage } from '../../src/my-details-page/change-languages-form-page.js' import type { NonEmptyString } from '../../src/types/string.js' import { expect, test } from '../base.js' diff --git a/visual-regression/my-details/change-open-for-requests-form-page.spec.ts b/visual-regression/my-details/change-open-for-requests-form-page.spec.ts index bfc536794..69161bd1b 100644 --- a/visual-regression/my-details/change-open-for-requests-form-page.spec.ts +++ b/visual-regression/my-details/change-open-for-requests-form-page.spec.ts @@ -1,4 +1,4 @@ -import * as O from 'fp-ts/Option' +import * as O from 'fp-ts/lib/Option.js' import { createFormPage } from '../../src/my-details-page/change-open-for-requests-form-page.js' import { expect, test } from '../base.js' diff --git a/visual-regression/my-details/change-research-interests-form-page.spec.ts b/visual-regression/my-details/change-research-interests-form-page.spec.ts index df168b733..bf8845ce6 100644 --- a/visual-regression/my-details/change-research-interests-form-page.spec.ts +++ b/visual-regression/my-details/change-research-interests-form-page.spec.ts @@ -1,4 +1,4 @@ -import * as O from 'fp-ts/Option' +import * as O from 'fp-ts/lib/Option.js' import { createFormPage } from '../../src/my-details-page/change-research-interests-form-page.js' import type { NonEmptyString } from '../../src/types/string.js' import { expect, test } from '../base.js' diff --git a/visual-regression/my-details/my-details-page.spec.ts b/visual-regression/my-details/my-details-page.spec.ts index 3bd5fadad..17e11eeef 100644 --- a/visual-regression/my-details/my-details-page.spec.ts +++ b/visual-regression/my-details/my-details-page.spec.ts @@ -1,4 +1,4 @@ -import * as O from 'fp-ts/Option' +import * as O from 'fp-ts/lib/Option.js' import type { Orcid } from 'orcid-id-ts' import type { Uuid } from 'uuid-ts' import { createPage } from '../../src/my-details-page/my-details-page.js' diff --git a/visual-regression/request-review-flow/review-request-persona.test.ts b/visual-regression/request-review-flow/review-request-persona.test.ts index a8c966b57..e44b0782c 100644 --- a/visual-regression/request-review-flow/review-request-persona.test.ts +++ b/visual-regression/request-review-flow/review-request-persona.test.ts @@ -1,5 +1,5 @@ import type { Doi } from 'doi-ts' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import type { Orcid } from 'orcid-id-ts' import { missingE } from '../../src/form.js' import { personaForm } from '../../src/request-review-flow/persona-page/persona-form.js' diff --git a/visual-regression/review-a-preprint-page/review-a-preprint.spec.ts b/visual-regression/review-a-preprint-page/review-a-preprint.spec.ts index d680f5f0b..a22488d68 100644 --- a/visual-regression/review-a-preprint-page/review-a-preprint.spec.ts +++ b/visual-regression/review-a-preprint-page/review-a-preprint.spec.ts @@ -1,4 +1,4 @@ -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { invalidE } from '../../src/form.js' import { createPage } from '../../src/review-a-preprint-page/review-a-preprint.js' import { expect, test } from '../base.js' diff --git a/visual-regression/write-review/write-review-add-author.spec.ts b/visual-regression/write-review/write-review-add-author.spec.ts index 370b0ad65..e2111de7c 100644 --- a/visual-regression/write-review/write-review-add-author.spec.ts +++ b/visual-regression/write-review/write-review-add-author.spec.ts @@ -1,5 +1,5 @@ import type { Doi } from 'doi-ts' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { invalidE, missingE } from '../../src/form.js' import { html } from '../../src/html.js' import type { PreprintTitle } from '../../src/preprint.js' diff --git a/visual-regression/write-review/write-review-add-authors.spec.ts b/visual-regression/write-review/write-review-add-authors.spec.ts index 746230f32..0a7afcaee 100644 --- a/visual-regression/write-review/write-review-add-authors.spec.ts +++ b/visual-regression/write-review/write-review-add-authors.spec.ts @@ -1,5 +1,5 @@ import type { Doi } from 'doi-ts' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { missingE } from '../../src/form.js' import { html } from '../../src/html.js' import type { PreprintTitle } from '../../src/preprint.js' diff --git a/visual-regression/write-review/write-review-change-author.spec.ts b/visual-regression/write-review/write-review-change-author.spec.ts index 282fd3318..15ca0cd9d 100644 --- a/visual-regression/write-review/write-review-change-author.spec.ts +++ b/visual-regression/write-review/write-review-change-author.spec.ts @@ -1,5 +1,5 @@ import type { Doi } from 'doi-ts' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { invalidE, missingE } from '../../src/form.js' import { html } from '../../src/html.js' import type { PreprintTitle } from '../../src/preprint.js' diff --git a/visual-regression/write-review/write-review-page/paste-review-form.spec.ts b/visual-regression/write-review/write-review-page/paste-review-form.spec.ts index 380d0dbd6..c5e7cd932 100644 --- a/visual-regression/write-review/write-review-page/paste-review-form.spec.ts +++ b/visual-regression/write-review/write-review-page/paste-review-form.spec.ts @@ -1,5 +1,5 @@ import type { Doi } from 'doi-ts' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { missingE } from '../../../src/form.js' import { html } from '../../../src/html.js' import type { PreprintTitle } from '../../../src/preprint.js' diff --git a/visual-regression/write-review/write-review-page/write-review-form.spec.ts b/visual-regression/write-review/write-review-page/write-review-form.spec.ts index a5e21d824..77cd084e2 100644 --- a/visual-regression/write-review/write-review-page/write-review-form.spec.ts +++ b/visual-regression/write-review/write-review-page/write-review-form.spec.ts @@ -1,5 +1,5 @@ import type { Doi } from 'doi-ts' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { invalidE, missingE } from '../../../src/form.js' import { html } from '../../../src/html.js' import type { PreprintTitle } from '../../../src/preprint.js' diff --git a/visual-regression/write-review/write-review-remove-author.spec.ts b/visual-regression/write-review/write-review-remove-author.spec.ts index 7389536d9..ef3667978 100644 --- a/visual-regression/write-review/write-review-remove-author.spec.ts +++ b/visual-regression/write-review/write-review-remove-author.spec.ts @@ -1,5 +1,5 @@ import type { Doi } from 'doi-ts' -import * as E from 'fp-ts/Either' +import * as E from 'fp-ts/lib/Either.js' import { missingE } from '../../src/form.js' import { html } from '../../src/html.js' import type { PreprintTitle } from '../../src/preprint.js'