-
Notifications
You must be signed in to change notification settings - Fork 17
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
Upgrade vulnerable dependency #38
Comments
Hi @bencehornak, thanks for the heads up! I'm in the process of refreshing this package to use the latest version of all dependencies, including You can track progress in the I'll post here once the refreshed version is available. |
@angeloashmore is there a timeline to release your changes? |
@bencehornak I plan to publish an alpha version soon. I'm running into an issue where invalid queries throw CORS errors rather than return the error to the client. Once that's resolved, I'll publish an alpha version so it can be tested in the wild. :) |
Hey @angeloashmore, did you figure out the CORS errors? Sorry for being pushy, I'd just like to remove the severe vulnerability from our prod app ASAP. |
@angeloashmore did you manage to work around the CORS errors? |
Hey @bencehornak, thanks for your patience on this. I know this has been taking a while to get out. Yes, the CORS issue was resolved on Friday last week. A PR with all changes was opened here: #40 I was about to publish an alpha for you to try, but I was blocked since I don't have access to the npm package. As soon as I have access, I will publish an alpha and, if it works for you, I will publish it as the latest version. Thank you again @bencehornak! |
Hey @angeloashmore, thanks for the great work, I'm looking forward to the release! |
@bencehornak I have publish access now! Could you try this release out and let me know the following?
You can upgrade your project with the following command:
Although code changes are not required as part of the upgrade, I recommend making two changes:
With these changes, creating the link should look like the following: import { ApolloClient, InMemoryCache } from "@apollo/client";
import { createPrismicLink } from "apollo-link-prismic";
const apolloClient = new ApolloClient({
link: createPrismicLink({
repositoryName: "YOUR_REPOSITORY_NAME",
// Provide your access token if your repository is secured.
accessToken: "YOUR_ACCESS_TOKEN",
}),
cache: new InMemoryCache(),
}); If everything works as expected, then I will publish this to latest for general use. Thanks! |
There is a severe vulnerability in one of the packages transitive dependencies. Output of
npm audit
:Since
prismic-javascript
is deprecated and is not expected to receive any updates or fixes according to your deprecation notice, it means that you have to replace theprismic-javascript
dependency with@prismicio/client
.Thanks for your help!
The text was updated successfully, but these errors were encountered: