Skip to content

Fix error map issue with Zod ≥4.5 - #4295

Merged
delucis merged 3 commits into
mainfrom
chris/zod-error-map
Oct 24, 2026
Merged

delucis merged 3 commits into
mainfrom
chris/zod-error-map

Conversation

@delucis

@delucis delucis commented Oct 23, 2026

Copy link
Copy Markdown
Member

Description

This PR cherry picks a change from #4218 (comment) which is also needed in #4175 so we can land it independently of those two PRs.

delucis and others added 3 commits October 23, 2026 21:52
Co-Authored-By: HiDeoo <494699+HiDeoo@users.noreply.github.com>
@changeset-bot

changeset-bot Bot commented Oct 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1a5462c

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

This PR includes changesets to release 1 package
Name Type
@astrojs/starlight 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

@netlify

netlify Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for astro-starlight ready!

Name Link
🔨 Latest commit 1a5462c
🔍 Latest deploy log https://app.netlify.com/projects/astro-starlight/deploys/6adbbc5396b9cc4df047c1f2
😎 Deploy Preview https://deploy-preview-4295--astro-starlight.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 99 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the 🌟 core Changes to Starlight’s main package label Oct 23, 2026
@astrobot-houston

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
/index.html 6.12 KB (0%)
/guides/example/index.html 5.57 KB (0%)
/_astro/*.js 25.43 KB (0%)
/_astro/*.css 14.74 KB (0%)

@delucis delucis mentioned this pull request Oct 23, 2026
1 task done

@HiDeoo HiDeoo left a comment

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.

Makes sense to split, looks good to me 👍

@delucis

delucis commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

Thanks @HiDeoo! Will merge so I can update those two PRs and get some green CI again 😌

@delucis
delucis merged commit af9557e into main Oct 24, 2026
21 checks passed
@delucis
delucis deleted the chris/zod-error-map branch October 24, 2026 08:40
@astrobot-houston astrobot-houston mentioned this pull request Oct 24, 2026
HiDeoo added a commit to HiDeoo/starlight that referenced this pull request Oct 28, 2026
* main: (22 commits)
  [i18nIgnore] docs: fix typo in configuration reference (withastro#4303)
  Fix sidebar autogeneration from the docs root directory (withastro#4299)
  [ci] format
  i18n(de): update resources (`community-content.mdx`, `plugins.mdx`) (withastro#4304)
  [i18nIgnore] docs: update link to renamed repository (withastro#4294)
  docs: replace plugin with blog post in resources (withastro#4293)
  i18n(ja): update plugins.mdx (withastro#4297)
  i18n(ja): update environmental-impact.mdx (withastro#4296)
  Fix error map issue with Zod ≥4.5 (withastro#4295)
  [ci] release (withastro#4274)
  Add fetchpriority=high on Hero images (withastro#4285)
  i18n(de): update `plugins.mdx` (withastro#4292)
  ci: do not run benchmarks in forks (withastro#4279)
  docs: add Plannedo to showcase (withastro#4281)
  docs: add starlight-myog to community plugins (withastro#4280)
  docs: add Starlight Group Pages plugin (withastro#4278)
  i18n(de): update `plugins.mdx` (withastro#4291)
  i18n(zh-cn): update community themes (withastro#4288)
  i18n(ja): update plugins.mdx and community-content.mdx (withastro#4283)
  i18n(ja): update themes.mdx (withastro#4284)
  ...
dadezzz pushed a commit to dadezzz/university_notes that referenced this pull request Nov 3, 2026
This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [@astrojs/starlight](https://starlight.astro.build) ([source](https://github.com/withastro/starlight/tree/HEAD/packages/starlight)) | [`0.42.7` → `0.42.8`](https://renovatebot.com/diffs/npm/@astrojs%2fstarlight/0.42.7/0.42.8) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@astrojs%2fstarlight/0.42.8?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@astrojs%2fstarlight/0.42.7/0.42.8?slim=true) |

---

### Release Notes

<details>
<summary>withastro/starlight (@&#8203;astrojs/starlight)</summary>

### [`v0.42.8`](https://github.com/withastro/starlight/blob/HEAD/packages/starlight/CHANGELOG.md#0428)

[Compare Source](https://github.com/withastro/starlight/compare/@astrojs/starlight@0.42.7...@astrojs/starlight@0.42.8)

##### Patch Changes

- [#&#8203;4309](withastro/starlight#4309) [`3490c80`](withastro/starlight@3490c80) Thanks [@&#8203;athulsreekumar](https://github.com/athulsreekumar)! - Fixes autogenerated sidebar groups omitting directories whose names match `Object.prototype` properties, such as `constructor` or `toString`

- [#&#8203;4290](withastro/starlight#4290) [`bf93823`](withastro/starlight@bf93823) Thanks [@&#8203;RaphaelFakhri](https://github.com/RaphaelFakhri)! - Fixes missing last-updated dates in production builds for pages whose file path contains special characters

- [#&#8203;4295](withastro/starlight#4295) [`af9557e`](withastro/starlight@af9557e) Thanks [@&#8203;delucis](https://github.com/delucis)! - Fixes a formatting issue in some error messages impacting projects with Zod ≥4.5 installed

- [#&#8203;4299](withastro/starlight#4299) [`a103f38`](withastro/starlight@a103f38) Thanks [@&#8203;clean99](https://github.com/clean99)! - Fixes empty sidebars when autogenerating entries from the docs root directory using `directory: ''`

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- 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 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 CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xOTguMCIsInVwZGF0ZWRJblZlciI6IjQ0LjE5OC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🌟 core Changes to Starlight’s main package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants