@aura-stack/next 0.2.1 → 0.3.0

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.
package/package.json CHANGED
@@ -1,17 +1,76 @@
1
1
  {
2
2
  "name": "@aura-stack/next",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Authentication integration for Next.js applications. Supports App Router, Server Components, Route Handlers and client-side authentication powered by Aura Auth.",
7
+ "homepage": "https://aura-stack-auth.vercel.app",
8
+ "bugs": {
9
+ "url": "https://github.com/aura-stack-ts/auth/issues",
10
+ "email": "aurastackjs@gmail.com"
11
+ },
12
+ "license": "MIT",
13
+ "author": "Aura Stack <aurastackjs@gmail.com> | Hernan Alvarado <halvaradop.dev@gmail.com>",
7
14
  "repository": {
8
15
  "type": "git",
9
16
  "url": "git+https://github.com/aura-stack-ts/auth"
10
17
  },
18
+ "funding": {
19
+ "type": "github",
20
+ "url": "https://github.com/sponsors/halvaradop"
21
+ },
22
+ "publishConfig": {
23
+ "access": "public",
24
+ "registry": "https://registry.npmjs.org/"
25
+ },
11
26
  "sideEffects": false,
12
27
  "files": [
13
28
  "dist"
14
29
  ],
30
+ "keywords": [
31
+ "auth",
32
+ "oauth",
33
+ "oauth2",
34
+ "security",
35
+ "session",
36
+ "authentication",
37
+ "authorization",
38
+ "nextjs",
39
+ "next.js",
40
+ "server components",
41
+ "client components",
42
+ "server actions",
43
+ "server-side rendering",
44
+ "client-side rendering",
45
+ "react",
46
+ "typescript",
47
+ "javascript",
48
+ "web-api",
49
+ "aura-stack",
50
+ "aura-stack-ts",
51
+ "aura stack",
52
+ "aura stack ts"
53
+ ],
54
+ "dependencies": {
55
+ "@aura-stack/react": "0.3.0"
56
+ },
57
+ "devDependencies": {
58
+ "@testing-library/dom": "^10.4.1",
59
+ "@testing-library/react": "^16.3.2",
60
+ "@types/react": "^19.2.7",
61
+ "@types/react-dom": "^19.2.3",
62
+ "next": "^16.2.6",
63
+ "node-mocks-http": "^1.17.2",
64
+ "react": "^19.2.3",
65
+ "react-dom": "^19.2.3",
66
+ "@aura-stack/tsdown-config": "0.0.0",
67
+ "@aura-stack/tsconfig": "0.0.0"
68
+ },
69
+ "peerDependencies": {
70
+ "next": ">=16.0.0",
71
+ "react": ">=19.0.0",
72
+ "react-dom": ">=19.0.0"
73
+ },
15
74
  "exports": {
16
75
  ".": {
17
76
  "types": "./dist/index.d.ts",
@@ -39,9 +98,14 @@
39
98
  "require": "./dist/oauth/*.cjs"
40
99
  },
41
100
  "./identity": {
42
- "types": "./dist/_core/identity.d.ts",
43
- "import": "./dist/_core/identity.js",
44
- "require": "./dist/_core/identity.cjs"
101
+ "types": "./dist/identity/index.d.ts",
102
+ "import": "./dist/identity/index.js",
103
+ "require": "./dist/identity/index.cjs"
104
+ },
105
+ "./identity/*": {
106
+ "types": "./dist/identity/*.d.ts",
107
+ "import": "./dist/identity/*.js",
108
+ "require": "./dist/identity/*.cjs"
45
109
  },
46
110
  "./crypto": {
47
111
  "types": "./dist/_core/crypto.d.ts",
@@ -75,56 +139,6 @@
75
139
  },
76
140
  "./types": "./dist/@types/index.d.ts"
77
141
  },
78
- "keywords": [
79
- "auth",
80
- "oauth",
81
- "oauth2",
82
- "security",
83
- "session",
84
- "authentication",
85
- "authorization",
86
- "nextjs",
87
- "next.js",
88
- "server components",
89
- "client components",
90
- "server actions",
91
- "server-side rendering",
92
- "client-side rendering",
93
- "react",
94
- "typescript",
95
- "javascript",
96
- "web-api",
97
- "aura-stack",
98
- "aura-stack-ts",
99
- "aura auth",
100
- "aura-auth"
101
- ],
102
- "author": "Aura Stack <aurastackjs@gmail.com> | Hernan Alvarado <halvaradop.dev@gmail.com>",
103
- "homepage": "https://aura-stack-auth.vercel.app",
104
- "bugs": {
105
- "url": "https://github.com/aura-stack-ts/auth/issues"
106
- },
107
- "license": "MIT",
108
- "dependencies": {
109
- "@aura-stack/react": "0.2.1"
110
- },
111
- "devDependencies": {
112
- "@testing-library/dom": "^10.4.1",
113
- "@testing-library/react": "^16.3.2",
114
- "@types/react": "^19.2.7",
115
- "@types/react-dom": "^19.2.3",
116
- "next": "^16.2.6",
117
- "node-mocks-http": "^1.17.2",
118
- "react": "^19.2.3",
119
- "react-dom": "^19.2.3",
120
- "@aura-stack/tsdown-config": "0.0.0",
121
- "@aura-stack/tsconfig": "0.0.0"
122
- },
123
- "peerDependencies": {
124
- "next": ">=16.0.0",
125
- "react": ">=19.0.0",
126
- "react-dom": ">=19.0.0"
127
- },
128
142
  "scripts": {
129
143
  "dev": "tsdown --watch",
130
144
  "build": "pnpm sync:modules && tsdown",
@@ -1 +0,0 @@
1
- var e=require(`@aura-stack/react/identity`);Object.keys(e).forEach(function(t){t!==`default`&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:function(){return e[t]}})});
@@ -1 +0,0 @@
1
- export * from "@aura-stack/react/identity";
@@ -1 +0,0 @@
1
- export*from"@aura-stack/react/identity";export{};
@@ -1,45 +0,0 @@
1
- import { n as __exportAll, r as __reExport, t as core_d_exports } from "./core-BDwHYePg.js";
2
- import { Prettify, SignInAPIOptions, SignInAPIReturn, SignInCredentialsAPIOptions, SignInCredentialsAPIReturn, SignOutAPIOptions, SignOutAPIReturn, UpdateSessionAPIOptions, UpdateSessionAPIReturn, User } from "@aura-stack/react/types";
3
-
4
- //#region src/@types/api.d.ts
5
- /**
6
- * Return type for the Next.js server `api.signIn` helper (see `packages/next/src/lib/api.ts`).
7
- * When `Options` includes `redirect: true`, the helper calls `redirect()` and the type is `never` because execution does not continue.
8
- */
9
- type NextSignInReturn<Options extends SignInAPIOptions> = Options extends {
10
- redirect: true;
11
- } ? never : Options extends {
12
- redirectTo: string;
13
- } ? never : SignInAPIReturn;
14
- /**
15
- * Return type for the Next.js server `api.signInCredentials` helper.
16
- * Same `never` rule as {@link NextSignInReturn} when a server redirect is triggered via options.
17
- */
18
- type NextSignInCredentials<Options extends SignInCredentialsAPIOptions> = Options extends {
19
- redirect: true;
20
- } ? never : Options extends {
21
- redirectTo: string;
22
- } ? never : SignInCredentialsAPIReturn;
23
- type NextUpdateSessionOptions<DefaultUser extends User = User> = Prettify<Omit<UpdateSessionAPIOptions<DefaultUser>, "headers"> & {
24
- headers?: HeadersInit;
25
- }>;
26
- /**
27
- * Return type for the Next.js server `api.updateSession` helper.
28
- */
29
- type NextUpdateSessionReturn<Options extends NextUpdateSessionOptions<DefaultUser>, DefaultUser extends User = User> = Options extends {
30
- redirect: true;
31
- } ? never : Options extends {
32
- redirectTo: string;
33
- } ? never : UpdateSessionAPIReturn<DefaultUser>;
34
- /**
35
- * Return type for the Next.js server `api.signOut` helper.
36
- * When `Options` includes a `redirectTo` string and the core API performs a redirect response, Next’s `redirect()` is invoked and the type is `never`.
37
- */
38
- type NextSignOutReturn<Options extends SignOutAPIOptions> = Options extends {
39
- redirectTo: string;
40
- } ? never : SignOutAPIReturn;
41
- declare namespace index_d_exports {
42
- export { NextSignInCredentials, NextSignInReturn, NextSignOutReturn, NextUpdateSessionOptions, NextUpdateSessionReturn };
43
- }
44
- //#endregion
45
- export { NextUpdateSessionReturn as a, NextUpdateSessionOptions as i, NextSignInReturn as n, NextSignOutReturn as r, NextSignInCredentials as t };