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: astro check fails on @vercel/speed-insights/astro missing types #41

Conversation

feugy
Copy link
Member

@feugy feugy commented Jan 16, 2024

📓 What's in there?

Fixes #36. It is not possible yet to publish types along an Astro component, and the astro check command will fail on it.
As per the Astro team recommendations, we need to specify a file for types, even if it does not exist.

🧪 How to test?

  1. once the code got retrieved locally, build the whole package: pnpm -F @vercel/speed-insights build
  2. then go to the astro example app cd apps/astro
  3. install typescript and the check command: pnpm i -D typescript @astrojs/check
  4. run it: pnpm exec astro check: it will work, while it used to fail with error:
    src/components/BaseHead.astro:5:27 - error ts(2307): Cannot find module '@vercel/speed-insights/astro' or its corresponding type declarations.
    
    5 import SpeedInsights from '@vercel/speed-insights/astro';

Note: there is still a warning about speedInsightsBeforeSend() unused function, but I couldn't get rid of it.

@feugy feugy requested a review from a team January 16, 2024 08:18
Copy link

vercel bot commented Jan 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
speed-insights-astro ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2024 8:22am
speed-insights-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2024 8:22am
speed-insights-nuxt ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2024 8:22am
speed-insights-remix ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2024 8:22am
speed-insights-sveltekit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2024 8:22am
speed-insights-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2024 8:22am

@feugy feugy merged commit 60cf8a8 into main Jan 16, 2024
9 checks passed
@feugy feugy deleted the damien/aly-1169-speed-insights-astro-component-does-not-pass-astro-check branch January 16, 2024 08:32
renovate bot referenced this pull request in inabagumi/shinju-date Jan 16, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@vercel/speed-insights](https://togithub.com/vercel/speed-insights)
([source](https://togithub.com/vercel/speed-insights/tree/HEAD/packages/web))
| [`^1.0.3` ->
`^1.0.4`](https://renovatebot.com/diffs/npm/@vercel%2fspeed-insights/1.0.3/1.0.4)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@vercel%2fspeed-insights/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@vercel%2fspeed-insights/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@vercel%2fspeed-insights/1.0.3/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@vercel%2fspeed-insights/1.0.3/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vercel/speed-insights (@&#8203;vercel/speed-insights)</summary>

###
[`v1.0.4`](https://togithub.com/vercel/speed-insights/releases/tag/1.0.4)

[Compare
Source](https://togithub.com/vercel/speed-insights/compare/1.0.3...1.0.4)

#### What's Changed

- fix: astro check fails on @&#8203;vercel/speed-insights/astro missing
types by [@&#8203;feugy](https://togithub.com/feugy) in
[https://github.com/vercel/speed-insights/pull/41](https://togithub.com/vercel/speed-insights/pull/41)

**Full Changelog**:
vercel/speed-insights@1.0.3...1.0.4

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/inabagumi/shinju-date).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMjcuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEyNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot referenced this pull request in ziyadedher/dental-clutter Jan 16, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@vercel/speed-insights](https://togithub.com/vercel/speed-insights)
([source](https://togithub.com/vercel/speed-insights/tree/HEAD/packages/web))
| [`1.0.3` ->
`1.0.4`](https://renovatebot.com/diffs/npm/@vercel%2fspeed-insights/1.0.3/1.0.4)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@vercel%2fspeed-insights/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@vercel%2fspeed-insights/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@vercel%2fspeed-insights/1.0.3/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@vercel%2fspeed-insights/1.0.3/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vercel/speed-insights (@&#8203;vercel/speed-insights)</summary>

###
[`v1.0.4`](https://togithub.com/vercel/speed-insights/releases/tag/1.0.4)

[Compare
Source](https://togithub.com/vercel/speed-insights/compare/1.0.3...1.0.4)

#### What's Changed

- fix: astro check fails on @&#8203;vercel/speed-insights/astro missing
types by [@&#8203;feugy](https://togithub.com/feugy) in
[https://github.com/vercel/speed-insights/pull/41](https://togithub.com/vercel/speed-insights/pull/41)

**Full Changelog**:
vercel/speed-insights@1.0.3...1.0.4

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/ziyadedher/dental-clutter).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMjcuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEyNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot referenced this pull request in ziyadedher/ziyadedher Jan 16, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@vercel/speed-insights](https://togithub.com/vercel/speed-insights)
([source](https://togithub.com/vercel/speed-insights/tree/HEAD/packages/web))
| [`1.0.3` ->
`1.0.4`](https://renovatebot.com/diffs/npm/@vercel%2fspeed-insights/1.0.3/1.0.4)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@vercel%2fspeed-insights/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@vercel%2fspeed-insights/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@vercel%2fspeed-insights/1.0.3/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@vercel%2fspeed-insights/1.0.3/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vercel/speed-insights (@&#8203;vercel/speed-insights)</summary>

###
[`v1.0.4`](https://togithub.com/vercel/speed-insights/releases/tag/1.0.4)

[Compare
Source](https://togithub.com/vercel/speed-insights/compare/1.0.3...1.0.4)

#### What's Changed

- fix: astro check fails on @&#8203;vercel/speed-insights/astro missing
types by [@&#8203;feugy](https://togithub.com/feugy) in
[https://github.com/vercel/speed-insights/pull/41](https://togithub.com/vercel/speed-insights/pull/41)

**Full Changelog**:
vercel/speed-insights@1.0.3...1.0.4

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/ziyadedher/ziyadedher).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMzUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEzNS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
kodiakhq bot referenced this pull request in weareinreach/TransMascFutures Jan 16, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`20.11.3` -> `20.11.4`](https://renovatebot.com/diffs/npm/@types%2fnode/20.11.3/20.11.4) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.11.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.11.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.11.3/20.11.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.11.3/20.11.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [@vercel/speed-insights](https://togithub.com/vercel/speed-insights) ([source](https://togithub.com/vercel/speed-insights/tree/HEAD/packages/web)) | [`1.0.3` -> `1.0.4`](https://renovatebot.com/diffs/npm/@vercel%2fspeed-insights/1.0.3/1.0.4) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@vercel%2fspeed-insights/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@vercel%2fspeed-insights/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@vercel%2fspeed-insights/1.0.3/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@vercel%2fspeed-insights/1.0.3/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [chromatic](https://www.chromatic.com) ([source](https://togithub.com/chromaui/chromatic-cli)) | [`10.2.2` -> `10.3.0`](https://renovatebot.com/diffs/npm/chromatic/10.2.2/10.3.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/chromatic/10.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/chromatic/10.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/chromatic/10.2.2/10.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/chromatic/10.2.2/10.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>vercel/speed-insights (@&#8203;vercel/speed-insights)</summary>

### [`v1.0.4`](https://togithub.com/vercel/speed-insights/releases/tag/1.0.4)

[Compare Source](https://togithub.com/vercel/speed-insights/compare/1.0.3...1.0.4)

#### What's Changed

-   fix: astro check fails on @&#8203;vercel/speed-insights/astro missing types by [@&#8203;feugy](https://togithub.com/feugy) in [https://github.com/vercel/speed-insights/pull/41](https://togithub.com/vercel/speed-insights/pull/41)

**Full Changelog**: vercel/speed-insights@1.0.3...1.0.4

</details>

<details>
<summary>chromaui/chromatic-cli (chromatic)</summary>

### [`v10.3.0`](https://togithub.com/chromaui/chromatic-cli/blob/HEAD/CHANGELOG.md#v1030-Tue-Jan-16-2024)

[Compare Source](https://togithub.com/chromaui/chromatic-cli/compare/v10.2.2...v10.3.0)

##### 🚀 Enhancement

-   Add missing `skip` option to configuration schema [#&#8203;890](https://togithub.com/chromaui/chromatic-cli/pull/890) ([@&#8203;ghengeveld](https://togithub.com/ghengeveld))
-   Detect merge queue branch and retrieve real branch name from pull request [#&#8203;884](https://togithub.com/chromaui/chromatic-cli/pull/884) ([@&#8203;JonathanKolnik](https://togithub.com/JonathanKolnik) [@&#8203;ghengeveld](https://togithub.com/ghengeveld))
-   Deduplicate files to be uploaded using file hashing [#&#8203;875](https://togithub.com/chromaui/chromatic-cli/pull/875) ([@&#8203;ghengeveld](https://togithub.com/ghengeveld))
-   Replace upload mechanism to use a batched mutation with a new API [#&#8203;888](https://togithub.com/chromaui/chromatic-cli/pull/888) ([@&#8203;ghengeveld](https://togithub.com/ghengeveld))

##### 🐛 Bug Fix

-   Retrieve `sentinelUrls` from `uploadBuild` and wait for all of them before finishing upload task [#&#8203;878](https://togithub.com/chromaui/chromatic-cli/pull/878) ([@&#8203;ghengeveld](https://togithub.com/ghengeveld))

##### Authors: 2

-   Gert Hengeveld ([@&#8203;ghengeveld](https://togithub.com/ghengeveld))
-   Jono Kolnik ([@&#8203;JonathanKolnik](https://togithub.com/JonathanKolnik))

***

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/weareinreach/GLAAD).



PR-URL: #311
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot referenced this pull request in simonknittel/sinister-incorporated Jan 23, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@vercel/speed-insights](https://togithub.com/vercel/speed-insights)
([source](https://togithub.com/vercel/speed-insights/tree/HEAD/packages/web))
| [`1.0.3` ->
`1.0.4`](https://renovatebot.com/diffs/npm/@vercel%2fspeed-insights/1.0.3/1.0.4)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@vercel%2fspeed-insights/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@vercel%2fspeed-insights/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@vercel%2fspeed-insights/1.0.3/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@vercel%2fspeed-insights/1.0.3/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vercel/speed-insights (@&#8203;vercel/speed-insights)</summary>

###
[`v1.0.4`](https://togithub.com/vercel/speed-insights/releases/tag/1.0.4)

[Compare
Source](https://togithub.com/vercel/speed-insights/compare/1.0.3...1.0.4)

#### What's Changed

- fix: astro check fails on @&#8203;vercel/speed-insights/astro missing
types by [@&#8203;feugy](https://togithub.com/feugy) in
[https://github.com/vercel/speed-insights/pull/41](https://togithub.com/vercel/speed-insights/pull/41)

**Full Changelog**:
vercel/speed-insights@1.0.3...1.0.4

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/simonknittel/sinister-incorporated).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMzUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEzNS4wIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCJ9-->
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.

Astro - Cannot find module '@vercel/speed-insights/astro' on import
2 participants