Skip to content

Commit 4284a05

Browse files
committed
Build: upgrade to Kotlin 1.8.21 and other dependencies
1 parent ac0781c commit 4284a05

File tree

8 files changed

+380
-19
lines changed

8 files changed

+380
-19
lines changed

build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,24 @@ buildscript {
88

99
versions = [
1010
// Kotlin multiplatform versions.
11-
kotlin:'1.8.10',
11+
kotlin:'1.8.21',
1212
serialization:'1.5.0',
13-
coroutines:'1.7.0-Beta',
13+
coroutines:'1.7.0',
1414
datetime:'0.4.0',
1515

1616
// JVM versions.
1717
jvmTarget:'1.8',
18-
dokkaPlugin:'1.7.20',
18+
dokkaPlugin:'1.8.10',
1919
reflections:'0.10.2',
2020

2121
// JS versions.
22-
nodePlugin:'3.5.0',
22+
nodePlugin:'4.0.0',
2323
bigJs:'6.2.1',
2424

2525
// DevOps versions.
2626
detektPlugin:'1.22.0',
2727
detektVerifyImplementation:'1.2.5',
28-
nexusPublishPlugin:'1.1.0',
28+
nexusPublishPlugin:'1.3.0',
2929
apacheCommons:'2.11.0'
3030
]
3131

@@ -88,6 +88,7 @@ configure( subprojects - devOpsModules ) {
8888
moduleName = project.name.replaceAll("\\.", "-") + "-generated"
8989
binaries.executable() // Export JS/TypeScript files.
9090
browser()
91+
generateTypeScriptDefinitions()
9192
}
9293

9394
sourceSets {

kotlin-js-store/yarn.lock

Lines changed: 363 additions & 3 deletions
Large diffs are not rendered by default.

typescript-declarations/carp-kotlin/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ kotlinStdLib.$_$.EmptyList.prototype.contains = function<T>( value: T ): boolean
113113
kotlinStdLib.$_$.EmptyList.prototype.size = function<T>(): number { return 0; }
114114
kotlinStdLib.$_$.EmptyList.prototype.toArray = function<T>(): T[] { return []; }
115115
kotlinStdLib.$_$.AbstractMutableList.prototype.contains = function<T>( value: T ): boolean { return this.d1( value ); }
116-
kotlinStdLib.$_$.AbstractMutableList.prototype.size = function<T>(): number { return this.f(); }
116+
kotlinStdLib.$_$.AbstractMutableList.prototype.size = function<T>(): number { return this.i(); }
117117
kotlinStdLib.$_$.EmptySet.prototype.contains = function<T>( value: T ): boolean { return false; }
118118
kotlinStdLib.$_$.EmptySet.prototype.size = function<T>(): number { return 0; }
119119
kotlinStdLib.$_$.EmptySet.prototype.toArray = function<T>(): T[] { return []; }
120120
kotlinStdLib.$_$.HashSet.prototype.contains = function<T>( value: T ): boolean { return this.d1( value ); }
121-
kotlinStdLib.$_$.HashSet.prototype.size = function<T>(): number { return this.f(); }
121+
kotlinStdLib.$_$.HashSet.prototype.size = function<T>(): number { return this.i(); }
122122
kotlinStdLib.$_$.HashMap.prototype.get = function<K, V>( key: K ): V { return this.e2( key ); }
123123
Object.defineProperty( kotlinStdLib.$_$.HashMap.prototype, "keys", {
124124
get: function keys() { return this.f2(); }

typescript-declarations/carp-kotlin/kotlin-kotlin-stdlib-js-ir.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ declare module "@cachet/kotlin-kotlin-stdlib-js-ir"
2626
d1( value: T ): boolean
2727

2828
// size
29-
f(): number
29+
i(): number
3030

3131
toArray(): Array<T>
3232
}

typescript-declarations/carp-kotlinx-datetime/Kotlin-DateTime-library-kotlinx-datetime-js-ir.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ declare module "@cachet/Kotlin-DateTime-library-kotlinx-datetime-js-ir"
55
interface System
66
{
77
// now
8-
d12(): Instant_0
8+
b12(): Instant_0
99
}
1010
function System_getInstance(): System
1111

1212
interface Instant_0
1313
{
1414
// toEpochMilliseconds
15-
q12(): number
15+
o12(): number
1616
}
1717
}
1818
}

typescript-declarations/carp-kotlinx-datetime/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ declare module "@cachet/Kotlin-DateTime-library-kotlinx-datetime-js-ir"
3333

3434

3535
// Implement base interfaces in internal types.
36-
extend.$_$.System.prototype.now = function(): kotlinx.datetime.Instant { return this.d12(); };
37-
extend.$_$.Instant_0.prototype.toEpochMilliseconds = function(): number { return this.q12(); };
36+
extend.$_$.System.prototype.now = function(): kotlinx.datetime.Instant { return this.b12(); };
37+
extend.$_$.Instant_0.prototype.toEpochMilliseconds = function(): number { return this.o12(); };
3838

3939

4040
// Re-export augmented types.

typescript-declarations/carp-kotlinx-serialization/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ declare module "@cachet/kotlinx-serialization-kotlinx-serialization-json-js-ir"
3838
extendJson.$_$.JsonImpl.prototype.encodeToString =
3939
function( serializer: any, value: any ): string
4040
{
41-
return this.v12( serializer, value );
41+
return this.t12( serializer, value );
4242
};
4343
extendJson.$_$.JsonImpl.prototype.decodeFromString =
4444
function( serializer: any, string: string ): any
4545
{
46-
return this.w12( serializer, string );
46+
return this.u12( serializer, string );
4747
};
4848

4949

typescript-declarations/carp-kotlinx-serialization/kotlinx-serialization-kotlinx-serialization-json-js-ir.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ declare module "@cachet/kotlinx-serialization-kotlinx-serialization-json-js-ir"
55
interface JsonImpl
66
{
77
// encodeToString
8-
v12( serializer: any, instance: any ): string
8+
t12( serializer: any, instance: any ): string
99

1010
// decodeFromString
11-
w12( serializer: any, string: string ): string
11+
u12( serializer: any, string: string ): string
1212
}
1313
function Default_getInstance(): JsonImpl
1414
}

0 commit comments

Comments
 (0)