@batijs/features 0.0.183 → 0.0.186
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.
|
@@ -253,6 +253,24 @@ var features = [
|
|
|
253
253
|
}
|
|
254
254
|
]
|
|
255
255
|
},
|
|
256
|
+
{
|
|
257
|
+
category: "Server",
|
|
258
|
+
label: "Hono",
|
|
259
|
+
flag: "hono",
|
|
260
|
+
url: "https://hono.dev",
|
|
261
|
+
tagline: "Fast, lightweight, built on web standards. Support for any JavaScript runtime.",
|
|
262
|
+
repo: "honojs/hono",
|
|
263
|
+
links: [
|
|
264
|
+
{
|
|
265
|
+
label: "Getting started",
|
|
266
|
+
href: "https://hono.dev/top"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
label: "API",
|
|
270
|
+
href: "https://hono.dev/api/hono"
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
},
|
|
256
274
|
{
|
|
257
275
|
category: "Server",
|
|
258
276
|
label: "HatTip",
|
|
@@ -251,6 +251,20 @@ declare const features: readonly [{
|
|
|
251
251
|
readonly label: "API";
|
|
252
252
|
readonly href: "https://expressjs.com/en/4x/api.html";
|
|
253
253
|
}];
|
|
254
|
+
}, {
|
|
255
|
+
readonly category: "Server";
|
|
256
|
+
readonly label: "Hono";
|
|
257
|
+
readonly flag: "hono";
|
|
258
|
+
readonly url: "https://hono.dev";
|
|
259
|
+
readonly tagline: "Fast, lightweight, built on web standards. Support for any JavaScript runtime.";
|
|
260
|
+
readonly repo: "honojs/hono";
|
|
261
|
+
readonly links: [{
|
|
262
|
+
readonly label: "Getting started";
|
|
263
|
+
readonly href: "https://hono.dev/top";
|
|
264
|
+
}, {
|
|
265
|
+
readonly label: "API";
|
|
266
|
+
readonly href: "https://hono.dev/api/hono";
|
|
267
|
+
}];
|
|
254
268
|
}, {
|
|
255
269
|
readonly category: "Server";
|
|
256
270
|
readonly label: "HatTip";
|
|
@@ -382,8 +396,8 @@ declare const features: readonly [{
|
|
|
382
396
|
readonly url: "https://logrocket.com";
|
|
383
397
|
readonly disabled: true;
|
|
384
398
|
}];
|
|
385
|
-
declare const flags: ("vike" | "react" | "vue" | "solid" | "tailwindcss" | "daisyui" | "compiled-css" | "authjs" | "auth0" | "firebase-auth" | "telefunc" | "trpc" | "h3" | "express" | "hattip" | "prisma" | "edgedb" | "plausible.io" | "google-analytics" | "segment" | "vercel" | "netlify" | "eslint" | "prettier" | "biome" | "sentry" | "logrocket")[];
|
|
386
|
-
declare const cliFlags: ("vike" | "react" | "vue" | "solid" | "tailwindcss" | "daisyui" | "compiled-css" | "authjs" | "auth0" | "firebase-auth" | "telefunc" | "trpc" | "h3" | "express" | "hattip" | "prisma" | "edgedb" | "plausible.io" | "google-analytics" | "segment" | "vercel" | "netlify" | "eslint" | "prettier" | "biome" | "sentry" | "logrocket")[];
|
|
399
|
+
declare const flags: ("vike" | "react" | "vue" | "solid" | "tailwindcss" | "daisyui" | "compiled-css" | "authjs" | "auth0" | "firebase-auth" | "telefunc" | "trpc" | "h3" | "express" | "hono" | "hattip" | "prisma" | "edgedb" | "plausible.io" | "google-analytics" | "segment" | "vercel" | "netlify" | "eslint" | "prettier" | "biome" | "sentry" | "logrocket")[];
|
|
400
|
+
declare const cliFlags: ("vike" | "react" | "vue" | "solid" | "tailwindcss" | "daisyui" | "compiled-css" | "authjs" | "auth0" | "firebase-auth" | "telefunc" | "trpc" | "h3" | "express" | "hono" | "hattip" | "prisma" | "edgedb" | "plausible.io" | "google-analytics" | "segment" | "vercel" | "netlify" | "eslint" | "prettier" | "biome" | "sentry" | "logrocket")[];
|
|
387
401
|
type Flags = (typeof flags)[number];
|
|
388
402
|
|
|
389
403
|
export { type CategoryLabels as C, type Flags as F, categories as a, flags as b, categoriesGroups as c, cliFlags as d, features as f };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as categoriesGroups } from './features-
|
|
2
|
-
export { C as CategoryLabels, F as Flags, a as categories, d as cliFlags, f as features, b as flags } from './features-
|
|
1
|
+
import { c as categoriesGroups } from './features-DjbmDsRH.js';
|
|
2
|
+
export { C as CategoryLabels, F as Flags, a as categories, d as cliFlags, f as features, b as flags } from './features-DjbmDsRH.js';
|
|
3
3
|
|
|
4
4
|
interface Feature<C = string> {
|
|
5
5
|
label: string;
|
package/dist/index.js
CHANGED
package/dist/rules.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { F as Flags, C as CategoryLabels } from './features-
|
|
1
|
+
import { F as Flags, C as CategoryLabels } from './features-DjbmDsRH.js';
|
|
2
2
|
|
|
3
3
|
declare enum RulesMessage {
|
|
4
4
|
ERROR_AUTH_R_SERVER = 0,
|
|
5
5
|
ERROR_COMPILED_R_REACT = 1,
|
|
6
|
-
|
|
6
|
+
ERROR_AUTH0_E_HONO = 2,
|
|
7
|
+
INFO_HATTIP = 3
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
type FeatureOrCategory = Flags | CategoryLabels;
|
package/dist/rules.js
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
features,
|
|
3
3
|
flags
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-F5ETT5VO.js";
|
|
5
5
|
|
|
6
6
|
// src/rules/enum.ts
|
|
7
7
|
var RulesMessage = /* @__PURE__ */ ((RulesMessage2) => {
|
|
8
8
|
RulesMessage2[RulesMessage2["ERROR_AUTH_R_SERVER"] = 0] = "ERROR_AUTH_R_SERVER";
|
|
9
9
|
RulesMessage2[RulesMessage2["ERROR_COMPILED_R_REACT"] = 1] = "ERROR_COMPILED_R_REACT";
|
|
10
|
-
RulesMessage2[RulesMessage2["
|
|
10
|
+
RulesMessage2[RulesMessage2["ERROR_AUTH0_E_HONO"] = 2] = "ERROR_AUTH0_E_HONO";
|
|
11
|
+
RulesMessage2[RulesMessage2["INFO_HATTIP"] = 3] = "INFO_HATTIP";
|
|
11
12
|
return RulesMessage2;
|
|
12
13
|
})(RulesMessage || {});
|
|
13
14
|
|
|
14
15
|
// src/rules/utils.ts
|
|
16
|
+
function exclusive(message, rules) {
|
|
17
|
+
return (fts) => rules.every((r) => fts.has(r)) && message;
|
|
18
|
+
}
|
|
15
19
|
function requires(message, ifPresent, mustAlsoInclude) {
|
|
16
20
|
const m = Array.from(prepare(mustAlsoInclude));
|
|
17
21
|
return (fts) => fts.has(ifPresent) && !m.every((r) => fts.has(r)) && message;
|
|
@@ -34,7 +38,8 @@ function prepare(fts) {
|
|
|
34
38
|
var rules_default = [
|
|
35
39
|
requires(0 /* ERROR_AUTH_R_SERVER */, "Auth", ["Server"]),
|
|
36
40
|
requires(1 /* ERROR_COMPILED_R_REACT */, "compiled-css", ["react"]),
|
|
37
|
-
includes(
|
|
41
|
+
includes(3 /* INFO_HATTIP */, "hattip"),
|
|
42
|
+
exclusive(2 /* ERROR_AUTH0_E_HONO */, ["auth0", "hono"])
|
|
38
43
|
];
|
|
39
44
|
|
|
40
45
|
// src/rules/index.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/features",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.186",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [],
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@types/node": "^18.19.14",
|
|
12
12
|
"tsup": "^8.0.2",
|
|
13
|
-
"vitest": "^1.
|
|
13
|
+
"vitest": "^1.6.0"
|
|
14
14
|
},
|
|
15
15
|
"main": "./dist/index.js",
|
|
16
16
|
"module": "./dist/index.js",
|