@batijs/features 0.0.541 → 0.0.543

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.
@@ -364,6 +364,21 @@ var features = [
364
364
  }
365
365
  ]
366
366
  },
367
+ {
368
+ category: "Database",
369
+ label: "Kysely",
370
+ flag: "kysely",
371
+ image: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTMyJyBoZWlnaHQ9JzEzMicgdmlld0JveD0nMCAwIDEzMiAxMzInIGZpbGw9J25vbmUnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PGcgY2xpcC1wYXRoPSd1cmwoI2NsaXAwXzhfMyknPjxyZWN0IHg9JzInIHk9JzInIHdpZHRoPScxMjgnIGhlaWdodD0nMTI4JyByeD0nMTYnIGZpbGw9J3doaXRlJy8+PHBhdGggZD0nTTQxLjI5ODMgMTA5VjIzLjkwOTFINDYuNDkxOFY3My4zMUg0Ny4wNzM1TDkxLjk0NTcgMjMuOTA5MUg5OC44NDI3TDYxLjkwNjIgNjQuMTY5NEw5OC41MTAzIDEwOUg5Mi4wMjg4TDU4LjU4MjQgNjcuOTA4N0w0Ni40OTE4IDgxLjI4NzNWMTA5SDQxLjI5ODNaJyBmaWxsPSdibGFjaycvPjwvZz48cmVjdCB4PScyJyB5PScyJyB3aWR0aD0nMTI4JyBoZWlnaHQ9JzEyOCcgcng9JzE2JyBzdHJva2U9JyMxMjEyMTInIHN0cm9rZS13aWR0aD0nNCcvPjxkZWZzPjxjbGlwUGF0aCBpZD0nY2xpcDBfOF8zJz48cmVjdCB4PScyJyB5PScyJyB3aWR0aD0nMTI4JyBoZWlnaHQ9JzEyOCcgcng9JzE2JyBmaWxsPSd3aGl0ZScvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPgo=",
372
+ url: "https://kysely.dev/",
373
+ tagline: "The type-safe SQL query builder for TypeScript",
374
+ repo: "kysely-org/kysely",
375
+ links: [
376
+ {
377
+ label: "Docs & Getting started",
378
+ href: "https://kysely.dev/docs/getting-started"
379
+ }
380
+ ]
381
+ },
367
382
  {
368
383
  category: "Database",
369
384
  label: "Prisma",
@@ -345,6 +345,18 @@ declare const features: readonly [{
345
345
  readonly label: "D1: Getting started";
346
346
  readonly href: "https://developers.cloudflare.com/d1/get-started/";
347
347
  }];
348
+ }, {
349
+ readonly category: "Database";
350
+ readonly label: "Kysely";
351
+ readonly flag: "kysely";
352
+ readonly image: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTMyJyBoZWlnaHQ9JzEzMicgdmlld0JveD0nMCAwIDEzMiAxMzInIGZpbGw9J25vbmUnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PGcgY2xpcC1wYXRoPSd1cmwoI2NsaXAwXzhfMyknPjxyZWN0IHg9JzInIHk9JzInIHdpZHRoPScxMjgnIGhlaWdodD0nMTI4JyByeD0nMTYnIGZpbGw9J3doaXRlJy8+PHBhdGggZD0nTTQxLjI5ODMgMTA5VjIzLjkwOTFINDYuNDkxOFY3My4zMUg0Ny4wNzM1TDkxLjk0NTcgMjMuOTA5MUg5OC44NDI3TDYxLjkwNjIgNjQuMTY5NEw5OC41MTAzIDEwOUg5Mi4wMjg4TDU4LjU4MjQgNjcuOTA4N0w0Ni40OTE4IDgxLjI4NzNWMTA5SDQxLjI5ODNaJyBmaWxsPSdibGFjaycvPjwvZz48cmVjdCB4PScyJyB5PScyJyB3aWR0aD0nMTI4JyBoZWlnaHQ9JzEyOCcgcng9JzE2JyBzdHJva2U9JyMxMjEyMTInIHN0cm9rZS13aWR0aD0nNCcvPjxkZWZzPjxjbGlwUGF0aCBpZD0nY2xpcDBfOF8zJz48cmVjdCB4PScyJyB5PScyJyB3aWR0aD0nMTI4JyBoZWlnaHQ9JzEyOCcgcng9JzE2JyBmaWxsPSd3aGl0ZScvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPgo=";
353
+ readonly url: "https://kysely.dev/";
354
+ readonly tagline: "The type-safe SQL query builder for TypeScript";
355
+ readonly repo: "kysely-org/kysely";
356
+ readonly links: [{
357
+ readonly label: "Docs & Getting started";
358
+ readonly href: "https://kysely.dev/docs/getting-started";
359
+ }];
348
360
  }, {
349
361
  readonly category: "Database";
350
362
  readonly label: "Prisma";
@@ -483,8 +495,8 @@ declare const features: readonly [{
483
495
  readonly url: "https://logrocket.com";
484
496
  readonly disabled: true;
485
497
  }];
486
- declare const flags: ("vike" | "react" | "vue" | "solid" | "tailwindcss" | "compiled-css" | "daisyui" | "shadcn-ui" | "mantine" | "authjs" | "auth0" | "telefunc" | "trpc" | "ts-rest" | "hono" | "h3" | "express" | "fastify" | "drizzle" | "sqlite" | "prisma" | "plausible.io" | "google-analytics" | "segment" | "cloudflare" | "vercel" | "netlify" | "aws" | "eslint" | "prettier" | "biome" | "oxlint" | "sentry" | "logrocket")[];
487
- declare const cliFlags: ("vike" | "react" | "vue" | "solid" | "tailwindcss" | "compiled-css" | "daisyui" | "shadcn-ui" | "mantine" | "authjs" | "auth0" | "telefunc" | "trpc" | "ts-rest" | "hono" | "h3" | "express" | "fastify" | "drizzle" | "sqlite" | "prisma" | "plausible.io" | "google-analytics" | "segment" | "cloudflare" | "vercel" | "netlify" | "aws" | "eslint" | "prettier" | "biome" | "oxlint" | "sentry" | "logrocket")[];
498
+ declare const flags: ("vike" | "react" | "vue" | "solid" | "tailwindcss" | "compiled-css" | "daisyui" | "shadcn-ui" | "mantine" | "authjs" | "auth0" | "telefunc" | "trpc" | "ts-rest" | "hono" | "h3" | "express" | "fastify" | "drizzle" | "sqlite" | "kysely" | "prisma" | "plausible.io" | "google-analytics" | "segment" | "cloudflare" | "vercel" | "netlify" | "aws" | "eslint" | "prettier" | "biome" | "oxlint" | "sentry" | "logrocket")[];
499
+ declare const cliFlags: ("vike" | "react" | "vue" | "solid" | "tailwindcss" | "compiled-css" | "daisyui" | "shadcn-ui" | "mantine" | "authjs" | "auth0" | "telefunc" | "trpc" | "ts-rest" | "hono" | "h3" | "express" | "fastify" | "drizzle" | "sqlite" | "kysely" | "prisma" | "plausible.io" | "google-analytics" | "segment" | "cloudflare" | "vercel" | "netlify" | "aws" | "eslint" | "prettier" | "biome" | "oxlint" | "sentry" | "logrocket")[];
488
500
  type Flags = (typeof flags)[number];
489
501
 
490
502
  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, F as Flags } from './features-DLbbkt0o.js';
2
- export { C as CategoryLabels, a as categories, d as cliFlags, f as features, b as flags } from './features-DLbbkt0o.js';
1
+ import { c as categoriesGroups, F as Flags } from './features-HYan3V6n.js';
2
+ export { C as CategoryLabels, a as categories, d as cliFlags, f as features, b as flags } from './features-HYan3V6n.js';
3
3
 
4
4
  interface Feature<C = string> {
5
5
  label: string;
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  cliFlags,
3
3
  features,
4
4
  flags
5
- } from "./chunk-CGEFIBQ3.js";
5
+ } from "./chunk-E7UTPAVH.js";
6
6
 
7
7
  // src/groups.ts
8
8
  var categoriesGroups = /* @__PURE__ */ ((categoriesGroups2) => {
@@ -106,10 +106,10 @@ var BatiSet = class extends Set {
106
106
  return this.hasOneOf(this.#servers);
107
107
  }
108
108
  get hasDatabase() {
109
- return this.has("sqlite") || this.has("drizzle");
109
+ return this.has("sqlite") || this.has("drizzle") || this.has("kysely");
110
110
  }
111
111
  get hasD1() {
112
- return this.has("cloudflare") && (this.has("sqlite") || this.has("drizzle"));
112
+ return this.has("cloudflare") && (this.has("sqlite") || this.has("drizzle") || this.has("kysely"));
113
113
  }
114
114
  get hasPhoton() {
115
115
  return this.has("cloudflare") || this.has("vercel") || this.hasOneOf(this.#servers);
package/dist/rules.d.ts CHANGED
@@ -1,16 +1,17 @@
1
- import { F as Flags, C as CategoryLabels } from './features-DLbbkt0o.js';
1
+ import { F as Flags, C as CategoryLabels } from './features-HYan3V6n.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_DRIZZLE_R_SERVER = 2,
7
- ERROR_DATA_R_SERVER = 3,
8
- ERROR_CLOUDFLARE_R_COMPAT_SERVER = 4,
9
- ERROR_AWS_R_COMPAT_SERVER = 5,
10
- ERROR_MANTINE_R_REACT = 6,
11
- ERROR_SHADCN_R_REACT = 7,
12
- WARN_SHADCN_R_TAILWINDCSS = 8,
13
- INFO_STACKBLITZ_COMPAT = 9
7
+ ERROR_KYSELY_R_SERVER = 3,
8
+ ERROR_DATA_R_SERVER = 4,
9
+ ERROR_CLOUDFLARE_R_COMPAT_SERVER = 5,
10
+ ERROR_AWS_R_COMPAT_SERVER = 6,
11
+ ERROR_MANTINE_R_REACT = 7,
12
+ ERROR_SHADCN_R_REACT = 8,
13
+ WARN_SHADCN_R_TAILWINDCSS = 9,
14
+ INFO_STACKBLITZ_COMPAT = 10
14
15
  }
15
16
 
16
17
  type FeatureOrCategory = Flags | CategoryLabels;
package/dist/rules.js CHANGED
@@ -1,20 +1,21 @@
1
1
  import {
2
2
  features,
3
3
  flags
4
- } from "./chunk-CGEFIBQ3.js";
4
+ } from "./chunk-E7UTPAVH.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
10
  RulesMessage2[RulesMessage2["ERROR_DRIZZLE_R_SERVER"] = 2] = "ERROR_DRIZZLE_R_SERVER";
11
- RulesMessage2[RulesMessage2["ERROR_DATA_R_SERVER"] = 3] = "ERROR_DATA_R_SERVER";
12
- RulesMessage2[RulesMessage2["ERROR_CLOUDFLARE_R_COMPAT_SERVER"] = 4] = "ERROR_CLOUDFLARE_R_COMPAT_SERVER";
13
- RulesMessage2[RulesMessage2["ERROR_AWS_R_COMPAT_SERVER"] = 5] = "ERROR_AWS_R_COMPAT_SERVER";
14
- RulesMessage2[RulesMessage2["ERROR_MANTINE_R_REACT"] = 6] = "ERROR_MANTINE_R_REACT";
15
- RulesMessage2[RulesMessage2["ERROR_SHADCN_R_REACT"] = 7] = "ERROR_SHADCN_R_REACT";
16
- RulesMessage2[RulesMessage2["WARN_SHADCN_R_TAILWINDCSS"] = 8] = "WARN_SHADCN_R_TAILWINDCSS";
17
- RulesMessage2[RulesMessage2["INFO_STACKBLITZ_COMPAT"] = 9] = "INFO_STACKBLITZ_COMPAT";
11
+ RulesMessage2[RulesMessage2["ERROR_KYSELY_R_SERVER"] = 3] = "ERROR_KYSELY_R_SERVER";
12
+ RulesMessage2[RulesMessage2["ERROR_DATA_R_SERVER"] = 4] = "ERROR_DATA_R_SERVER";
13
+ RulesMessage2[RulesMessage2["ERROR_CLOUDFLARE_R_COMPAT_SERVER"] = 5] = "ERROR_CLOUDFLARE_R_COMPAT_SERVER";
14
+ RulesMessage2[RulesMessage2["ERROR_AWS_R_COMPAT_SERVER"] = 6] = "ERROR_AWS_R_COMPAT_SERVER";
15
+ RulesMessage2[RulesMessage2["ERROR_MANTINE_R_REACT"] = 7] = "ERROR_MANTINE_R_REACT";
16
+ RulesMessage2[RulesMessage2["ERROR_SHADCN_R_REACT"] = 8] = "ERROR_SHADCN_R_REACT";
17
+ RulesMessage2[RulesMessage2["WARN_SHADCN_R_TAILWINDCSS"] = 9] = "WARN_SHADCN_R_TAILWINDCSS";
18
+ RulesMessage2[RulesMessage2["INFO_STACKBLITZ_COMPAT"] = 10] = "INFO_STACKBLITZ_COMPAT";
18
19
  return RulesMessage2;
19
20
  })(RulesMessage || {});
20
21
 
@@ -42,8 +43,9 @@ var rules_default = [
42
43
  requires(0 /* ERROR_AUTH_R_SERVER */, "Auth", ["Server"]),
43
44
  requires(1 /* ERROR_COMPILED_R_REACT */, "compiled-css", ["react"]),
44
45
  requires(2 /* ERROR_DRIZZLE_R_SERVER */, "drizzle", ["Server"]),
45
- requires(3 /* ERROR_DATA_R_SERVER */, "Data fetching", ["Server"]),
46
- filter(4 /* ERROR_CLOUDFLARE_R_COMPAT_SERVER */, (fts) => {
46
+ requires(3 /* ERROR_KYSELY_R_SERVER */, "kysely", ["Server"]),
47
+ requires(4 /* ERROR_DATA_R_SERVER */, "Data fetching", ["Server"]),
48
+ filter(5 /* ERROR_CLOUDFLARE_R_COMPAT_SERVER */, (fts) => {
47
49
  if (fts.has("cloudflare")) {
48
50
  if (fts.has("hono") || fts.has("h3")) {
49
51
  return false;
@@ -52,7 +54,7 @@ var rules_default = [
52
54
  }
53
55
  return false;
54
56
  }),
55
- filter(5 /* ERROR_AWS_R_COMPAT_SERVER */, (fts) => {
57
+ filter(6 /* ERROR_AWS_R_COMPAT_SERVER */, (fts) => {
56
58
  if (fts.has("aws")) {
57
59
  if (fts.has("hono")) {
58
60
  return false;
@@ -61,26 +63,26 @@ var rules_default = [
61
63
  }
62
64
  return false;
63
65
  }),
64
- filter(6 /* ERROR_MANTINE_R_REACT */, (fts) => {
66
+ filter(7 /* ERROR_MANTINE_R_REACT */, (fts) => {
65
67
  if (fts.has("mantine")) {
66
68
  return fts.has("vue") || fts.has("solid");
67
69
  }
68
70
  return false;
69
71
  }),
70
- filter(7 /* ERROR_SHADCN_R_REACT */, (fts) => {
72
+ filter(8 /* ERROR_SHADCN_R_REACT */, (fts) => {
71
73
  if (fts.has("shadcn-ui")) {
72
74
  return fts.has("vue") || fts.has("solid");
73
75
  }
74
76
  return false;
75
77
  }),
76
- filter(8 /* WARN_SHADCN_R_TAILWINDCSS */, (fts) => {
78
+ filter(9 /* WARN_SHADCN_R_TAILWINDCSS */, (fts) => {
77
79
  if (fts.has("shadcn-ui")) {
78
80
  return fts.has("daisyui") || fts.has("compiled-css");
79
81
  }
80
82
  return false;
81
83
  }),
82
- filter(9 /* INFO_STACKBLITZ_COMPAT */, (fts) => {
83
- return fts.has("drizzle") || fts.has("sqlite") || fts.has("cloudflare");
84
+ filter(10 /* INFO_STACKBLITZ_COMPAT */, (fts) => {
85
+ return fts.has("drizzle") || fts.has("sqlite") || fts.has("kysely") || fts.has("cloudflare");
84
86
  })
85
87
  ];
86
88
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/features",
3
- "version": "0.0.541",
3
+ "version": "0.0.543",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "keywords": [],