Skip to content

refactor(dev): use get-port-please to produce socket addresses - #952

Merged
danielroe merged 3 commits into
mainfrom
refactor/socket-path
Jul 11, 2025
Merged

refactor(dev): use get-port-please to produce socket addresses#952
danielroe merged 3 commits into
mainfrom
refactor/socket-path

Conversation

@danielroe

Copy link
Copy Markdown
Member

🔗 Linked issue

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

we extracted socket path utils into get-port-please.

linked: nitrojs/nitro@4f27523, unjs/get-port-please#110

@danielroedanielroe self-assigned this Jul 11, 2025
@github-actions

github-actionsBot commented Jul 11, 2025

Copy link
Copy Markdown
Contributor

Bundle Stats — nuxi size comparison

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 countTotal bundle size% Changed
585.47 MB → 5.47 MB (+1.02 kB)+0.02%
Changeset
FileΔSize
node_modules/get-port-please/dist/index.mjs📈 +1.47 kB (+21.54%)6.82 kB → 8.29 kB
src/commands/dev.ts📈 +7 B (+0.06%)11.08 kB → 11.08 kB
src/dev/socket.ts📉 -464 B (-22.86%)1.98 kB → 1.53 kB
View detailed bundle breakdown

Added

AssetFile Size% Changed
shared/nuxi.Cit_PhVF.mjs0 B → 916.43 kB (+916.43 kB)-
shared/nuxi.D7O6R7TO.mjs0 B → 2.57 kB (+2.57 kB)-

Removed

AssetFile Size% Changed
shared/nuxi.mckSyPJc.mjs914.96 kB → 0 B (-914.96 kB)-100%
shared/nuxi.B9b6BodX.mjs2.57 kB → 0 B (-2.57 kB)-100%

Bigger

AssetFile Size% Changed
chunks/dev.mjs28.21 kB → 28.22 kB (+7 B)+0.02%

Smaller

AssetFile Size% Changed
chunks/index2.mjs197.8 kB → 197.35 kB (-464 B)-0.23%

Unchanged

AssetFile Size% Changed
index.mjs247 B0%
dev/index.mjs925 B0%
chunks/add.mjs6.89 kB0%
chunks/analyze.mjs3.35 kB0%
chunks/build.mjs2.04 kB0%
chunks/cleanup.mjs471 B0%
chunks/dev-child.mjs780 B0%
chunks/devtools.mjs764 B0%
chunks/generate.mjs492 B0%
chunks/info.mjs4.43 kB0%
chunks/init.mjs665.87 kB0%
chunks/index.mjs274 B0%
chunks/prepare.mjs1.04 kB0%
chunks/preview.mjs3.58 kB0%
chunks/test.mjs1.16 kB0%
chunks/typecheck.mjs2.06 kB0%
chunks/upgrade.mjs6.28 kB0%
chunks/satisfies.mjs116 B0%
chunks/main.mjs15.3 kB0%
chunks/prompt.mjs42.91 kB0%
chunks/jiti.mjs305 B0%
chunks/index3.mjs71.97 kB0%
chunks/multipart-parser.mjs5.11 kB0%
chunks/add2.mjs12.08 kB0%
chunks/search.mjs45.85 kB0%
chunks/xdg-open.mjs25.32 kB0%
chunks/node.mjs145.67 kB0%
chunks/index4.mjs1.23 kB0%
chunks/index5.mjs5.85 kB0%
chunks/multipart-parser2.mjs4.58 kB0%
chunks/index6.mjs900.74 kB0%
shared/nuxi.bYOTTMda.mjs19.31 kB0%
shared/nuxi.Dh2ZdpAd.mjs57.22 kB0%
shared/nuxi.CTyTlDmo.mjs18.91 kB0%
shared/nuxi.DzMZtGWH.mjs792 B0%
shared/nuxi.BtDT0y5R.mjs294 B0%
shared/nuxi.D2_bzAv0.mjs1.54 kB0%
shared/nuxi.DtQ0anGB.mjs4.07 kB0%
shared/nuxi.BSm0_9Hr.mjs107 B0%
shared/nuxi.DMyZmNH9.mjs836 B0%
shared/nuxi.BiWTNJI4.mjs945 B0%
shared/nuxi.BVCmUwv2.mjs15.27 kB0%
shared/nuxi.ChutbOY_.mjs25.34 kB0%
shared/nuxi.BAGoDD49.mjs1.05 kB0%
shared/nuxi.B5t53vrk.mjs2.02 MB0%
shared/nuxi.BjhZEm2-.mjs1.75 kB0%
shared/nuxi.BEgIcxrx.mjs4.06 kB0%
shared/nuxi.DU9QXUOf.mjs26.96 kB0%
shared/nuxi.BzZJv2UC.mjs123.67 kB0%
shared/nuxi.QWnQy_ku.mjs5.75 kB0%
shared/nuxi.CbyJ5osS.mjs13.45 kB0%
shared/nuxi.BLb4POFS.mjs42.47 kB0%
shared/nuxi.Do0aYBCO.mjs5.46 kB0%
shared/nuxi.4t9faemh.mjs43.64 kB0%

@github-actions

github-actionsBot commented Jul 11, 2025

Copy link
Copy Markdown
Contributor

Bundle Stats — nuxt-cli size comparison

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 countTotal bundle size% Changed
3295.31 kB → 94.86 kB (-458 B)-0.47%
Changeset
FileΔSize
home/runner/work/cli/cli/packages/nuxi/src/dev/socket.ts📉 -458 B (-22.65%)1.97 kB → 1.53 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

No assets were bigger

Smaller

AssetFile Size% Changed
chunks/index.mjs14.79 kB → 14.35 kB (-458 B)-3.02%

Unchanged

AssetFile Size% Changed
dev/index.mjs0 B0%
index.mjs236 B0%
chunks/analyze.mjs3.35 kB0%
chunks/cleanup.mjs471 B0%
chunks/dev-child.mjs815 B0%
chunks/dev.mjs11.08 kB0%
chunks/devtools.mjs763 B0%
chunks/generate.mjs492 B0%
chunks/build.mjs2.04 kB0%
chunks/info.mjs4.44 kB0%
chunks/index2.mjs273 B0%
chunks/add.mjs10.17 kB0%
chunks/search.mjs2.96 kB0%
chunks/prepare.mjs1.04 kB0%
chunks/preview.mjs3.58 kB0%
chunks/test.mjs1.16 kB0%
chunks/typecheck.mjs2.06 kB0%
chunks/upgrade.mjs6.28 kB0%
chunks/init.mjs9.85 kB0%
chunks/add2.mjs6.89 kB0%
shared/cli.B9AmABr3.mjs39 B0%
shared/cli.Dz2be-Ai.mjs792 B0%
shared/cli.BEUGgaW4.mjs294 B0%
shared/cli.BSm0_9Hr.mjs107 B0%
shared/cli.At9IMXtr.mjs1.23 kB0%
shared/cli.pLQ0oPGc.mjs836 B0%
shared/cli.qKvs7FJ2.mjs945 B0%
shared/cli.P0cplz3M.mjs78 B0%
shared/cli.jA1DRKbi.mjs1.04 kB0%
shared/cli.Cxye68Cs.mjs1.8 kB0%
shared/cli.BpQCmRC-.mjs5.55 kB0%

@github-actions

github-actionsBot commented Jul 11, 2025

Copy link
Copy Markdown
Contributor

Bundle Stats — create-nuxt size comparison

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 countTotal bundle size% Changed
495.89 MB → 5.9 MB (+1.02 kB)+0.02%
Changeset
FileΔSize
node_modules/get-port-please/dist/index.mjs📈 +1.47 kB (+21.54%)6.82 kB → 8.29 kB
home/runner/work/cli/cli/packages/nuxi/src/commands/dev.ts📈 +7 B (+0.06%)11.08 kB → 11.08 kB
home/runner/work/cli/cli/packages/nuxi/src/dev/socket.ts📉 -464 B (-22.86%)1.98 kB → 1.53 kB
View detailed bundle breakdown

Added

AssetFile Size% Changed
shared/create-nuxt.DHvyDQnB.mjs0 B → 2.02 MB (+2.02 MB)-
shared/create-nuxt.BpAByT2l.mjs0 B → 1.17 MB (+1.17 MB)-
shared/create-nuxt.xX0Cvyw9.mjs0 B → 964.65 kB (+964.65 kB)-
shared/create-nuxt.gJC6FBVJ.mjs0 B → 108.11 kB (+108.11 kB)-
shared/create-nuxt.DYj-zHwR.mjs0 B → 18.91 kB (+18.91 kB)-
shared/create-nuxt.Cjt-aVEF.mjs0 B → 15.27 kB (+15.27 kB)-
shared/create-nuxt.DXjQxQEj.mjs0 B → 4.07 kB (+4.07 kB)-
shared/create-nuxt.FJxpc8RG.mjs0 B → 4.06 kB (+4.06 kB)-
shared/create-nuxt.CpC6T01a.mjs0 B → 3.9 kB (+3.9 kB)-
shared/create-nuxt.zlQdpBpk.mjs0 B → 945 B (+945 B)-
shared/create-nuxt.C70uiq1n.mjs0 B → 836 B (+836 B)-
shared/create-nuxt.Dl70DstP.mjs0 B → 792 B (+792 B)-
shared/create-nuxt.DsQW-n5K.mjs0 B → 294 B (+294 B)-

Removed

AssetFile Size% Changed
shared/create-nuxt.KL9ugVZV.mjs2.02 MB → 0 B (-2.02 MB)-100%
shared/create-nuxt.CmFqvJkI.mjs1.17 MB → 0 B (-1.17 MB)-100%
shared/create-nuxt.COVR4bTQ.mjs964.65 kB → 0 B (-964.65 kB)-100%
shared/create-nuxt.5PBv8cve.mjs108.11 kB → 0 B (-108.11 kB)-100%
shared/create-nuxt.CXdKBgrj.mjs18.91 kB → 0 B (-18.91 kB)-100%
shared/create-nuxt.DxguKsRg.mjs15.27 kB → 0 B (-15.27 kB)-100%
shared/create-nuxt.B71vGbOF.mjs4.07 kB → 0 B (-4.07 kB)-100%
shared/create-nuxt.CmohqI63.mjs4.06 kB → 0 B (-4.06 kB)-100%
shared/create-nuxt.Drk1Byyi.mjs3.9 kB → 0 B (-3.9 kB)-100%
shared/create-nuxt.B6dGcd5o.mjs945 B → 0 B (-945 B)-100%
shared/create-nuxt.qG8SP-dG.mjs836 B → 0 B (-836 B)-100%
shared/create-nuxt.BNIuJ6a6.mjs792 B → 0 B (-792 B)-100%
shared/create-nuxt.wER2Sq2O.mjs294 B → 0 B (-294 B)-100%

Bigger

AssetFile Size% Changed
chunks/dev.mjs28.21 kB → 28.22 kB (+7 B)+0.02%

Smaller

AssetFile Size% Changed
chunks/index2.mjs197.8 kB → 197.35 kB (-464 B)-0.23%

Unchanged

AssetFile Size% Changed
index.mjs1.07 kB0%
chunks/multipart-parser.mjs5.11 kB0%
chunks/multipart-parser2.mjs4.58 kB0%
chunks/add.mjs6.89 kB0%
chunks/analyze.mjs3.35 kB0%
chunks/build.mjs2.04 kB0%
chunks/cleanup.mjs471 B0%
chunks/dev-child.mjs811 B0%
chunks/devtools.mjs764 B0%
chunks/generate.mjs492 B0%
chunks/info.mjs4.43 kB0%
chunks/index.mjs274 B0%
chunks/prepare.mjs1.04 kB0%
chunks/preview.mjs3.58 kB0%
chunks/test.mjs1.16 kB0%
chunks/typecheck.mjs2.06 kB0%
chunks/upgrade.mjs6.28 kB0%
chunks/prompt.mjs42.91 kB0%
chunks/satisfies.mjs116 B0%
chunks/jiti.mjs305 B0%
chunks/index3.mjs71.97 kB0%
chunks/add2.mjs12.08 kB0%
chunks/search.mjs45.85 kB0%
chunks/xdg-open.mjs25.32 kB0%
chunks/node.mjs145.67 kB0%
chunks/index4.mjs1.23 kB0%
chunks/index5.mjs5.85 kB0%
chunks/index6.mjs6.24 kB0%
chunks/index7.mjs50.51 kB0%
chunks/index8.mjs900.74 kB0%
shared/create-nuxt.BSm0_9Hr.mjs107 B0%
shared/create-nuxt.BjhZEm2-.mjs1.75 kB0%
shared/create-nuxt.Vk1IrVtB.mjs26.96 kB0%
shared/create-nuxt.4t9faemh.mjs43.64 kB0%

@pkg-pr-new

pkg-pr-newBot commented Jul 11, 2025

Copy link
Copy Markdown

nuxt-cli-playground

npm i https://pkg.pr.new/create-nuxt@952
npm i https://pkg.pr.new/nuxi@952
npm i https://pkg.pr.new/@nuxt/cli@952

commit: 79c50cc

@codspeed-hq

Copy link
Copy Markdown

CodSpeed Performance Report

Merging #952 will not alter performance

Comparing refactor/socket-path (79c50cc) with main (e3fb91b)

Summary

✅ 2 untouched benchmarks

@danielroe
danielroe merged commit c7c4dd1 into mainJul 11, 2025
14 checks passed
@danielroe
danielroe deleted the refactor/socket-path branch July 11, 2025 13:24
@github-actionsgithub-actionsBot mentioned this pull request Jul 11, 2025
Sign up for freeto 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

@danielroe