Skip to content

Logan/eng 469 fix tinacms dependency vulnerabilities#3088

Merged
jeffsee55 merged 26 commits intomainfrom
logan/eng-469-fix-tinacms-dependency-vulnerabilities
Aug 24, 2022
Merged

Logan/eng 469 fix tinacms dependency vulnerabilities#3088
jeffsee55 merged 26 commits intomainfrom
logan/eng-469-fix-tinacms-dependency-vulnerabilities

Conversation

@logan-anderson
Copy link
Copy Markdown
Contributor

@logan-anderson logan-anderson commented Aug 10, 2022

Updates deps to remove vulnerabilities.

One known issue.

When updating next I get this warning

warn  - ../../node_modules/.pnpm/node-fetch@2.6.7/node_modules/node-fetch/lib/index.js
Module not found: Can't resolve 'encoding' in '/Users/logananderson-forestry-mac/dev/tinacms/tinacms/node_modules/.pnpm/node-fetch@2.6.7/node_modules/node-fetch/lib'

It does not seem to effect anything.

@linear
Copy link
Copy Markdown

linear Bot commented Aug 10, 2022

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Aug 10, 2022

🦋 Changeset detected

Latest commit: a14bdc4

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

This PR includes changesets to release 13 packages
Name Type
@tinacms/auth Patch
@tinacms/graphql Patch
@tinacms/toolkit Patch
create-tina-app Patch
next-tinacms-cloudinary Patch
tinacms Patch
@tinacms/starter Patch
@tinacms/cli Patch
@tinacms/app Patch
starter-basic Patch
starter-empty Patch
kitchen-sink-starter Patch
kitchen-sink Patch

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 10, 2022

Warnings
⚠️

packages/tinacms was modified but its README.md was not updated. Please check if any changes should be reflected in the documentation.

⚠️

packages/next-tinacms-cloudinary was modified but its README.md was not updated. Please check if any changes should be reflected in the documentation.

⚠️

packages/create-tina-app was modified but its README.md was not updated. Please check if any changes should be reflected in the documentation.

⚠️

packages/@tinacms/graphql was modified but its README.md was not updated. Please check if any changes should be reflected in the documentation.

⚠️

packages/@tinacms/cli was modified but its README.md was not updated. Please check if any changes should be reflected in the documentation.

⚠️

packages/@tinacms/auth was modified but its README.md was not updated. Please check if any changes should be reflected in the documentation.

Modified Packages

The following packages were modified by this pull request:

  • @tinacms/auth
  • @tinacms/cli
  • @tinacms/graphql
  • create-tina-app
  • next-tinacms-cloudinary
  • tinacms

Generated by 🚫 dangerJS against a14bdc4

@logan-anderson logan-anderson marked this pull request as ready for review August 10, 2022 15:44
@logan-anderson logan-anderson requested a review from a team as a code owner August 10, 2022 15:44
@jeffsee55
Copy link
Copy Markdown
Contributor

When updating next I get this warning

We should probably make sure we understand why that's happening. Might be related node-fetch/node-fetch#675.

Comment thread package.json Outdated
@logan-anderson
Copy link
Copy Markdown
Contributor Author

When updating next I get this warning

We should probably make sure we understand why that's happening. Might be related node-fetch/node-fetch#675.

@jeffsee55 I think that is the issue

@logan-anderson
Copy link
Copy Markdown
Contributor Author

logan-anderson commented Aug 15, 2022

Some key things to review for the PR

  • Local image uploads
  • cloudinary image uploads
  • General next.js stuff (does the site load, does getStaticProps work, any more warning messages or errors, etc)
  • Editing a file, click save and see if the changed file is updated in the file system.
  • Make sure svg's still load in tina-cloud-starter

@kldavis4
Copy link
Copy Markdown
Member

@logan-anderson there are some conflicts with main - you want to resolve before we validate this?

@logan-anderson
Copy link
Copy Markdown
Contributor Author

@logan-anderson there are some conflicts with main - you want to resolve before we validate this?

@kldavis4 I have update it. Good catch

@kldavis4
Copy link
Copy Markdown
Member

@logan-anderson

when I run yarn build in tina-cloud-starter in the monorepo I get:

../../node_modules/.pnpm/cloudinary@1.30.0/node_modules/cloudinary/lib-es5/utils/index.js
Critical dependency: the request of a dependency is an expression

Import trace for requested module:
../../node_modules/.pnpm/cloudinary@1.30.0/node_modules/cloudinary/lib-es5/cloudinary.js
../../node_modules/.pnpm/cloudinary@1.30.0/node_modules/cloudinary/cloudinary.js
../../packages/next-tinacms-cloudinary/dist/handlers.js
./pages/api/cloudinary/[...media].tsx

../../node_modules/.pnpm/cloudinary@1.30.0/node_modules/cloudinary/lib/utils/index.js
Critical dependency: the request of a dependency is an expression

Import trace for requested module:
../../node_modules/.pnpm/cloudinary@1.30.0/node_modules/cloudinary/lib/cloudinary.js
../../node_modules/.pnpm/cloudinary@1.30.0/node_modules/cloudinary/cloudinary.js
../../packages/next-tinacms-cloudinary/dist/handlers.js
./pages/api/cloudinary/[...media].tsx

It looks like the build succeeds, so not sure if this is an issue. In the main branch, it fails completely

@kldavis4
Copy link
Copy Markdown
Member

@logan-anderson

Copy link
Copy Markdown
Member

@kldavis4 kldavis4 left a comment

Choose a reason for hiding this comment

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

Everything in the validation list is now working for me.

@jamespohalloran do we need to make corresponding changes in the standalone tina-cloud-starter repo?

@jamespohalloran
Copy link
Copy Markdown
Contributor

Everything in the validation list is now working for me.

@jamespohalloran do we need to make corresponding changes in the standalone tina-cloud-starter repo?

Yep I think all our starters will have to upgrade next, and tinacms once this is out

@jeffsee55 jeffsee55 merged commit b9afec9 into main Aug 24, 2022
@jeffsee55 jeffsee55 deleted the logan/eng-469-fix-tinacms-dependency-vulnerabilities branch August 24, 2022 18:15
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.

5 participants