Skip to content

chore: bump deps and simplify runtime internals#60

Merged
johnie merged 6 commits into
mainfrom
feature/updates-2026-05-07
May 7, 2026
Merged

chore: bump deps and simplify runtime internals#60
johnie merged 6 commits into
mainfrom
feature/updates-2026-05-07

Conversation

@johnie

@johnie johnie commented May 7, 2026

Copy link
Copy Markdown
Owner

What

  • Bump tsdown 0.21 → 0.22, valibot 1.3 → 1.4, vite 8.0.10 → 8.0.11
  • Bump packageManager from pnpm@10.33.3pnpm@11.0.8
  • Simplify three internals in src/internal/runtime.ts:
    • Collapse transformValidatedData to a single conditional Promise.resolve
    • Split compileExtractDescriptor into a thin shape function plus a compileDescriptorValue helper
    • Inline the one-call compileArrayItem helper into compileExtractField

Why

  • Routine dependency hygiene for the May 7 maintenance branch.
  • The runtime helpers had grown a mutate-and-return pattern and a single-use helper that obscured the shape of the compile pipeline. Each function now has one job.

How

  • Dep bumps via standard install; lockfile regenerated.
  • Refactors are behavior-preserving — the value-key contract for cheerio's extract (present-vs-absent matters) is preserved by the conditional return in compileExtractDescriptor. No public API or type changes.

Changes

  • package.json, pnpm-lock.yaml — dep + pnpm bumps
  • src/internal/runtime.ts — 194 → 179 lines, three atomic refactors

Testing

  • pnpm ci clean: 17/17 vitest tests pass, tsc clean, ultracite check clean, tsdown build clean, attw reports green for node10 / node16-CJS / node16-ESM / bundler.

@changeset-bot

changeset-bot Bot commented May 7, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 1d1a930

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

johnie added 2 commits May 7, 2026 14:19
tsdown 0.22 requires Node ^22.18.0 || >=24.0.0; the workflow was still
pinned to 20.x. Aligns with release.yml and deploy.yml which already use
node-version-file.
@johnie johnie merged commit 94b3a63 into main May 7, 2026
1 check passed
@johnie johnie deleted the feature/updates-2026-05-07 branch May 7, 2026 12:24
@github-actions github-actions Bot mentioned this pull request May 7, 2026
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.

1 participant