Skip to content

v8.0.13

Compare
Choose a tag to compare
@github-actions github-actions released this 24 Feb 11:57
ed037ab

Overview

We are excited to announce the release of @frontegg/nextjs version 8.0.13. This version introduces critical updates designed to enhance the performance and modularity of the package for developers integrating Frontegg with Next.js applications.

Key Changes and Migration Guide

Middleware Export Modification (FR-15208)

Change Description:

  • Middleware Export Removed from Default Index.js: To improve the separation of front-end and back-end code, we have removed the middleware export from the default index.js.

  • New Import Path for Frontegg API Middleware: The Frontegg API middleware is now explicitly imported from @frontegg/nextjs/middleware. This adjustment prevents Node.js dependencies from being loaded into client-side code, leading to better performance and smaller bundle sizes.

  • Update Middleware Imports: Replace any imports of Frontegg middleware from the default package export with the new path.
    Change:

    import { FronteggApiMiddleware } from '@frontegg/nextjs';

    To:

    import { FronteggApiMiddleware } from '@frontegg/nextjs/middleware';

    This change needs to be applied wherever the middleware is being imported in your project.

Additional Updates

  • Sample Repository Creation (FR-15157): We've also introduced a sample repository featuring a quick deployment flow, detailed in the README file, to assist developers in swiftly integrating and utilizing @frontegg/nextjs.