Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .changeset/wet-sites-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"create-vorsteh-queue": patch
"@vorsteh-queue/adapter-drizzle": patch
"@vorsteh-queue/adapter-kysely": patch
"@vorsteh-queue/adapter-prisma": patch
"@vorsteh-queue/core": patch
---

updated versions
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ jobs:
- name: Generate prisma client
run: pnpm -F adapter-prisma prisma:generate

- name: Generate next routes
run: pnpm -F docs typegen

- name: Lint
run: pnpm lint

Expand All @@ -65,6 +68,9 @@ jobs:
- name: Generate prisma client
run: pnpm -F adapter-prisma prisma:generate

- name: Generate next routes
run: pnpm -F docs typegen

- name: Typecheck
run: pnpm typecheck

Expand Down
43 changes: 15 additions & 28 deletions apps/docs/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,28 +1,22 @@
import createMDXPlugin from "@next/mdx"
import { rehypePlugins } from "@renoun/mdx"
import remarkRenounAddHeadings from "@renoun/mdx/remark/add-headings"
import remarkRenounRemoveParagraphs from "@renoun/mdx/remark/remove-immediate-paragraphs"
import remarkRenounRelativeLinks from "@renoun/mdx/remark/transform-relative-links"
import rehypeMdxImportMedia from "rehype-mdx-import-media"
import remarkFrontmatter from "remark-frontmatter"
import remarkGfm from "remark-gfm"
import remarkMdxFrontmatter from "remark-mdx-frontmatter"
import remarkSqueezeParagraphs from "remark-squeeze-paragraphs"
import remarkStripBadges from "remark-strip-badges"

const withMDX = createMDXPlugin({
options: {
rehypePlugins: [
"@renoun/mdx/rehype/add-code-block",
"@renoun/mdx/rehype/add-reading-time",
"rehype-mdx-import-media",
],
remarkPlugins: [
remarkRenounAddHeadings,
remarkFrontmatter,
remarkMdxFrontmatter,
remarkSqueezeParagraphs,
remarkRenounRemoveParagraphs,
remarkStripBadges,
remarkRenounRelativeLinks,
remarkGfm,
"@renoun/mdx/remark/add-headings",
"remark-frontmatter",
"remark-mdx-frontmatter",
"remark-squeeze-paragraphs",
"@renoun/mdx/remark/remove-immediate-paragraphs",
"remark-strip-badges",
"@renoun/mdx/remark/transform-relative-links",
"remark-gfm",
],
rehypePlugins: [...rehypePlugins, rehypeMdxImportMedia],
},
})

Expand All @@ -38,23 +32,16 @@ const nextConfig = {
"@vorsteh-queue/core",
"@vorsteh-queue/adapter-drizzle",
"@vorsteh-queue/adapter-prisma",
"@vorsteh-queue/adapter-kysely",
"create-vorsteh-queue",
],
eslint: {
ignoreDuringBuilds: true,
},

typescript: {
ignoreBuildErrors: true,
},
images: {
unoptimized: true,
},
webpack(config) {
config.resolve.extensionAlias = {
".js": [".ts", ".tsx", ".js"],
}
return config
},
}

export default withMDX(nextConfig)
47 changes: 24 additions & 23 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,26 @@
"private": true,
"type": "module",
"scripts": {
"build": "renoun next build && pnpm generate-pagefind",
"build": "next typegen && renoun next build && pnpm generate-pagefind",
"clean": "git clean -xdf .cache .turbo dist node_modules .next",
"clean:cache": "git clean -xdf .cache",
"dev": "renoun next dev",
"dev": "next typegen && renoun next dev",
"format": "prettier --check . --ignore-path ../../.gitignore --ignore-path ../../.prettierignore",
"generate-pagefind": "pagefind --site out --output-path out/pagefind",
"lint": "eslint .",
"lint:links": "node --import ./src/register.js --import tsx/esm src/link-check.ts",
"matchtest": "tsx src/match.ts",
"preview": "tsx src/localserver.ts",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"typegen": "next typegen"
},
"prettier": "@vorsteh-queue/prettier-config",
"dependencies": {
"@icons-pack/react-simple-icons": "13.7.0",
"@icons-pack/react-simple-icons": "13.8.0",
"@mdx-js/loader": "3.1.1",
"@mdx-js/node-loader": "3.1.1",
"@mdx-js/react": "3.1.1",
"@next/mdx": "15.5.4",
"@next/mdx": "16.0.0",
"@radix-ui/react-collapsible": "^1.1.12",
"@radix-ui/react-compose-refs": "1.1.2",
"@radix-ui/react-dialog": "^1.1.15",
Expand All @@ -37,37 +38,37 @@
"class-variance-authority": "0.7.1",
"clsx": "2.1.1",
"date-fns": "^4.1.0",
"globby": "14.1.0",
"globby": "15.0.0",
"interweave": "13.1.1",
"lucide-react": "0.544.0",
"lucide-react": "0.548.0",
"multimatch": "7.0.0",
"next": "15.5.4",
"next": "16.0.0",
"next-themes": "latest",
"p-map": "7.0.3",
"react": "19.1.1",
"react-dom": "19.1.1",
"react": "19.2.0",
"react-dom": "19.2.0",
"read-pkg": "^9.0.1",
"rehype-mdx-import-media": "1.2.0",
"remark-frontmatter": "5.0.0",
"remark-gfm": "4.0.1",
"remark-mdx-frontmatter": "5.2.0",
"remark-squeeze-paragraphs": "6.0.0",
"remark-strip-badges": "7.0.0",
"renoun": "10.1.2",
"tm-grammars": "1.24.13",
"tm-themes": "1.10.9",
"ts-morph": "27.0.0",
"renoun": "10.7.0",
"tm-grammars": "1.25.1",
"tm-themes": "1.10.12",
"ts-morph": "27.0.2",
"tw-animate-css": "^1.4.0",
"use-debounce": "10.0.6",
"zod": "4.1.11"
"zod": "4.1.12"
},
"devDependencies": {
"@tailwindcss/postcss": "4.1.13",
"@tailwindcss/postcss": "4.1.16",
"@tailwindcss/typography": "0.5.19",
"@types/mdx": "2.0.13",
"@types/node": "22.18.6",
"@types/react": "19.1.13",
"@types/react-dom": "19.1.9",
"@types/node": "22.18.12",
"@types/react": "19.2.2",
"@types/react-dom": "19.2.2",
"@types/serve-handler": "6.1.4",
"@vorsteh-queue/adapter-drizzle": "workspace:*",
"@vorsteh-queue/adapter-kysely": "workspace:*",
Expand All @@ -76,16 +77,16 @@
"@vorsteh-queue/eslint-config": "workspace:*",
"@vorsteh-queue/prettier-config": "workspace:*",
"@vorsteh-queue/tsconfig": "workspace:*",
"eslint": "^9.36.0",
"eslint": "^9.38.0",
"next-validate-link": "1.6.3",
"pagefind": "1.4.0",
"postcss": "8.5.6",
"prettier": "^3.6.2",
"serve-handler": "6.1.6",
"tailwind-merge": "3.3.1",
"tailwindcss": "4.1.13",
"tailwindcss": "4.1.16",
"tailwindcss-animate": "1.0.7",
"tsx": "4.20.5",
"typescript": "^5.9.2"
"tsx": "4.20.6",
"typescript": "^5.9.3"
}
}
9 changes: 3 additions & 6 deletions apps/docs/src/app/(site)/(docs)/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ export async function generateStaticParams() {
return slugs
}

interface PageProps {
params: Promise<{ slug?: string[] }>
}

export async function generateMetadata(props: PageProps): Promise<Metadata> {
export async function generateMetadata(props: PageProps<"/[...slug]">): Promise<Metadata> {
const params = await props.params
const breadcrumbItems = await getBreadcrumbItems(params.slug)

Expand All @@ -28,9 +24,10 @@ export async function generateMetadata(props: PageProps): Promise<Metadata> {
}
}

export default async function DocsPage(props: PageProps) {
export default async function DocsPage(props: PageProps<"/[...slug]">) {
const params = await props.params

// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
const searchParam = `/${params.slug?.join("/") ?? ""}`

const transformedEntry = (await transformedEntries()).find(
Expand Down
14 changes: 5 additions & 9 deletions apps/docs/src/app/(site)/(docs)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,7 @@ export function AppSidebar({ items }: { items: TreeItem[] }) {
)
}

export default async function DocsLayout(
props: Readonly<{
params: Promise<{
slug?: string[]
}>
children: React.ReactNode
}>,
) {
export default async function DocsLayout(props: LayoutProps<"/">) {
const recursiveCollections = await AllDocumentation.getEntries({
recursive: true,
})
Expand All @@ -41,7 +34,10 @@ export default async function DocsLayout(
<SidebarInset className="bg-white dark:bg-secondary">
<div className="flex flex-1 flex-col gap-4 pb-[calc(var(--footer-height)+1rem)]">
<main className="flex w-full flex-1 flex-col transition-all duration-300 ease-in-out">
{props.children}
{
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
props.children
}
</main>
</div>
</SidebarInset>
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/app/(site)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Footer from "~/components/footer"
import MainHeader from "~/components/main-header"

export default function SiteLayout({ children }: { children: React.ReactNode }) {
export default function SiteLayout({ children }: LayoutProps<"/">) {
return (
<div className="min-h-screen bg-cream-50 dark:bg-dark-200" data-pagefind-ignore>
{/* Header */}
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const metadata: Metadata = {
"A powerful, ORM-agnostic queue engine for PostgreSQL 12. Handle background jobs, scheduled tasks, and recurring processes with ease.",
}

export default function RootLayout({ children }: { children: React.ReactNode }) {
export default function RootLayout({ children }: LayoutProps<"/">) {
return (
<RenounProvider
defaultPackageManager="pnpm"
Expand Down
1 change: 1 addition & 0 deletions apps/docs/src/components/client-only.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const useClientOnly = () => {
const [hasMounted, setHasMounted] = useState(false)

useEffect(() => {
// eslint-disable-next-line react-hooks/set-state-in-effect
setHasMounted(true)
}, [])

Expand Down
3 changes: 2 additions & 1 deletion apps/docs/src/components/file-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export async function FileContent({
className="prose mb-8 text-lg font-medium text-pretty text-muted-foreground sm:text-xl/8"
/>
),
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
code: (props) => <code>{props.children ?? ""}</code>,
}}
>
Expand Down Expand Up @@ -117,7 +118,7 @@ export async function FileContent({
<Siblings transformedEntry={transformedEntry} />
</div>
{frontmatter?.toc ? (
<div className="hidden w-[19.5rem] xl:sticky xl:top-[6.55rem] xl:-mr-6 xl:block xl:h-[calc(100vh-6.55rem)] xl:flex-none xl:overflow-y-auto xl:pr-6 xl:pb-16">
<div className="hidden w-78 xl:sticky xl:top-[6.55rem] xl:-mr-6 xl:block xl:h-[calc(100vh-6.55rem)] xl:flex-none xl:overflow-y-auto xl:pr-6 xl:pb-16">
<TableOfContents toc={headings} />

<div
Expand Down
3 changes: 2 additions & 1 deletion apps/docs/src/components/ui/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ function SidebarRail({ className, ...props }: React.ComponentProps<"button">) {
onClick={toggleSidebar}
title="Toggle Sidebar"
className={cn(
"absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex",
"absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-0.5 hover:after:bg-sidebar-border sm:flex",
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar",
Expand Down Expand Up @@ -587,6 +587,7 @@ function SidebarMenuSkeleton({
}) {
// Random width between 50 to 90%.
const width = React.useMemo(() => {
// eslint-disable-next-line react-hooks/purity
return `${Math.floor(Math.random() * 40) + 50}%`
}, [])

Expand Down
8 changes: 4 additions & 4 deletions examples/batch-processing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"dependencies": {
"@vorsteh-queue/adapter-drizzle": "workspace:*",
"@vorsteh-queue/core": "workspace:*",
"drizzle-orm": "^0.44.5",
"drizzle-orm": "^0.44.7",
"postgres": "^3.4.7"
},
"devDependencies": {
"drizzle-kit": "^0.31.4",
"tsx": "4.20.5",
"typescript": "^5.9.2"
"drizzle-kit": "^0.31.5",
"tsx": "4.20.6",
"typescript": "^5.9.3"
}
}
8 changes: 4 additions & 4 deletions examples/drizzle-pg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
"dependencies": {
"@vorsteh-queue/adapter-drizzle": "workspace:*",
"@vorsteh-queue/core": "workspace:*",
"drizzle-orm": "^0.44.5",
"drizzle-orm": "^0.44.7",
"pg": "8.16.3"
},
"devDependencies": {
"@types/pg": "8.15.5",
"drizzle-kit": "^0.31.4",
"tsx": "4.20.5",
"typescript": "^5.9.2"
"drizzle-kit": "^0.31.5",
"tsx": "4.20.6",
"typescript": "^5.9.3"
}
}
10 changes: 5 additions & 5 deletions examples/drizzle-pglite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"db:push": "drizzle-kit push"
},
"dependencies": {
"@electric-sql/pglite": "^0.3.10",
"@electric-sql/pglite": "^0.3.11",
"@vorsteh-queue/adapter-drizzle": "workspace:*",
"@vorsteh-queue/core": "workspace:*",
"drizzle-orm": "^0.44.5"
"drizzle-orm": "^0.44.7"
},
"devDependencies": {
"@types/node": "22.18.6",
"tsx": "4.20.5",
"typescript": "^5.9.2"
"@types/node": "22.18.12",
"tsx": "4.20.6",
"typescript": "^5.9.3"
}
}
8 changes: 4 additions & 4 deletions examples/drizzle-postgres/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"dependencies": {
"@vorsteh-queue/adapter-drizzle": "workspace:*",
"@vorsteh-queue/core": "workspace:*",
"drizzle-orm": "^0.44.5",
"drizzle-orm": "^0.44.7",
"postgres": "^3.4.7"
},
"devDependencies": {
"dotenv-cli": "10.0.0",
"drizzle-kit": "^0.31.4",
"tsx": "4.20.5",
"typescript": "^5.9.2"
"drizzle-kit": "^0.31.5",
"tsx": "4.20.6",
"typescript": "^5.9.3"
}
}
Loading
Loading