-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Snyk] Upgrade: bs-fetch, bs-platform, graphql, next-transpile-modules, relay-runtime, react-relay, reason-promise, reason-react, reason-relay, relay-config #1421
base: canary
Are you sure you want to change the base?
Conversation
Snyk has created this PR to upgrade: - bs-fetch from 0.5.2 to 0.6.2. See this package in npm: https://www.npmjs.com/package/bs-fetch - bs-platform from 7.2.2 to 7.3.2. See this package in npm: https://www.npmjs.com/package/bs-platform - graphql from 15.0.0 to 15.9.0. See this package in npm: https://www.npmjs.com/package/graphql - next-transpile-modules from 9.0.0 to 9.1.0. See this package in npm: https://www.npmjs.com/package/next-transpile-modules - relay-runtime from 9.0.0 to 9.1.0. See this package in npm: https://www.npmjs.com/package/relay-runtime - react-relay from 0.0.0-experimental-8cc94ddc to 0.10.0. See this package in npm: https://www.npmjs.com/package/react-relay - reason-promise from 1.0.2 to 1.1.5. See this package in npm: https://www.npmjs.com/package/reason-promise - reason-react from 0.7.0 to 0.11.0. See this package in npm: https://www.npmjs.com/package/reason-react - reason-relay from 0.8.2 to 0.15.0. See this package in npm: https://www.npmjs.com/package/reason-relay - relay-config from 9.0.0 to 9.1.0. See this package in npm: https://www.npmjs.com/package/relay-config See this project in Snyk: https://app.snyk.io/org/sammyfilly/project/a2717a2d-d6c1-42f8-bf9c-88c8a4c40c66?utm_source=github&utm_medium=referral&page=upgrade-pr
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Deployment failed with the following error:
|
Run & review this pull request in StackBlitz Codeflow. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have skipped reviewing this pull request. Here's why:
- It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!
- We don't review packaging changes - Let us know if you'd like us to change this.
Snyk has created this PR to upgrade multiple dependencies.
👯♂ The following dependencies are linked and will therefore be updated together.ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
bs-fetch
from 0.5.2 to 0.6.2 | 3 versions ahead of your current version | 4 years ago
on 2020-07-16
bs-platform
from 7.2.2 to 7.3.2 | 6 versions ahead of your current version | 4 years ago
on 2020-05-08
graphql
from 15.0.0 to 15.9.0 | 16 versions ahead of your current version | 3 months ago
on 2024-06-21
next-transpile-modules
from 9.0.0 to 9.1.0 | 1 version ahead of your current version | 2 years ago
on 2022-10-10
relay-runtime
from 9.0.0 to 9.1.0 | 1 version ahead of your current version | 4 years ago
on 2020-04-28
react-relay
from 0.0.0-experimental-8cc94ddc to 0.10.0 | 3446 versions ahead of your current version | 8 years ago
on 2016-12-12
reason-promise
from 1.0.2 to 1.1.5 | 6 versions ahead of your current version | 3 years ago
on 2021-11-25
reason-react
from 0.7.0 to 0.11.0 | 16 versions ahead of your current version | a year ago
on 2023-06-19
reason-relay
from 0.8.2 to 0.15.0 | 13 versions ahead of your current version | 4 years ago
on 2021-02-23
relay-config
from 9.0.0 to 9.1.0 | 1 version ahead of your current version | 4 years ago
on 2020-04-28
Release notes
Package name: bs-fetch
0.6.2
0.6.1
0.6.0
0.5.2
Package name: bs-platform
Package name: graphql
v15.9.0 (2024-06-21)
New Feature 🚀
Bug Fix 🐞
Internal 🏠
Committers: 2
Package name: next-transpile-modules
Chop chop! Next.js 12 yesterday,⚠️ icon.
next-transpile-modules@9
today :] As always the breaking changes are indicated by theIf you appreciate my work, and if you can afford it, you (or better, your company) can show support by sponsoring me (or just buying me a beer 🙌).
Support for Next.js 12
Nothing much to say. You should definitely upgrade, that's an amazing release!
Removed support for Webpack 4⚠️
What it says,
next-transpile-modules
is aligned with Next.js releases, so no more Webpack 4.Removed support for legacy module resolution⚠️
If you have seen in your logs with v8 the following warning:
this is for you.
You can read the 7.1.0 version changelog for a detailed explanation, but basically, what you want to do now is the following:
Package name: relay-runtime
Package name: react-relay
babel-relay-plugin
to use[email protected]
, which supports the latest revision of the GraphQL specification.RelayGraphQLMutation
to public API.rollback
method toRelayGraphQLMutation
.BabelPluginGraphQL
).graphiqlPrinter
argument to theRelayNetworkDebug
constructor that can be used to print a link to view the request in GraphiQL.setVariables
, specifically when using array/object variables (closes #1357).Relay.disableQueryCaching
API (closes #754), which may be useful running Relay in a server context.IGNORE
as arangeBehavior
(closes #1337).RelayQuery.cloneWithRoute
(see commit de954992), making logging and analytics that relies on query names more accurate.RelayNetworkDebug
now prints an estimated request size (see commit b94ba409).callsToGraphQL
/callsFromGraphQL
, fixing issues withnull
(closes #1256).injectCacheManager
onRelayEnvironment
(closes #1320).Relay.QueryConfig
(closes #1279).GraphQLRange
get correctly deserialized (closes #1293).errors
attributes and non-200 responses (#1163).client:
ID, necessitating the use of a path when a refetchable ID would be preferable in order to produce a correct result (commit 928411df).useFakeData
that you can use to silence the warning when using aRelayContainer
with fake data.Relay.QL
string. See #896RelayStoreData#toJSON
.this.props.relay.pendingVariables
which can be used to access variables from in-flight queries (to e.g. display a component-specific loading spinner).npm run update-schema
inside the Relay repo works again.GraphQLQueryRunner
(only relevant to users of the non-public cache manager API).rangeBehaviors
function to allow non-string calls.subtractRelayQuery
is removed.Subscription
nodes.RelayNetworkDebug
is won't do anything unlessconsole.groupCollapsed
is available, because otherwise the output is too noisy to be useful.RelayContainer
now uses more descriptive names for stateless functional components, instead ofRelay(props => ReactElement)
.graphql-js
0.6.0. Developers interestedin upgrading to
graphql-js
0.6.0 might have to make some changes to theirexisting GraphQL schemas. Read the migration guide for more information:
https://gist.github.com/steveluscher/ffc1dfefbb10ad280c8a4c520a5c201c
the console when
DEV
is true, andconsole.groupCollapsed
andconsole.groupEnd
are available.this.props.relay
prop passed into components byRelay.Container
nowexposes
applyUpdate
andcommitUpdate
methods for dispatching mutationsin the context of the current
Relay.Environment
.RANGE_DELETE
mutations can now remove multiple nodes from a connection,because
deletedIDFieldName
can now point to a plural field.rangeBehaviors
as a function that receives the connectionarguments and returns one of
GraphQLMutatorConstants.RANGE_OPERATIONS
.RelayNetworkDebug#init
now lets you pass in aRelayEnvironment
againstwhich you would like to debug. This does not yet allow you to debug more than
one environment at a time, but at least you can make the choice of which one.
RelayReadyState
now contains anevents
array; a stream of events that canbe accessed from a
RelayReadyStateCallback
. You can reduce over this list ofevents to implement any kind of custom rendering logic you like.
this.props.variables
now reflects the variables after being processed withprepareVariables
. The fact that variables were the un-prepared values wasa source of confusion for many.
prepareVariables
could be called twice, breakingcomponents with non-idempotent
prepareVariables
functions.setVariables
, orproduce one through
prepareVariables
, that you have not declared ininitialVariables
upfront.stale
prop of areadyState
to change even ifthere was previously an
error
present.at column 0.
shouldComponentUpdate: () => boolean
function. If specified, this functionalways overrides the default implementation (ie. there is no fall-through to
the default).
RelayNetworkDebug
now logs query variables.RelayNetworkDebug
is now added as a subscriber instead of replacing anyexisting network layers. It also no longer replaces the global
fetch
.Relay.Environment#injectNetworkLayer
(and, by extensionRelay#injectNetworkLayer
) will now warn if injecting would overwrite apreviously injected layer.
RelayGraphQLMutation
API (still beingfinalized and not yet documented, so use at your own risk).
The following APIs are early versions and are as of yet undocumented so please
use them with caution.
Relay.Environment
.Relay.Store
is now simply a global instance ofRelayEnvironment
. To create your own isolated store and network subsystem,create a
new RelayEnvironment()
and make use of it whereverenvironment
is required.
Relay.Environment#injectNetworkLayer
to inject a custom network layerfor use within the context of a particular
Relay.Environment
instance.Relay.ReadyStateRenderer
. This component takes in an instance ofRelay.Environment
, aqueryConfig
that conforms to theRelayQueryConfigInterface
, and a Relaycontainer
. It renderssynchronously based on the supplied
readyState
. This primitive enables youto create alternatives to
Relay.Renderer
that fetch and handle data in acustom way (eg. for server rendered applications).
Relay.Renderer
– a replacement forRelay.RootContainer
thatcomposes a
Relay.ReadyStateRenderer
and performs data fetching.Relay.RootContainer
is now a wrapper aroundRelay.Renderer
thatsubstitutes
Relay.Store
forenvironment
.RelayRendererRenderCallback
toRelayRenderCallback
.RelayQueryConfigSpec
toRelayQueryConfigInterface
.RelayContainer.setVariables
will no longer check if the variables arechanged before re-running the variables. To prevent extra work, check the
current variables before calling
setVariables
.COMMIT_QUEUED
state usingRelayMutationTransaction#rollback
.NODE_DELETE
orRANGE_DELETE
mutation config, you canomit
parentID
if your parent, in fact, does not have an ID.Relay will now write
null
into the store for that field. This allows you toreturn smaller payloads over the wire by simply omitting a key in the JSON
response, rather than to write an explicit
fieldName: null
.relay
prop does not change between renders, we now recycle the sameobject. This should enable you to make an efficient
this.props.relay === nextProps.relay
comparison inshouldComponentUpdate
.arguments (first/last/after/before) so long as the values of those arguments
are variables and not concrete values (eg.
friends(first: $first, last: $last)
will no longer cause the Relay Babel plugin to throw).Relay.Mutation
.RelayNetworkDebug
. Invokerequire('RelayNetworkDebug').init(Relay.DefaultNetworkLayer)
to enjoy simpleto read logs of your network requests and responses on the console. Substitute
your own network layer if you use one.
rangeBehaviors
:IGNORE
means the range should not be refetched at all.REFETCH
will refetch the entire connection.information about edges that have already been fetched. This can be enabled by
adding
@ relay(variables: ['variableNames'])
to a connection fragment.npm run build
now works on Windowsuri
fromRelayQueryConfigSpec
. Theuri
property was part ofRelayRoute
, but neverRelayQueryConfig
. This revision simply cleans up the Flow shape inRelayContainer
.RelayRenderer
does not run queries during synchronous server-side rendering.