Skip to content

Releases: nuxt/bridge

v3.3.1

14 Jun 10:11
d05d57a
Compare
Choose a tag to compare

👉 Changelog

compare changes

🩹 Fixes

  • Include toArray in runtime (#1240)

❤️ Contributors

v3.3.0

11 Jun 16:58
043f1c9
Compare
Choose a tag to compare

👉 Changelog

compare changes

🚀 Enhancements

  • Port clear and clearNuxtData from upstream (#1212)

🩹 Fixes

  • Clear timeout when asyncData request finishes and aborts (#1220)
  • Skip node for which definePageMeta does not exist (#1223)
  • vite: Enable preventAssignment in rollup replace plugin (997e348)
  • vite: Don't set available port when hmr.server is set (569906c)
  • Match signature for nitro/nuxt useRuntimeConfigcomposables (#1230)

✅ Tests

  • Refactor page-meta test (#1224)

🤖 CI

  • Add release workflow (#1225)
  • Do not cache playwright binaries (23d9bd7)
  • Remove caching for playwright (e9a923a)

❤️ Contributors

v3.2.1

14 May 16:27
dd1c3e4
Compare
Choose a tag to compare

👉 Changelog

compare changes

🩹 Fixes

  • Port additional fixes/changes in upstream navigateTo (#1197)
  • Expose defineAsyncComponent/proxyRefs from legacy runtime (#1205)

🏡 Chore

  • Update renovate config (#1199)

❤️ Contributors

v3.2.0

22 Apr 21:40
07ef19e
Compare
Choose a tag to compare

👉 Changelog

compare changes

🚀 Enhancements

  • Pass nuxt instance to getCachedData (#1156)
  • Port upstream useLazyFetch (#1137)
  • Add option not to use @vitejs/plugin-legacy (#1164)
  • Support async transform in useAsyncData (#1173)
  • Add opts param to useRequestURL (#1182)

🔥 Performance

  • Unsubscribe from watch when scope is disposed (#1172)
  • nuxt: Unsubscribe from asyncData watch when unmounting (#1185)

🩹 Fixes

  • Handle failure creating BroadcastChannel (#1155)
  • Watch custom cookieRef values deeply (#1162)
  • Use route and from in beforeEach (#1166)

📖 Documentation

  • Add deprecated to pending (#1184)

🏡 Chore

  • Remove base prepack script (aafa250)

✅ Tests

  • Unbreak test:fixtures:webpack (f0b2ea4)

🤖 CI

  • Enable browser option (#1141)

❤️ Contributors

v3.1.0

05 Mar 13:12
1c760de
Compare
Choose a tag to compare

👉 Changelog

compare changes

🚀 Enhancements

  • Port upstream dedupe options (#1082)
  • Add useRequestURL to match upstream (#1110)
  • Add esbuild option for webpack + typescript (#1065)

🩹 Fixes

  • Change isTSX option to opt-in (#1064)
  • Resolve hookable to installed version (#1086)
  • Update return for useRequestEvent to include undefined (#1089)
  • Prevent duplicate manifest generation (#1070)
  • Support script setup and script together in webpack (#1104)
  • Ignore CallExpression other than defineComponent (#1109)
  • Early return from transform when no arguments (#1124)
  • Align error param in showError/createError with H3 (#1127)

🏡 Chore

  • Use workspace version of bridge-schema (#1068)
  • Add release script (cffcd07)
  • Mention contributors in release changelog/notes (977d55f)

❤️ Contributors

v3.0.0

12 Jan 14:21
72fdd5b
Compare
Choose a tag to compare

👀 Highlights

It gives us very great pleasure to announce the stable release of Nuxt Bridge, thanks to incredible work from the broader team and community.

Nuxt Bridge is a forward-compatibility layer that allows you to experience many of the new Nuxt 3 features by simply installing and enabling a Nuxt module. Its aim s to help reduce the differences with Nuxt 3 and reduce the burden of migration to Nuxt 3.

Using Nuxt Bridge, you can make sure your project is (almost) ready for Nuxt 3 and you can gradually proceed with the transition to Nuxt 3.

🌱 Note: If you're starting a fresh Nuxt project, please skip this module and directly go to the Nuxt 3 Installation.

📖 For more about how to migrate to Nuxt Bridge in a Nuxt 2 app, see the documentation.

👉 Changelog

compare changes

🚀 Enhancements

  • Support build:manifest hook for webpack (#1015)

🩹 Fixes

  • Typing legacy capi defineComponent (#994)
  • Polyfill event for useRequestEvent when nitro is disabled (#999)
  • Make errors returned by useLazyAsync reactive (#1004)
  • Type correction for loading, loadingIndicator, transpile (#1023)
  • Add compatibility with hable (#1025)
  • Allow passing options to vueApp.use (#1037)
  • Allow jsx/tsx with webpack (#1046)
  • Clone cookie to detect changes within object (#1044)
  • Inject head into template in spa renderer (#1052)

🤖 CI

  • Don't skip release based on body of commit (#996)
  • Add label option (#1009)
  • Allow notification of upstream changes (#1013)
  • Fix client_payload key (#1022)
  • Update changelog with non prerelease version 🙌 (#1043)
  • Rework test matrix (#912)

❤️ Contributors

v3.0.0-rc.4

30 Nov 10:43
14a9143
Compare
Choose a tag to compare
v3.0.0-rc.4 Pre-release
Pre-release

3.0.0-rc.4 is the next release candidate.

👀 Highlights

RC4 comes with some breaking changes to align with upstream Nuxt 3, particularly to useLazyAsyncData and useCookie.

We have also now updated to Vite 5, which might be a significant change for some Nuxt modules.

👉 Changelog

compare changes

🚀 Enhancements

  • imports:context hook for unimport context (#983)
  • ⚠️ Port upstream useLazyAsyncData (#975)
  • ⚠️ Port upstream useCookie (#988)

🔥 Performance

  • Use granular imports for auto-importing composables (#964)

🩹 Fixes

  • Handle null init in page meta plugin (#963)
  • Do not inject #head auto imports when meta: false (#976)

💅 Refactors

  • Relocate group of functions for clarity (#965)

📦 Build

  • Import version from @nuxt/bridge not workspace root (2e0b043)

🤖 CI

⚠️ Breaking Changes

  • ⚠️ Port upstream useLazyAsyncData (#975)
  • ⚠️ Port upstream useCookie (#988)

❤️ Contributors

v3.0.0-rc.3

07 Nov 16:53
Compare
Choose a tag to compare
v3.0.0-rc.3 Pre-release
Pre-release

👉 Changelog

compare changes

🩹 Fixes

  • Avoid using shared global state for head (#916)
  • Allow use with script tag (#956)
  • Proper runtimeConfig and publicRuntimeConfig declaration (#950)

❤️ Contributors

v3.0.0-rc.2

28 Oct 06:56
ff6077a
Compare
Choose a tag to compare
v3.0.0-rc.2 Pre-release
Pre-release

👉 Changelog

compare changes

🚀 Enhancements

  • Add support for definePageMeta (#933)
  • Add support for global middleware (#938)

🩹 Fixes

  • Access $store from nuxt2Context (#930)

🏡 Chore

🤖 CI

  • Add workflow to automatically create release PR (#941)
  • Run workflows on node 18 (41f4fbe)
  • Use main branch for prs (97ee06e)
  • Use nuxt (4c5a05a)

❤️ Contributors

v3.0.0-rc.1

02 Oct 19:44
8fa71e1
Compare
Choose a tag to compare
v3.0.0-rc.1 Pre-release
Pre-release

v3.0.0-rc.1

Bridge is a forward-compatibility layer that allows you to experience many of the new Nuxt 3 features by simply installing and enabling a Nuxt module.

Using Nuxt Bridge, you can make sure your project is (almost) ready for Nuxt 3 and have the best developer experience without needing a major rewrite or risk breaking changes.

⚠️ Note: Nuxt Bridge provides identical features to Nuxt 3 (Nuxt 3 docs) but there are some limitations.

🏛️ Background

Since we first introduced Nuxt Bridge, it's been a long process, with considerable instability as we've backported features from Nuxt 3 and released each commit via the edge channel.

At this point, we're excited to announce the release of Nuxt Bridge v3.0.0-rc.1, which marks a significant milestone in the development of Nuxt 3. With this release, we've ironed out many of the remaining issues and have made significant progress in bringing Nuxt 3 features to Nuxt Bridge. Some of the notable improvements in this release include better TypeScript support, improved performance (particularly with Nitro and Vite integrations), and enhanced stability.

🚧 Roadmap

Moving to RC status is the first step in adopting a more stable release schedule, meaning regular releases with a stable upgrade path.

We plan to continue working on Nuxt Bridge to ensure basic feature parity with Nuxt 3 as part of our plan to help users migrate from Nuxt 2 to Nuxt 3, as well as working on documentation and tooling to help users migrate from Bridge to Nuxt 3.

🚨 Nuxt 2 EOL

Finally, in view of the delay in Bridge release, we will be extending the Nuxt 2 EOL date to June 30, 2024.

❤️ Thank you

This first release candidate is thanks to the hard work of many users, both in raising issues and putting the time in to triage and submit pull requests.

👉 Changelog

🚀 Enhancements

  • Nuxt bridge (#459)
  • bridge: Enable composition-api (#551)
  • bridge: Add useNuxtApp and defineNuxtPlugin composables (#576)
  • bridge: Add support for legacy composition api helpers (#584)
  • bridge: Better resolution within wp4 (with fallback) (#608)
  • bridge, nuxt3: Expose equivalent useRoute and useRouter com… (#615)
  • Use native esm for all packages (#539)
  • bridge: Enable automatic global imports for nuxt2 (#609)
  • kit, bridge: Version constraint utils and checks (#442)
  • nuxt3, bridge: UseRuntimeConfig (#625)
  • Export defineNuxtConfig from nuxt3 and @nuxt/bridge (#669)
  • bridge: Use useMeta in bridge projects (#664)
  • bridge: Add support for <script setup> (#678)
  • nitro: Automatically type middleware/api routes (#708)
  • useState composable (#719)
  • nuxt3: useFetch (#721)
  • bridge: Init function for useState (#773)
  • auto-imports: Allow extending with config and hooks (#1167)
  • ⚠️ Add engines.node field and node.js version check (#1197)
  • nitro: Update dependencies for node-fetch 3.x support (#1373)
  • Define nitro #storage and #assets types (#1377)
  • bridge: Allow accessing injections from useNuxtApp (#1623)
  • bridge: Add useNuxt2Meta() composable (#1789)
  • bridge, nuxt3: Mock vue-demi (#1849)
  • nuxt3, bridge: Add lazy helpers (useLazyAsyncData and useLazyFetch) (#1861)
  • nuxt3, bridge: useCookie universal composable (#2085)
  • bridge: Generate components declarations (#2174)
  • bridge: Allow user-defined scriptSetup options (#2185)
  • deps: Update all non-major dependencies (#2252)
  • nuxt: Add wrapped useRoute and useRouter composables (#2406)
  • nuxt3, bridge: useReqHeaders composable (#2173)
  • kit, schema: ⚠️ Finalize nuxt 3 module spec and utils (#2275)
  • nuxt3, bridge: Add vue:setup hook (#2408)
  • bridge: Upgrade unplugin-vue2-script-setup (#2687)
  • Improve base url options (#2655)
  • kit: ⚠️ Expose resolvePath (#3110)
  • nuxt3,bridge: Add automatic schema augmentation declaration (#3096)
  • bridge: Add support for useNuxt2Meta in plugins (#3187)
  • bridge: Support addRouteMiddleware, navigateTo and abortNavigation (#3193)
  • Shared logger and silent test logs (#3259)
  • nuxt3: Expose /app export paths (#3323)
  • nuxt3: Add universal routing utilities (#3274)
  • bridge: Auto-inject based on provide key from plugins (#3536)
  • nuxt3: Auto generate runtime config type declarations (#3573)
  • nitro, nuxt3: Allow handling otherwise unhandled runtime errors (#3464)
  • router: Add proper server side redirection to navigateTo (#3684)
  • nuxt3: useFetch with dynamic reactive request (#3731)
  • refreshNuxtData function and app:data:refresh hook (#3929)
  • vite: Upgrade to vite 2.9.0 (#3974)
  • ⚠️ Migrate to nitropack (#3956)
  • ⚠️ Use vue 2.7 to provide composition api (#378)
  • ⚠️ Upgrade to vue-bundle-renderer 0.4 (#476)
  • ⚠️ Use native vue-router composables (#533)
  • Use new nitropack render response (#548)
  • ⚠️ Migrate to vite 3 (#480)
  • ⚠️ Upgrade to new major nitropack/h3 (#589)
  • Add ssr routeRule (#593)
  • Add error composables from nuxt 3 (#588)
  • ⚠️ Upgrade to stable nuxt and server dependencies (#648)
  • Backport navigateTo updates from v3 (#666)
  • Upgrade core nuxt dependencies to v3.3.2 (#719)
  • deps: Update dependency vite to v4 (#724)
  • Update error handler to latest upstream version (#761)
  • Allow setting a global errorHandler (#783)
  • Port upstream vite-node dev server implementation (#779)
  • Replace @vueuse/head with @unhead/vue (#804)
  • Generate middleware types (#796)
  • Add addRouteMiddleware test (#827)
  • Generate tsconfig.json when not using nuxt/cli (#889)

🔥 Performance

  • bridge: Allow skipping legacy composition api support (#2388)
  • ssr: Disable vite's pre-trasnfroming to improve perf (#2574)

🩹 Fixes

  • bridge: Set webpack as implicit external (62a11d0)
  • bridge: Generate dist/runtime (901896d)
  • bridge: Handle ssr: false (#489)
  • bridge: Add implicit dependencies (f38267b)
  • bridge: Downgrade estree-walker dependency (#600)
  • bridge: Add additional vue composition-api resolutions (#614)
  • bridge: Import nuxt3 src from relative path (806169d)
  • Add main entrypoints for packages (#629)
  • bridge: Resolve browser condition above main for client (#641)
  • bridge: Emit types for module (#660)
  • bridge: Do...
Read more