mirror of
https://github.com/bknd-io/bknd.git
synced 2026-10-25 11:48:31 +00:00
Merge pull request #407 from shishantbiswas/prerelease-fix-for-release/0.21
Prerelease fixes for release/0.21
This commit is contained in:
4 files changed
+16
-5
No files matched your search
+2
-2
@@ -3,7 +3,7 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"bin": "./dist/cli/index.js",
|
"bin": "./dist/cli/index.js",
|
||||||
"version": "0.21.0-rc.1",
|
"version": "0.21.0-rc.3",
|
||||||
"description": "Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.",
|
"description": "Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.",
|
||||||
"homepage": "https://bknd.io",
|
"homepage": "https://bknd.io",
|
||||||
"repository": {
|
"repository": {
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
"@libsql/client": "^0.15.15",
|
"@libsql/client": "^0.15.15",
|
||||||
"@mantine/modals": "^7.17.1",
|
"@mantine/modals": "^7.17.1",
|
||||||
"@mantine/notifications": "^7.17.1",
|
"@mantine/notifications": "^7.17.1",
|
||||||
"@playwright/test": "^1.56.1",
|
"@playwright/test": "^1.63.0",
|
||||||
"@rjsf/core": "5.22.2",
|
"@rjsf/core": "5.22.2",
|
||||||
"@rjsf/utils": "5.22.0",
|
"@rjsf/utils": "5.22.0",
|
||||||
"@standard-schema/spec": "^1.0.0",
|
"@standard-schema/spec": "^1.0.0",
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ export function getChangeSet(
|
|||||||
const field = fields.find((f) => f.name === key);
|
const field = fields.find((f) => f.name === key);
|
||||||
// @todo: filtering virtual here, need to check (because of media)
|
// @todo: filtering virtual here, need to check (because of media)
|
||||||
// @note: adding non-fillable here as it'll fail validaiton on backend
|
// @note: adding non-fillable here as it'll fail validaiton on backend
|
||||||
if (!field || field.isVirtual() || !field.isFillable()) return;
|
if (!field || field.isVirtual() || !field.isFillable(action as "create" | "update")) return;
|
||||||
const value = _value === "" ? null : _value;
|
const value = _value === "" ? null : _value;
|
||||||
|
|
||||||
// normalize to null if undefined
|
// normalize to null if undefined
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ export function useBknd({ withSecrets }: { withSecrets?: boolean } = {}): BkndCo
|
|||||||
export function useBkndOptions(): BkndAdminProps["config"] {
|
export function useBkndOptions(): BkndAdminProps["config"] {
|
||||||
const ctx = useContext(BkndContext);
|
const ctx = useContext(BkndContext);
|
||||||
return (
|
return (
|
||||||
ctx.options ?? {
|
ctx?.options ?? {
|
||||||
basepath: "/",
|
basepath: "/",
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
+12
-1
@@ -28,6 +28,7 @@
|
|||||||
"rootDir": ".",
|
"rootDir": ".",
|
||||||
"outDir": "./dist/types",
|
"outDir": "./dist/types",
|
||||||
"paths": {
|
"paths": {
|
||||||
|
"Api": ["./src/Api"],
|
||||||
"*": ["./src/*"],
|
"*": ["./src/*"],
|
||||||
"bknd": ["./src/index.ts"],
|
"bknd": ["./src/index.ts"],
|
||||||
"bknd/utils": ["./src/core/utils/index.ts"],
|
"bknd/utils": ["./src/core/utils/index.ts"],
|
||||||
@@ -35,7 +36,17 @@
|
|||||||
"bknd/adapter/*": ["./src/adapter/*/index.ts"],
|
"bknd/adapter/*": ["./src/adapter/*/index.ts"],
|
||||||
"bknd/client": ["./src/ui/client/index.ts"],
|
"bknd/client": ["./src/ui/client/index.ts"],
|
||||||
"bknd/modes": ["./src/modes/index.ts"],
|
"bknd/modes": ["./src/modes/index.ts"],
|
||||||
"bknd/elements": ["./src/ui/elements/index.ts"]
|
"bknd/elements": ["./src/ui/elements/index.ts"],
|
||||||
|
"core": ["./src/core"],
|
||||||
|
"auth": ["./src/auth"],
|
||||||
|
"data": ["./src/data"],
|
||||||
|
"media": ["./src/media"],
|
||||||
|
"modules": ["./src/modules"],
|
||||||
|
"core/*": ["./src/core/*"],
|
||||||
|
"auth/*": ["./src/auth/*"],
|
||||||
|
"data/*": ["./src/data/*"],
|
||||||
|
"media/*": ["./src/media/*"],
|
||||||
|
"modules/*": ["./src/modules/*"],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
|
|||||||
Reference in new issue
Block a user