Ilya Gorbunov
5afb2c5e4b
[stdlib] Annotated new API with SinceKotlin(2.0) where required KT-64904
2024-03-12 01:36:46 +00:00
Ilya Gorbunov
ed8c71442b
[stdlib] Use more idiomatic index range check in getOrElse/Null
2024-03-11 18:12:27 +00:00
Ilya Gorbunov
fc13ae7b4d
[stdlib] Specify AT_MOST_ONCE contract for default-value-like functional parameters KT-54879
2024-03-11 18:12:27 +00:00
Ilya Gorbunov
dee9fdc02d
[stdlib] Regenerate sources
2024-03-11 18:12:27 +00:00
Abduqodiri Qurbonzoda
31aa71dd6a
Promote Common String.toCharArray(destination) to stable #KT-65532
2024-02-26 10:48:29 +00:00
Ilya Gorbunov
0ecbbbf1ca
[stdlib] Set AV to 2.0, LV to 1.9 for main compilations, build tests with K2
2024-02-21 16:28:12 +00:00
Ilya Gorbunov
15375c0fd5
[stdlib] Use more idiomatic and performant implementation of isBlank
...
Also replace expect-actual with a common function because its implementation is no longer different in different platforms.
KT-65590
2024-02-20 03:48:08 +00:00
Abduqodiri Qurbonzoda
e4a8fc01c3
Fix typo in stdlib KDocs, behavoir -> behavior
2024-01-31 12:11:48 +00:00
Abduqodiri Qurbonzoda
5f16fb2e4d
Introduce Common protected property AbstractMutableList.modCount #KT-57150
2024-01-31 12:11:48 +00:00
Abduqodiri Qurbonzoda
240a423bed
Introduce Common protected function AbstractMutableList.removeRange #KT-57151
2024-01-30 22:37:25 +00:00
Artem Kobzar
8d1a90c23c
[K/JS] Support essential Kotlin collections (List, MutableList, Set, MutableSet, Map, MutableMap) for exporting into JS
...
^KT-34995 Fixed
^KT-44871 Fixed
2024-01-24 11:14:46 +00:00
Ilya Gorbunov
e0bc0b81c6
[kotlin-test] Drop subprojects unneeded anymore KT-61969
2023-12-13 15:40:25 +00:00
Ilya Gorbunov
aa4419b7e3
[stdlib] Explicit visibility and return types: Collections
2023-11-20 02:24:40 +00:00
Ilya Gorbunov
02e933b3ff
[stdlib] Explicit visibility and return types: common
2023-11-20 02:24:39 +00:00
Ilya Gorbunov
9ccce52915
Clean up WasExperimental annotation from declarations with SinceKotlin<=1.4
...
Since it is not possible to use -api-version < 1.4, this annotation has no effect
2023-11-10 12:20:52 +00:00
Alexander Udalov
909f32ed54
Build: pass -Xexpect-actual-classes to some libraries compile tasks
...
To suppress the warning introduced in KT-61573.
2023-09-12 11:24:29 +00:00
Alex Kuznetsov
35b3a9ec82
[Docs] Samples for 'step' function
2023-08-25 19:34:39 +00:00
Abduqodiri Qurbonzoda
84c6333b23
Introduce Common String.toCharArray(destination) #KT-60657
...
Merge-request: KT-MR-11340
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2023-08-25 03:11:13 +00:00
Ilya Gorbunov
93b0a90172
Add missing SinceKotlin for new JS annotations, KT-6168
2023-08-21 12:49:21 +00:00
Ilya Gorbunov
3e4cbd6dd2
Publish Gradle metadata for kotlin-stdlib-common, KT-60911
...
This makes it depend on kotlin-stdlib in all targets
and have no artifacts from Gradle's point of view
2023-08-11 08:49:23 +00:00
Ilya Gorbunov
9ed6574979
[stdlib-mpp] Disable sources for IDEA sync in conflicting projects
...
#KT-56106
2023-08-03 14:47:19 +00:00
Abduqodiri Qurbonzoda
7fc90c02f1
Rename copyToArrayImpl to collectionToArray
2023-07-27 11:16:58 +00:00
Artem Kobzar
85ee2d71d2
[K/JS] Remove FILE target from JsName annotation and use the new experimental JsFileName annotation instead
2023-07-27 09:44:28 +00:00
Nikita Bobko
f4ba5aaf9a
[FE 1.0] Prohibit implicit Java actualization in K1
...
^KT-58545 Fixed
Review: https://jetbrains.team/p/kt/reviews/10561
It's not yet supported in K2 KT-59213
Related tests:
- ApiTest.testStdlib
- RuntimePublicAPITest.kotlinStdlibRuntimeMerged
- KotlinProjectViewTestGenerated.test_Arrays (in Kotlin plugin)
2023-07-25 22:30:09 +02:00
Roman Efremov
8ce1417621
[Stdlib] Fix reports of MPP annotation checker
...
^KT-58551
2023-07-24 09:48:49 +00:00
Roman Efremov
12eb6d97bf
[Stdlib] Remove @InlineOnly from expect declarations of minOf(), maxOf()
...
to satisfy MPP annotation checker.
It has reporting because @InlineOnly is absent on declarations with
Long parameter (removed in 233376eef0 ).
^KT-58551
2023-07-24 09:48:49 +00:00
cristiangarcia
0946039661
Reduce number of tasks realized eagerly from Konan Plugin
2023-07-10 14:42:30 +00:00
Artem Kobzar
cf949e8760
[K/JS] Support KClass<*>.createInstance reflection method ^KT-58684 Fixed
2023-07-06 18:18:14 +00:00
Yahor Berdnikau
7bfe59253f
[repo] Migrate 'manifestAttributes()' into buildSrc
2023-07-04 19:26:38 +00:00
Yahor Berdnikau
73a757c105
[repo] Migrate Groovy build scripts to use 'publish()' directly from buildSrc
2023-07-04 19:26:38 +00:00
Yahor Berdnikau
d7fc4a1d27
[repo] Migrate Groovy build scripts to use 'sourcesJar()' directly from buildSrc
2023-07-04 19:26:38 +00:00
Yahor Berdnikau
6d5f1c84a7
[repo] Migrate Groovy build scripts to use 'javadocJar()' directly from buildSrc
2023-07-04 19:26:38 +00:00
Alexander Udalov
ab195b68a5
Build: remove explicit enabling of RangeUntilOperator
...
This feature is enabled by default since 1.8. Using the `-XXLanguage`
compiler argument leads to big warnings which are distracting during the
build.
2023-06-22 18:55:56 +00:00
Artem Kobzar
64158a8a2f
[K/JS] Add file-to-file compilation ^KT-6168 Fixed
2023-06-22 18:23:45 +00:00
Abduqodiri Qurbonzoda
0bef1533e2
Improve documentation of collection constructors #KT-59192
2023-06-08 12:41:40 +00:00
Bogdan Mukvich
303b01b89b
Add SBOM configuration for all published artifacts by default
2023-06-06 13:27:26 +00:00
Vyacheslav Gerasimov
e0a477f16d
Build: Refactor sbom configuration & wire it with main publication
2023-06-06 13:27:25 +00:00
Bogdan Mukvich
18f52832f5
Configure SBOM maven publishing for stdlib
2023-06-06 13:27:25 +00:00
Abduqodiri Qurbonzoda
7d9ea28604
Deprecate lazy() that synchronizes on a given lock in non-JVM platforms
...
Because the overload has a meaningful implementation only in JVM.
In other platforms the specified lock object is ignored.
In K/N it throws UnsupportedOperationException.
2023-06-01 19:40:02 +00:00
Ilya Gorbunov
b35b727d73
KT-53778 Remove experimental annotations from open ranges
2023-04-28 17:12:15 +00:00
Abduqodiri Qurbonzoda
2248f4ea33
Remove supportsNamedCapturingGroup flag in tests
...
Now it is true on all platforms
2023-04-26 10:44:21 +00:00
Ilya Gorbunov
448e9fc5e7
Drop functions hidden since 1.4 (inline-only or experimental in JVM)
...
Since it's no longer possible to use API version less than 1.4,
these functions can be no longer called at all.
2023-04-26 10:31:03 +00:00
Ilya Gorbunov
ace2279631
Refactor helper function to run/not run block of common code on specific platform
...
Use it in StringBuilder tests
2023-04-25 13:55:04 +00:00
Abduqodiri Qurbonzoda
7eba68e62b
[K/N] Commonize String.regionMatches function
...
As a part of efforts to stabilize K/N stdlib.
2023-04-19 20:20:42 +00:00
Filipp Zhinkin
368f21461c
KT-55091 Optimize Sequence::toSet/toList implementation
...
Sequence::toSet and Sequence::toList both create a
collection, fill it with elements, and then try to optimize a result
by returning empty, singleton, or the allocated collection depending on
the elements count.
Instead of allocating the collection and then trying to return
an optimized instance it is worth checking the sequence's size
beforehand and return empty/singleton collection when possible.
Proposed change optimize performance of aforementioned functions and
also reduce allocation rate when a sequence consists of 0 or 1 elements.
^KT-55091 fixed
2023-04-17 08:58:20 +00:00
Abduqodiri Qurbonzoda
8629c92c62
Update copyright of generatedUnicodeData files
2023-04-12 23:28:12 +00:00
Abduqodiri Qurbonzoda
c961c15729
Commonize AssertionError(message, cause) constructor
2023-04-11 13:32:54 +00:00
Ilya Gorbunov
912b65060e
KT-55610 Deprecate k.j.Volatile annotation in Common and JS
...
Use k.c.Volatile in common AbstractMap instead
2023-04-08 15:07:56 +00:00
Dmitriy Novozhilov
90ec84d7b7
[Stdlib] Update copyrighting in generated stdlib sources
2023-03-27 10:46:11 +00:00
Nikita Bobko
f620eb920f
Drop redundant suppress
...
Review: https://jetbrains.team/p/kt/reviews/8933
The suppress was needed in https://jetbrains.team/p/kt/reviews/8308
But it's not needed anymore
2023-02-24 17:05:33 +00:00