Skip to content

create-quickben@0.1.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 13:36
· 19 commits to trunk since this release
7b5474e

Minor Changes

  • 664add0: First release of create-quickben: pnpm create quickben my-app creates a Next.js app with Quickben. Options: --db pglite|postgres|sqlite|memory, --example blank|blog, --pm, --no-install, --no-git, --yes.

Patch Changes

  • 811793e: Fixes for new create-next-app projects.

    • @quickben/db-drizzle: one entry point per dialect (@quickben/db-drizzle/postgres, /pglite, /sqlite), each exporting drizzleAdapter. A bundler now sees only the driver you import, so Next.js builds without serverExternalPackages for drivers you did not install. The main entry no longer exports drizzleAdapter.
    • @quickben/admin: the admin page renders inside <Suspense>, so it builds with cacheComponents: true. Utilities are no longer in a cascade layer, so unlayered app resets (* { margin: 0; padding: 0 }) do not override them. It reads the request before the database. Control ids are unique per form, because Next.js keeps visited pages mounted. New generateAdminMetadata(config). Label requires htmlFor.
    • @quickben/next: getRequestContext calls connection(), so database reads after it never run while prerendering.
    • @quickben/core: admin.meta (title, description) for the admin page metadata.
    • create-quickben: templates use the dialect entry points and Cache Components, and no longer externalize the adapter.
  • 745dd01: Polish before 0.1.

    • Next: createRouteHandlers limits POST and PATCH bodies to maxBodyBytes (default 1 MB). Larger bodies get 413 PAYLOAD_TOO_LARGE.
    • Next: getQuickben is no longer re-exported. Import it from @quickben/core.
    • Admin: resolveRoute and AdminRoute are no longer exported.
    • Core: QuickbenUser.emailVerified. Auth adapters should set it.
    • Tenancy: acceptInvitation throws ForbiddenError for an invitation by email when the user has emailVerified: false. listMyInvitations and membership reads then ignore the email.
    • Tenancy: the organization cookie is Secure only on https requests, so it works on http://localhost. organizationCookie(qb, id, req) takes the request; new isSecureRequest(req).
    • Tenancy: guard rails throw TenancyRuleError (a ForbiddenError) with a rule.
    • Tenancy admin: actions redirect with ?toast= and ?error= codes that map to fixed messages. Text from the URL is never shown.
    • create-quickben: templates import getQuickben from @quickben/core.