Skip to content

🚨 Enforce .js extension in file imports - #1013

Merged
gwennlbh merged 1 commit into
mainfrom
enforce-import-extensions
Dec 26, 2025
Merged

gwennlbh merged 1 commit into
mainfrom
enforce-import-extensions

Conversation

@gwennlbh

Copy link
Copy Markdown
Member

Closes #998

@gwennlbh
gwennlbh enabled auto-merge (squash) December 26, 2025 14:54
@gwennlbh
gwennlbh temporarily deployed to #1013: Unit tests report December 26, 2025 14:55 — with GitHub Actions Inactive
@gwennlbh
gwennlbh temporarily deployed to #1013: Unit tests report December 26, 2025 14:56 — with GitHub Actions Inactive
@gwennlbh
gwennlbh temporarily deployed to #1013: Test coverage report December 26, 2025 14:57 — with GitHub Actions Inactive
@gwennlbh
gwennlbh disabled auto-merge December 26, 2025 15:00
@github-actions

github-actions Bot commented Dec 26, 2025 •

Copy link
Copy Markdown
Contributor

Bundle Stats

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
205 46.32 MB
12.06 MB
0%

Changeset

No files were changed

View detailed bundle breakdown

Added

Asset File Size % Changed
_app/immutable/chunks/CN8X_QUR.js 0 B → 61.52 kB (+61.52 kB)
0 B → 27.69 kB (gzip)
-
_app/immutable/nodes/13.C53mB2uf.js 0 B → 29.86 kB (+29.86 kB)
0 B → 10.84 kB (gzip)
-
_app/immutable/nodes/2.BauEAE8X.js 0 B → 20.88 kB (+20.88 kB)
0 B → 9.67 kB (gzip)
-
_app/immutable/nodes/5.DGN5lHrR.js 0 B → 10.71 kB (+10.71 kB)
0 B → 4.41 kB (gzip)
-
_app/immutable/entry/app.7KYL0uK1.js 0 B → 8.44 kB (+8.44 kB)
0 B → 2.64 kB (gzip)
-

Removed

Asset File Size % Changed
_app/immutable/chunks/CvNHwLiO.js 61.52 kB → 0 B (-61.52 kB)
27.69 kB → 0 B (gzip)
-100%
_app/immutable/nodes/13.BouAkscI.js 29.86 kB → 0 B (-29.86 kB)
10.84 kB → 0 B (gzip)
-100%
_app/immutable/nodes/2.n7quzSJY.js 20.88 kB → 0 B (-20.88 kB)
9.67 kB → 0 B (gzip)
-100%
_app/immutable/nodes/5.B7el0-dg.js 10.71 kB → 0 B (-10.71 kB)
4.41 kB → 0 B (gzip)
-100%
_app/immutable/entry/app.CTYC4x1x.js 8.44 kB → 0 B (-8.44 kB)
2.64 kB → 0 B (gzip)
-100%

Bigger

No assets were bigger

Smaller

No assets were smaller

Caveat: it still doesn't check alias imports ($lib/ for example),
probably cuz it's considered to be a package import
@gwennlbh
gwennlbh force-pushed the enforce-import-extensions branch from fb0c68f to 00ec09e Compare December 26, 2025 15:07
@gwennlbh
gwennlbh enabled auto-merge (squash) December 26, 2025 15:07
@gwennlbh
gwennlbh temporarily deployed to #1013: Unit tests report December 26, 2025 15:09 — with GitHub Actions Inactive
@gwennlbh
gwennlbh merged commit cbaca1a into main Dec 26, 2025
@gwennlbh
gwennlbh deleted the enforce-import-extensions branch April 13, 2026 13:31
gwennlbh pushed a commit that referenced this pull request Aug 31, 2026
##### [vv10.0.1](https://github.com/astral-sh/setup-uv/releases/tag/v10.0.1)

##### Changes

Thank you [@arguile-](https://github.com/arguile-) for making this action more resilient.

##### 🐛 Bug fixes

- Tolerate transient manifest timeouts [@arguile-](https://github.com/arguile-) ([#1016](astral-sh/setup-uv#1016))

##### 🧰 Maintenance

- chore: update known checksums for 0.12.4 @[github-actions\[bot\]](https://github.com/apps/github-actions) ([#1017](astral-sh/setup-uv#1017))

##### 📚 Documentation

- docs: update version references to v10.0.0 @[github-actions\[bot\]](https://github.com/apps/github-actions) ([#1014](astral-sh/setup-uv#1014))
##### [vv10.0.0](https://github.com/astral-sh/setup-uv/releases/tag/v10.0.0)

##### Changes

Another breaking release, directly after v9.0.0 but we think the added security justifies that.

##### Extra security by default

If you use the default `enable-cache: auto` this will now **DISABLE THE CACHE** to protect against cache poisoning for the following events:

- `pull_request_target`
- `workflow_run`
- `release`

You can read the full reasoning in [#984](astral-sh/setup-uv#984)

##### `version: latest-known`

```yaml
- name: Install the latest version of uv known to setup-uv
  uses: astral-sh/setup-uv@v10.0.0
  with:
    version: "latest-known"
```

This will now install the latest version with a checksum that is known by this action. The [known `uv` checksums](https://github.com/astral-sh/setup-uv/blob/4f6036f71cec78afb113b323f220c9185d983c12/src/download/checksum/known-checksums.ts) are automatically updated but will take a release of this action to take effect. You won't be always using the latest & greatest but you will have an extra level of security.

##### Read python version from `.tool-versions`

```yaml
- name: Install uv based on the version defined in .tool-versions and also set python
  uses: astral-sh/setup-uv@v10.0.0
  with:
    version-file: "pyproject.toml"
```

Will now also set the python version if it is defined in `.tool-versions`. You can read the details [in the docs](https://github.com/astral-sh/setup-uv/blob/main/docs/advanced-version-configuration.md#install-a-version-defined-in-a-requirements-or-config-file)

##### 🚨 Breaking changes

- Disable automatic caching for sensitive events [@eifinger](https://github.com/eifinger) ([#992](astral-sh/setup-uv#992))

##### 🐛 Bug fixes

- Reject paths in .tool-versions [@eifinger](https://github.com/eifinger) ([#1007](astral-sh/setup-uv#1007))

##### 🚀 Enhancements

- Read Python version from .tool-versions [@eifinger](https://github.com/eifinger) ([#996](astral-sh/setup-uv#996))
- Add latest-known version selector [@eifinger](https://github.com/eifinger) ([#993](astral-sh/setup-uv#993))

##### 🧰 Maintenance

- Require pull requests for Dependabot rollups [@eifinger](https://github.com/eifinger) ([#1005](astral-sh/setup-uv#1005))
- ci: pin Alpine container image [@eifinger](https://github.com/eifinger) ([#995](astral-sh/setup-uv#995))
- chore: update known checksums for 0.12.3 @[github-actions\[bot\]](https://github.com/apps/github-actions) ([#991](astral-sh/setup-uv#991))
- chore: update known checksums for 0.12.2 @[github-actions\[bot\]](https://github.com/apps/github-actions) ([#985](astral-sh/setup-uv#985))
- chore: update known checksums for 0.12.1 @[github-actions\[bot\]](https://github.com/apps/github-actions) ([#982](astral-sh/setup-uv#982))
- chore: update known checksums for 0.12.0 @[github-actions\[bot\]](https://github.com/apps/github-actions) ([#981](astral-sh/setup-uv#981))
- chore: update known checksums for 0.11.31/0.11.32 @[github-actions\[bot\]](https://github.com/apps/github-actions) ([#972](astral-sh/setup-uv#972))

##### 📚 Documentation

- docs: update version references to v9.0.0 @[github-actions\[bot\]](https://github.com/apps/github-actions) ([#971](astral-sh/setup-uv#971))

##### ⬆️ Dependency updates

- chore(deps): roll up Dependabot updates [@eifinger](https://github.com/eifinger) ([#1013](astral-sh/setup-uv#1013))
- chore(deps): roll up Dependabot updates [@eifinger](https://github.com/eifinger) ([#1004](astral-sh/setup-uv#1004))
- chore(deps): roll up Dependabot updates [@eifinger](https://github.com/eifinger) ([#994](astral-sh/setup-uv#994))
- chore(deps): bump zizmorcore/zizmor-action from 0.5.7 to 0.6.0 @[dependabot\[bot\]](https://github.com/apps/dependabot) ([#976](astral-sh/setup-uv#976))
- chore(deps): bump actions/checkout from 7.0.0 to 7.0.1 @[dependabot\[bot\]](https://github.com/apps/dependabot) ([#980](astral-sh/setup-uv#980))

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

This branch was successfully deployed

4 active deployments
#1013: End-to-end tests report — 00ec09e8 Deployed Dec 26, 2025 by gwennlbh
#1013: Test coverage report — 00ec09e8 Deployed Dec 26, 2025 by gwennlbh
#1013: Unit tests report — 00ec09e8 Deployed Dec 26, 2025 by gwennlbh
#1013: App preview — 00ec09e8 Deployed Dec 26, 2025 by gwennlbh
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.

enforce import extensions

1 participant