question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

wanted to write down what i’ll be prepping in the next few days for posterity so people aren’t waiting unnecessarily for their issues to get resolved.

there’s a couple of issues with the upcoming minor / major versions of graphql-tag, in particular, we want to move graphql-js to be an external dependency and no longer bundled within graphql-tag. however, this is a fairly major change since it will

  1. introduce a new, potentially larger set of dependencies from graphql
  2. removes two previously exported values from the graphql printer and parse (print and parse, respectively) that others may depend on (in particular, apollo-client, react-apollo, and angular-apollo

however, upgrading the bundled version of graphql within graphql-tag is important since it resolves issues that were resolved upstream like #47. we also want to make sure we’re deprecating the fields we’re removing from the graphql-tag module.

thus, here’s what’s coming in v1.3 and v2.0:

v1.3

v1.3 will contain a bundled version of graphql@^0.9.0, as well as deprecation notices for both print and parse.

  • this will resolve #47 for those who want to stay with the bundled version of graphql

v2.0

v2.0 will contain the changes currently in master to move from using the bundled version of graphql to establishing graphql as a peerDependency. we’ll also remove the previously mentioned exports

  • this will resolve #49

v1.3 is straightforward and will get done earlier rather than later, and v2.0 may take a little bit of testing to make sure it doesn’t bloat our upstream clients (i’ll start with a beta release of 2.0 and see how it interacts with apollo-client)

/cc @stubailo and @helfer

EDIT: if you’re using one of the deprecated exports, you should use graphql/language/parser and graphql/language/printer moving forward (graphql-tag will be using those too in v2.0)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

9reactions
timbrandincommented, Mar 2, 2017

Btw, I still get the warning in the console on the client:

Warning - the `printer` exports from `graphql-tag` will be removed in the next major version.
See https://github.com/apollographql/graphql-tag/issues/54 for more information.
5reactions
jnwngcommented, Mar 1, 2017

Ah - I added the deprecation warning for people importing the bundled parser and printer, but guess what: we use it too. I’ll release a patch to silence those errors when ‘graphql-tag’ uses the bundled modules. On Wed, Mar 1, 2017 at 2:20 AM Tim Brandin notifications@github.com wrote:

I get these warnings all over now:

W20170301-11:17:42.782(1)? (STDERR) Warning - the parser exports from graphql-tag will be removed in the next major version. W20170301-11:17:42.782(1)? (STDERR) See https://github.com/apollographql/graphql-tag/issues/54 for more information.

But I haven’t imported anything else than this way:

import gql from ‘graphql-tag’;

How do I resolve this?

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/apollographql/graphql-tag/issues/54#issuecomment-283301475, or mute the thread https://github.com/notifications/unsubscribe-auth/ABERRtyEmACqMJz92xaHo8lzbabAIlMLks5rhUaAgaJpZM4MKkzS .

Read more comments on GitHub >

github_iconTop Results From Across the Web

How is CMMI V2.0 different from V1.3?
How is CMMI V2.0 different from V1.3? ... CMMI V2.0 includes the following changes from V1.3: Focus on Performance: New performance practices have ......
Read more >
CMMI v2.0 and differences from CMMI v1.3 - ITG Consulting
CMMI v2.0 presents some strategic changes and improvements in both methodology and approach. Category areas are Doing, Managing, Enabling, Improving.
Read more >
How CMMI V2.0 Differ from CMMI V1.3?
Currently, CMMI Development V2.0 includes specific guidance for helping organizations which use agile methods for development to strengthen ...
Read more >
CMMI V2.0 – Changes and Improvements from CMMI V1.3
CMMI V2.0, earlier known known as Next Generation of CMMI, has been released by the CMMI Institute and will completely replace the CMMI...
Read more >
Difference Between CMMI 1.3 and CMMI 2.0
The main difference between CMMI 1.3 and CMMI 2.0 is that CMMI 1.3 is the earlier iteration of the CMMI guidelines, which was...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found