Skip to content

feat: add nonce support - #1012

Merged
danielroe merged 6 commits into
nuxt:mainfrom
trijpstra-fourlights:feat/add-nonce-support-rebased
Sep 29, 2023
Merged

feat: add nonce support#1012
danielroe merged 6 commits into
nuxt:mainfrom
trijpstra-fourlights:feat/add-nonce-support-rebased

Conversation

@trijpstra-fourlights

Copy link
Copy Markdown
Contributor

Implements #1011

@ghost

ghost commented Sep 27, 2023

Copy link
Copy Markdown

Live Preview ready!

Name Edit Preview Latest Commit
Image Edit on Studio ↗︎ View Live Preview a6365ac

Comment thread docs/content/2.usage/1.nuxt-img.md Outdated
Comment thread src/runtime/components/nuxt-img.ts Outdated
@danielroe
danielroe requested a review from harlan-zw September 27, 2023 14:26
Comment thread src/runtime/components/nuxt-picture.ts Outdated
link: [{
rel: 'preload',
as: 'image',
// @ts-expect-error might need to resolve upstream in unhead

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is fixed in zhead v2.1.2

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

In the context of this PR, what's the preferred resolution here?

Wait for the new release of @unhead/vue to use zhead@^2.1.2? Or do you want me to update the comment here to something like fixed in zhead v2.1.2, needs upstream adoption by @unhead/vue?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good question, if you delete the lock file & node_modules it should update to this version and you can remove the comment altogether

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

don't worry about refreshing lockfile in this pr; I can remove the comment when we next update deps....

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (2387d47) 89.91% compared to head (c316c5a) 89.68%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1012      +/-   ##
==========================================
- Coverage   89.91%   89.68%   -0.23%     
==========================================
  Files          44       44              
  Lines        2905     2919      +14     
  Branches      328      328              
==========================================
+ Hits         2612     2618       +6     
- Misses        292      300       +8     
  Partials        1        1              
Files Coverage Δ
src/runtime/components/_base.ts 100.00% <100.00%> (ø)
src/runtime/components/nuxt-img.ts 80.68% <0.00%> (-1.13%) ⬇️
src/runtime/components/nuxt-picture.ts 78.51% <12.50%> (-3.95%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@danielroe
danielroe merged commit dbe175f into nuxt:main Sep 29, 2023
@Baroshem

Copy link
Copy Markdown
Collaborator

Awesome! 🚀

@danielroe danielroe mentioned this pull request Oct 2, 2023
riddla pushed a commit to tricks-gmbh/nuxt-image that referenced this pull request Mar 1, 2024
@github-actions github-actions Bot mentioned this pull request Jul 30, 2026
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