Skip to content

fix: resolve DTS build failure and prettier formatting#34

Merged
polaz merged 8 commits intomainfrom
chore/#32-update-deps-fix-ci
Apr 3, 2026
Merged

fix: resolve DTS build failure and prettier formatting#34
polaz merged 8 commits intomainfrom
chore/#32-update-deps-fix-ci

Conversation

@polaz
Copy link
Copy Markdown
Contributor

@polaz polaz commented Apr 3, 2026

Summary

  • Fix prettier formatting in src/testing/performance.ts (extra parens in void expressions)
  • Add ignoreDeprecations: "6.0" to tsconfig.json — fixes TypeScript 6 baseUrl deprecation that broke DTS build
  • Update @types/node ^25.5.1 → ^25.5.2
  • Fix npm publish workflow:
    • Remove registry-url from setup-node (was overriding OIDC with invalid GITHUB_TOKEN)
    • Add idempotency check using package.json version (not git tag)
    • Validate tag matches package.json before publish
    • Upgrade setup-node v4 → v6, node 22 → 24

Auth: npm OIDC trusted publishing (no tokens needed).

Test plan

  • yarn build — CJS, ESM, DTS all pass
  • yarn test — 303 tests passed
  • yarn format:check — clean
  • yarn lint — clean
  • yarn typecheck — clean

Closes #32
Closes #35

Copilot AI review requested due to automatic review settings April 3, 2026 16:09
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 3, 2026

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/testing/performance.ts 0.00% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

- Fix prettier formatting in src/testing/performance.ts (extra parens in void expressions)
- Add ignoreDeprecations: "6.0" to tsconfig.json for TypeScript 6 baseUrl deprecation
- Update @types/node ^25.5.1 → ^25.5.2

Closes #32
@polaz polaz force-pushed the chore/#32-update-deps-fix-ci branch from cdef0e6 to c589eec Compare April 3, 2026 16:11
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates build/publish configuration and minor formatting to resolve CI failures introduced by TypeScript 6 and packaging gaps, plus a small dependency bump.

Changes:

  • Add ignoreDeprecations: "6.0" to unblock TypeScript 6 DTS build warnings/errors.
  • Fix Prettier formatting in src/testing/performance.ts for void + regex expressions.
  • Update @types/node to ^25.5.2 and include wasm/ in the published npm package files.

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.

File Description
yarn.lock Locks @types/node to 25.5.2 to match the dependency update.
tsconfig.json Adds ignoreDeprecations: "6.0" to address TS 6 deprecation impacting DTS builds.
src/testing/performance.ts Removes unnecessary parentheses in void expressions to satisfy Prettier.
package.json Publishes wasm/ alongside dist/ and bumps @types/node version.

@polaz polaz changed the title chore: update dependencies and fix CI issues fix: resolve DTS build failure and prettier formatting Apr 3, 2026
@polaz polaz requested a review from Copilot April 3, 2026 16:15
@polaz
Copy link
Copy Markdown
Contributor Author

polaz commented Apr 3, 2026

@coderabbitai full review

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 4 changed files in this pull request and generated 1 comment.

polaz added 3 commits April 3, 2026 19:18
OIDC trusted publishing only works for already-published packages.
First publish requires explicit npm automation token.

- Add NODE_AUTH_TOKEN env var pointing to NPM_TOKEN secret
- Keep --provenance for OIDC signing (separate from auth)
- Requires NPM_TOKEN secret in "release" environment

Closes #35
- Upgrade actions/setup-node v4 → v6, node 22 → 24
- Use yarn npm publish instead of npm publish
- Add idempotency check (skip if version already published)
- Use NPM_CONFIG_PROVENANCE env var instead of --provenance flag

Closes #35
npm trusted publishing authenticates via GitHub Actions OIDC identity.
No secret tokens needed — configured at npmjs.com package settings.

Closes #35
actions/setup-node with registry-url creates .npmrc with
NODE_AUTH_TOKEN=${GITHUB_TOKEN} which overrides OIDC auth.
Without registry-url, npm falls back to OIDC identity for auth.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 5 changed files in this pull request and generated 2 comments.

Use package.json version (what npm publish uses) instead of git tag
for idempotency check. Fail fast if tag and package.json diverge.
@polaz polaz requested a review from Copilot April 3, 2026 17:03
@polaz
Copy link
Copy Markdown
Contributor Author

polaz commented Apr 3, 2026

@coderabbitai resume and full review

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 5 changed files in this pull request and generated 1 comment.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 5 changed files in this pull request and generated 1 comment.

Upgrade all CI workflows to Node 24 + actions/setup-node@v6
to match publish.yml. Update test matrix from [20, 22] to [22, 24].
@polaz polaz requested a review from Copilot April 3, 2026 17:39
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 8 changed files in this pull request and generated no new comments.

@polaz polaz merged commit 4de0dfa into main Apr 3, 2026
14 of 15 checks passed
@polaz polaz deleted the chore/#32-update-deps-fix-ci branch April 3, 2026 17:49
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.

fix: npm publish fails with E404 — setup-node registry-url breaks OIDC auth chore: update dependencies and fix CI issues

2 participants