Artem Kobzar
044c0adae7
[K/JS] Implement an incremental compilation for the per-file granularity
2023-07-19 15:57:56 +00:00
Svyatoslav Kuzmich
2fd77d0925
[Wasm] IDL: Generate overloads for functions with union-typed arguments
2023-07-14 10:52:10 +00:00
Svyatoslav Kuzmich
c1100042b2
[Wasm] Use Unit in IDL event handler return type
...
Return value can be used in rare cases to stop event propagation.
Event methods can be called instead.
^KT-57058 Fixed
2023-07-14 10:52:10 +00:00
Abduqodiri Qurbonzoda
fed453fdea
Provide Common StringBuilder.append/insert with primitive type arguments #KT-57359
...
Merge-request: KT-MR-10892
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2023-07-13 11:52:14 +00:00
Yahor Berdnikau
73f6316f27
[repo] Enable warnings as errors for Gradle Kotlin scripts
2023-07-12 12:49:32 +00:00
Leonid Startsev
98cfa0315e
Use 'number' instead of 'amount' because 'times' is a countable noun. ( #5145 )
2023-07-11 13:21:15 +02:00
Abduqodiri Qurbonzoda
f152fa537d
Collection.toString() should not throw if it contains itself
...
Merge-request: KT-MR-10591
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2023-07-11 09:58:38 +00:00
cristiangarcia
0946039661
Reduce number of tasks realized eagerly from Konan Plugin
2023-07-10 14:42:30 +00:00
Igor Yakovlev
b5eafb9eb7
[Wasm] WasmExport implementation
2023-07-07 20:45:51 +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
db1086f005
[repo] Migrate 'configureFrontendIr()' 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
Yahor Berdnikau
5de2b5aeb4
[repo] Migrate Groovy build scripts to use 'kotlinStdlib()' directly from buildSrc
2023-07-04 19:26:38 +00:00
Artem Kobzar
9ad5910de9
[K/JS] Remove isObject check from runtime ^KT-57926 Fixed
2023-07-03 13:19:43 +00:00
Abduqodiri Qurbonzoda
209c916a7e
OptIn ExperimentalNativeApi
2023-06-30 15:27:09 +00:00
Abduqodiri Qurbonzoda
f665388704
Advance ExperimentalNativeApi opt-in requirement level to ERROR #KT-57838
...
As a part of efforts to stabilize Native stdlib.
2023-06-30 15:27:08 +00:00
Abduqodiri Qurbonzoda
00abbc5cfe
Advance ObsoleteNativeApi opt-in requirement level to ERROR #KT-57088
...
As a part of efforts to stabilize Native stdlib.
2023-06-30 15:27:08 +00:00
Ilya Goncharov
b0b266b73d
[JS] Fix test of Ir Stdlib api
2023-06-29 14:25:45 +00:00
Vsevolod Tolstopyatov
37c2c862d8
KT-53154 enumEntries experimental intrinsic stub
...
Provide an inefficient default implementation and make it "@PublishedApi internal" so it can be safely merged as is.
Intrinsics will be added later in follow-up PRs, and then the implementation will be adjusted accordingly
Merge-request: KT-MR-10843
Merged-by: Vsevolod Tolstopyatov <qwwdfsad@gmail.com >
2023-06-28 20:25:11 +00:00
Abduqodiri Qurbonzoda
bf1c9774aa
Fix the ConcurrentModification test that fails in jdk9+
...
Modification registration seems to changed in Java 9. Now if the asked
capacity in `ensureCapacity` function is less than current capacity,
no modification is registered.
2023-06-28 19:00:46 +00:00
cristiangarcia
650b00e1b2
Improve DexMethodCount task
...
Use lazy api to set the file and avoid configuring Jar tasks
2023-06-28 07:48:20 +00:00
Bogdan Mukvich
a9d0ff83cf
Add SBOM publishing for kotlin wasm libraries
...
^KTI-1273
2023-06-27 09:02:18 +00:00
Ilya Gorbunov
39e9996940
Rename js/annotations.kt to avoid duplicates in sources
...
The conflicting one is Annotations.kt from builtins that are merged together with js stdlib sources, thus leading to two files with the same name differing only by case.
2023-06-26 18:24:34 +00:00
Artem Kobzar
89507c1b82
[K/JS] Remove dead branches for jsIsType
2023-06-26 14:00:09 +00:00
Alexander.Likhachev
cb087b7def
[Build] Bump gradle-node-plugin version to 5.0.0
...
This change is required to fix a configuration cache problem revealed after migration to Gradle 8.1
2023-06-26 10:36:25 +00:00
Alexander Udalov
4db2bc28f2
Minor, suppress unchecked cast warning
2023-06-22 18:55:56 +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
Alexander.Likhachev
a93c49baf1
[Build] Fix a bunch of buildscript compilation warnings
...
#KTI-1221 Fixed
2023-06-22 15:16:08 +00:00
Vsevolod Tolstopyatov
175cf5e833
KT-53327 replace Enum.values() with Enum.entries in CharCategory
...
Also, replace it in stdlib tests where appropriate and disable already unsupported legacy JS tests
^KT-53327 fixed
Co-authored-by: Artem Kobzar <Artem.Kobzar@jetbrains.com >
Merge-request: KT-MR-10632
Merged-by: Vsevolod Tolstopyatov <qwwdfsad@gmail.com >
2023-06-21 14:40:16 +00:00
Abduqodiri Qurbonzoda
af1630e270
[K/N] Catch concurrent modifications of HashMap
...
As a part of efforts to stabilize Native stdlib.
2023-06-20 18:35:39 +00:00
Abduqodiri Qurbonzoda
9d8d9d000f
[K/N] Catch concurrent modifications of ArrayList
...
As a part of efforts to stabilize Native stdlib.
2023-06-20 18:35:39 +00:00
Artem Kobzar
c53b49d7fa
[K/Wasm] Remove custom equals because this kind of equality is lowered in duration of the compilation ^KT-58126 Fixed
2023-06-20 17:36:01 +00:00
Abduqodiri Qurbonzoda
1be0e3f70e
Document that arrayOfNulls throws RuntimeException on negative size
2023-06-20 16:31:59 +00:00
Abduqodiri Qurbonzoda
ffcc7dfca0
[WASM] Document Array types
2023-06-20 16:31:59 +00:00
Abduqodiri Qurbonzoda
9f16daac02
[WASM] Throw IllegalArgumentException on negative array size
2023-06-20 16:31:59 +00:00
Artem Kobzar
039b5fca7a
[K/JS] Use declared upper-bound types for parameters inside inlined functions body, instead of the provided types
2023-06-20 12:01:28 +00:00
Abduqodiri Qurbonzoda
e802ee05a7
[K/N] Do not override equals/hashCode for AbstractMutableMap.values collection
2023-06-19 11:41:10 +00:00
Abduqodiri Qurbonzoda
6015e12db8
[K/N] Remove redundant AbstractMutableMap.SimpleEntry
2023-06-19 11:41:10 +00:00
Abduqodiri Qurbonzoda
3be613ced8
[K/N] Use iterator in AbstractMutableList.indexOf/lastIndexOf
...
Instead of access by index. To avoid performance issues
when the subclass `get(index)` has non-constant time complexity.
It also aligns behavior with JVM.
2023-06-19 11:41:10 +00:00
Abduqodiri Qurbonzoda
60cafc6623
Document the exceptions Iterator throws
2023-06-19 11:41:10 +00:00
Abduqodiri Qurbonzoda
4ae19b2b44
[K/N] Deprecate SharedImmutable annotation #KT-57837
...
As a part of efforts to stabilize Native stdlib.
2023-06-19 11:35:32 +00:00
Abduqodiri Qurbonzoda
91f0c3c342
Clarify copyToRecursively doc about symlinks #SDP-1816
...
This MR is the result of the security audit that was conducted for Path recursive functions:
https://youtrack.jetbrains.com/issue/SDP-1816/Security-issues-of-Path-recursive-functions-in-StdLib#focus=Comments-27-7269144.0-0
Eliminates confusions regarding symbolic links.
Merge-request: KT-MR-10245
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2023-06-16 22:40:56 +00:00
Abduqodiri Qurbonzoda
295fdc36ce
Enum.valueOf throws inconsistent exception across multiple platforms #KT-35116
2023-06-16 22:18:20 +00:00
Abduqodiri Qurbonzoda
193aa0f935
Align the Boolean.hashCode() value across platforms
...
Boolean.hashCode() should return 1231/1237 for true/false correspondingly.
As a part of efforts to stabilize Native stdlib.
2023-06-14 08:19:46 +00:00
Pavel Mikhailovskii
fc7af2c9e0
KT-58720 Generate full InnerClass attributes for the standard library; deprecate -Xuse-old-innerclasses-logic
2023-06-09 11:31:17 +00:00
Abduqodiri Qurbonzoda
830c78773c
Align behavoir of collection constructors across platforms #KT-59192
...
The initialCapacity should be non-negative and loadFactor should be positive.
As a part of efforts to stabilize Native stdlib.
2023-06-08 12:41:40 +00:00