Skip to content

Commit 59d1fc4

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/micrometer-telemetry-provider
Conflicts: gradle/libs.versions.toml
2 parents 14b5d85 + 6944364 commit 59d1fc4

File tree

17 files changed

+74
-80
lines changed

17 files changed

+74
-80
lines changed

.brazil.json

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
{
22
"dependencies": {
3-
"org.jetbrains.kotlin:kotlin-stdlib-common:2.0.*": "KotlinStdlibCommon-2.x",
43
"org.jetbrains.kotlin:kotlin-stdlib:2.0.*": "KotlinStdlib-2.x",
5-
"org.jetbrains.kotlinx:atomicfu:0.*.*": "Atomicfu-0.x",
64
"org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.8.*": "KotlinxCoroutinesCoreJvm-1.8.x",
7-
"org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.*": "KotlinxCoroutinesCore-1.8.x",
8-
"org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.8.*": "KotlinxCoroutinesJdk8-1.8.x",
95

106
"com.squareup.okhttp3:okhttp-coroutines:5.*": "OkHttp3Coroutines-5.x",
117
"com.squareup.okhttp3:okhttp:5.*": "OkHttp3-5.x",
128
"com.squareup.okio:okio-jvm:3.*": "OkioJvm-3.x",
13-
"com.squareup.okio:okio:3.*": "Okio-3.x",
149
"io.opentelemetry:opentelemetry-api:1.*": "Maven-io-opentelemetry_opentelemetry-api-1.x",
1510
"org.slf4j:slf4j-api:2.*": "Maven-org-slf4j_slf4j-api-2.x",
16-
"software.amazon.awssdk.crt:aws-crt:0.*": "Aws-crt-java-1.0.x",
1711
"aws.sdk.kotlin.crt:aws-crt-kotlin:0.8.*": "AwsCrtKotlin-0.8.x"
1812
},
1913
"packageHandlingRules": {
@@ -47,28 +41,6 @@
4741
],
4842
"com.squareup.okio:okio-jvm:3.*": [
4943
"KotlinStdlib-2.x"
50-
],
51-
"org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.*": [
52-
"KotlinxCoroutinesCoreJvm-1.8.x",
53-
"KotlinStdlib-2.x"
54-
],
55-
"org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.8.*": [
56-
"KotlinxCoroutinesCoreJvm-1.8.x",
57-
"KotlinStdlib-2.x"
58-
],
59-
"org.jetbrains.kotlin:kotlin-stdlib:2.*": [
60-
"KotlinStdlib-2.x"
61-
],
62-
"org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.*": [
63-
"KotlinStdlibCommon-1.9.x",
64-
"KotlinStdlibJdk8-1.9.x",
65-
"KotlinxCoroutinesCoreJvm-1.7.x"
66-
],
67-
"org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.7.*": [
68-
"KotlinStdlibJdk8-1.9.x"
69-
],
70-
"org.jetbrains.kotlin:kotlin-stdlib:1.9.*": [
71-
"KotlinStdlib-1.9.x"
7244
]
7345
}
7446
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"id": "29e93882-7346-4a2f-bbcd-1cdf478a3b10",
3+
"type": "feature",
4+
"description": "Add new `ISO_8601_FULL` timestamp format for untruncated precision"
5+
}

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## [1.3.3] - 08/07/2024
4+
5+
### Miscellaneous
6+
* Upgrade to Kotlin 2.0.10
7+
8+
## [1.3.2] - 08/02/2024
9+
10+
### Fixes
11+
* Close HttpStreams in CrtHttpEngine after call completion
12+
313
## [1.3.1] - 07/26/2024
414

515
## [1.3.0] - 07/25/2024

codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/core/KotlinDependency.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ private fun getDefaultRuntimeVersion(): String {
3737
// publishing info
3838
const val RUNTIME_GROUP: String = "aws.smithy.kotlin"
3939
val RUNTIME_VERSION: String = System.getProperty("smithy.kotlin.codegen.clientRuntimeVersion", getDefaultRuntimeVersion())
40-
val KOTLIN_COMPILER_VERSION: String = System.getProperty("smithy.kotlin.codegen.kotlinCompilerVersion", "2.0.0")
40+
val KOTLIN_COMPILER_VERSION: String = System.getProperty("smithy.kotlin.codegen.kotlinCompilerVersion", "2.0.10")
4141

4242
enum class SourceSet {
4343
CommonMain,

docs/dokka-presets/css/aws-styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@
5656
overflow-wrap: break-word;
5757
}
5858

59+
.keyValue {
60+
display: block;
61+
}
62+
5963
/*
6064
Disable the playground run button for generated samples
6165
https://github.com/Kotlin/dokka/issues/3041

docs/dokka-presets/scripts/accessibility.js

Lines changed: 17 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ if (document.readyState === "interactive" || document.readyState === "complete"
1717
* Fixes accessibility violation: "Provide a mechanism for skipping past repetitive content"
1818
*/
1919
function applySkipLinks() {
20+
document.querySelectorAll('#content').forEach(function(contentDiv) {
21+
contentDiv.setAttribute('role', 'main');
22+
contentDiv.setAttribute('tabindex', '-1');
23+
});
24+
2025
function insertSkipLink(element) {
2126
if (element.querySelectorAll(".skip-to-content").length > 0) { return }
2227

@@ -71,10 +76,17 @@ function ensureNavButtonInteractable() {
7176
const navButtons = document.querySelectorAll('.navButton');
7277

7378
navButtons.forEach(function(navButton) {
79+
if (navButton.hasAttribute('aria-expanded')) {
80+
return;
81+
}
82+
7483
// Make the navButton focusable, add accessibility information
7584
navButton.setAttribute('tabindex', '0');
7685
navButton.setAttribute('role', 'button');
77-
navButton.setAttribute('aria-expanded', 'false');
86+
87+
const sideMenuPartParent = navButton.closest(".sideMenuPart")
88+
const navButtonExpanded = sideMenuPartParent ? (sideMenuPartParent.classList.contains('hidden') ? 'false' : 'true') : 'false'
89+
navButton.setAttribute('aria-expanded', navButtonExpanded);
7890

7991
// Grab the page ID, use it for aria-label and aria-controls
8092
const sectionName = navButton.parentElement.parentElement.getAttribute('pageid')
@@ -107,49 +119,9 @@ window.addEventListener('navigationLoaded', ensureNavButtonInteractable);
107119
* Fixes accessibility violation: "Ensure pages reflow without requiring two-dimensional scrolling without loss of content or functionality"
108120
*/
109121
function ensureContentReflow() {
110-
const MIN_WINDOW_SIZE = 550
111-
112-
// Function to insert 'toggle content' button
113-
function insertToggleContentButton(element) {
114-
if (element.parentNode.querySelectorAll(".aws-toggle-content-btn").length > 0) { return }
115-
116-
const initiallyVisible = window.innerWidth >= MIN_WINDOW_SIZE
117-
118-
const toggleContent = document.createElement('button');
119-
toggleContent.className = 'aws-toggle-content-btn';
120-
toggleContent.textContent = initiallyVisible ? '▼' : '▶'
121-
toggleContent.setAttribute('aria-expanded', initiallyVisible.toString());
122-
toggleContent.setAttribute('aria-label', 'Toggle code block for' + element.getAttribute("data-togglable"));
123-
toggleContent.setAttribute('aria-controls', element.id);
124-
125-
// Set initial visibility based on window size
126-
element.style.display = initiallyVisible ? 'block' : 'none'
127-
128-
// Toggle visibility onclick
129-
toggleContent.onclick = function() {
130-
const isExpanded = toggleContent.getAttribute('aria-expanded') === 'true';
131-
toggleContent.setAttribute('aria-expanded', (!isExpanded).toString());
132-
element.style.display = isExpanded ? 'none' : 'block'
133-
toggleContent.textContent = isExpanded ? '▶' : '▼'
134-
};
135-
136-
element.parentNode.insertBefore(toggleContent, element);
137-
}
138-
139-
document.querySelectorAll('.content[data-togglable]').forEach(insertToggleContentButton);
140-
141-
// Update content visibility on resize
142-
window.addEventListener('resize', function() {
143-
document.querySelectorAll('.content[data-togglable]').forEach(function(element) {
144-
const toggleContent = element.previousSibling;
145-
if (window.innerWidth < MIN_WINDOW_SIZE) {
146-
element.style.display = 'none';
147-
toggleContent.setAttribute('aria-expanded', 'false');
148-
} else {
149-
element.style.display = 'block';
150-
toggleContent.setAttribute('aria-expanded', 'true');
151-
}
152-
});
122+
// Ensure `content` sections are reflowable
123+
document.querySelectorAll('.content[data-togglable]').forEach(function(content) {
124+
content.style.display = 'block'
153125
});
154126
}
155-
window.addEventListener('navigationLoaded', ensureContentReflow);
127+
window.addEventListener('navigationLoaded', ensureContentReflow);

docs/dokka-presets/templates/base.ftl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
<@header.display/>
3434
<div id="container">
3535
<div class="sidebar" id="leftColumn">
36+
<div><a class="skip-to-content" href="#content" tabindex="0">Skip to Main Content</a></div>
3637
<div class="sidebar--inner" id="sideMenu"></div>
3738
</div>
3839
<div id="main">

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ kotlinx.atomicfu.enableNativeIrTransformation=false
1313
org.gradle.jvmargs=-Xmx2G -XX:MaxMetaspaceSize=1G
1414

1515
# SDK
16-
sdkVersion=1.3.2-SNAPSHOT
16+
sdkVersion=1.3.4-SNAPSHOT
1717

1818
# codegen
19-
codegenVersion=0.33.2-SNAPSHOT
19+
codegenVersion=0.33.4-SNAPSHOT

gradle/libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[versions]
2-
kotlin-version = "2.0.0"
2+
kotlin-version = "2.0.10"
33
dokka-version = "1.9.10"
44

5-
aws-kotlin-repo-tools-version = "0.4.9"
5+
aws-kotlin-repo-tools-version = "0.4.10"
66

77
# libs
88
coroutines-version = "1.8.1"
@@ -12,7 +12,7 @@ okio-version = "3.9.0"
1212
otel-version = "1.32.0"
1313
slf4j-version = "2.0.9"
1414
slf4j-v1x-version = "1.7.36"
15-
crt-kotlin-version = "0.8.7"
15+
crt-kotlin-version = "0.8.8"
1616
micrometer-version = "1.13.2"
1717

1818
# codegen

runtime/protocol/http-client-engines/http-client-engine-crt/jvm/src/aws/smithy/kotlin/runtime/http/engine/crt/CrtHttpEngine.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ public class CrtHttpEngine(public override val config: CrtHttpEngineConfig) : Ht
7979
}
8080
}
8181

82+
callContext.job.invokeOnCompletion {
83+
stream.close()
84+
}
85+
8286
if (request.isChunked) {
8387
withContext(SdkDispatchers.IO) {
8488
stream.sendChunkedBody(request.body)

0 commit comments

Comments
 (0)