next-sanctum 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,9 +2,10 @@
2
2
 
3
3
  [![CI](https://github.com/aliziodev/next-sanctum/actions/workflows/ci.yml/badge.svg)](https://github.com/aliziodev/next-sanctum/actions/workflows/ci.yml)
4
4
  [![npm version](https://img.shields.io/npm/v/next-sanctum.svg)](https://www.npmjs.com/package/next-sanctum)
5
- [![npm downloads](https://img.shields.io/npm/dm/next-sanctum.svg)](https://www.npmjs.com/package/next-sanctum)
6
- [![minzipped size](https://img.shields.io/bundlephobia/minzip/next-sanctum)](https://bundlephobia.com/package/next-sanctum)
7
- [![license](https://img.shields.io/npm/l/next-sanctum.svg)](https://github.com/aliziodev/next-sanctum/blob/main/LICENSE)
5
+ [![npm downloads](https://img.shields.io/npm/dm/next-sanctum.svg)](https://npm-stat.com/charts.html?package=next-sanctum)
6
+ [![install size](https://img.shields.io/badge/dynamic/json?url=https://packagephobia.com/v2/api.json?p=next-sanctum&query=$.install.pretty&label=install%20size)](https://packagephobia.now.sh/result?p=next-sanctum)
7
+ [![npm bundle size](https://img.shields.io/bundlephobia/minzip/next-sanctum)](https://bundlephobia.com/package/next-sanctum@latest)
8
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/aliziodev/next-sanctum/blob/main/LICENSE)
8
9
 
9
10
  A complete **Laravel (Fortify + Sanctum)** authentication client for the **Next.js** App Router.
10
11
  Cookie/CSRF SPA + token/Bearer modes, SSR & CSR, route protection via `proxy.ts`, **2FA**,
@@ -14,7 +15,7 @@ Cookie/CSRF SPA + token/Bearer modes, SSR & CSR, route protection via `proxy.ts`
14
15
  - ✅ SSR (Server Component, Route Handler, Server Action) + Client hooks
15
16
  - ✅ Authenticated data fetching — reads (`useApi`), mutations (`useClient`), server (`serverFetch`)
16
17
  - ✅ Full Fortify flows · 2FA TOTP · Passkeys (interop with `@laravel/passkeys`)
17
- - ✅ TypeScript-first, dual ESM/CJS, tree-shakeable, **zero runtime deps** (~10 kB gzip)
18
+ - ✅ TypeScript-first, dual ESM/CJS, tree-shakeable, **zero runtime deps** (~6 kB gzip)
18
19
 
19
20
  > Compatible with **Next.js 15/16**, **React 18/19**, **Node 18.18+**.
20
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-sanctum",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "aliziodev",