@batijs/features 0.0.644 → 0.0.647
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.
|
@@ -197,6 +197,23 @@ const features = [
|
|
|
197
197
|
href: "https://authjs.dev/reference/core/providers/auth0"
|
|
198
198
|
}]
|
|
199
199
|
},
|
|
200
|
+
{
|
|
201
|
+
category: "Auth",
|
|
202
|
+
label: "Better Auth",
|
|
203
|
+
flag: "better-auth",
|
|
204
|
+
image: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZD0iTTEyIDEgMyA1djZjMCA1LjU1IDMuODQgMTAuNzQgOSAxMiA1LjE2LTEuMjYgOS02LjQ1IDktMTJWNWwtOS00Wm0wIDRhMyAzIDAgMCAxIDMgMyAzIDMgMCAwIDEtMS41IDIuNlYxM2ExLjUgMS41IDAgMCAxLTMgMHYtMi40QTMgMyAwIDAgMSA5IDhhMyAzIDAgMCAxIDMtM1oiLz48L3N2Zz4=",
|
|
205
|
+
url: "https://better-auth.com",
|
|
206
|
+
spectrum: "bleeding_edge",
|
|
207
|
+
tagline: "The most comprehensive authentication framework for TypeScript",
|
|
208
|
+
repo: "better-auth/better-auth",
|
|
209
|
+
links: [{
|
|
210
|
+
label: "Getting started",
|
|
211
|
+
href: "https://better-auth.com/docs/installation"
|
|
212
|
+
}, {
|
|
213
|
+
label: "Docs",
|
|
214
|
+
href: "https://better-auth.com/docs"
|
|
215
|
+
}]
|
|
216
|
+
},
|
|
200
217
|
{
|
|
201
218
|
category: "Data fetching",
|
|
202
219
|
label: "Telefunc",
|
|
@@ -249,6 +249,22 @@ declare const features: readonly [{
|
|
|
249
249
|
readonly label: "Auth.js auth0 provider doc";
|
|
250
250
|
readonly href: "https://authjs.dev/reference/core/providers/auth0";
|
|
251
251
|
}];
|
|
252
|
+
}, {
|
|
253
|
+
readonly category: "Auth";
|
|
254
|
+
readonly label: "Better Auth";
|
|
255
|
+
readonly flag: "better-auth";
|
|
256
|
+
readonly image: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZD0iTTEyIDEgMyA1djZjMCA1LjU1IDMuODQgMTAuNzQgOSAxMiA1LjE2LTEuMjYgOS02LjQ1IDktMTJWNWwtOS00Wm0wIDRhMyAzIDAgMCAxIDMgMyAzIDMgMCAwIDEtMS41IDIuNlYxM2ExLjUgMS41IDAgMCAxLTMgMHYtMi40QTMgMyAwIDAgMSA5IDhhMyAzIDAgMCAxIDMtM1oiLz48L3N2Zz4=";
|
|
257
|
+
readonly url: "https://better-auth.com";
|
|
258
|
+
readonly spectrum: "bleeding_edge";
|
|
259
|
+
readonly tagline: "The most comprehensive authentication framework for TypeScript";
|
|
260
|
+
readonly repo: "better-auth/better-auth";
|
|
261
|
+
readonly links: [{
|
|
262
|
+
readonly label: "Getting started";
|
|
263
|
+
readonly href: "https://better-auth.com/docs/installation";
|
|
264
|
+
}, {
|
|
265
|
+
readonly label: "Docs";
|
|
266
|
+
readonly href: "https://better-auth.com/docs";
|
|
267
|
+
}];
|
|
252
268
|
}, {
|
|
253
269
|
readonly category: "Data fetching";
|
|
254
270
|
readonly label: "Telefunc";
|
|
@@ -602,8 +618,8 @@ declare const features: readonly [{
|
|
|
602
618
|
readonly href: "https://storybook.js.org/docs";
|
|
603
619
|
}];
|
|
604
620
|
}];
|
|
605
|
-
declare const flags: ("vike" | "react" | "vue" | "solid" | "tailwindcss" | "compiled-css" | "daisyui" | "shadcn-ui" | "mantine" | "authjs" | "auth0" | "telefunc" | "trpc" | "ts-rest" | "hono" | "express" | "fastify" | "elysia" | "sqlite" | "postgres" | "drizzle" | "kysely" | "prisma" | "plausible.io" | "google-analytics" | "segment" | "hosting-diy" | "cloudflare" | "edgeone" | "vercel" | "netlify" | "aws" | "docker" | "dokploy" | "eslint" | "prettier" | "biome" | "oxlint" | "sentry" | "logrocket" | "storybook")[];
|
|
606
|
-
declare const cliFlags: ("vike" | "react" | "vue" | "solid" | "tailwindcss" | "compiled-css" | "daisyui" | "shadcn-ui" | "mantine" | "authjs" | "auth0" | "telefunc" | "trpc" | "ts-rest" | "hono" | "express" | "fastify" | "elysia" | "sqlite" | "postgres" | "drizzle" | "kysely" | "prisma" | "plausible.io" | "google-analytics" | "segment" | "hosting-diy" | "cloudflare" | "edgeone" | "vercel" | "netlify" | "aws" | "docker" | "dokploy" | "eslint" | "prettier" | "biome" | "oxlint" | "sentry" | "logrocket" | "storybook")[];
|
|
621
|
+
declare const flags: ("vike" | "react" | "vue" | "solid" | "tailwindcss" | "compiled-css" | "daisyui" | "shadcn-ui" | "mantine" | "authjs" | "auth0" | "better-auth" | "telefunc" | "trpc" | "ts-rest" | "hono" | "express" | "fastify" | "elysia" | "sqlite" | "postgres" | "drizzle" | "kysely" | "prisma" | "plausible.io" | "google-analytics" | "segment" | "hosting-diy" | "cloudflare" | "edgeone" | "vercel" | "netlify" | "aws" | "docker" | "dokploy" | "eslint" | "prettier" | "biome" | "oxlint" | "sentry" | "logrocket" | "storybook")[];
|
|
622
|
+
declare const cliFlags: ("vike" | "react" | "vue" | "solid" | "tailwindcss" | "compiled-css" | "daisyui" | "shadcn-ui" | "mantine" | "authjs" | "auth0" | "better-auth" | "telefunc" | "trpc" | "ts-rest" | "hono" | "express" | "fastify" | "elysia" | "sqlite" | "postgres" | "drizzle" | "kysely" | "prisma" | "plausible.io" | "google-analytics" | "segment" | "hosting-diy" | "cloudflare" | "edgeone" | "vercel" | "netlify" | "aws" | "docker" | "dokploy" | "eslint" | "prettier" | "biome" | "oxlint" | "sentry" | "logrocket" | "storybook")[];
|
|
607
623
|
type Flags = (typeof flags)[number];
|
|
608
624
|
//#endregion
|
|
609
625
|
export { CategoryLabels as a, flags as i, cliFlags as n, categories as o, features as r, categoriesGroups as s, Flags as t };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CategoryLabels, i as flags, n as cliFlags, o as categories, r as features, s as categoriesGroups, t as Flags } from "./features-
|
|
1
|
+
import { a as CategoryLabels, i as flags, n as cliFlags, o as categories, r as features, s as categoriesGroups, t as Flags } from "./features-CyJexGyM.js";
|
|
2
2
|
|
|
3
3
|
//#region src/types.d.ts
|
|
4
4
|
interface Feature<C = string> {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as features, r as flags, t as cliFlags } from "./features-
|
|
1
|
+
import { n as features, r as flags, t as cliFlags } from "./features-B9B1Gwx5.js";
|
|
2
2
|
//#region src/groups.ts
|
|
3
3
|
let categoriesGroups = /* @__PURE__ */ function(categoriesGroups) {
|
|
4
4
|
categoriesGroups["Frontend"] = "Frontend";
|
package/dist/rules.d.ts
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { a as CategoryLabels, t as Flags } from "./features-
|
|
1
|
+
import { a as CategoryLabels, t as Flags } from "./features-CyJexGyM.js";
|
|
2
2
|
|
|
3
3
|
//#region src/rules/enum.d.ts
|
|
4
4
|
declare enum RulesMessage {
|
|
5
5
|
ERROR_AUTH_R_SERVER = 0,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
6
|
+
ERROR_BETTER_AUTH_R_DATABASE = 1,
|
|
7
|
+
ERROR_COMPILED_R_REACT = 2,
|
|
8
|
+
ERROR_DRIZZLE_R_SERVER = 3,
|
|
9
|
+
ERROR_KYSELY_R_SERVER = 4,
|
|
10
|
+
ERROR_SQLITE_R_SERVER = 5,
|
|
11
|
+
ERROR_POSTGRES_R_SERVER = 6,
|
|
12
|
+
ERROR_POSTGRES_X_SQLITE = 7,
|
|
13
|
+
ERROR_ORM_R_DATABASE = 8,
|
|
14
|
+
ERROR_DATA_R_SERVER = 9,
|
|
15
|
+
ERROR_CLOUDFLARE_R_COMPAT_SERVER = 10,
|
|
16
|
+
ERROR_AWS_R_COMPAT_SERVER = 11,
|
|
17
|
+
ERROR_MANTINE_R_REACT = 12,
|
|
18
|
+
ERROR_SHADCN_R_REACT = 13,
|
|
19
|
+
WARN_SHADCN_R_TAILWINDCSS = 14,
|
|
20
|
+
INFO_STACKBLITZ_COMPAT = 15,
|
|
21
|
+
ERROR_STORYBOOK_R_UI_FRAMEWORK = 16
|
|
21
22
|
}
|
|
22
23
|
//#endregion
|
|
23
24
|
//#region src/rules/utils.d.ts
|
package/dist/rules.js
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { n as features, r as flags } from "./features-
|
|
1
|
+
import { n as features, r as flags } from "./features-B9B1Gwx5.js";
|
|
2
2
|
//#region src/rules/enum.ts
|
|
3
3
|
let RulesMessage = /* @__PURE__ */ function(RulesMessage) {
|
|
4
4
|
RulesMessage[RulesMessage["ERROR_AUTH_R_SERVER"] = 0] = "ERROR_AUTH_R_SERVER";
|
|
5
|
-
RulesMessage[RulesMessage["
|
|
6
|
-
RulesMessage[RulesMessage["
|
|
7
|
-
RulesMessage[RulesMessage["
|
|
8
|
-
RulesMessage[RulesMessage["
|
|
9
|
-
RulesMessage[RulesMessage["
|
|
10
|
-
RulesMessage[RulesMessage["
|
|
11
|
-
RulesMessage[RulesMessage["
|
|
12
|
-
RulesMessage[RulesMessage["
|
|
13
|
-
RulesMessage[RulesMessage["
|
|
14
|
-
RulesMessage[RulesMessage["
|
|
15
|
-
RulesMessage[RulesMessage["
|
|
16
|
-
RulesMessage[RulesMessage["
|
|
17
|
-
RulesMessage[RulesMessage["
|
|
18
|
-
RulesMessage[RulesMessage["
|
|
19
|
-
RulesMessage[RulesMessage["
|
|
5
|
+
RulesMessage[RulesMessage["ERROR_BETTER_AUTH_R_DATABASE"] = 1] = "ERROR_BETTER_AUTH_R_DATABASE";
|
|
6
|
+
RulesMessage[RulesMessage["ERROR_COMPILED_R_REACT"] = 2] = "ERROR_COMPILED_R_REACT";
|
|
7
|
+
RulesMessage[RulesMessage["ERROR_DRIZZLE_R_SERVER"] = 3] = "ERROR_DRIZZLE_R_SERVER";
|
|
8
|
+
RulesMessage[RulesMessage["ERROR_KYSELY_R_SERVER"] = 4] = "ERROR_KYSELY_R_SERVER";
|
|
9
|
+
RulesMessage[RulesMessage["ERROR_SQLITE_R_SERVER"] = 5] = "ERROR_SQLITE_R_SERVER";
|
|
10
|
+
RulesMessage[RulesMessage["ERROR_POSTGRES_R_SERVER"] = 6] = "ERROR_POSTGRES_R_SERVER";
|
|
11
|
+
RulesMessage[RulesMessage["ERROR_POSTGRES_X_SQLITE"] = 7] = "ERROR_POSTGRES_X_SQLITE";
|
|
12
|
+
RulesMessage[RulesMessage["ERROR_ORM_R_DATABASE"] = 8] = "ERROR_ORM_R_DATABASE";
|
|
13
|
+
RulesMessage[RulesMessage["ERROR_DATA_R_SERVER"] = 9] = "ERROR_DATA_R_SERVER";
|
|
14
|
+
RulesMessage[RulesMessage["ERROR_CLOUDFLARE_R_COMPAT_SERVER"] = 10] = "ERROR_CLOUDFLARE_R_COMPAT_SERVER";
|
|
15
|
+
RulesMessage[RulesMessage["ERROR_AWS_R_COMPAT_SERVER"] = 11] = "ERROR_AWS_R_COMPAT_SERVER";
|
|
16
|
+
RulesMessage[RulesMessage["ERROR_MANTINE_R_REACT"] = 12] = "ERROR_MANTINE_R_REACT";
|
|
17
|
+
RulesMessage[RulesMessage["ERROR_SHADCN_R_REACT"] = 13] = "ERROR_SHADCN_R_REACT";
|
|
18
|
+
RulesMessage[RulesMessage["WARN_SHADCN_R_TAILWINDCSS"] = 14] = "WARN_SHADCN_R_TAILWINDCSS";
|
|
19
|
+
RulesMessage[RulesMessage["INFO_STACKBLITZ_COMPAT"] = 15] = "INFO_STACKBLITZ_COMPAT";
|
|
20
|
+
RulesMessage[RulesMessage["ERROR_STORYBOOK_R_UI_FRAMEWORK"] = 16] = "ERROR_STORYBOOK_R_UI_FRAMEWORK";
|
|
20
21
|
return RulesMessage;
|
|
21
22
|
}({});
|
|
22
23
|
//#endregion
|
|
@@ -56,46 +57,47 @@ function prepare(fts) {
|
|
|
56
57
|
//#region src/rules/rules.ts
|
|
57
58
|
var rules_default = [
|
|
58
59
|
requires(0, "Auth", ["Server"]),
|
|
59
|
-
requires(1, "
|
|
60
|
-
requires(2, "
|
|
61
|
-
requires(
|
|
62
|
-
requires(
|
|
63
|
-
requires(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
requires(
|
|
67
|
-
requires(
|
|
68
|
-
requires(8, "
|
|
69
|
-
|
|
60
|
+
requires(1, "better-auth", ["Database"]),
|
|
61
|
+
requires(2, "compiled-css", ["react"]),
|
|
62
|
+
requires(3, "drizzle", ["Server"]),
|
|
63
|
+
requires(5, "sqlite", ["Server"]),
|
|
64
|
+
requires(4, "kysely", ["Server"]),
|
|
65
|
+
requires(6, "postgres", ["Server"]),
|
|
66
|
+
exclusive(7, ["postgres", "sqlite"]),
|
|
67
|
+
requires(8, "drizzle", ["Database"]),
|
|
68
|
+
requires(8, "kysely", ["Database"]),
|
|
69
|
+
requires(8, "prisma", ["Database"]),
|
|
70
|
+
requires(9, "Data fetching", ["Server"]),
|
|
71
|
+
filter(10, (fts) => {
|
|
70
72
|
if (fts.has("cloudflare")) {
|
|
71
73
|
if (fts.has("hono")) return false;
|
|
72
74
|
return fts.has("Server");
|
|
73
75
|
}
|
|
74
76
|
return false;
|
|
75
77
|
}),
|
|
76
|
-
filter(
|
|
78
|
+
filter(11, (fts) => {
|
|
77
79
|
if (fts.has("aws")) {
|
|
78
80
|
if (fts.has("hono")) return false;
|
|
79
81
|
return true;
|
|
80
82
|
}
|
|
81
83
|
return false;
|
|
82
84
|
}),
|
|
83
|
-
filter(
|
|
85
|
+
filter(12, (fts) => {
|
|
84
86
|
if (fts.has("mantine")) return fts.has("vue") || fts.has("solid");
|
|
85
87
|
return false;
|
|
86
88
|
}),
|
|
87
|
-
filter(
|
|
89
|
+
filter(13, (fts) => {
|
|
88
90
|
if (fts.has("shadcn-ui")) return fts.has("vue") || fts.has("solid");
|
|
89
91
|
return false;
|
|
90
92
|
}),
|
|
91
|
-
filter(
|
|
93
|
+
filter(14, (fts) => {
|
|
92
94
|
if (fts.has("shadcn-ui")) return fts.has("daisyui") || fts.has("compiled-css");
|
|
93
95
|
return false;
|
|
94
96
|
}),
|
|
95
|
-
filter(
|
|
97
|
+
filter(15, (fts) => {
|
|
96
98
|
return fts.has("drizzle") || fts.has("sqlite") || fts.has("kysely") || fts.has("postgres") || fts.has("cloudflare");
|
|
97
99
|
}),
|
|
98
|
-
filter(
|
|
100
|
+
filter(16, (fts) => {
|
|
99
101
|
if (fts.has("storybook")) return !fts.has("react") && !fts.has("vue") && !fts.has("solid");
|
|
100
102
|
return false;
|
|
101
103
|
})
|