@batijs/features 0.0.475 → 0.0.477
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.
|
@@ -396,9 +396,6 @@ declare const features: readonly [{
|
|
|
396
396
|
}, {
|
|
397
397
|
readonly label: "Vike integration";
|
|
398
398
|
readonly href: "https://vike.dev/cloudflare";
|
|
399
|
-
}, {
|
|
400
|
-
readonly label: "vike-cloudflare";
|
|
401
|
-
readonly href: "https://github.com/vikejs/vike-cloudflare";
|
|
402
399
|
}];
|
|
403
400
|
}, {
|
|
404
401
|
readonly category: "Hosting";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as categoriesGroups, F as Flags } from './features-
|
|
2
|
-
export { C as CategoryLabels, a as categories, d as cliFlags, f as features, b as flags } from './features-
|
|
1
|
+
import { c as categoriesGroups, F as Flags } from './features-CJ0hGhP8.js';
|
|
2
|
+
export { C as CategoryLabels, a as categories, d as cliFlags, f as features, b as flags } from './features-CJ0hGhP8.js';
|
|
3
3
|
|
|
4
4
|
interface Feature<C = string> {
|
|
5
5
|
label: string;
|
|
@@ -37,6 +37,7 @@ declare class BatiSet extends Set<Flags> {
|
|
|
37
37
|
get hasServer(): boolean;
|
|
38
38
|
get hasDatabase(): boolean;
|
|
39
39
|
get hasD1(): boolean;
|
|
40
|
+
get hasPhoton(): boolean;
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
export { BatiSet, type Category, type Feature, type FeatureLink, Flags, categoriesGroups };
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
cliFlags,
|
|
3
3
|
features,
|
|
4
4
|
flags
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7EJMVIZU.js";
|
|
6
6
|
|
|
7
7
|
// src/groups.ts
|
|
8
8
|
var categoriesGroups = /* @__PURE__ */ ((categoriesGroups2) => {
|
|
@@ -111,6 +111,9 @@ var BatiSet = class extends Set {
|
|
|
111
111
|
get hasD1() {
|
|
112
112
|
return this.has("cloudflare") && (this.has("sqlite") || this.has("drizzle"));
|
|
113
113
|
}
|
|
114
|
+
get hasPhoton() {
|
|
115
|
+
return this.has("cloudflare") || this.has("vercel") || this.hasOneOf(this.#servers);
|
|
116
|
+
}
|
|
114
117
|
};
|
|
115
118
|
export {
|
|
116
119
|
BatiSet,
|
package/dist/rules.d.ts
CHANGED
package/dist/rules.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
features,
|
|
3
3
|
flags
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7EJMVIZU.js";
|
|
5
5
|
|
|
6
6
|
// src/rules/enum.ts
|
|
7
7
|
var RulesMessage = /* @__PURE__ */ ((RulesMessage2) => {
|
|
@@ -45,7 +45,7 @@ var rules_default = [
|
|
|
45
45
|
requires(3 /* ERROR_DATA_R_SERVER */, "Data fetching", ["Server"]),
|
|
46
46
|
filter(4 /* ERROR_CLOUDFLARE_R_COMPAT_SERVER */, (fts) => {
|
|
47
47
|
if (fts.has("cloudflare")) {
|
|
48
|
-
if (fts.has("hono")) {
|
|
48
|
+
if (fts.has("hono") || fts.has("h3")) {
|
|
49
49
|
return false;
|
|
50
50
|
}
|
|
51
51
|
return fts.has("Server");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/features",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.477",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [],
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"repository": "https://github.com/vikejs/bati",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@types/node": "^20.19.
|
|
11
|
+
"@types/node": "^20.19.21",
|
|
12
12
|
"tsup": "^8.5.0",
|
|
13
13
|
"vitest": "^3.2.4"
|
|
14
14
|
},
|