create-ej-app 14.0.0 → 15.0.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,6 +1,6 @@
1
1
  {
2
2
  "name": "create-ej-app",
3
- "version": "14.0.0",
3
+ "version": "15.0.0",
4
4
  "description": "Bootstrap a next.js app with my preferred setup",
5
5
  "main": "cli.js",
6
6
  "scripts": {
@@ -30,12 +30,12 @@
30
30
  },
31
31
  "homepage": "https://github.com/ejekanshjain/create-ej-app#readme",
32
32
  "dependencies": {
33
- "commander": "^14.0.2",
33
+ "commander": "^14.0.3",
34
34
  "copy-dir": "^1.3.0",
35
35
  "enquirer": "^2.4.1"
36
36
  },
37
37
  "devDependencies": {
38
- "@types/node": "^25.0.3",
38
+ "@types/node": "^25.2.3",
39
39
  "typescript": "^5.9.3"
40
40
  }
41
41
  }
@@ -17,47 +17,47 @@
17
17
  "gen:auth": "bunx @better-auth/cli generate"
18
18
  },
19
19
  "dependencies": {
20
+ "@ejekanshjain/simple-email-validator": "1.0.2",
20
21
  "@hookform/resolvers": "5.2.2",
21
- "@next/third-parties": "16.1.1",
22
- "@paralleldrive/cuid2": "3.0.6",
22
+ "@next/third-parties": "16.1.6",
23
+ "@paralleldrive/cuid2": "3.3.0",
23
24
  "@radix-ui/react-label": "2.1.8",
24
25
  "@radix-ui/react-separator": "1.1.8",
25
26
  "@radix-ui/react-slot": "1.2.4",
26
27
  "@t3-oss/env-nextjs": "0.13.10",
27
- "@tanstack/react-query": "5.90.16",
28
- "better-auth": "1.4.10",
28
+ "@tanstack/react-query": "5.90.21",
29
+ "better-auth": "1.4.18",
29
30
  "class-variance-authority": "0.7.1",
30
31
  "clsx": "2.1.1",
31
32
  "drizzle-orm": "0.45.1",
32
- "fakefilter": "0.1.1401",
33
- "lucide-react": "0.562.0",
34
- "next": "16.1.1",
33
+ "lucide-react": "0.563.0",
34
+ "next": "16.1.6",
35
35
  "next-safe-action": "8.0.11",
36
36
  "next-themes": "0.4.6",
37
37
  "nextjs-toploader": "3.9.17",
38
- "nodemailer": "7.0.12",
38
+ "nodemailer": "8.0.1",
39
39
  "postgres": "3.4.8",
40
- "react": "19.2.3",
41
- "react-dom": "19.2.3",
42
- "react-hook-form": "7.70.0",
40
+ "react": "19.2.4",
41
+ "react-dom": "19.2.4",
42
+ "react-hook-form": "7.71.1",
43
43
  "sonner": "2.0.7",
44
44
  "tailwind-merge": "3.4.0",
45
45
  "tw-animate-css": "1.4.0",
46
- "workflow": "4.0.1-beta.42",
47
- "zod": "4.3.5"
46
+ "workflow": "4.1.0-beta.55",
47
+ "zod": "4.3.6"
48
48
  },
49
49
  "devDependencies": {
50
- "@next/bundle-analyzer": "16.1.1",
50
+ "@next/bundle-analyzer": "16.1.6",
51
51
  "@tailwindcss/postcss": "4.1.18",
52
- "@types/bun": "1.3.5",
53
- "@types/nodemailer": "7.0.4",
54
- "@types/react": "19.2.7",
52
+ "@types/bun": "1.3.9",
53
+ "@types/nodemailer": "7.0.9",
54
+ "@types/react": "19.2.14",
55
55
  "@types/react-dom": "19.2.3",
56
56
  "babel-plugin-react-compiler": "1.0.0",
57
- "drizzle-kit": "0.31.8",
57
+ "drizzle-kit": "0.31.9",
58
58
  "eslint": "9.39.2",
59
- "eslint-config-next": "16.1.1",
60
- "prettier": "3.7.4",
59
+ "eslint-config-next": "16.1.6",
60
+ "prettier": "3.8.1",
61
61
  "prettier-plugin-organize-imports": "4.3.0",
62
62
  "prettier-plugin-tailwindcss": "0.7.2",
63
63
  "tailwindcss": "4.1.18",
@@ -1,3 +1,4 @@
1
+ import { validateEmail } from '@ejekanshjain/simple-email-validator'
1
2
  import { createId } from '@paralleldrive/cuid2'
2
3
  import { APIError, betterAuth } from 'better-auth'
3
4
  import { drizzleAdapter } from 'better-auth/adapters/drizzle'
@@ -7,7 +8,6 @@ import {
7
8
  lastLoginMethod,
8
9
  magicLink
9
10
  } from 'better-auth/plugins'
10
- import { isFakeEmail } from 'fakefilter'
11
11
  import { headers } from 'next/headers'
12
12
  import { cache } from 'react'
13
13
  import { db } from '~/db'
@@ -68,12 +68,21 @@ export const auth = betterAuth({
68
68
  before: createAuthMiddleware(async ctx => {
69
69
  if (
70
70
  ctx.path === '/sign-in/magic-link' &&
71
- ctx.body?.email &&
72
- isFakeEmail(ctx.body.email)
71
+ ctx.body?.email
73
72
  ) {
74
- throw new APIError('BAD_REQUEST', {
75
- message: 'Please use a valid email address.'
76
- })
73
+ try {
74
+ const validation = await validateEmail({
75
+ email: ctx.body.email
76
+ })
77
+
78
+ if (validation.isValid === false) {
79
+ throw new APIError('BAD_REQUEST', {
80
+ message: 'Please use a valid email address.'
81
+ })
82
+ }
83
+ } catch (err) {
84
+ console.error('Email validation failed', err)
85
+ }
77
86
  }
78
87
  })
79
88
  }