Skip to content

Commit ce506d6

Browse files
committed
Merge branch 'main' into feat/jdbc-transactions
2 parents 4366200 + 2e8c269 commit ce506d6

File tree

7,833 files changed

+790000
-586154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

7,833 files changed

+790000
-586154
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
**Summary of the change**: Provide a concise summary of this PR. Describe the changes made in a single sentence or short paragraph.
55

66
**Detailed description**:
7-
- **What**: Detail what changes have been made in the PR.
87
- **Why**: Explain the reasons behind the changes. Why were they necessary?
8+
- **What**: Detail what changes have been made in the PR.
99
- **How**: Describe how the changes were implemented, including any key aspects of the code modified or new features added.
1010

1111
---

.github/workflows/commit-message-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Validate commit messages
2929
run: |
3030
# Regex for Conventional Commits specification
31-
COMMIT_REGEX="^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(!)?(\([^\)]*\))?:\s?(EXPOSED-[0-9]+\s?)?.+$"
31+
COMMIT_REGEX="^(build|chore|ci|deprecate|docs|feat|fix|perf|refactor|revert|style|test)(!)?(\([^\)]*\))?:\s?(EXPOSED-[0-9]+\s?)?.+$"
3232
3333
# Get all commits in the pull request (from base to head)
3434
COMMITS=$(git log --format=%s --no-merges origin/main..${{ github.sha }})

.github/workflows/docs-workflow.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ classes/
1111
**/jetbrains.db
1212
.DS_Store
1313
.kotlin
14+
/.run/

.junie/guidelines.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Exposed is organized into multiple modules:
3131
### Testing Modules
3232
- **exposed-tests**: Tests for JDBC implementation
3333
- **exposed-r2dbc-tests**: Tests for R2DBC implementation
34+
- **exposed-jdbc-r2dbc-tests**: Tests for JDBC and R2DBC mixed in one module
3435

3536
## Supported Databases
3637
Exposed supports multiple database engines:

CHANGELOG.md

Lines changed: 227 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,230 @@
1+
# 1.0.0-rc-4
2+
3+
Breaking changes:
4+
* build(deps)!: EXPOSED-918 Bump H2 and H2-R2DBC test driver versions by @bog-walk in https://github.com/JetBrains/Exposed/pull/2654
5+
* fix!: EXPOSED-870 Schema migration detection not compatible with sqlite-jdbc 3.50.2.0 by @bog-walk in https://github.com/JetBrains/Exposed/pull/2652
6+
* chore!: Rename field Transaction.id to Transaction.txId by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2602
7+
8+
Infrastructure:
9+
* gradle-maven-publish-plugin 0.35.0
10+
* springFramework 6.2.14
11+
* springBoot 3.5.8
12+
13+
Features:
14+
* feat: EXPOSED-845 Add read access to default logger in Transaction classes by @bog-walk in https://github.com/JetBrains/Exposed/pull/2657
15+
* feat: EXPOSED-822 Enable JSONB/BLOB support for SQLite by @bog-walk in https://github.com/JetBrains/Exposed/pull/2659
16+
17+
Bug fixes:
18+
* fix: EXPOSED-877 Error 'No transaction in context' for select by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2661
19+
20+
Docs:
21+
* docs: Update defaults for transaction isolation by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2650
22+
* docs: Fix typos in Transactions.md by @kchung1995 in https://github.com/JetBrains/Exposed/pull/2660
23+
* docs: EXPOSED-947 Document any minimum setup requirements by @bog-walk in https://github.com/JetBrains/Exposed/pull/2669
24+
25+
# 1.0.0-rc-3
26+
27+
Breaking changes:
28+
* chore!: EXPOSED-893 Read-only transaction initiation convenience by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2628
29+
* chore!: Refactoring of JDBC transaction management by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2632
30+
31+
Infrastructure:
32+
* springFramework 6.2.12
33+
* springBoot 3.5.7
34+
* r2dbc-postgresql 1.1.1.RELEASE
35+
* dokka 2.1.0
36+
* ojdbc11 23.26.0.0.0
37+
38+
Build:
39+
* build(deps): [EXPOSED-921] Bump jvmToolchain and set compile jvmTarget by @bog-walk in https://github.com/JetBrains/Exposed/pull/2643
40+
41+
Bug fixes:
42+
* fix: EXPOSED-880 [PostgreSQL] Fix casting nullable JSON columns by @nicktelford in https://github.com/JetBrains/Exposed/pull/2616
43+
* fix: Fix R2DBC connection retrieval by @IlyaPechuro in https://github.com/JetBrains/Exposed/pull/2641
44+
45+
Refactoring:
46+
* refactor: Replace invocations of `Array.toList` with `Array.asList` to slightly reduce some copy overhead by @ShreckYe in https://github.com/JetBrains/Exposed/pull/2637
47+
48+
Docs:
49+
* docs: EXPOSED-911 Update Exposed logo in docs and README.md by @vnikolova in https://github.com/JetBrains/Exposed/pull/2640
50+
* docs: Update migration guide & docs with JDBC transaction management changes by @bog-walk in https://github.com/JetBrains/Exposed/pull/2642
51+
52+
# 1.0.0-rc-2
53+
54+
Infrastructure:
55+
* springFramework 6.2.11
56+
* springBoot 3.5.6
57+
* logcaptor 2.12.1
58+
* r2dbc-mssql 1.0.3.RELEASE
59+
* org.postgresql:postgresql 42.7.8
60+
61+
Breaking changes:
62+
* feat!: EXPOSED-882 Add StatementInterceptor that allows suspend operations by @bog-walk in https://github.com/JetBrains/Exposed/pull/2621
63+
64+
Bug fixes:
65+
* fix: EXPOSED-856 Add support for inserting UUID arrays in R2DBC by @Blad3Mak3r in https://github.com/JetBrains/Exposed/pull/2593
66+
* fix: Refactoring of switching between coroutines by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2619
67+
* fix: EXPOSED-886 Changes made to DAO (entity) can be lost on serializable transaction retry by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2627
68+
69+
Docs:
70+
* docs: fix: EXPOSED-873 Update API links and extension modules table by @vnikolova in https://github.com/JetBrains/Exposed/pull/2612
71+
* docs: fix: EXPOSED-883 Broken API links in Statement-Interceptors.md by @vnikolova in https://github.com/JetBrains/Exposed/pull/2625
72+
73+
# 1.0.0-rc-1
74+
75+
## What's Changed
76+
77+
Breaking changes:
78+
* chore!: Drop return value of R2dbcPreparedStatementApi.executeUpdate() by @bog-walk in https://github.com/JetBrains/Exposed/pull/2583
79+
* chore!: Move areEquivalentColumnTypes from DatabaseDialect to Exposed DatabaseMetadata by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2590
80+
* chore!: EXPOSED-844 supportsSelectForUpdate parameter from DatabaseDialect should be deprecated by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2576
81+
* fix!: Replace SqlExpressionBuilder methods with top-level functions by @bog-walk in https://github.com/JetBrains/Exposed/pull/2600
82+
* chore!: Rename R2DBCRow to R2dbcRow by @bog-walk in https://github.com/JetBrains/Exposed/pull/2605
83+
* chore!: Refactoring of date time modules by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2595
84+
* fix!: Refactor use of runBlocking to be conditional for metadata properties by @bog-walk in https://github.com/JetBrains/Exposed/pull/2530
85+
* refactor!: Align suspendTransaction() with transaction() & drop context parameter by @bog-walk in https://github.com/JetBrains/Exposed/pull/2601
86+
* feat!: EXPOSED-841 Enable exposed-migration that works with R2DBC by @bog-walk in https://github.com/JetBrains/Exposed/pull/2604
87+
88+
Deprecations:
89+
* deprecate: Raise deprecation levels of API elements by @bog-walk in https://github.com/JetBrains/Exposed/pull/2588
90+
91+
Infrastructure:
92+
* springFramework 6.2.10
93+
* springBoot 3.5.5
94+
95+
Bug fixes:
96+
* fix: [H2] R2dbcDatabase.name parsing error returns all url properties by @bog-walk in https://github.com/JetBrains/Exposed/pull/2578
97+
* fix: EXPOSED-801 NoClassDefFoundError when using exposed-json with pg-r2dbc dependency only by @bog-walk in https://github.com/JetBrains/Exposed/pull/2579
98+
* fix: EXPOSED-815 Fix resolving ExpressionAlias by @ntkoopman in https://github.com/JetBrains/Exposed/pull/2569
99+
* fix: Provide typed exec(query) to avoid casting results in lamdba block by @bog-walk in https://github.com/JetBrains/Exposed/pull/2584
100+
* fix: Unify database connect functions between r2dbc and jdbc by @e5l in https://github.com/JetBrains/Exposed/pull/2591
101+
102+
Docs:
103+
* docs: Add section on DSL buildStatement() and prepareSQL() by @bog-walk in https://github.com/JetBrains/Exposed/pull/2563
104+
* docs: build: EXPOSED-852 Add GA4 script by @vnikolova in https://github.com/JetBrains/Exposed/pull/2587
105+
* docs: build: EXPOSED-850 Add configuration for feedback widget by @vnikolova in https://github.com/JetBrains/Exposed/pull/2592
106+
* docs: fix: EXPOSED-853 Wrong import shown in exposed-kotlin-datetime example by @vnikolova in https://github.com/JetBrains/Exposed/pull/2586
107+
* docs: fix: EXPOSED-820 fix examples and update r2dbc connect functions by @vnikolova in https://github.com/JetBrains/Exposed/pull/2596
108+
* docs: EXPOSED-865 Sample projects not compiling with beta versions by @bog-walk in https://github.com/JetBrains/Exposed/pull/2597
109+
* docs: Exclude @InternalApi elements from generated dokka files by @bog-walk in https://github.com/JetBrains/Exposed/pull/2606
110+
* docs: Update docs with change to R2dbcDatabase.connect() overload by @bog-walk in https://github.com/JetBrains/Exposed/pull/2607
111+
112+
Build:
113+
* build: Include api(exposed-jdbc) dependency with exposed-migration by @bog-walk in https://github.com/JetBrains/Exposed/pull/2582
114+
* build: Include api(exposed-jdbc) dependency with spring-transaction by @bog-walk in https://github.com/JetBrains/Exposed/pull/2581
115+
116+
# 1.0.0-beta-5
117+
118+
## What's Changed
119+
120+
Breaking changes:
121+
* Separate multiple internal classes from single file by @bog-walk in https://github.com/JetBrains/Exposed/pull/2564
122+
* Rename IStatementBuilder interface and add executable converter by @bog-walk in https://github.com/JetBrains/Exposed/pull/2562
123+
* Address internal TODOs and checks by @bog-walk in https://github.com/JetBrains/Exposed/pull/2572
124+
* EXPOSED-813 When is the plan to migrate kotlinx.datetime.Instant to kotlin.time.Instant? by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2557
125+
* Add hint about package naming changes in Exposed 1.0.0 by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2561
126+
* Phase out support for H2 version 1.x by @bog-walk in https://github.com/JetBrains/Exposed/pull/2573
127+
128+
Infrastructure:
129+
* Kotlin 2.1.0
130+
* Bump org.jetbrains.kotlinx.binary-compatibility-validator from 0.18.0 to 0.18.1 by @dependabot[bot] in https://github.com/JetBrains/Exposed/pull/2554
131+
* Bump springFramework from 6.2.8 to 6.2.9 by @dependabot[bot] in https://github.com/JetBrains/Exposed/pull/2560
132+
* Bump springBoot from 3.5.3 to 3.5.4 by @dependabot[bot] in https://github.com/JetBrains/Exposed/pull/2571
133+
* Bump org.junit:junit-bom from 5.13.3 to 5.13.4 by @dependabot[bot] in https://github.com/JetBrains/Exposed/pull/2566
134+
* Bump io.asyncer:r2dbc-mysql from 1.3.2 to 1.4.1 by @dependabot[bot] in https://github.com/JetBrains/Exposed/pull/2477
135+
* Bump io.github.hakky54:logcaptor from 2.11.0 to 2.12.0 by @dependabot[bot] in https://github.com/JetBrains/Exposed/pull/2574
136+
* Bump com.vanniktech:gradle-maven-publish-plugin from 0.33.0 to 0.34.0 by @dependabot[bot] in https://github.com/JetBrains/Exposed/pull/2570
137+
* Migrate to Vanniktech Maven Publish plugin by @e5l in https://github.com/JetBrains/Exposed/pull/2552
138+
* Remove fixed or addressed TODOs by @bog-walk in https://github.com/JetBrains/Exposed/pull/2551
139+
140+
Docs:
141+
* docs: Merge gh-pages commits into main by @bog-walk in https://github.com/JetBrains/Exposed/pull/2546
142+
143+
Features:
144+
* feat: EXPOSED-826 Extend MigrationUtils with dropUnmappedIndices and dropUnmappedSequence by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2547
145+
146+
Bug fixes:
147+
* EXPOSED-768 UUID inserts into BINARY(16) column types in H2 by @med01-flutter-uki in https://github.com/JetBrains/Exposed/pull/2463
148+
* EXPOSED-811 argument "where" in "batchUpsert" have no way to use it by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2529
149+
* readObject() parameter change requires casting to keep using by @bog-walk in https://github.com/JetBrains/Exposed/pull/2550
150+
* Fix the duplicated segments on SQLServer dialect by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2558
151+
* EXPOSED-815 Check types for QueryAlias.get() at runtime by @ntkoopman in https://github.com/JetBrains/Exposed/pull/2532
152+
* Enable "SELECT FOR UPDATE" for the several applicable dialects by @sokomishalov in https://github.com/JetBrains/Exposed/pull/2567
153+
* EXPOSED-731 Timestamp support for SQLite is broken by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2568
154+
* EXPOSED-825 Case().When(...).Else(...) with QueryParameter(...,… by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2565
155+
156+
## New Contributors
157+
* @med01-flutter-uki made their first contribution in https://github.com/JetBrains/Exposed/pull/2463
158+
* @ntkoopman made their first contribution in https://github.com/JetBrains/Exposed/pull/2532
159+
* @sokomishalov made their first contribution in https://github.com/JetBrains/Exposed/pull/2567
160+
161+
# 1.0.0-beta-4
162+
163+
## What's Changed
164+
165+
Breaking changes:
166+
* refactor!: Make ThreadLocalMap internal & move mtc package into transactions by @bog-walk in https://github.com/JetBrains/Exposed/pull/2542
167+
* refactor!: Move addLogger() to exposed-core Transaction class by @bog-walk in https://github.com/JetBrains/Exposed/pull/2543
168+
169+
Infrastructure:
170+
* org.junit:junit-bom 5.13.3
171+
172+
Docs:
173+
* docs: Update KDocs @sample to use correct v1 package paths by @bog-walk in https://github.com/JetBrains/Exposed/pull/2541
174+
175+
Bug fixes:
176+
* fix: EXPOSED-827 forUpdate() query method doesn't add actual `FOR UDPATE` modifier by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2548
177+
178+
# 1.0.0-beta-3
179+
180+
## What's Changed
181+
182+
Infrastructure:
183+
* org.postgresql:postgresql 42.7.7
184+
* springBoot 3.5.3
185+
* springFramework 6.2.8
186+
* org.gradle.toolchains.foojay-resolver 1.0.0
187+
* org.junit:junit-bom 5.13.2
188+
* org.xerial:sqlite-jdbc 3.50.1.0
189+
* log4j2 2.25.0
190+
* org.jetbrains.kotlinx.binary-compatibility-validator 0.18.0
191+
192+
Breaking changes:
193+
* fix!: EXPOSED-800 NoClassDefFoundError when using R2DBC with a database other than PostgreSQL by @bog-walk in https://github.com/JetBrains/Exposed/pull/2501
194+
* deprecate!: Replace PreparedStatementApi.setArray() with version that accepts column type by @bog-walk in https://github.com/JetBrains/Exposed/pull/2504
195+
* fix!: Join BatchInsertStatement with BaseBatchInsertStatement by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2521
196+
* fix!: Versioning via Version class instead of BigDecimals by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2520
197+
* fix!: Introduce SuspendCachableMapWithDefault to avoid using runBlocking inside CachableMapWithDefault by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2525
198+
* fix!: Move handling Json in R2DBC to TypeMappers by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2526
199+
200+
Features:
201+
* feat: EXPOSED-786 Add R2dbcDatabase.connect() that matches JDBC constructor option by @bog-walk in https://github.com/JetBrains/Exposed/pull/2517
202+
203+
Bug fixes:
204+
* fix: EXPOSED-787 Disparity between create/drop index statements when … by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2491
205+
* fix: EXPOSED-803 ImmutableCachedEntityClass throws NullPointerException on concurrent access by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2506
206+
* fix: getValue for type mappers by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2509
207+
* fix: Ordering of type mappers, interface for type mappers registry by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2513
208+
* revert: insert() and insertAndGetId() body parameter type by @bog-walk in https://github.com/JetBrains/Exposed/pull/2516
209+
* fix: EXPOSED-806 Inconsistent migration of JSON generated columns on Postgres by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2519
210+
* fix: Split date/time type mapper by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2518
211+
* fix: Remove duplications of inProperCase() by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2522
212+
* fix: Update resource paths in ExposedAotContribution to match current package structure by @marceligrabowski in https://github.com/JetBrains/Exposed/pull/2512
213+
* refactor: Address multiple metadata TODOs by @bog-walk in https://github.com/JetBrains/Exposed/pull/2531
214+
* fix: EXPOSED-752 Connection is closed is throw when `newSuspendedTransaction` is used by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2538
215+
216+
Docs:
217+
* docs: update to 1.0.0-beta-1 and add release details by @vnikolova in https://github.com/JetBrains/Exposed/pull/2486
218+
* docs: Improve documentation through 'Deep Dive into DAO' section by @Attacktive in https://github.com/JetBrains/Exposed/pull/2495
219+
* docs: Add missing KDocs for version 1.0.0 by @bog-walk in https://github.com/JetBrains/Exposed/pull/2505
220+
* docs: EXPOSED-799 Add migration guide for 1.0.0 by @bog-walk in https://github.com/JetBrains/Exposed/pull/2498
221+
* docs: EXPOSED-531 Add sample project using Ktor and R2DBC by @bog-walk in https://github.com/JetBrains/Exposed/pull/2499
222+
* docs: EXPOSED-534 Add documentation for R2DBC support by @vnikolova in https://github.com/JetBrains/Exposed/pull/2503
223+
224+
Tests:
225+
* test: Fix spring-boot-starter test blockage following bump to 3.5.0 by @bog-walk in https://github.com/JetBrains/Exposed/pull/2502
226+
* test: Enable PostgreSQL tests for R2DBC customEnumeration() by @bog-walk in https://github.com/JetBrains/Exposed/pull/2515
227+
1228
# 1.0.0-beta-2
2229

3230
## What's Changed

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
same "printed page" as the copyright notice for easier
188188
identification within third-party archives.
189189

190-
Copyright [yyyy] [name of copyright owner]
190+
Copyright 2000-2025 JetBrains s.r.o.
191191

192192
Licensed under the Apache License, Version 2.0 (the "License");
193193
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)