From 88d13fcf1b0a70fdfe1ceecea2c2fe24970fd24b Mon Sep 17 00:00:00 2001 From: Tafadzwa Pasipanodya Date: Fri, 21 Jun 2024 20:47:23 -0400 Subject: [PATCH] Prepare version 0.14.0 (#173) --- CHANGELOG.md | 11 +++++++++++ README.md | 2 +- build.gradle.kts | 2 +- .../kotlin/io/taff/exposed/extensions/Functions.kt | 2 +- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af309c9..032555f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +# 0.14.0 + +* Make the thread local `CurrentTenantId` accessible to consumers of this library. +* Bump jvm from 1.9.21 to 2.0.0 by @dependabot in https://github.com/tpasipanodya/exposed-extensions/pull/170 +* Bump com.fasterxml.jackson.datatype:jackson-datatype-jsr310 from 2.16.0 to 2.17.1 by @dependabot in https://github.com/tpasipanodya/exposed-extensions/pull/169 +* Bump org.junit:junit-bom from 5.10.1 to 5.10.2 by @dependabot in https://github.com/tpasipanodya/exposed-extensions/pull/166 +* Bump org.jetbrains.dokka from 1.9.10 to 1.9.20 by @dependabot in https://github.com/tpasipanodya/exposed-extensions/pull/168 +* Bump org.postgresql:postgresql from 42.7.0 to 42.7.3 by @dependabot in https://github.com/tpasipanodya/exposed-extensions/pull/171 +* Bump org.slf4j:slf4j-simple from 2.0.9 to 2.0.13 by @dependabot in https://github.com/tpasipanodya/exposed-extensions/pull/167 +* Bump com.fasterxml.jackson.module:jackson-module-kotlin from 2.16.0 to 2.17.1 by @dependabot in https://github.com/tpasipanodya/exposed-extensions/pull/172 + # 0.13.0 - `exposed` version `0.10.0` diff --git a/README.md b/README.md index 602c687..8523832 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ A collection of extensions for [Exposed](https://github.com/tpasipanodya/Exposed ## How to Use ```kotlin -implementation("io.taff:exposed-extensions:0.13.0") +implementation("io.taff:exposed-extensions:0.14.0") ``` Using logical tenant isolation as an example: diff --git a/build.gradle.kts b/build.gradle.kts index 5615fd2..ccec5e3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ plugins { } group = "io.taff" -version = "0.13.0${ if (isReleaseBuild()) "" else "-SNAPSHOT" }" +version = "0.14.0${ if (isReleaseBuild()) "" else "-SNAPSHOT" }" java.sourceCompatibility = JavaVersion.VERSION_20 repositories { diff --git a/src/main/kotlin/io/taff/exposed/extensions/Functions.kt b/src/main/kotlin/io/taff/exposed/extensions/Functions.kt index b7e9eec..c830c50 100644 --- a/src/main/kotlin/io/taff/exposed/extensions/Functions.kt +++ b/src/main/kotlin/io/taff/exposed/extensions/Functions.kt @@ -3,7 +3,7 @@ package io.taff.exposed.extensions import kotlinx.coroutines.asContextElement /** The current tenant's id */ -internal var CurrentTenantId = ThreadLocal() +val CurrentTenantId = ThreadLocal() fun currentTenantId() = CurrentTenantId.get() as ID