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

[2] GraphiQL x Vite v5 #3679

Merged
merged 36 commits into from
Aug 7, 2024
Merged

[2] GraphiQL x Vite v5 #3679

merged 36 commits into from
Aug 7, 2024

Conversation

dimaMachina
Copy link
Collaborator

@dimaMachina dimaMachina commented Aug 6, 2024

closes #2925 #2371 #2638 #2184

I propose to cut v4 alpha release and include this PR and new tabs looks PR #3644

changed exports

graphiql/graphiql.js removed non-minified umd bundle
graphiql/graphiql.min.js => graphiql/dist/index.umd.js
graphiql/graphiql.css => graphiql/style.css (added exports field in package.json)

todos:

Copy link

changeset-bot bot commented Aug 6, 2024

🦋 Changeset detected

Latest commit: 80bd1fe

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
graphiql Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dimaMachina dimaMachina changed the base branch from main to upd-cypress August 7, 2024 00:15
@dimaMachina dimaMachina changed the title [wip] [2] GraphiQL x Vite v5 Aug 7, 2024
Copy link
Contributor

github-actions bot commented Aug 7, 2024

The latest changes of this PR are not available as canary, since there are no linked changesets for this PR.

@dimaMachina dimaMachina marked this pull request as ready for review August 7, 2024 00:27
Base automatically changed from upd-cypress to main August 7, 2024 00:29
An error occurred while trying to automatically change base from upd-cypress to main August 7, 2024 00:29
@@ -83,6 +83,7 @@ function getSchemaUrl() {
// how you can customize GraphiQL by providing different values or
// additional child elements.
const root = ReactDOM.createRoot(document.getElementById('graphiql'));
const graphqlVersion = GraphiQL.GraphQL.version;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

found how to easily get version of graphql-js without importing package.json or injecting code

lib: {
entry: 'src/index.ts',
fileName: 'index',
formats: ['cjs', 'es'],
Copy link
Collaborator Author

@dimaMachina dimaMachina Aug 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we really need a bundle of cjs version for the next major? or just keep esm?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's quite a big step to get rid of cjs, if it doesn't cost you much to keep outputting cjs?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with dropping cjs we can bundle graphql-toolkit to esm only too and fix #3668

Copy link

codecov bot commented Aug 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.85%. Comparing base (3c1a345) to head (80bd1fe).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##           graphiql-v4    #3679   +/-   ##
============================================
  Coverage        60.85%   60.85%           
============================================
  Files              121      121           
  Lines             5620     5620           
  Branches          1490     1490           
============================================
  Hits              3420     3420           
  Misses            1748     1748           
  Partials           452      452           
Files Coverage Δ
...ackages/graphiql-toolkit/src/create-fetcher/lib.ts 51.92% <ø> (ø)

@dimaMachina dimaMachina changed the base branch from main to graphiql-v4 August 7, 2024 13:39
@dimaMachina dimaMachina merged commit 5d90e0e into graphiql-v4 Aug 7, 2024
14 checks passed
@dimaMachina dimaMachina deleted the vite branch August 7, 2024 14:01
@acao acao mentioned this pull request Aug 7, 2024
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.

2 participants