module-builder icon indicating copy to clipboard operation
module-builder copied to clipboard

Roadmap to v1.0.0

Open danielroe opened this issue 1 year ago • 3 comments

With the release of unbuild v3, the EOL status of Nuxt 2, and looking forward to Nuxt 4, we're going to take the opportunity to release v1 of @nuxt/module-builder, with a range of breaking changes.

🚧 TODO

  • [ ] document that __filename and __dirname are no longer supported (and raise PRs to ecosystem modules)
  • [ ] create full migration guide ~~explaining node10 -> bundler module resolution~~
  • [ ] explain that we no longer support CJS (as this was only required for Nuxt v2)

🧪 Testing v1

It is possible to try out the current state of the module builder by installing @nuxt/module-builder@alpha. (Expect breaking changes if you are trying out the alpha release.)

✨ Changelog

🚀 Enhancements

  • ⚠️ Upgrade to unbuild v3 (#447)
  • ⚠️ Remove support for node10 resolution + cjs (#448)
  • build: Ignore test + story files in runtime/ directory (#480)

🩹 Fixes

  • Mark nuxi as optional peerDep (29a42ae)
  • Drop @nuxt/kit peer dependency & remove optionality for nuxi (5936063)
  • build: Handle windows path names (#399)
  • build: Apply resolved tsconfig to dts (#462)

📖 Documentation

  • Update example build script (#359)
  • Update link to downloads count badge (9804e9e)
  • Describe configuring unbuild (#440)

🏡 Chore

  • Use tinyexec in test suite (7ff8ef1)
  • Fix links (2e57eb2)
  • Pin typescript until issue with vue-tsc is resolved (994135d)
  • Bump vue-tsc (e8cb0ef)
  • Bump nuxi version (5b1f00e)
  • Add publint to dev dependencies (7281ae3)

✅ Tests

  • Await file snapshot assertions (16930b4)
  • Assert current vue snapshot behaviour (#444)

🤖 CI

  • Don't run publint on windows (330f412)

⚠️ Breaking Changes

  • ⚠️ Upgrade to unbuild v3 (#447)
  • ⚠️ Remove support for node10 resolution + cjs (#448)

❤️ Contributors

  • Daniel Roe (@danielroe)
  • Bobbie Goede (@bobbiegoede)

danielroe avatar Dec 13 '24 15:12 danielroe

I just tried out the alpha in nuxt-i18n locally, it kept hanging on https://github.com/unjs/mkdist/blob/main/src/make.ts#L56 so I couldn't build. In the middle of some refactors, so no reproduction for now.

The freezing/hanging reminded me of https://github.com/nuxt/nuxt/issues/30137#issuecomment-2528141266 and it seems to be related since the build succeeds after I replaced the tinyglobby usage with fast-glob in mkdist. I wonder if this will be an issue in other modules, it looks like you didn't run into this with https://github.com/danielroe/nuxt-workers/pull/60 🤔

BobbieGoede avatar Dec 14 '24 11:12 BobbieGoede

I gave it another try and building works fine now (https://github.com/BobbieGoede/i18n/pull/60, https://github.com/BobbieGoede/i18n/actions/runs/12391918988/job/34590001748?pr=60)!

I'm guessing the previous issue was resolved by https://github.com/unjs/mkdist/pull/265 🤷

BobbieGoede avatar Dec 18 '24 11:12 BobbieGoede

Hi, any plan for releasing an alpha version with commit 01b4c9b included?

HigherOrderLogic avatar Mar 24 '25 09:03 HigherOrderLogic

~> https://github.com/nuxt/module-builder/commit/b0655d3a3fd83d9464b28b2796c6f9674463c6eb

danielroe avatar Apr 04 '25 22:04 danielroe