Skip to content

Commit

Permalink
Merge pull request #2190 from undb-io/release/v1.0.0-136
Browse files Browse the repository at this point in the history
Release version v1.0.0-136
  • Loading branch information
nichenqin authored Dec 26, 2024
2 parents a05f77d + ded6dbd commit 28d22b7
Show file tree
Hide file tree
Showing 21 changed files with 85 additions and 69 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## v1.0.0-136


### 🩹 Fixes

- Fix create dashboard widget ([27b5b06](https://github.com/undb-io/undb/commit/27b5b06))

### ❤️ Contributors

- Nichenqin ([@nichenqin](http://github.com/nichenqin))

## v1.0.0-135


Expand Down
10 changes: 5 additions & 5 deletions apps/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"build:docker": "bun build --compile src/index.ts --target=bun --packages=external --sourcemap --outfile undb"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.705.0",
"@aws-sdk/s3-request-presigner": "^3.705.0",
"@aws-sdk/client-s3": "^3.717.0",
"@aws-sdk/s3-request-presigner": "^3.717.0",
"@elysiajs/cors": "1.1.0",
"@elysiajs/cron": "1.1.0",
"@elysiajs/html": "1.1.0",
Expand Down Expand Up @@ -42,15 +42,15 @@
"@undb/template": "workspace:*",
"@undb/trpc": "workspace:*",
"@undb/webhook": "workspace:*",
"arctic": "^2.3.0",
"bun": "^1.1.38",
"arctic": "^2.3.3",
"bun": "^1.1.42",
"core-js": "^3.39.0",
"elysia": "1.1.7",
"got": "^14.4.5",
"handlebars": "^4.7.8",
"lucia": "^3.2.2",
"mailgun-nodemailer-transport": "^3.0.2",
"minio": "^8.0.2",
"minio": "^8.0.3",
"nanoid": "^5.0.9",
"nodemailer": "^6.9.16",
"oslo": "^1.2.1",
Expand Down
50 changes: 25 additions & 25 deletions apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@
"@jimmyverburgt/svelte-input-otp": "^0.0.3",
"@neoconfetti/svelte": "^2.2.1",
"@svelte-put/copy": "^4.0.0",
"@svelte-put/shortcut": "^4.0.0",
"@sveltejs/adapter-static": "^3.0.6",
"@sveltejs/kit": "^2.9.1",
"@svelte-put/shortcut": "^4.1.0",
"@sveltejs/adapter-static": "^3.0.8",
"@sveltejs/kit": "^2.15.0",
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"@tailwindcss/typography": "^0.5.15",
"@tanstack/eslint-plugin-query": "^5.62.1",
"@tanstack/eslint-plugin-query": "^5.62.9",
"@types/eslint": "^9.6.1",
"@types/lodash.unzip": "^3.4.9",
"@types/papaparse": "^5.3.15",
"@types/sortablejs": "latest",
"@typescript-eslint/eslint-plugin": "^8.18.0",
"@typescript-eslint/parser": "^8.18.0",
"@typescript-eslint/eslint-plugin": "^8.18.2",
"@typescript-eslint/parser": "^8.18.2",
"@undb/commands": "workspace:*",
"@undb/command-handlers": "workspace:*",
"@undb/query-handlers": "workspace:*",
Expand All @@ -50,11 +50,11 @@
"array-move": "^4.0.0",
"autoprefixer": "^10.4.20",
"date-fns": "^4.1.0",
"eslint": "^9.16.0",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.46.1",
"houdini": "^1.3.1",
"houdini-svelte": "^2.0.1",
"houdini": "^1.4.0",
"houdini-svelte": "^2.1.0",
"lodash.unzip": "^3.4.0",
"papaparse": "^5.4.1",
"postcss": "^8.4.49",
Expand All @@ -66,18 +66,18 @@
"rollup-plugin-visualizer": "^5.12.0",
"safe-flat": "^2.1.0",
"sortablejs": "^1.15.6",
"svelte": "^5.10.0",
"svelte": "^5.16.0",
"svelte-check": "^4.1.1",
"svelte-headless-table": "^0.18.3",
"svelte-inview": "^4.0.4",
"svelte-jsoneditor": "^2.3.2",
"svelte-jsoneditor": "^2.3.3",
"svelte-persisted-store": "^0.12.0",
"sveltekit-search-params": "^3.0.0",
"svelvet": "^10.0.2",
"tailwindcss": "^3.4.16",
"tailwindcss": "^3.4.17",
"timeago.js": "^4.0.2",
"tslib": "^2.8.1",
"type-fest": "^4.30.0",
"type-fest": "^4.31.0",
"typescript": "^5.7.2",
"vite": "^5.4.11",
"vite-plugin-node-polyfills": "^0.22.0",
Expand All @@ -88,39 +88,39 @@
"dependencies": {
"@atlaskit/pragmatic-drag-and-drop": "^1.4.0",
"@codemirror/commands": "^6.7.1",
"@codemirror/language": "^6.10.6",
"@codemirror/language": "^6.10.8",
"@codemirror/state": "^6.5.0",
"@codemirror/view": "^6.35.3",
"@codemirror/view": "^6.36.1",
"@floating-ui/dom": "^1.6.12",
"@formkit/auto-animate": "^0.8.2",
"@internationalized/date": "^3.6.0",
"@svelte-put/clickoutside": "^4.0.0",
"@tanstack/svelte-query": "^5.62.3",
"@tanstack/svelte-virtual": "^3.10.9",
"@tiptap/core": "^2.10.3",
"@tiptap/pm": "^2.10.3",
"@tiptap/starter-kit": "^2.10.3",
"@tanstack/svelte-query": "^5.62.9",
"@tanstack/svelte-virtual": "^3.11.2",
"@tiptap/core": "^2.10.4",
"@tiptap/pm": "^2.10.4",
"@tiptap/starter-kit": "^2.10.4",
"@trpc/client": "^10.45.2",
"@undb/zod": "workspace:*",
"bits-ui": "^0.21.16",
"bits-ui": "^0.22.0",
"clsx": "^2.1.1",
"cmdk-sv": "^0.0.18",
"embla-carousel-svelte": "^8.5.1",
"formsnap": "^1.0.1",
"fuse.js": "^7.0.0",
"lucide-svelte": "^0.468.0",
"lucide-svelte": "^0.469.0",
"mode-watcher": "^0.5.0",
"paneforge": "^0.0.6",
"reflect-metadata": "^0.2.2",
"svelte-grid": "^5.1.2",
"svelte-qrcode": "^1.0.1",
"svelte-radix": "^2.0.1",
"svelte-sonner": "^0.3.28",
"sveltekit-superforms": "^2.21.1",
"tailwind-merge": "^2.5.5",
"sveltekit-superforms": "^2.22.1",
"tailwind-merge": "^2.6.0",
"tailwind-variants": "^0.3.0",
"trpc-svelte-query-adapter": "^2.3.15",
"ts-pattern": "^5.5.0",
"ts-pattern": "^5.6.0",
"vaul-svelte": "^0.3.2"
}
}
6 changes: 6 additions & 0 deletions apps/frontend/src/routes/(auth)/login/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import Logo from "$lib/images/logo.svg"
import { goto } from "$app/navigation"
import { LL } from "@undb/i18n/client"
import { Button } from "$lib/components/ui/button"
export let data: PageData
Expand Down Expand Up @@ -88,4 +89,9 @@
{redirect}
/>
</div>

<div>
<Button href="/playground" variant="link" class="w-full" size="sm">Try Undb Playground</Button>
<p class="text-muted-foreground w-full text-center text-xs">Without register</p>
</div>
</section>
5 changes: 5 additions & 0 deletions apps/frontend/src/routes/(auth)/signup/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import Logo from "$lib/images/logo.svg"
import { goto } from "$app/navigation"
import { LL } from "@undb/i18n/client"
import { Button } from "$lib/components/ui/button"
export let data: PageData
Expand Down Expand Up @@ -86,4 +87,8 @@
}}
/>
</div>
<div>
<Button href="/playground" variant="link" class="w-full" size="sm">Try Undb Playground</Button>
<p class="text-muted-foreground w-full text-center text-xs">Without register</p>
</div>
</section>
Binary file modified bun.lockb
Binary file not shown.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "undb",
"version": "1.0.0-135",
"version": "1.0.0-136",
"private": true,
"scripts": {
"build": "NODE_ENV=production bun --bun turbo build",
Expand All @@ -26,10 +26,10 @@
"clean": "run-p clean:*"
},
"devDependencies": {
"drizzle-kit": "^0.30.0",
"drizzle-kit": "^0.30.1",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"npm-run-all2": "^7.0.1",
"lint-staged": "^15.2.11",
"npm-run-all2": "^7.0.2",
"prettier": "^3.4.2",
"turbo": "^2.3.3"
},
Expand All @@ -39,7 +39,7 @@
"engines": {
"node": ">=18"
},
"packageManager": "[email protected].38",
"packageManager": "[email protected].42",
"workspaces": [
"apps/*",
"packages/*"
Expand Down
2 changes: 1 addition & 1 deletion packages/command-handlers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"@undb/openapi": "workspace:*",
"@undb/template": "workspace:*",
"@undb/user": "workspace:*",
"ts-pattern": "^5.5.0"
"ts-pattern": "^5.6.0"
}
}
2 changes: 1 addition & 1 deletion packages/cqrs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"devDependencies": {
"@types/bun": "latest",
"@types/uuid": "^10.0.0",
"type-fest": "^4.30.0"
"type-fest": "^4.31.0"
},
"peerDependencies": {
"typescript": "^5.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"@undb/table": "workspace:*",
"@undb/utils": "workspace:*",
"@undb/zod": "workspace:*",
"ts-pattern": "^5.5.0"
"ts-pattern": "^5.6.0"
}
}
2 changes: 1 addition & 1 deletion packages/event-handlers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"@undb/openapi": "workspace:*",
"@undb/template": "workspace:*",
"@undb/user": "workspace:*",
"ts-pattern": "^5.5.0"
"ts-pattern": "^5.6.0"
}
}
2 changes: 1 addition & 1 deletion packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@undb/env": "workspace:*",
"pino": "^9.5.0",
"pino": "^9.6.0",
"pino-pretty": "^13.0.0"
}
}
8 changes: 4 additions & 4 deletions packages/persistence/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"devDependencies": {
"@types/bun": "latest",
"@types/sql.js": "^1.4.9",
"drizzle-kit": "^0.30.0"
"drizzle-kit": "^0.30.1"
},
"peerDependencies": {
"typescript": "^5.0.0"
Expand All @@ -37,14 +37,14 @@
"@undb/user": "workspace:*",
"@undb/webhook": "workspace:*",
"date-fns": "^4.1.0",
"drizzle-orm": "^0.38.0",
"es-toolkit": "^1.29.0",
"drizzle-orm": "^0.38.3",
"es-toolkit": "^1.30.1",
"kysely": "^0.27.5",
"kysely-bun-sqlite": "^0.3.2",
"kysely-wasm": "^0.7.0",
"radash": "^12.1.0",
"reflect-metadata": "^0.2.2",
"sql.js": "^1.12.0",
"ts-pattern": "^5.5.0"
"ts-pattern": "^5.6.0"
}
}
17 changes: 7 additions & 10 deletions packages/persistence/src/dashboard/dashboard.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,12 @@ export class DashboardRepository implements IDashboardRepository {
) {}

async find(spec: IDashboardSpecification): Promise<Dashboard[]> {
const tx = this.txContext.getCurrentTransaction()
const dashboards = await tx
const dashboards = await this.qb
.selectFrom("undb_dashboard")
.selectAll()
.$call((qb) => new DashboardReferenceVisitor(qb).call(spec))
.where((eb) => {
const visitor = new DashboardFilterVisitor(eb, tx)
const visitor = new DashboardFilterVisitor(eb, this.qb)
spec.accept(visitor)
return visitor.cond
})
Expand All @@ -50,13 +49,12 @@ export class DashboardRepository implements IDashboardRepository {
return dashboards.map((dashboard) => this.mapper.toDo(dashboard))
}
async findOne(spec: IDashboardSpecification): Promise<Option<Dashboard>> {
const tx = this.txContext.getCurrentTransaction()
const dashboard = await tx
const dashboard = await this.qb
.selectFrom("undb_dashboard")
.selectAll()
.$call((qb) => new DashboardReferenceVisitor(qb).call(spec))
.where((eb) => {
const visitor = new DashboardFilterVisitor(eb, tx)
const visitor = new DashboardFilterVisitor(eb, this.qb)
spec.accept(visitor)
return visitor.cond
})
Expand All @@ -68,13 +66,12 @@ export class DashboardRepository implements IDashboardRepository {
const spaceId = this.context.mustGetCurrentSpaceId()
const spec = WithDashboardId.fromString(id).and(new WithDashboardSpaceId(spaceId))

const tx = this.txContext.getCurrentTransaction()
const dashboard = await tx
const dashboard = await this.qb
.selectFrom("undb_dashboard")
.selectAll()
.$call((qb) => new DashboardReferenceVisitor(qb).call(spec))
.where((eb) => {
const visitor = new DashboardFilterVisitor(eb, tx)
const visitor = new DashboardFilterVisitor(eb, this.qb)
spec.accept(visitor)
return visitor.cond
})
Expand Down Expand Up @@ -117,7 +114,7 @@ export class DashboardRepository implements IDashboardRepository {
async updateOneById(dashboard: Dashboard, spec: IDashboardSpecification): Promise<void> {
const userId = this.context.mustGetCurrentUserId()

const qb = this.qb
const qb = this.txContext.getCurrentTransaction()
const visitor = new DashboardMutateVisitor(dashboard, qb)
spec.accept(visitor)

Expand Down
9 changes: 3 additions & 6 deletions packages/persistence/src/table/table.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ export class TableRepository implements ITableRepository {
}

async find(spec: Option<TableComositeSpecification>, ignoreSpace?: boolean): Promise<TableDo[]> {
const query = this.txContext
.getCurrentTransaction()
const query = this.qb
.selectFrom("undb_table")
.selectAll("undb_table")
.$if(spec.isSome(), (qb) => new TableReferenceVisitor(qb).call(spec.unwrap()))
Expand All @@ -188,8 +187,7 @@ export class TableRepository implements ITableRepository {
}

async findOne(spec: Option<TableComositeSpecification>): Promise<Option<TableDo>> {
const tb = await this.txContext
.getCurrentTransaction()
const tb = await this.qb
.selectFrom("undb_table")
.selectAll("undb_table")
.$if(spec.isSome(), (qb) => new TableReferenceVisitor(qb).call(spec.unwrap()))
Expand All @@ -205,8 +203,7 @@ export class TableRepository implements ITableRepository {

async findOneById(id: TableId): Promise<Option<TableDo>> {
const spec = Some(new TableIdSpecification(id))
const tb = await this.txContext
.getCurrentTransaction()
const tb = await this.qb
.selectFrom("undb_table")
.selectAll("undb_table")
.$call((qb) => new TableReferenceVisitor(qb).call(spec.unwrap()))
Expand Down
4 changes: 2 additions & 2 deletions packages/realtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"@undb/di": "workspace:*",
"@undb/persistence": "workspace:*",
"@undb/table": "workspace:*",
"drizzle-orm": "^0.38.0",
"ts-pattern": "^5.5.0"
"drizzle-orm": "^0.38.3",
"ts-pattern": "^5.6.0"
},
"devDependencies": {
"@types/bun": "latest"
Expand Down
Loading

0 comments on commit 28d22b7

Please sign in to comment.