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

fix(prerender): check link's pathname only for extensions #791

Merged
merged 1 commit into from
Jan 13, 2023
Merged

fix(prerender): check link's pathname only for extensions #791

merged 1 commit into from
Jan 13, 2023

Conversation

dargmuesli
Copy link
Contributor

@dargmuesli dargmuesli commented Dec 30, 2022

πŸ”— Linked issue

n/a, see description below

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

If a link contains parts following the pathname, e.g. a query or hash, the file extension would not be found. Links that appear to have no file extension would then NOT be excluded from crawling. Those included links led the crawler to request, e.g. static, files on which vue-bundle-renderer (as used in Nuxt) would produce a memory overflow.

I did not investigate the reason for the overflow being an overflow further as the link usage is incorrect in the first place.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

If a link contains parts following the pathname, e.g. a query or hash, the file extension would not be found. Links that appear to have no file extension would then NOT be excluded from crawling. Those included links led the crawler to request, e.g. static, files on which `vue-bundle-renderer` would produce a memory overflow.
@codecov
Copy link

codecov bot commented Dec 31, 2022

Codecov Report

Merging #791 (f323256) into main (064e194) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #791   +/-   ##
=======================================
  Coverage   70.07%   70.07%           
=======================================
  Files          57       57           
  Lines        5229     5230    +1     
  Branches      575      575           
=======================================
+ Hits         3664     3665    +1     
  Misses       1556     1556           
  Partials        9        9           
Impacted Files Coverage Ξ”
src/prerender.ts 89.00% <100.00%> (+0.03%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@danielroe danielroe left a comment

Choose a reason for hiding this comment

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

This looks good to me. But would you be able to share a reproduction for the downstream issue you've described, so I can investigate further? πŸ™

@dargmuesli
Copy link
Contributor Author

dargmuesli commented Dec 31, 2022

Next year 😜 Right now I have for you:

Happy New Year! πŸŽ‰

@danielroe danielroe requested a review from pi0 January 13, 2023 16:20
@pi0 pi0 merged commit 6585e8d into nitrojs:main Jan 13, 2023
@pi0
Copy link
Member

pi0 commented Jan 13, 2023

Thanks ❀️

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.

3 participants