Skip to content

Commit 0a5920a

Browse files
chore(deps): update dependency cross-env to v10 (#1731)
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [cross-env](https://redirect.github.com/kentcdodds/cross-env) | [`^7.0.3` -> `^10.0.0`](https://renovatebot.com/diffs/npm/cross-env/7.0.3/10.1.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/cross-env/10.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/cross-env/7.0.3/10.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>kentcdodds/cross-env (cross-env)</summary> ### [`v10.1.0`](https://redirect.github.com/kentcdodds/cross-env/releases/tag/v10.1.0) [Compare Source](https://redirect.github.com/kentcdodds/cross-env/compare/v10.0.0...v10.1.0) ##### Features - add support for default value syntax ([152ae6a](https://redirect.github.com/kentcdodds/cross-env/commit/152ae6a85b5725ac3c725a8a3e471aee79acc712)) For example: ```json "dev:server": "cross-env wrangler dev --port ${PORT:-8787}", ``` If `PORT` is already set, use that value, otherwise fallback to `8787`. Learn more about [Shell Parameter Expansion](https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html) ### [`v10.0.0`](https://redirect.github.com/kentcdodds/cross-env/releases/tag/v10.0.0) [Compare Source](https://redirect.github.com/kentcdodds/cross-env/compare/v7.0.3...v10.0.0) TL;DR: You should probably not have to change anything if: - You're using a modern maintained version of Node.js (v20+ is tested) - You're only using the CLI (most of you are as that's the intended purpose) In this release (which should have been v8 except I had some issues with automated releases 🙈), I've updated all the things and modernized the package. This happened in [#&#8203;261](https://redirect.github.com/kentcdodds/cross-env/issues/261) Was this needed? Not really, but I just thought it'd be fun to modernize this package. Here's the highlights of what was done. - Replace Jest with Vitest for testing - Convert all source files from .js to .ts with proper TypeScript types - Use zshy for ESM-only builds (removes CJS support) - Adopt [@&#8203;epic-web/config](https://redirect.github.com/epic-web/config) for TypeScript, ESLint, and Prettier - Update to Node.js >=20 requirement - Remove kcd-scripts dependency - Add comprehensive e2e tests with GitHub Actions matrix testing - Update GitHub workflow with caching and cross-platform testing - Modernize documentation and remove outdated sections - Update all dependencies to latest versions - Add proper TypeScript declarations and exports The tool maintains its original functionality while being completely modernized with the latest tooling and best practices ##### BREAKING CHANGES - This is a major rewrite that changes the module format from CommonJS to ESM-only. The package now requires Node.js >=20 and only exports ESM modules (not relevant in most cases). </details> --- ### Configuration 📅 **Schedule**: Branch creation - "every weekday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/apify/apify-docs). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS40MC4wIiwidXBkYXRlZEluVmVyIjoiNDEuMTQzLjEiLCJ0YXJnZXRCcmFuY2giOiJtYXN0ZXIiLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 42c9af3 commit 0a5920a

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

package-lock.json

Lines changed: 16 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"@apify/tsconfig": "^0.1.0",
4949
"@types/react": "^19.0.0",
5050
"babel-plugin-styled-components": "^2.1.4",
51-
"cross-env": "^7.0.3",
51+
"cross-env": "^10.0.0",
5252
"eslint": "^9.32.0",
5353
"eslint-plugin-react": "^7.37.5",
5454
"globals": "^16.0.0",

0 commit comments

Comments
 (0)