Skip to content

fix: xo 2.0 compatibility#400

Merged
tusbar merged 2 commits into
masterfrom
fix/xo-2.0.2-compat
May 28, 2026
Merged

fix: xo 2.0 compatibility#400
tusbar merged 2 commits into
masterfrom
fix/xo-2.0.2-compat

Conversation

@tusbar
Copy link
Copy Markdown
Owner

@tusbar tusbar commented May 28, 2026

Summary

  • Bump xo from 1.2.3 to 2.0.2 (originally chore(deps-dev): bump xo from 1.2.3 to 2.0.2 #399)
  • Remove empty CacheControl constructor — xo 2.0 enables @typescript-eslint/no-useless-constructor, and class field initializers already cover what it was doing
  • Disable require-unicode-regexp globally in xo.config.ts — Cache-Control headers are strictly ASCII per RFC 9110/9111, so the v flag adds no value and its stricter escaping rules cause friction

Closes #399

Test plan

  • pnpm xo — clean
  • pnpm tsc --noEmit — clean
  • pnpm test — 57/57 pass, 100% coverage

🤖 Generated with Claude Code

dependabot Bot and others added 2 commits May 28, 2026 10:27
Bumps [xo](https://github.com/xojs/xo) from 1.2.3 to 2.0.2.
- [Release notes](https://github.com/xojs/xo/releases)
- [Commits](xojs/xo@v1.2.3...v2.0.2)

---
updated-dependencies:
- dependency-name: xo
  dependency-version: 2.0.2
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
xo 2.0 enabled @typescript-eslint/no-useless-constructor and
require-unicode-regexp. The constructor was a no-op once class field
initializers were introduced, so it can simply be removed.

The Unicode regex rule is a false positive here: Cache-Control headers
are strictly ASCII per RFC 9110/9111, so the v flag adds no value and
its stricter escaping rules cause friction. Disable it project-wide.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented May 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (bcac319) to head (7c7ebc8).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #400   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines          114       113    -1     
  Branches        17        17           
=========================================
- Hits           114       113    -1     

☔ View full report in Codecov by Sentry.
📢 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.

@tusbar tusbar merged commit f1c79dd into master May 28, 2026
6 checks passed
@tusbar tusbar deleted the fix/xo-2.0.2-compat branch May 28, 2026 12:54
@tusbar
Copy link
Copy Markdown
Owner Author

tusbar commented May 28, 2026

🎉 This PR is included in version 3.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant