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
+17
-6
No files matched your search
+2
-2
@@ -3,7 +3,7 @@
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"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.",
|
||||
"homepage": "https://bknd.io",
|
||||
"repository": {
|
||||
@@ -88,7 +88,7 @@
|
||||
"@libsql/client": "^0.15.15",
|
||||
"@mantine/modals": "^7.17.1",
|
||||
"@mantine/notifications": "^7.17.1",
|
||||
"@playwright/test": "^1.56.1",
|
||||
"@playwright/test": "^1.63.0",
|
||||
"@rjsf/core": "5.22.2",
|
||||
"@rjsf/utils": "5.22.0",
|
||||
"@standard-schema/spec": "^1.0.0",
|
||||
|
||||
@@ -25,7 +25,7 @@ export function getChangeSet(
|
||||
const field = fields.find((f) => f.name === key);
|
||||
// @todo: filtering virtual here, need to check (because of media)
|
||||
// @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;
|
||||
|
||||
// normalize to null if undefined
|
||||
|
||||
@@ -182,7 +182,7 @@ export function useBknd({ withSecrets }: { withSecrets?: boolean } = {}): BkndCo
|
||||
export function useBkndOptions(): BkndAdminProps["config"] {
|
||||
const ctx = useContext(BkndContext);
|
||||
return (
|
||||
ctx.options ?? {
|
||||
ctx?.options ?? {
|
||||
basepath: "/",
|
||||
}
|
||||
);
|
||||
|
||||
+13
-2
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"compilerOptions": {
|
||||
"composite": false,
|
||||
"incremental": true,
|
||||
"module": "esnext",
|
||||
@@ -28,6 +28,7 @@
|
||||
"rootDir": ".",
|
||||
"outDir": "./dist/types",
|
||||
"paths": {
|
||||
"Api": ["./src/Api"],
|
||||
"*": ["./src/*"],
|
||||
"bknd": ["./src/index.ts"],
|
||||
"bknd/utils": ["./src/core/utils/index.ts"],
|
||||
@@ -35,7 +36,17 @@
|
||||
"bknd/adapter/*": ["./src/adapter/*/index.ts"],
|
||||
"bknd/client": ["./src/ui/client/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": [
|
||||
|
||||
Reference in new issue
Block a user