Skip to content

chore(changesets): bump package version#30

Merged
lukemorales merged 1 commit intomainfrom
changeset-release/main
Jun 24, 2025
Merged

chore(changesets): bump package version#30
lukemorales merged 1 commit intomainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

next-safe-navigation@0.4.0

Minor Changes

  • #29 cb2c4be Thanks @mikerudge! - ### Standard Schema Support

    This release introduces support for Standard Schema, allowing you to use your favorite validation library for defining route params and search query schemas.

    Previously, next-safe-navigation was tightly coupled with zod. Now, you can use any standard-schema compatible library, such as valibot, arktype, and others, while zod continues to be supported out-of-the-box.

    For existing users, your zod schemas will continue to work without any changes.

    For new users or those wishing to switch, you can now use other libraries. For example, using valibot:

    // src/shared/navigation.ts
    import { createNavigationConfig } from "next-safe-navigation";
    import * as v from "valibot";
    
    export const { routes, useSafeParams, useSafeSearchParams } =
      createNavigationConfig((defineRoute) => ({
        customers: defineRoute("/customers", {
          search: v.object({
            query: v.optional(v.string(), ""),
            page: v.optional(v.pipe(v.string(), v.transform(Number)), 1),
          }),
        }),
        // ...
      }));

@lukemorales lukemorales merged commit 8adf803 into main Jun 24, 2025
@lukemorales lukemorales deleted the changeset-release/main branch June 24, 2025 16:07
Sign up for free to 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