Releases: kysely-org/kysely
0.28.10
Hey π
A small batch of bug fixes. Please report any issues. π€π°π€
π Features
π Bugfixes
- Add
ExtractColumnTypeandDrainOuterGenerictype exports by @mifi in #1679 - fix:
$narrowTypecompilation errors whencomposite: true. by @igalklebanov in #1681 - fix:
executeTakeFirstcompilation error when composite. by @igalklebanov in #1683 - fix:
with/withRecursivecompilation errors when composite. by @igalklebanov in #1684
PostgreSQL π / MSSQL π₯
- fix: Migrator attempts to create custom migration schema even if it exists and fails on dialects that don't support
if not exists. by @austin-hall-skylight in #1608
PostgreSQL π / SQLite π
- fix:
returningcompilation errors whencomposite. by @igalklebanov in #1682
π Documentation
π¦ CICD & Tooling
- chore: bump
pnpmto 10.26.1, useallowBuildsandblockExoticSubdeps. by @igalklebanov in #1663 - chore: bump dependencies. by @igalklebanov in #1685
β οΈ Breaking Changes
π€ New Contributors
- @austin-hall-skylight made their first contribution in #1608
- @mifi made their first contribution in #1679
Full Changelog: v0.28.9...v0.28.10
0.28.9
Hey π
A small batch of bug fixes. Please report any issues. π€π°π€
π Features
π Bugfixes
PostgreSQL π
- fix: withSchema not applying for delete query using clause. by @igalklebanov in #1648
- fix: withSchema adds schema to for update|share|key share|no key share of tables causing database errors. by @igalklebanov in #1659
π Documentation
π¦ CICD & Tooling
- publish to jsr. by @igalklebanov in #1457
- chore: bump pnpm, use trustPolicy, exclude safe downgrades, fix browser test, fix bun tests. by @igalklebanov in #1641
- chore(ci): add deno lint with JSR rules. Add verbatimModuleSyntax in tsconfig.json. Apply lint fixes. by @igalklebanov in #1642
- chore: bump dependencies, run prettier. by @igalklebanov in #1644
- chore: bump github actions. by @igalklebanov in #1645
- fix TypeScript native type errors in test-setup.ts. by @igalklebanov in #1660
β οΈ Breaking Changes
π€ New Contributors
Full Changelog: v0.28.8...v0.28.9
0.28.8
Hey π
A small batch of bug fixes. Please report any issues. π€π°π€
π Features
π Bugfixes
PostgreSQL π
- fix: filter schemas the current user does not have access to in postres introspector by @chanon in #1550
- fix: insert/update not being wrapped in parens when in CTE of a merge query. by @igalklebanov & @msifd in #1611
π Documentation
- chore: add SECURITY.md. by @igalklebanov in #1590
- fix: correct JSDoc type references in migration docs by @iyoshi-rgb in #1536
π¦ CICD & Tooling
- chore(ci): add dependency provenance check, bump deps to force check. by @igalklebanov in #1589
- chore: bumps dependencies. by @igalklebanov in #1600
- chore: bump deps. by @igalklebanov in #1612
β οΈ Breaking Changes
π€ New Contributors
- @chanon made their first contribution in #1550
- @iyoshi-rgb made their first contribution in #1536
- @msifd made their first contribution in #1611
Full Changelog: v0.28.7...v0.28.8
0.28.7
Hey π
A small batch of bug fixes. Please report any issues. π€π°π€
π Features
π Bugfixes
- fix: unexported dynamic builders resulting in ts(2742) when composite: true. by @igalklebanov in #1578
- fix(ExpressionBuilder): improper custom operator support in
eb(). by @igalklebanov in #1579 - fix(TransactionBuilder): auto rollback only if transaction begun. by @igalklebanov in #1580
π Documentation
π¦ CICD & Tooling
β οΈ Breaking Changes
π€ New Contributors
Full Changelog: v0.28.6...v0.28.7
0.28.6
Hey π
A small batch of bug fixes. Please report any issues. π€π°π€
Docs site has been optimized and all we got was this animation:
π Features
π Bugfixes
PostgreSQL π / MSSQL π₯
- fix(WithSchemaTransformer): using table of merge into queries unhandled. by @alexander-azizi-martin in #1554.
MySQL π¬
- fix(dialect/mysql): compatibility with [email protected] by @jeengbe in #1574.
π Documentation
- docs: update site quotes section. by @igalklebanov in #1546.
- docs: add Execution flow page, and mermaid support. by @igalklebanov in #1548.
- docs: add kysely-supabase instructions. by @igalklebanov in #1555.
- docs: add llms.txt and llms-full.txt. by @igalklebanov in #1564.
- docs: add Sean's quote (Cal.com). by @igalklebanov in c1fd84d.
- docs: add vercel-analytics. by @igalklebanov in 1a21140.
- chore(docs): remove gtag. by @igalklebanov in 98e84f1.
- feat(docs): applying google fonts optimization. by @igalklebanov in #1566.
- chore(docs): clone packageManager property from root. by @igalklebanov in caa22f4.
- chore(docs): optimize demo video. by @igalklebanov in #1567.
- chore(docs): preload demo poster. by @igalklebanov in 3db3542.
- chore(docs): proper heading hierarchy. by @igalklebanov in 77eadc0.
- chore(docs): optimize avatars. by @igalklebanov in 45a010b.
- chore(docs): add meta description. by @igalklebanov in 8f4dd28.
- chore(docs): add LLMs docs page. by @igalklebanov in #1570.
π¦ CICD & Tooling
- chore: bump devDependencies, bump and pin github actions to commits, harden runners. by @igalklebanov in #1557.
- chore: bump typescript to 5.9, fix older TS tests, fix typings tests for pre-5.4. by @igalklebanov in #1538.
- chore(ci): typescript benchmark enhancements. by @igalklebanov in #1560.
- chore: bump deps, minor site fixes. by @igalklebanov in #1561.
- chore: remove broken bundle size badge from README. by @igalklebanov in 575c43a.
- chore: deny .only in mocha tests in CI only. by @igalklebanov in #1565.
- chore: bump deps. by @igalklebanov in #1577.
- pnpm 10.16. by @igalklebanov in c00319e.
- add keywords and homepage in package.json. by @igalklebanov in 163fcf4.
β οΈ Breaking Changes
π€ New Contributors
- @alexander-azizi-martin made their first contribution in #1554.
- @jeengbe made their first contribution in #1574.
Full Changelog: v0.28.5...v0.28.6
0.28.5
Hey π
A small batch of bug fixes. Please report any issues. π€π°π€
π Features
π Bugfixes
- fix:
BufferbreakingShallowDehydrateValuein non-Node.js TypeScript environments. by @igalklebanov in #1542.
π Documentation
π¦ CICD & Tooling
- chore(ci): pr comment typescript benchmark results. by @igalklebanov in #1540.
β οΈ Breaking Changes
π€ New Contributors
Full Changelog: v0.28.4...v0.28.5
0.28.4
Hey π
A small batch of bug fixes. Please report any issues. π€π°π€
π Features
π Bugfixes
- fix: ShallowDehydrateValue mishandles null & undefined, and bigint / numeric strings. by @igalklebanov in #1529
PostgreSQL π
π Documentation
π¦ CICD & Tooling
- chore: pnpm by @igalklebanov in #1527
- fix align-site-version script. by @igalklebanov in a9bcfa5
β οΈ Breaking Changes
π€ New Contributors
Full Changelog: v0.28.3...v0.28.4
0.28.3
Hey π
A small batch of bug fixes. Please report any issues. π€π°π€
π Features
- refactor: remove redundant queryId args. by @igalklebanov in #1483
CockroachDB π£
π Bugfixes
- fix(Migrator): NO_MIGRATIONS comparison fails in dup Kysely scenarios. by @igalklebanov in #1475
- Fix
Kysely<any>type errors with narrow table name types by @koskimas in #1443 - fix
AsyncDisposableusage erroring for older TypeScript versions. by @igalklebanov in #1507 - fix(helpers): JSON helpers' return types incorrectly have
Dates and other JS/Node-native instances that require data type metadata. by @igalklebanov in #1477
MySQL π¬ / MS SQL Server π₯
- fix: bigint immediates are appended as string literals instead of numbers. by @igalklebanov in #1445
MS SQL Server π₯
- fix(mssql): socket error handling during connect. by @igalklebanov in #1463
π Documentation
- Update plugins.md: fix broken link by @catnipan in #1460
- Added Cloudflare Durable Objects dialect by @benallfree in #1476
- Add Firebird DB dialect by @benkoppe in #1479
π¦ CICD & Tooling
- ensure jsdocs check's dts is source of truth for docs examples. by @igalklebanov in #1436
- chore: bye bye node 18. by @igalklebanov in #1450
- chore: bump deps, dump tsx for Node.js native TS. by @igalklebanov in #1451
- chore(CI): replace Node.js v23 with v24. by @igalklebanov in 1ae8829
- chore: make npm publishable package contents configuration safer/more maintainable. by @igalklebanov in #1456
- chore(CI): add native typescript type checks. by @igalklebanov in #1467
- Delete .renovaterc.json by @igalklebanov in 7d1c4e5
- chore: move pkg-pr-new to workflow only. by @igalklebanov in #1471
β οΈ Breaking Changes
π€ New Contributors
- @yawhide made their first contribution in #1459
- @catnipan made their first contribution in #1460
- @benallfree made their first contribution in #1476
- @benkoppe made their first contribution in #1479
Full Changelog: 0.28.2...v0.28.3
0.28.2
Hey π
v0.28 broke an undocumented TypeScript behavior our API had that allowed you to pass table name unions to query builders and enable some DRYing of queries. Seeing that this pattern was quite popular, we decided to support it officially with the addition of the table method in the dynamic module.
You can pull off some crazy complex stuff like:
async function getRowByColumn<
T extends keyof Database,
C extends keyof Database[T] & string,
V extends SelectType<Database[T][C]>,
>(t: T, c: C, v: V) {
// We need to use the dynamic module since the table name
// is not known at compile time.
const { table, ref } = db.dynamic
return await db
.selectFrom(table(t).as('t'))
.selectAll()
.where(ref(c), '=', v)
// `id` can be directly referenced since every table has it.
.orderBy('t.id')
.executeTakeFirstOrThrow()
}
const person = await getRowByColumn('person', 'first_name', 'Arnold')...and it'll narrow the downstream query context to the intersection of all the possible shapes of tables in the union type. (DONT DO THIS AT HOME KIDS!)
A simpler example would be:
async function deleteItem(id: string, table: 'person' | 'pet') {
await db
.deleteFrom(db.dynamic.table(table).as('t'))
.where('id', '=', id)
.executeTakeFirstOrThrow()
}If you attempt to refer to a column that doesn't exist in both "person" and "pet" (e.g. "pet"'s "species" column), the compiler will correctly yell at you.
π Features
π Bugfixes
SQLite π
- fix: SQLite's introspector is printing deprecation errors for
orderBy(array). by @igalklebanov in #1435
π Documentation
π¦ CICD & Tooling
β οΈ Breaking Changes
π€ New Contributors
Full Changelog: 0.28.1...0.28.2
0.28.1
Hey π
Just a small crucial bug fix release. Please inform us if you see any more regressions since v0.28. π
π Features
π Bugfixes
PostgreSQL π
π Documentation
π¦ CICD & Tooling
β οΈ Breaking Changes
π€ New Contributors
Full Changelog: 0.28.0...0.28.1