Skip to content

Commit

Permalink
chore: Bump Exposed version from 0.49.0 to 0.50.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bog-walk committed Apr 29, 2024
1 parent d2f02dd commit da560b3
Show file tree
Hide file tree
Showing 10 changed files with 90 additions and 48 deletions.
40 changes: 39 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,41 @@
# 0.50.0
Infrastructure:
* Spring Framework 6.1.6

Breaking changes:
* fix!: EXPOSED-317 repetitionAttempts property is misleading by @bog-walk in https://github.com/JetBrains/Exposed/pull/2042
* refactor!: Column type safety by @joc-a in https://github.com/JetBrains/Exposed/pull/2027
* More details at [Breaking changes](https://jetbrains.github.io/Exposed/breaking-changes.html#0-50-0)

Deprecations:
* deprecate: Raise deprecation levels of API elements by @bog-walk in https://github.com/JetBrains/Exposed/pull/2038
* deprecate: EXPOSED-354 Database.connectPool() with ConnectionPoolDataSource by @bog-walk in https://github.com/JetBrains/Exposed/pull/2059

Features:
* feat: EXPOSED-327 Support GraalVM native images with Spring Boot by @joshlong and @bog-walk in https://github.com/JetBrains/Exposed/pull/2039. Many thanks to [joshlong](https://github.com/joshlong) for the support.
* feat: EXPOSED-296 Add ability to check if a Sequence exists in a database by @joc-a in https://github.com/JetBrains/Exposed/pull/2045
* feat: EXPOSED-355 Support INSERT...RETURNING statement by @bog-walk in https://github.com/JetBrains/Exposed/pull/2060
* feat: EXPOSED-357 Support DELETE...RETURNING statement by @bog-walk in https://github.com/JetBrains/Exposed/pull/2061
* feat: EXPOSED-356 Support UPDATE...RETURNING statement by @bog-walk in https://github.com/JetBrains/Exposed/pull/2062

Bug fixes:
* fix(jdbc): existingIndices() misses indexes from tables with a schema by @jackgisel-RL in https://github.com/JetBrains/Exposed/pull/2033
* fix: EXPOSED-259 supportsSubqueryUnions is too strict for PostgreSQL 12+ by @bog-walk in https://github.com/JetBrains/Exposed/pull/2037
* fix: EXPOSED-339 Oracle alias for blob does not work by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2048
* fix: EXPOSED-340 Syntax error using upsert with MySQL8 below 8.0.19 by @bog-walk in https://github.com/JetBrains/Exposed/pull/2049
* fix: EXPOSED-349 "defaultValueFun" is lost from Column in Alias by @joc-a in https://github.com/JetBrains/Exposed/pull/2058
* fix: Error when updating different entities mapped to the same table by @joc-a in https://github.com/JetBrains/Exposed/pull/2065
* fix: EXPOSED-350 keepLoadedReferencesOutOfTransaction causes duplicate query when true by @bog-walk in https://github.com/JetBrains/Exposed/pull/2064

Docs:
* Move wiki to github pages documentation by @e5l in https://github.com/JetBrains/Exposed/pull/2034
* docs: EXPOSED-313 JSON columns support libraries other than kotlinx.serialization by @bog-walk in https://github.com/JetBrains/Exposed/pull/2041
* docs: Update Contributing documentation with code style details by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2051
* docs: EXPOSED-319 H2 customEnumeration example throws by @bog-walk in https://github.com/JetBrains/Exposed/pull/2056

Tests:
* Move BLOB tests to own source files by @obabichevjb in https://github.com/JetBrains/Exposed/pull/2053

# 0.49.0
Infrastructure:
* log4j2 2.23.1
Expand Down Expand Up @@ -71,7 +109,7 @@ Bug fixes:
* fix: EXPOSED-302 Count with alias fails if table name includes schema by @bog-walk in https://github.com/JetBrains/Exposed/pull/2008
* fix: EXPOSED-293 Logger prints plaintext value of encryptedVarchar by @bog-walk in https://github.com/JetBrains/Exposed/pull/2009

* Build:
Build:
* build!: EXPOSED-234 Set exposed-crypt to jdk 17 & bump spring-security-crypto to 6.+ by @bog-walk in https://github.com/JetBrains/Exposed/pull/2001

Docs:
Expand Down
42 changes: 21 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,52 +81,52 @@ The Maven Central repository is enabled by default for Maven users.
<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed-core</artifactId>
<version>0.49.0</version>
<version>0.50.0</version>
</dependency>
<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed-crypt</artifactId>
<version>0.49.0</version>
<version>0.50.0</version>
</dependency>
<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed-dao</artifactId>
<version>0.49.0</version>
<version>0.50.0</version>
</dependency>
<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed-java-time</artifactId>
<version>0.49.0</version>
<version>0.50.0</version>
</dependency>
<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed-jdbc</artifactId>
<version>0.49.0</version>
<version>0.50.0</version>
</dependency>
<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed-jodatime</artifactId>
<version>0.49.0</version>
<version>0.50.0</version>
</dependency>
<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed-json</artifactId>
<version>0.49.0</version>
<version>0.50.0</version>
</dependency>
<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed-kotlin-datetime</artifactId>
<version>0.49.0</version>
<version>0.50.0</version>
</dependency>
<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed-money</artifactId>
<version>0.49.0</version>
<version>0.50.0</version>
</dependency>
<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed-spring-boot-starter</artifactId>
<version>0.49.0</version>
<version>0.50.0</version>
</dependency>
</dependencies>

Expand All @@ -136,20 +136,20 @@ The Maven Central repository is enabled by default for Maven users.

```groovy
dependencies {
implementation 'org.jetbrains.exposed:exposed-core:0.49.0'
implementation 'org.jetbrains.exposed:exposed-crypt:0.49.0'
implementation 'org.jetbrains.exposed:exposed-dao:0.49.0'
implementation 'org.jetbrains.exposed:exposed-jdbc:0.49.0'
implementation 'org.jetbrains.exposed:exposed-core:0.50.0'
implementation 'org.jetbrains.exposed:exposed-crypt:0.50.0'
implementation 'org.jetbrains.exposed:exposed-dao:0.50.0'
implementation 'org.jetbrains.exposed:exposed-jdbc:0.50.0'
implementation 'org.jetbrains.exposed:exposed-jodatime:0.49.0'
implementation 'org.jetbrains.exposed:exposed-jodatime:0.50.0'
// or
implementation 'org.jetbrains.exposed:exposed-java-time:0.49.0'
implementation 'org.jetbrains.exposed:exposed-java-time:0.50.0'
// or
implementation 'org.jetbrains.exposed:exposed-kotlin-datetime:0.49.0'
implementation 'org.jetbrains.exposed:exposed-kotlin-datetime:0.50.0'
implementation 'org.jetbrains.exposed:exposed-json:0.49.0'
implementation 'org.jetbrains.exposed:exposed-money:0.49.0'
implementation 'org.jetbrains.exposed:exposed-spring-boot-starter:0.49.0'
implementation 'org.jetbrains.exposed:exposed-json:0.50.0'
implementation 'org.jetbrains.exposed:exposed-money:0.50.0'
implementation 'org.jetbrains.exposed:exposed-spring-boot-starter:0.50.0'
}
```

Expand Down Expand Up @@ -180,7 +180,7 @@ dependencies {
and in `gradle.properties`

```
exposedVersion=0.49.0
exposedVersion=0.50.0
```

## Samples
Expand Down
8 changes: 6 additions & 2 deletions documentation-website/Writerside/topics/Breaking-Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

## 0.50.0

`IColumnType` and `ColumnType` now expect a type argument. Check this
[pull request](https://github.com/JetBrains/Exposed/pull/2027) for details regarding this change.
* The `Transaction` class property `repetitionAttempts` is being deprecated in favor of `maxAttempts`. Additionally, the property `minRepetitionDelay` should be replaced
with `minRetryDelay`, and `maxRepetitionDelay` with `maxRetryDelay`. These changes also affect the default variants of these properties in `DatabaseConfig`.
* The property `maxAttempts` represents the maximum amount of attempts to perform a transaction block. Setting it, or the now deprecated `repetitionAttempts`, to a
value less than 1 now throws an `IllegalArgumentException`.
* `IColumnType` and `ColumnType` now expect a type argument. `IColumnType.valueFromDB()` also no longer has a default implementation, so an override for this method
must be provided in any custom column type implementation. Check this [pull request](https://github.com/JetBrains/Exposed/pull/2027) for details regarding this change.

## 0.49.0

Expand Down
24 changes: 12 additions & 12 deletions documentation-website/Writerside/topics/Exposed-Modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Dependencies mapping listed below is similar (by functionality) to the previous
<tabs>
<tab title="Kotlin Gradle">
<code-block lang="kotlin">
val exposedVersion: String = "0.49.0"
val exposedVersion: String = "0.50.0"
dependencies {
implementation("org.jetbrains.exposed:exposed-core:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-crypt:$exposedVersion")
Expand All @@ -80,59 +80,59 @@ Dependencies mapping listed below is similar (by functionality) to the previous
&lt;dependency&gt;
&lt;groupId&gt;org.jetbrains.exposed&lt;/groupId&gt;
&lt;artifactId&gt;exposed-core&lt;/artifactId&gt;
&lt;version&gt;0.49.0&lt;/version&gt;
&lt;version&gt;0.50.0&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;org.jetbrains.exposed&lt;/groupId&gt;
&lt;artifactId&gt;exposed-crypt&lt;/artifactId&gt;
&lt;version&gt;0.49.0&lt;/version&gt;
&lt;version&gt;0.50.0&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;org.jetbrains.exposed&lt;/groupId&gt;
&lt;artifactId&gt;exposed-dao&lt;/artifactId&gt;
&lt;version&gt;0.49.0&lt;/version&gt;
&lt;version&gt;0.50.0&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;org.jetbrains.exposed&lt;/groupId&gt;
&lt;artifactId&gt;exposed-java-time&lt;/artifactId&gt;
&lt;version&gt;0.49.0&lt;/version&gt;
&lt;version&gt;0.50.0&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;org.jetbrains.exposed&lt;/groupId&gt;
&lt;artifactId&gt;exposed-jdbc&lt;/artifactId&gt;
&lt;version&gt;0.49.0&lt;/version&gt;
&lt;version&gt;0.50.0&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;org.jetbrains.exposed&lt;/groupId&gt;
&lt;artifactId&gt;exposed-jodatime&lt;/artifactId&gt;
&lt;version&gt;0.49.0&lt;/version&gt;
&lt;version&gt;0.50.0&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;org.jetbrains.exposed&lt;/groupId&gt;
&lt;artifactId&gt;exposed-json&lt;/artifactId&gt;
&lt;version&gt;0.49.0&lt;/version&gt;
&lt;version&gt;0.50.0&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;org.jetbrains.exposed&lt;/groupId&gt;
&lt;artifactId&gt;exposed-kotlin-datetime&lt;/artifactId&gt;
&lt;version&gt;0.49.0&lt;/version&gt;
&lt;version&gt;0.50.0&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;org.jetbrains.exposed&lt;/groupId&gt;
&lt;artifactId&gt;exposed-money&lt;/artifactId&gt;
&lt;version&gt;0.49.0&lt;/version&gt;
&lt;version&gt;0.50.0&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;org.jetbrains.exposed&lt;/groupId&gt;
&lt;artifactId&gt;exposed-spring-boot-starter&lt;/artifactId&gt;
&lt;version&gt;0.49.0&lt;/version&gt;
&lt;version&gt;0.50.0&lt;/version&gt;
&lt;/dependency&gt;
&lt;/dependencies&gt;
</code-block>
</tab>
<tab title="Groovy Gradle">
<code-block lang="groovy">
def exposedVersion = "0.49.0"
def exposedVersion = "0.50.0"
dependencies {
implementation "org.jetbrains.exposed:exposed-core:$exposedVersion"
implementation "org.jetbrains.exposed:exposed-crypt:$exposedVersion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Before starting using Exposed, you need to add the dependencies to your project.
<tabs>
<tab title="Gradle">
<code-block lang="kotlin">
val exposed_version = "0.49.0"
val exposed_version = "0.50.0"
dependencies {
implementation("org.jetbrains.exposed", "exposed-core", exposed_version)
implementation("org.jetbrains.exposed", "exposed-dao", exposed_version)
Expand All @@ -22,17 +22,17 @@ dependencies {
<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed-core</artifactId>
<version>0.49.0</version>
<version>0.50.0</version>
</dependency>
<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed-dao</artifactId>
<version>0.49.0</version>
<version>0.50.0</version>
</dependency>
<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed-jdbc</artifactId>
<version>0.49.0</version>
<version>0.50.0</version>
</dependency>
</dependencies>
]]>
Expand Down
4 changes: 2 additions & 2 deletions exposed-bom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Bill of Materials for all Exposed modules
<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed-bom</artifactId>
<version>0.49.0</version>
<version>0.50.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -39,7 +39,7 @@ repositories {
}

dependencies {
implementation(platform("org.jetbrains.exposed:exposed-bom:0.49.0"))
implementation(platform("org.jetbrains.exposed:exposed-bom:0.50.0"))
implementation("org.jetbrains.exposed", "exposed-core")
implementation("org.jetbrains.exposed", "exposed-dao")
implementation("org.jetbrains.exposed", "exposed-jdbc")
Expand Down
6 changes: 3 additions & 3 deletions exposed-spring-boot-starter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This starter will give you the latest version of [Exposed](https://github.com/Je
<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed-spring-boot-starter</artifactId>
<version>0.49.0</version>
<version>0.50.0</version>
</dependency>
</dependencies>
```
Expand All @@ -20,7 +20,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'org.jetbrains.exposed:exposed-spring-boot-starter:0.49.0'
implementation 'org.jetbrains.exposed:exposed-spring-boot-starter:0.50.0'
}
```
### Gradle Kotlin DSL
Expand All @@ -36,7 +36,7 @@ dependencies {
```
In `gradle.properties`
```properties
exposedVersion=0.49.0
exposedVersion=0.50.0
```

## Setting up a database connection
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ org.gradle.configuration.cache=true
org.gradle.caching=true

group=org.jetbrains.exposed
version=0.49.0
version=0.50.0
2 changes: 1 addition & 1 deletion samples/exposed-ktor/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ ktorVersion=2.3.4
kotlinVersion=1.8.10
logbackVersion=1.2.11
kotlin.code.style=official
exposedVersion=0.49.0
exposedVersion=0.50.0
h2Version=2.1.214
2 changes: 1 addition & 1 deletion samples/exposed-spring/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
exposedVersion=0.49.0
exposedVersion=0.50.0
kotlinVersion=1.8.21

0 comments on commit da560b3

Please sign in to comment.