Skip to content

chore: follow the latest TypeScript repository template - #453

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 #452.

  • Node.js 26 in CI, and added to the test matrix. chore(deps): update dependencies #452 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.

validate.yml and publish.yml are now identical to the template, apart from branches: [master]. The other config files already matched.

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

Low Risk
CI-only workflow bumps and matrix changes; no runtime or application code is modified.

Overview
Aligns CI with the Prismic TypeScript template by upgrading GitHub Actions (checkout/setup-node v7, release-please v5) and running lint, build, publish, and type-check jobs on Node.js 26.

Test coverage now includes Node 26 alongside 22 and 24. The TypeScript job matrix switches from pinned minors (5.4–5.9) to major lines 5, 6, and 7. validate.yml and publish.yml match the template aside from the master branch trigger.

Reviewed by Cursor Bugbot for commit 7dc56b5. 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 42cc46c to 099d73f Compare September 18, 2026 19:19
angeloashmore added a commit that referenced this pull request Sep 18, 2026
Resolves: <!-- GitHub or Linear issue (e.g. #123, DT-123) -->

### Description

Updates all dependencies and dev dependencies to their latest versions.

**This drops Node.js 20.** Vitest 5 needs `^22.12.0 || ^24.0.0 ||
>=26.0.0` and tsdown needs `^22.18.0 || ^24.11.0 || >=26.0.0`.
`engines.node` becomes `>=22` and the test matrix becomes 22 and 24.
#453 adds Node.js 26, which is a separate change.

Small source changes were needed to keep the suite green:

- TypeScript 7 infers `unknown` for the rest properties of a union, so
the destructured migration image in `resolveMigrationImage()` is
annotated.
- `oxfmt` reformats two files the previous version left alone.
- `@prismicio/types-internal` stays on 3.x. Version 4 is a rewrite, and
migrating to it means two decisions about this package's public API:
whether the `CustomTypeModel*` types gain `fieldset`, `schema`,
`format`, `legacyPaths` and `display`, and whether their `readonly`
arrays become mutable. #454 has the detail.

**CI note:** `test (Node.js 22)` and `test (Node.js 24)` also fail on
`master` — the Prismic API is flaky right now and the network-dependent
tests in `test/client.test.ts` time out. `npm run lint`, `npm run
types`, `npm run build`, and `npm run unit` all pass locally on this
branch.

### 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]

[^1]:
	Please use these labels when submitting a review:
	:question: #ask:&ensp;Ask a question.
	:bulb: #idea:&ensp;Suggest an idea.
	:warning: #issue:&ensp;Strongly suggest a change.
	:tada: #nice:&ensp;Share a compliment.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_0188j8bZtppjZzgiM5snmz6k

---------

Co-authored-by: Claude <noreply@anthropic.com>
Base automatically changed from claude/busy-archimedes-s3umeo to master September 18, 2026 19:40
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 099d73f to 7dc56b5 Compare September 18, 2026 19:40
@angeloashmore
angeloashmore marked this pull request as ready for review September 18, 2026 19:43
@angeloashmore
angeloashmore merged commit 06ee513 into master Sep 18, 2026
13 of 15 checks passed
@angeloashmore
angeloashmore deleted the claude/busy-archimedes-s3umeo-template branch September 18, 2026 20:02
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