Skip to content

chore: follow the latest TypeScript repository template - #272

Merged
angeloashmore merged 1 commit into
masterfrom
claude/busy-archimedes-s3umeo-template
Sep 18, 2026
Merged

angeloashmore merged 1 commit into
masterfrom
claude/busy-archimedes-s3umeo-template

Conversation

@angeloashmore

@angeloashmore angeloashmore commented Sep 18, 2026

Copy link
Copy Markdown
Member

Resolves:

Description

Aligns the repository with prismicio/prismic-typescript-template. Stacked on top of #271.

  • Node.js 26 in CI, and added to the e2e matrix. chore(deps): update dependencies #271 already dropped Node.js 20 and set engines.node to >=22, because the updated toolchain requires it.
  • actions/checkout@v7, actions/setup-node@v7, googleapis/release-please-action@v5.
  • The types matrix becomes TypeScript 5, 6, and 7.
  • .gitignore follows the template's ordering.

Left alone on purpose: the e2e job runs Playwright instead of the template's unit job, and tsconfig.json and .oxlintrc.json keep their React-specific settings.

Checklist

  • If my changes require tests, I added them.
  • If my changes affect backward compatibility, it has been discussed.
  • If my changes require an update to the CONTRIBUTING.md guide, I updated it.

Preview

How to QA 1

🤖 Generated with Claude Code

https://claude.ai/code/session_0188j8bZtppjZzgiM5snmz6k


Note

Medium Risk
Raises minimum Node to 22 and bumps TypeScript/build tooling, which can break consumers on older Node or type-check setups; small runtime behavior fixes in image params and toolbar callbacks are low blast radius but worth a quick preview/e2e pass.

Overview
Brings the repo in line with the Prismic TypeScript template: Node 26 in publish/validate (and e2e matrix 22 / 24 / 26), engines.node raised to >=22, GitHub Actions bumped to checkout/setup-node v7 and release-please v5, and the types CI matrix simplified to TypeScript 5, 6, and 7.

Dev toolchain and e2e move to TypeScript 7, tsdown 0.23, newer Playwright/oxlint/oxfmt, React 19.3, and refreshed Next/Prismic client versions in the Next e2e workspace (lockfile regenerated).

Library fixes: PrismicImage clones imgixParams before normalizing nulls so callers are not mutated; PrismicToolbar syncs preview callback refs in useEffect instead of on every render. Playwright env typing treats CI as string.

.gitignore reorders the *.tgz entry to match the template.

Reviewed by Cursor Bugbot for commit a59f312. Bugbot is set up for automated code reviews on this repo. Configure here.

Footnotes

  1. Please use these labels when submitting a review:
    ❓ #ask: Ask a question.
    💡 #idea: Suggest an idea.
    ⚠️ #issue: Strongly suggest a change.
    🎉 #nice: Share a compliment.

@angeloashmore
angeloashmore force-pushed the claude/busy-archimedes-s3umeo-template branch from bc6f49b to 3337fe9 Compare September 18, 2026 19:19
Align the repository with prismicio/prismic-typescript-template:

- Use Node.js 26 in CI and test on Node.js 22, 24, and 26.
- Use actions/checkout@v7, actions/setup-node@v7, and
  googleapis/release-please-action@v5.
- Test types against TypeScript 5, 6, and 7.
- Require Node.js 22 or later.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0188j8bZtppjZzgiM5snmz6k
@angeloashmore
angeloashmore force-pushed the claude/busy-archimedes-s3umeo-template branch from 3337fe9 to a59f312 Compare September 18, 2026 19:37
@angeloashmore
angeloashmore marked this pull request as ready for review September 18, 2026 19:43
@angeloashmore
angeloashmore changed the base branch from claude/busy-archimedes-s3umeo to master September 18, 2026 19:52
@angeloashmore
angeloashmore merged commit ec5cd66 into master Sep 18, 2026
10 checks passed
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.

2 participants