Skip to content

chore(repo): update TypeScript to 7.0.2 - #483

Merged
dinohamzic merged 6 commits into
mainfrom
chore/update-typescript
Aug 24, 2026
Merged

dinohamzic merged 6 commits into
mainfrom
chore/update-typescript

Conversation

@jamesbhobbs

@jamesbhobbs jamesbhobbs commented Aug 20, 2026 •

Copy link
Copy Markdown
Member

Summary

  • update TypeScript from 5.9.3 to 7.0.2
  • update tsdown to 0.22.14 for TypeScript 7 compatibility
  • remove the obsolete vite-tsconfig-paths plugin and use Vite 8 native tsconfig path resolution
  • migrate path aliases away from the removed baseUrl compiler option

Validation

  • pnpm test (2,952 passed, 1 skipped)
  • pnpm typecheck
  • pnpm biome:check
  • pnpm build
  • pre-push lint/format and spell-check

Summary by CodeRabbit

  • Chores
    • Updated TypeScript and build tooling versions for improved compatibility.
    • Simplified development configuration and removed an obsolete development dependency.
  • Refactor
    • Improved path resolution across the project.
    • Standardized package builds to support flexible file extensions across supported output formats.
    • Updated build configurations across multiple packages for more consistent artifact generation.

@jamesbhobbs
jamesbhobbs requested a review from a team as a code owner August 20, 2026 19:35
@coderabbitai

coderabbitai Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 66002bff-d328-44d1-8fe4-38de95971bd9

📥 Commits

Reviewing files that changed from the base of the PR and between 0aa576c and 2a343dc.

📒 Files selected for processing (2)
  • packages/blocks/package.json
  • packages/database-integrations/package.json

Included review availability: 3 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour.


Important

Approval pending

CodeRabbit has no unresolved comments, but it has not reviewed the latest commit.

Use the checkbox below to review the latest commit. CodeRabbit will approve the changes if it finds no blocking issues.

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Updated tsdown and TypeScript versions. Removed vite-tsconfig-paths. Removed baseUrl and added explicit relative path aliases. Enabled Vitest’s built-in TypeScript path resolution. Disabled fixed output extensions for affected package builds.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Merge Risk: ⚪ Minimal · up to 2a343

This PR updates the TypeScript toolchain and related build configuration, with the stated test, typecheck, lint, formatting, spell-check, and build checks passing; no actionable merge-blocking risk remains beyond normal review.

Suggested reviewers: tkislan

🚥 Pre-merge checks | ✅ 6
✅ Passed checks (6 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately identifies the primary TypeScript upgrade, which is the main objective of the pull request.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 8 files. (2 skipped: 2 unsupported.)
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Updates Docs ✅ Passed The PR updates TypeScript, tsdown, path resolution, and build filenames only; it introduces no user-facing feature that requires documentation updates.

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.85%. Comparing base (f8b5b2a) to head (b458c62).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #483   +/-   ##
=======================================
  Coverage   88.85%   88.85%           
=======================================
  Files         198      198           
  Lines       11142    11142           
  Branches     3225     3135   -90     
=======================================
  Hits         9900     9900           
  Misses       1240     1240           
  Partials        2        2           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

coderabbitai[bot]
coderabbitai Bot previously approved these changes Aug 20, 2026
coderabbitai[bot]
coderabbitai Bot previously approved these changes Aug 20, 2026
Comment thread packages/blocks/package.json Resolved
jamesbhobbs and others added 2 commits August 24, 2026 06:20
…script

Watch mode emitted index.mjs while package.json pointed at index.js,
breaking dependent packages during local development.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@dinohamzic
dinohamzic merged commit cc5a2e2 into main Aug 24, 2026
21 checks passed
@dinohamzic
dinohamzic deleted the chore/update-typescript branch August 24, 2026 11:37
tkislan added a commit that referenced this pull request Sep 30, 2026
…pm versions

Addresses the two open CodeRabbit comments on this PR.

- Step 3's "Ships" list now names all ten package.json fields that step
  4's manifest_of() diffs; it named six and left out main, module, types
  and peerDependencies. It also counts the install hooks npm runs on
  consumers' machines (preinstall, install, postinstall) and the build
  script as shipped, and "Doesn't ship" keeps only the other scripts.
  #483 added --no-fixed-extension to the build scripts of blocks and
  database-integrations, unreleased in both, which the old rule filed
  under "Doesn't ship".
- Step 2's table gets a row for tag=none with a version on npm: the
  package was published outside the release flow, so stop. No row
  covered it, and reading it as "never released" skips step 7's check
  that the version isn't on npm yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015MDLLybntQm7AD7nUQAWZX
tkislan added a commit that referenced this pull request Nov 5, 2026
…p PR (#541)

* chore(release): add a Claude Code skill that prepares the version-bump PR

Adds /bump-package-versions, a manual-only project skill for maintainers.
Per package it finds the last stable release tag, cross-checks it against
package.json on main and npm, lists the PRs merged since, diffs the public
surface (exported names, package.json fields, packed files) against the
published tarball, and picks major/minor/patch from semver plus this
repo's conventions: 0.x breaking changes and features take a minor, a new
block type is a minor for blocks and a patch for dependents, and
workspace:* pins force a release of every dependent. It pauses for
approval, bumps with `pnpm version --no-git-tag-version`, and opens a PR
shaped like #444.

CONTRIBUTING.md points to it from "Publishing packages".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015hEPMFUL7nnce55y9RVztu

* chore(release): catch bundled dependency changes and npm lookup failures

Addresses the two findings from the Codex review of this PR. Both were
verified and rated P3.

- Step 4 now also diffs the third-party packages inlined into each bundle
  against the published tarball, reading them from tsdown's //#region
  markers. Step 3's path filter can't see a change that touches only the
  root pnpm.overrides and pnpm-lock.yaml, yet such a change moves the
  yaml or zod copied into local-runner's snapshot reader. Step 3 now
  points to that check instead of keeping its own, already stale, list of
  bundled packages.
- Step 2 prints npm=none only when npm answers E404. Any other lookup
  failure prints npm=ERROR. A new table row says to re-run the loop in
  that case, instead of reading the failure as "never released".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015hEPMFUL7nnce55y9RVztu

* chore(release): pin npm lookups and make the bump skill's checks fail closed

Addresses the four follow-up issues (A to D) from the review of this PR:

- A: manifest_of sorts dependencies and peerDependencies before diffing.
  pnpm pack writes them in a nondeterministic order: 6 packs of
  @deepnote/mcp gave 6 different outputs before, and 1 after.
- B: step 7 requires npm to answer E404 for the new version. The old
  check printed nothing, and so read as "available", whenever the lookup
  failed.
- C: step 2 prints tag-on-remote=- and tag-on-main=- when a package has
  no tag, so an untagged package no longer matches the local-only-tag and
  other-branch Stop rows.
- D: every npm view and npm pack pins --@deepnote:registry to
  registry.npmjs.org, where cd.yml publishes. A plain --registry, the
  first suggestion, does not override a scoped registry in a user's
  .npmrc: npm still sent the lookup to the scoped registry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015hEPMFUL7nnce55y9RVztu

* chore(release): count install hooks as shipped and stop on untagged npm versions

Addresses the two open CodeRabbit comments on this PR.

- Step 3's "Ships" list now names all ten package.json fields that step
  4's manifest_of() diffs; it named six and left out main, module, types
  and peerDependencies. It also counts the install hooks npm runs on
  consumers' machines (preinstall, install, postinstall) and the build
  script as shipped, and "Doesn't ship" keeps only the other scripts.
  #483 added --no-fixed-extension to the build scripts of blocks and
  database-integrations, unreleased in both, which the old rule filed
  under "Doesn't ship".
- Step 2's table gets a row for tag=none with a version on npm: the
  package was published outside the release flow, so stop. No row
  covered it, and reading it as "never released" skips step 7's check
  that the version isn't on npm yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015MDLLybntQm7AD7nUQAWZX

* chore(release): move the bump skill's checks into scripts/bump.mjs

The skill's inline shell moves into one Node script with four commands
(baselines, changes, surface, set-version) that exit 1 when a run should
stop. SKILL.md drops from 267 to 183 lines, and the facts specific to one
package move into a single "Package notes" section.

- set-version refuses a target that isn't above the last release, and checks
  npm and origin before accepting a package as already at its target.
- baselines prints npm's error code with npm-error, so an auth failure is
  distinguishable from a dropped connection.
- surface also reports the third-party packages the public types import,
  flagging a changed range, and whether the built files changed byte for byte.
- Steps 1 to 6 stay on origin/main. An open release PR is compared at step 6
  and updated at step 7, after approval.
- SKILL.md says root pnpm.overrides don't ship, and how to rate a raised
  floor on a dependency the public types expose.
- CONTRIBUTING.md no longer limits the skill to multi-package releases.

Tested with dry runs to the step 6 checkpoint: on main at b331a3f the skill
matched #552 on 8 of 9 packages and raised the ninth as an open question; on
a242a4c it produced the proposal released as #562. Every baseline status was
exercised against a simulated remote, along with set-version's refusals and
surface's fail-closed path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BYyMrxsMPw3Yu9zmWuusYP

* chore(release): report a prerelease in flight on main as prerelease

cd.yml publishes only when package.json matches the tag, so a prerelease cut
from main leaves main's package.json at the prerelease version. baselines
reported that as unreleased-bump. And because cd.yml publishes without --tag,
which npm 10 turns into latest, it could also stop earlier as
published-outside-flow.

checkBaseline now reports prerelease when package.json matches a prerelease
tag that is on origin and on main, and npm's latest is either the stable tag
or that prerelease. A local-only or off-main prerelease tag, or a package.json
past the last released prerelease, still stops the run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BYyMrxsMPw3Yu9zmWuusYP

* feat(release): flag dependents of never-released packages in baselines

pnpm publishes workspace:* as the dependency's exact version, so a package that
depends on a never-released one can't be released without it. baselines now
prints a line for each such dependent, and step 2 of the skill says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VanAqwcw7e4ahv2CzsJNdV

* docs(release): drop package notes from the bump-package-versions skill

Each note restated what the code, CI, AGENTS.md, or package READMEs already
record: the CLI's tsdown.config.ts and EXTRA_PATHS, cd-pypi-cli.yml, the bin and
exports fields, and local-runner's tsdown.config.ts and README. The two steps
that pointed to the section now point to EXTRA_PATHS or stand on their own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VanAqwcw7e4ahv2CzsJNdV

* docs(release): require reading dependents' call sites before rating leaks

surface compares types, so a dependent that runs a dependency's changed code
inherits the change without any type difference. Step 5's leak rule now has the
agent grep each dependent's uses of a changed dependency, follow them to the
changed code, and never rate a dependent unaffected without reading them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VanAqwcw7e4ahv2CzsJNdV

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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