Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update fp-ts deprecated functions #334

Merged
merged 2 commits into from
Apr 21, 2021
Merged

Conversation

angeloashmore
Copy link
Member

No description provided.

@angeloashmore angeloashmore merged commit db21c73 into alpha Apr 21, 2021
@angeloashmore angeloashmore deleted the aa/fp-ts-deprecations branch April 21, 2021 23:34
angeloashmore added a commit that referenced this pull request Jul 20, 2021
* feat: 🏂

* feat: 🥦

* feat: 🥐

* feat: 👠

* feat: 💊

* feat: start of data normalization for embed, integration, etc.

* feat: document normalization

* test: update for data normalization

* feat: support integration and unknown fields

* refactor: 🦑

* feat: 🧃

* feat: 🍯

* chore: update dependencies

* fix: create StructuredText type path correctly

* fix: test site esbuild error for compiled libs

* feat: 🦚

* feat: 🍵

* feat: 🍨

* feat: 🍸

* chore: update yarn.lock

* fix: more descriptive missing context message

* feat(gatsby-source-prismic-previews): support ssr

* test: use new shared context provider in usePrismicPreviewAccessToken

* feat: integrate ava

* test: begin integrating browser-related tests

* test: migrate tests to ava

* chore: remove unused test experiments

* chore: simplify test commands

* chore: upgrade all dependencies except gatsby

* feat: ⛑

* chore: rename *.ava.test.ts to *.test.ts

* chore: fix name of tests

* test: refactor gatsby-source-prismic tests

* refactor: tests for gatsby-plugin-prismic-previews

* test: resolve sourcemap error

Use the gatsby-source-prismic source files directly. This may be reverted if this causes issues.

* Revert "test: resolve sourcemap error"

This reverts commit b853a8a.

* feat: style modals with tailwind

* chore: remove unused CSS files

* refactor: simplify Root component

* chore: add TODO comment for scoping @reach/dialog styles

* docs: add draft/wip v3 to v4 migration guide

* docs: additional migration steps

* docs: add initial gatsby-source-prismic migration doc

* docs: update formatting

* docs: add withPrismicPreview docs

* docs: update formatting

* docs: extra explanation for withPrismicPreview

* docs: simplify type signature

* docs: further simplify signature

* docs: use api namespace

* docs: document withPrismicPreviewResolver

* docs: update migration docs to reference api pages

* feat: ⛱

* test: withPrismicPreviewResolver

* test: withPrismicPreview

* style: remove unused line

* feat: normalize context

* docs: update using new signature

* docs: remove duplicate content

* docs: reformat examples

* fix: set active repository name early for modals

* docs: add initial README

* docs: describe preview resolver page

* docs: fix links

* docs: add root readme

* chore: compress logo

* docs: update logo

* docs: base readme

* docs: organize base readme

* docs: organize headings

* docs: link to pull requests

* docs: explain Prismic toolbar

* docs: more explaination (may need to move to separate files)

* docs: add description of necessary edits

* feat: clean up program code based on actual test

* feat: add basic starter

* feat: better preview detection and error prevention

* fix: use floats for GeoPoint coordinates

* chore: bump version to 4.0.0-alpha.1

* fix: normalize slice and group values correctly

* v4.0.0-alpha.2

* test: update geopoint test for floats

* test: update failure message regex

* chore: add initial semantic release config

* chore: update release strategy

* chore: add CI tests runner

* chore: fix CI build command

* chore: build before testing

* chore: upgrade all dependencies

* chore: fix workspace ordering

* chore: add env vars to test site

* docs: update source docs

* docs: fix links

* docs: update source docs for v4

* docs: document querying media URLs

* test: add gatsby-source-filesystem to test site

* docs: update wording of cdn vs local [skip ci]

* docs: use correct codefence type [skip ci]

* docs: update gppp link [skip ci]

* feat: add withPrismicUnpublishedPreview

* style: run prettier

* docs: describe withPrismicUnpublishedPreview

* docs: describe limitations

* docs: add withPrismicUnpublishedPreview migration guide

* docs: add link to api doc

* fix: ensure process.env.NODE_ENV is not redefined

* feat: add 404 to starter

* v4.0.0-alpha.3

* v4.0.0-alpha.3

* fix: only fetch documents on unpublished previews once

* docs: add Gatsby upgrade to migration docs [skip ci]

* chore: add status badges

* docs: reword

* docs: replace getNodes helpers with query

* docs: add why to upgrade to v4

* docs: reorganize [skip ci]

* docs: add deprecated notice to all existing preview docs [skip ci]

* chore: upgrade all dependencies

* chore: upgrade tailwind

* chore: remove unused package

* docs: typo [skip ci]

* docs: typo [skip ci]

* fix: update fp-ts deprecated functions (#334)

* fix: update deprecated fp-ts functions

* fix: remaining fp-ts deprecations and incorrect RTE usage

* fix: remaining fp-ts deprecations

Added an ESLint plugin to point any deprecation noticies

* feat: transformFieldName option to support dashes in field names (#335)

* feat: transform field names with transformFieldName

By default, the transformer will replace `-` in names with `_`

* style: fix function name misspelling

* docs: explain transformFieldName option

* docs: fix typos [skip ci]

* test: remove only flag

* feat: add automatic schema fetching with Custom Types API (#349)

* feat: automatic schemas w/ custom types API

* fix: provide error message on failed API request

* fix: rename customTypeApiToken to customTypesApiToken

"customTypes" (pluralized) reflects the name of the API

* docs: add customTypesApiToken description [skip ci]

* fix: reword comment [skip ci]

* docs: add note to the "Providing JSON schemas" section [skip ci]

* chore: add customTypesApiToken to test-site [skip ci]

* chore: add gatsby-starter-prismic-typescript (#350)

* feat: add customTypesApiEndpoint option (#352)

* chore: revert back to bahmutov/npm-install for ci (#353)

* chore: revert back to bahmutov/npm-install for ci

* chore: run build before test due to dependencies

* docs: add internal function documentation

* feat: add PrismicPreviewProvider automatically (#359)

* docs: document remaining gatsby-source-prismic functions

* docs: document gatsby-plugin-prismic-previews functions

* feat: automatically add PrismicPreviewProvider to app

* feat: restructure preview config (#360)

* feat: restructure preview HOC config

* refactor: simpler user-facing type name for repo configs

* chore: update test-site to use new config shape

* docs: update docs with new config structure

* fix: ensure transformFieldName is called in nested fields

* refactor: use consistent transformFieldName type

* docs: update README examples

* v4.0.0-alpha.5

* chore: update starters with new preview config

* chore: remove commented code

* feat: use @imgix/gatsby field helpers and support new gatsby-plugin-image v3 API (#351)

* chore: add @imgix/gatsby as dep

* feat: use @imgix/gatsby field helpers and support new gatsby-plugin-image v3 API

* chore: remove unused imgix type builder

* chore: upgrade @imgix/gatsby to next version

* chore: pass resolveWidth and resolveHeight to @imgix/gatsby

* refactor: move type creation to buildImgixImageTypes

* chore: back out import re-ordering

* chore: add comments about keeping options in sync

* chore: bump @imgix/gatsby version

* chore: bump @imgix/gatsby version to stable

Co-authored-by: Angelo Ashmore <[email protected]>

* feat: fully integrate @imgix/gatsby (#364)

* feat: integrate @imgix/gatsby in previews

* fix: use @imgix/gatsby types

* test: check for gatsbyImageData fields

* chore: update dependencies

* v4.0.0-alpha.5

* v4.0.0-alpha.6

* v4.0.0-alpha.7

* fix: temporarily ignore fp-ts typescript errors

* fix: use browser-safe imgix helpers

* chore: update yarn.lock

* v4.0.0-alpha.7

* v4.0.0-alpha.8

* feat: fully integrate @imgix/gatsby

* docs: install gatsby-plugin-image as peer dependency

* chore: upgrade dependencies

* test: verify skip option for useMergePrismicPreviewData

* chore: upgrade all dependencies

* chore: resolve tsc fp-ts type errors

* fix: use HTTPError named export from ky

* style: run prettier

* chore: add index link to test site

* v4.0.0-alpha.9

* v4.0.0-alpha.8

* chore: update starters

* chore: update gatsby-plugin-prismic-previews version

* feat: restore alternate_language document field (#371)

* feat: restore alternate_language document field

* fix: use CommonJS link resolver file

* fix: test-site build

* v4.0.0-alpha.10

* v4.0.0-alpha.10

* fix: resolve image thumbnails

* v4.0.0-alpha.11

* docs: add ARCHITECTURE.md

* docs: replace prismic.io with Prismic where appropriate

* docs: refine ARCHITECTURE.md

* docs: add context around webhooks

* docs: fix grammar

* docs: update ARCHITECTURE

* docs: remove redundant description

* docs: describe the initial preview flow

* docs: clarify plugin purposes

* fix: use more descriptive test-trigger webhook message

* docs: describe preview vs builds webhooks

* fix: retain existing Imgix URL parameters on images (#375)

* fix: retain existing Imgix URL parameters on images

* fix(previews): retain existing image URL parameters

* chore: upgrade @imgix/gatsby

* refactor: use fp-ts for imgix param computation

This keeps everything using the same fp-ts patterns.

* chore: move test-site to root

* chore: add lerna

* chore: allow lerna to manage its own workspaces

* v4.0.0-alpha.12

* chore: remove old changelog

* chore: remove semantic-release

* chore: restore explicit yarn workspaces ordering

* chore: add lerna preid arg

* v4.0.0-beta.0

* docs: add beta message [skip ci]

* docs: add gatsby-plugin-image to migration docs [skip ci]

* docs: use beta installation tag [skip ci]

* docs: add auto custom types fetching to changes

* docs: correct installation command in migration guide

* feat: print failed field refinement path

This will help debug issues easier.

* fix: pass path to image field proxy

* fix: pass path to image proxy

* v4.0.0-beta.1

* fix: support images in Rich Text previews

* v4.0.0-beta.2

* fix(previews): position modal at maximum z-index

* v4.0.0-beta.3

* chore(test-site): add without_uid schema

* v4.0.0-beta.4

* docs: add provider instructions [skip ci]

* chore(starter): add comments in gatsby-*.js files [skip ci]

* fix: disable automatic PrismicPreviewProvider injection

This should be handled manually for now until a fix is found. Documentation has
been updated to include this extra setup step.

* v4.0.0-beta.5

* docs: update heading [skip ci]

* docs: update heading link [skip ci]

* fix: manually handle spaces in image URLs

* v4.0.0-beta.6

* fix: use properly escaped regex

* v4.0.0-beta.7

* docs(previews): update migration guide API

* docs(previews): fix example typos [skip ci]

* docs(previews): fix more typos [skip ci]

* fix: decode image URLs

* v4.0.0-beta.8

* fix(previews): sanitize all image field URLs

* v4.0.0-beta.9

* Updated incorrect call to withUnpublishedPreview

Looks like there was a type. The new function was not being used in the updated code example.

* fix: update gatsby-image fragments for @imgix/gatsby

* v4.0.0-beta.10

* docs: link gatsby-plugin-image

* fix(previews): handle documents without data

Fixes #383

* v4.0.0-beta.11

* fix: support Node.js 12 fs module

* v4.0.0-beta.12

* docs(previews): describe GraphQL schema customization limitation [skip ci]

* fix(previews): restore content relation document field

* v4.0.0-beta.13

* test(previews): check for proxies

* chore: decrease required node version

* chore: add specific .node-version

* fix(previews): add __typename to match GraphQL API

* v4.0.0-beta.14

* chore: publish unminified code

* v4.0.0-beta.15

* fix(previews): use better missing config message

* v4.0.0-beta.16

* fix: prepare imgix URLs by removing query params

* v4.0.0-beta.17

* feat(previews): add `localFile.publicURL` to images

* v4.0.0-beta.18

* chore(gatsby-starter-prismic-typescript): add @imgix/gatsby fragments

* chore(gatsby-plugin-prismic-previews): add preconnect and dns-prefetch

* Update packages/gatsby-plugin-prismic-previews/src/on-render-body.tsx

* fix: fetch uncached typepaths

* v4.0.0-beta.19

* chore: fix ci builds

* v4.0.0-beta.20

* feat(previews): warn when provider and styles are missing

* chore: update test-site image test

* fix: properly decode image URLs (#405)

* fix: decoding image url

* specific test for decoding url

* test(source): fix image url decoding test

* fix(previews): properly decode image URLs

* test: update test name

Co-authored-by: DevSide <[email protected]>
Co-authored-by: Angelo Ashmore <[email protected]>

* v4.0.0-beta.21

* refactor: use alpha Prismic libraries (#406)

* refactor: use alpha client, helpers, and types

* refactor: convert more code to alpha Prismic libs

* refactor(previews): use alpha Prismic libraries

* refactor: remove all old packages

* fix: update all dependencies

* refactor(previews): normalize state and UI

* test: update new image tests

* refactor: use @prismicio/custom-types-client to fetch schemas

* test: fix broken test

* chore: update @prismicio/custom-types-client

* ci: fix test-site build

* v4.0.0-beta.22

* docs: link to Prismic docs [skip ci]

* chore: update READMEs and LICENSEs [skip ci]

Co-authored-by: Frederick Fogerty <[email protected]>
Co-authored-by: Nick Verwymeren <[email protected]>
Co-authored-by: Hyeseong Kim <[email protected]>
Co-authored-by: DevSide <[email protected]>
Co-authored-by: DevSide <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant