Alexander Udalov
acd29481bd
Regenerate sources of builtins and stdlib
2021-01-03 22:31:06 +01:00
Abduqodiri Qurbonzoda
1314adb6f7
Locale-agnostic case conversions by default #KT-43023
2020-12-30 10:08:25 +03:00
Ilya Gorbunov
28168bf230
Correctly implement specialized MutableEntrySet.contains KT-41278
...
This is a workaround for the problem KT-43321.
Introduce an intermediate abstract set specialized for Map.Entry elements
and implement 'contains(Map.Entry)' method there.
Then inherit that intermediate set in entrysets of JS HashMap,
JS LinkedHashMap, JVM MapBuilder, that are specialized for
MutableMap.MutableEntry elements, so that no override of 'contains' is
required anymore.
This allows to avoid incorrect special 'contains' bridge being generated
that otherwise rejects all arguments except ones of MutableEntry type.
2020-12-14 12:42:47 +03:00
Abduqodiri Qurbonzoda
2fd7d64db0
Promote CancellationException to stable #KT-41837
2020-10-27 05:06:50 +03:00
Alexander Udalov
da6d904c6e
Suppress code warnings in kotlin-stdlib
2020-08-20 20:30:34 +02:00
Alexey Trilis
d86c14243e
Add @SinceKotlin to kotlinx.browser and kotlinx.dom packages
...
Add @DeprecatedSinceKotlin to kotlin.browser and kotlin.dom packages
2020-08-10 18:08:19 +03:00
Ilya Gorbunov
99eb7f391b
Fix doc wording around covariance/invariance
2020-08-04 00:33:05 +03:00
Abduqodiri Qurbonzoda
d2c9fc41f1
Replace @LowPriorityInOverloadResolution with @DeprecatedSinceKotlin #KT-37101
2020-07-15 20:36:57 +03:00
Ilya Gorbunov
20683d62a6
Postpone introducing common StringBuilder.capacity() function
...
Its support complicates JS StringBuilder implementation with no actual
performance improvements. Benefits of having capacity() function
in common code are also not completely clear.
Relates to KT-33069
#KT-40168
2020-07-10 18:49:39 +03:00
Ilya Gorbunov
1a32fdf6d7
Add EXACTLY_ONCE contract to functions that call their lambda parameter once
...
KT-35972
2020-07-10 01:05:16 +03:00
Ilya Gorbunov
c85432b2f9
Fix typo in kotlinx.dom docs
2020-07-10 01:05:16 +03:00
Vsevolod Tolstopyatov
3270c7e016
Introduce CancellationException
...
#KT-39126 Fixed
2020-07-02 11:01:28 +03:00
Ilya Gorbunov
33150a0809
KT-38817 capitalize uses title case for the first char where available
...
This unifies its behavior with new capitalize overload with Locale.
Co-authored-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2020-06-24 16:45:09 +03:00
Ilya Gorbunov
6c8ff25e5d
Drop deprecated jsClass top level and extension functions
...
Introduce internal toplevel jsClass in js-ir source set instead.
It is needed for JS-IR backend.
2020-06-22 12:29:25 +03:00
Ilya Gorbunov
b55729957e
Drop previously deprecated API
...
- common and JS org.junit.Test from kotlin.test
- kotlin.Synchronized/Volatile from K/JS
- JS 'native' annotation
2020-06-22 12:29:25 +03:00
Ilya Gorbunov
e9c4f531eb
Increase deprecation level for previously deprecated API
...
- unsupported common exceptions
- common 'synchronized'
- jquery API
- experimental kotlin.time API
- js Math object
- DefaultAsserter constructor-like fun
2020-06-22 12:29:24 +03:00
Alexey Trilis
99d844dcfb
Deprecate kotlin.browser and kotlin.dom packages and provide
...
replacements in packages kotlinx.dom and kotlinx.browser
KT-39330 Fixed
2020-06-19 16:01:40 +03:00
Ilya Gorbunov
606fad64ad
Leave StringBuilder.append/insert with non-nullable String parameter
...
Leave these methods as hidden in order to preserve binary compatibility.
#KT-39504
2020-06-18 18:45:43 +03:00
Ilya Gorbunov
d2ea108123
Make Comparator fun interface in Common and JS
2020-06-17 19:45:15 +03:00
Abduqodiri Qurbonzoda
6a2fed33d3
Deprecate old CharArray to String conversion api #KT-31343
2020-06-08 04:12:28 +03:00
Abduqodiri Qurbonzoda
46297645a4
Promote String <-> utf8 and CharArray conversions to stable
2020-06-05 18:41:06 +03:00
Ilya Gorbunov
e2c3455445
Document NaN propagation in top-level minOf/maxOf functions
2020-06-02 19:01:44 +03:00
Abduqodiri Qurbonzoda
30037682f8
Revert "Promote String <-> utf8 and CharArray conversions to stable"
...
This reverts commit aba97033
2020-06-01 23:30:55 +03:00
Abduqodiri Qurbonzoda
aba97033f0
Promote String <-> utf8 and CharArray conversions to stable
2020-06-01 22:47:01 +03:00
Abduqodiri Qurbonzoda
f6a739bbc5
Promote bit query api to stable
2020-06-01 22:18:55 +03:00
Abduqodiri Qurbonzoda
1bd63bb07f
Make consistent parameter nullability with appendLine
2020-06-01 22:00:36 +03:00
Abduqodiri Qurbonzoda
e05eeea6cd
Promote common StringBuilder to stable
2020-06-01 22:00:34 +03:00
Abduqodiri Qurbonzoda
f3145454f2
Decommonize collection builder implementations
2020-05-23 03:40:44 +03:00
Svyatoslav Kuzmich
6e3d3831c2
[JS] JsExport diagnostics and legacy support
...
Account for JsExport in legacy backend namer. It means we
catch overloaded exported function conflicts for free!
Add error diagnostics:
* NESTED_JS_EXPORT (Fixes KT-36798)
* WRONG_EXPORTED_DECLARATION (Part of the fix for KT-37752)
* NON_EXPORTABLE_TYPE (Fixes KT-37771)
2020-05-22 10:50:22 +03:00
Abduqodiri Qurbonzoda
0c7b04a495
Document fromIndex and toIndex parameters #KT-38388
2020-05-09 23:34:03 +03:00
Anton Bannykh
442331acc9
IR JS: support findAssociatedObject feature (KT-37418 fixed)
2020-04-27 17:23:19 +03:00
Alexey Trilis
3ad597ca5c
Introduce MSE and EME APIs to Kotlin/JS stdlib
...
#KT-37910 Fixed
2020-04-23 15:35:04 +03:00
Abduqodiri Qurbonzoda
d6472aa700
Reverse range and sortDescending range #KT-36955
2020-04-20 22:06:28 +03:00
Ilya Gorbunov
38b1e6beab
Make Throwable.printStackTrace() common
...
#KT-38044
2020-04-13 09:32:42 +03:00
Ilya Gorbunov
408b441a71
Rename extension toStringWithTrace to stackTraceToString
...
#KT-37603
2020-04-13 09:32:42 +03:00
Ilya Gorbunov
4cc9909a70
Support Firefox stack format
...
It doesn't include the exception type and message.
2020-04-13 09:32:42 +03:00
Ilya Gorbunov
641f1a55cb
Omit common stack frames in JS full stack trace
...
#KT-37603
2020-04-13 09:32:41 +03:00
Ilya Gorbunov
5fe8071d71
Prevent infinite recursion in case of circular suppressed chains
...
#KT-37603
2020-04-13 09:32:41 +03:00
Ilya Gorbunov
552bcdb31b
Introduce Throwable.toStringWithTrace
...
#KT-37603
2020-04-13 09:32:41 +03:00
Ilya Gorbunov
7b7263c5bf
Implement common Throwable.addSuppressed/suppressed extensions
...
Instead of `suppressed` Array we provide `suppressedExceptions` List
#KT-23737
2020-04-13 09:32:41 +03:00
Abduqodiri Qurbonzoda
f2c05bf82c
IR: Move annotation @JsExport to common source set in stdlib #KT-35966
2020-04-11 04:03:57 +03:00
Zalim Bashorov
8c7562d338
[CJS BE] don't crash when intersection types passed for a reified parameter
...
#KT-37163 Fixed
2020-03-13 10:15:53 +03:00
Abduqodiri Qurbonzoda
e632d58936
Nullable Array.contentEquals/contentHashCode/contentToString #KT-34161
2020-03-12 18:01:23 +03:00
Zalim Bashorov
43171f67a8
[stdlib-js-ir] Cleanup exceptions
2020-03-11 12:54:41 +03:00
Ilya Gorbunov
afab52c3bc
Remove workarounds that called primary constructor manually
2020-03-11 02:09:32 +03:00
Alexander Udalov
795d6ab407
Migrate UseExperimental->OptIn in project sources
2020-03-10 12:07:14 +01:00
Abduqodiri Qurbonzoda
d5c851980c
String.toBoolean() should be String?.toBoolean() #KT-14119
2020-03-05 17:53:29 +03:00
Abduqodiri Qurbonzoda
fe50bb4b93
KProperty and ReadOnlyProperty type parameter names #KT-16529
2020-02-26 17:34:03 +03:00
Abduqodiri Qurbonzoda
1f721796b8
Add vararg overloads for maxOf/minOf functions #KT-33906
2020-02-26 04:17:19 +03:00
Abduqodiri Qurbonzoda
ddcc3b39f7
JS Regex.find does not throw on invalid start index #KT-36082
2020-02-12 18:26:50 +03:00