GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix `navigator` not defined `ReferenceError` by hyperupcall · Pull Request #642 · chalk/chalk

Conversation

@hyperupcall

@hyperupcall hyperupcall commented Dec 21, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

This is a follow-up to #640 that will fix #639

In this PR, I applied the fix for the potentially undefined navigator in the same way that was done in supports-color

  • Related to navigator check in browser-like(but not browser) environments supports-color#151
  • supports-color's v10.0.0 diff: chalk/supports-color@v9.4.0...v10.0.0

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@hyperupcall
Fix navigator not defined ReferenceError
f038793
chalk/supports-color@c214314
@hyperupcall hyperupcall mentioned this pull request Dec 21, 2024
Update supports-color to v10.0.0 #640
Closed
@sindresorhus
sindresorhus merged commit 4ebb62d into chalk:main Dec 21, 2024
Blankll added a commit to geek-fun/serverlessinsight that referenced this pull request Feb 10, 2025
@Blankll @snyk-bot
[Snyk] Upgrade chalk from 5.3.0 to 5.4.1 (#31)
538aee7
![snyk-top-banner](https://redirect.github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)


<h3>Snyk has created this PR to upgrade chalk from 5.3.0 to 5.4.1.</h3>

:information_source: Keep your dependencies up-to-date. This makes it
easier to fix existing vulnerabilities and to more quickly identify and
fix newly disclosed vulnerabilities when they affect your project.

<hr/>


- The recommended version is **2 versions** ahead of your current
version.

- The recommended version was released **a month ago**.



<details>
<summary><b>Release notes</b></summary>
<br/>
  <details>
    <summary>Package name: <b>chalk</b></summary>
    <ul>
      <li>
<b>5.4.1</b> - <a
href="https://redirect.github.com/chalk/chalk/releases/tag/v5.4.1">2024-12-21</a></br><ul>
<li>Fix <code>navigator</code> not defined <code>ReferenceError</code>
(<a class="issue-link js-issue-link" data-error-text="Failed to load
title" data-id="2754056423" data-permission-text="Title is private"
data-url="chalk/chalk#642"
data-hovercard-type="pull_request"
data-hovercard-url="/chalk/chalk/pull/642/hovercard"
href="https://redirect.github.com/chalk/chalk/pull/642">#642</a>) <a
class="commit-link" data-hovercard-type="commit"
data-hovercard-url="https://github.com/chalk/chalk/commit/4ebb62d1ca70c122674558a88932ddf6545fe9ef/hovercard"
href="https://redirect.github.com/chalk/chalk/commit/4ebb62d1ca70c122674558a88932ddf6545fe9ef"><tt>4ebb62d</tt></a></li>
</ul>
<p><a class="commit-link"
href="https://redirect.github.com/chalk/chalk/compare/v5.4.0...v5.4.1"><tt>v5.4.0...v5.4.1</tt></a></p>
      </li>
      <li>
<b>5.4.0</b> - <a
href="https://redirect.github.com/chalk/chalk/releases/tag/v5.4.0">2024-12-18</a></br><ul>
<li>Update <code>CIRCLECI</code> environments to return level 3 color
support <a class="commit-link" data-hovercard-type="commit"
data-hovercard-url="https://github.com/chalk/chalk/commit/f8381204fb096207074089f5ab265fffff6bc341/hovercard"
href="https://redirect.github.com/chalk/chalk/commit/f8381204fb096207074089f5ab265fffff6bc341"><tt>f838120</tt></a></li>
</ul>
<p><a class="commit-link"
href="https://redirect.github.com/chalk/chalk/compare/v5.3.0...v5.4.0"><tt>v5.3.0...v5.4.0</tt></a></p>
      </li>
      <li>
<b>5.3.0</b> - <a
href="https://redirect.github.com/chalk/chalk/releases/tag/v5.3.0">2023-06-29</a></br><ul>
<li>Add <code>sideEffects</code> field to package.json <a
class="commit-link" data-hovercard-type="commit"
data-hovercard-url="https://github.com/chalk/chalk/commit/5aafc0af74d06c89a2a4567aaf9d84d44af4a3aa/hovercard"
href="https://redirect.github.com/chalk/chalk/commit/5aafc0af74d06c89a2a4567aaf9d84d44af4a3aa"><tt>5aafc0a</tt></a></li>
<li>Add support for Gitea Actions (<a class="issue-link js-issue-link"
data-error-text="Failed to load title" data-id="1779402065"
data-permission-text="Title is private"
data-url="chalk/chalk#603"
data-hovercard-type="pull_request"
data-hovercard-url="/chalk/chalk/pull/603/hovercard"
href="https://redirect.github.com/chalk/chalk/pull/603">#603</a>) <a
class="commit-link" data-hovercard-type="commit"
data-hovercard-url="https://github.com/chalk/chalk/commit/29b856959f4bee5a514c7ed48a1f6879686eadf2/hovercard"
href="https://redirect.github.com/chalk/chalk/commit/29b856959f4bee5a514c7ed48a1f6879686eadf2"><tt>29b8569</tt></a></li>
</ul>
<p><a class="commit-link"
href="https://redirect.github.com/chalk/chalk/compare/v5.2.0...v5.3.0"><tt>v5.2.0...v5.3.0</tt></a></p>
      </li>
    </ul>
from <a href="https://redirect.github.com/chalk/chalk/releases">chalk
GitHub release notes</a>
  </details>
</details>

---

> [!IMPORTANT]
>
> - Check the changes in this PR to ensure they won't cause issues with
your project.
> - This PR was automatically created by Snyk using the credentials of a
real user.

---

**Note:** _You are seeing this because you or someone else with access
to this repository has authorized Snyk to open upgrade PRs._

**For more information:** <img
src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiJkZDEwOGYyYi02NTQwLTRiZmQtOTI0YS00NjFjYmJjMjI1ZmMiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6ImRkMTA4ZjJiLTY1NDAtNGJmZC05MjRhLTQ2MWNiYmMyMjVmYyJ9fQ=="
width="0" height="0"/>

> - 🧐 [View latest project
report](https://app.snyk.io/org/blankll/project/9c72c875-e7a2-4e68-85a9-7b26a5bc5b32?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 📜 [Customise PR
templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates?utm_source=&utm_content=fix-pr-template)
> - 🛠 [Adjust upgrade PR
settings](https://app.snyk.io/org/blankll/project/9c72c875-e7a2-4e68-85a9-7b26a5bc5b32/settings/integration?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 🔕 [Ignore this dependency or unsubscribe from future upgrade
PRs](https://app.snyk.io/org/blankll/project/9c72c875-e7a2-4e68-85a9-7b26a5bc5b32/settings/integration?pkg&#x3D;chalk&amp;utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr#auto-dep-upgrades)

[//]: #
'snyk:metadata:{"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"chalk","from":"5.3.0","to":"5.4.1"}],"env":"prod","hasFixes":false,"isBreakingChange":false,"isMajorUpgrade":false,"issuesToFix":[],"prId":"dd108f2b-6540-4bfd-924a-461cbbc225fc","prPublicId":"dd108f2b-6540-4bfd-924a-461cbbc225fc","packageManager":"npm","priorityScoreList":[],"projectPublicId":"9c72c875-e7a2-4e68-85a9-7b26a5bc5b32","projectUrl":"https://app.snyk.io/org/blankll/project/9c72c875-e7a2-4e68-85a9-7b26a5bc5b32?utm_source=github&utm_medium=referral&page=upgrade-pr","prType":"upgrade","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":[],"type":"auto","upgrade":[],"upgradeInfo":{"versionsDiff":2,"publishedDate":"2024-12-21T17:04:53.006Z"},"vulns":[]}'

Co-authored-by: snyk-bot <[email protected]>
@campaigner-prod campaigner-prod Bot mentioned this pull request Apr 23, 2026
fix(deps): vuln major upgrades — 5 packages (major: 3 · unstable: 1 · minor: 1) DataDog/temporalio-ui#28
Closed
6 tasks
@rickardvh rickardvh mentioned this pull request May 25, 2026
[Evaluation Epic]: Orchestrated long-horizon repo episodes with restart and agent switching rickardvh/agentic-workspace#1124
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Not handling navigator being undefined

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@hyperupcall @sindresorhus
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.