Skip to content

💥(worker) Drop CommonJS support#6615

Merged
dubzzz merged 4 commits into
mainfrom
worker-esm-only
Feb 19, 2026
Merged

💥(worker) Drop CommonJS support#6615
dubzzz merged 4 commits into
mainfrom
worker-esm-only

Conversation

@dubzzz

@dubzzz dubzzz commented Feb 19, 2026

Copy link
Copy Markdown
Owner

Description

Last package to be moved to ESM, others will be done later:

  • @fast-check/jest can't for now, given jest does not support ESM
  • fast-check will be handled in the next major of the package but is part of the plan

Checklist

Don't delete this checklist and make sure you do the following before opening the PR

  • I have a full understanding of every line in this PR — whether the code was hand-written, AI-generated, copied from external sources or produced by any other tool
  • I flagged the impact of my change (minor / patch / major) either by running pnpm run bump or by following the instructions from the changeset bot
  • I kept this PR focused on a single concern and did not bundle unrelated changes
  • I followed the gitmoji specification for the name of the PR, including the package scope (e.g. 🐛(vitest) Something...) when the change targets a package other than fast-check
  • I added relevant tests and they would have failed without my PR (when applicable)

@changeset-bot

changeset-bot Bot commented Feb 19, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c76d0f2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@fast-check/jest Major
@fast-check/worker Minor

Not sure what this means? Click here to learn what changesets are.

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

Updated versioning for @fast-check/worker from patch to minor and dropped CommonJS support.
@pkg-pr-new

pkg-pr-new Bot commented Feb 19, 2026

Copy link
Copy Markdown
@fast-check/ava

npm i https://pkg.pr.new/@fast-check/ava@6615

fast-check

npm i https://pkg.pr.new/fast-check@6615

@fast-check/jest

npm i https://pkg.pr.new/@fast-check/jest@6615

@fast-check/packaged

npm i https://pkg.pr.new/@fast-check/packaged@6615

@fast-check/poisoning

npm i https://pkg.pr.new/@fast-check/poisoning@6615

@fast-check/vitest

npm i https://pkg.pr.new/@fast-check/vitest@6615

@fast-check/worker

npm i https://pkg.pr.new/@fast-check/worker@6615

commit: c76d0f2

@github-actions

Copy link
Copy Markdown
Contributor

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedlodash@​4.17.23761008688100
Addedregexp-tree@​0.1.2710010010080100
Addedtypescript@​5.9.31001009010090

View full report

@socket-security

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
Obfuscated code: npm entities is 91.0% likely obfuscated

Confidence: 0.91

Location: Package overview

From: pnpm-lock.yamlnpm/[email protected]

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

@github-actions

Copy link
Copy Markdown
Contributor

@codecov

codecov Bot commented Feb 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.72%. Comparing base (cfedda3) to head (c76d0f2).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6615   +/-   ##
=======================================
  Coverage   94.72%   94.72%           
=======================================
  Files         209      209           
  Lines        5670     5670           
  Branches     1502     1503    +1     
=======================================
  Hits         5371     5371           
  Misses        286      286           
  Partials       13       13           
Flag Coverage Δ
tests 94.72% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dubzzz
dubzzz merged commit 1fd321a into main Feb 19, 2026
51 checks passed
@dubzzz
dubzzz deleted the worker-esm-only branch February 19, 2026 21:17
dubzzz added a commit that referenced this pull request Feb 19, 2026
## Description

<!-- Describe your change and explain what this PR is trying to solve
-->

Extend support of Jest to last versions of Worker.

Follow-up of #6615.

<!-- Add any additional context here -->

## Checklist

— _Don't delete this checklist and make sure you do the following before
opening the PR_

- [x] I have a full understanding of every line in this PR — whether the
code was hand-written, AI-generated, copied from external sources or
produced by any other tool
- [x] I flagged the impact of my change (minor / patch / major) either
by running `pnpm run bump` or by following the instructions from the
changeset bot
- [x] I kept this PR focused on a single concern and did not bundle
unrelated changes
- [x] I followed the [gitmoji](https://gitmoji.dev/) specification for
the name of the PR, including the package scope (e.g. `🐛(vitest)
Something...`) when the change targets a package other than `fast-check`
- [x] I added relevant tests and they would have failed without my PR
(when applicable)

<!-- PRs not checking all the boxes may take longer before being
reviewed -->
<!-- More about contributing at
https://github.com/dubzzz/fast-check/blob/main/CONTRIBUTING.md -->
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