Skip to content

v1.0.0

Choose a tag to compare

@Tymek Tymek released this 10 May 09:14
· 75 commits to main since this release
ebb59d0

BREAKING CHANGES

Client-side components and hooks are no longer available from @unleash/nextjs

The default exports of @unleash/nextjs no longer include client-side components. The exports have been moved to @unleash/nextjs/client instead. This change was done to make the package work better with Next.js's new app router. Refer to Next.js's documentation on third-party packages for more information.

In specific, these components and hooks are affected:

  • FlagProvider
  • useFlag
  • useVariant
  • useFlags
  • useFlagsStatus

If you import these from @unleash/nextjs in your code, you will need to change the import declarations as shown here:

// pre v1.0.0. This won't work anymore.
import { FlagProvider, useFlag } from `@unleash/nextjs`

// v1.0.0. Import client-side components from @unleash/nextjs/client
import { FlagProvider, useFlag } from `@unleash/nextjs/client`

Other updates

  • Middleware and App Router examples
  • Added tests for compatibility with Unleash Client Specification
  • Added compatibility GitLab authentication impementation relying on instanceId
  • Updated all dependencies to latest versions

Detailed changelog

New Contributors

Full Changelog: v0.1.2...v1.0.0