Abduqodiri Qurbonzoda
09ad5ca602
Strict version of String.toBoolean() #KT-42071
2021-03-12 09:26:55 +03:00
Ilya Gorbunov
a7fda66fa1
Suggest duration static factories instead of number extension properties
...
Introduce Duration companion functions to convert numbers to Duration.
Deprecate number extension properties and propose to use these
new functions instead.
2021-03-10 13:23:32 +03:00
Abduqodiri Qurbonzoda
e7a45bba91
Fix @SinceKotlin in Common titlecase and titlecaseChar functions
2021-03-07 07:38:04 +03:00
Abduqodiri Qurbonzoda
10b0d147af
Mark with @SinceKotlin("1.5") the Common char category API
2021-03-07 07:37:46 +03:00
Abduqodiri Qurbonzoda
421cb6971d
Optimized toArray method for ArrayDeque and ListBuilder #KT-42720
2021-03-06 11:14:50 +03:00
Abduqodiri Qurbonzoda
ed57bcb3b1
Commonize and generalize JVM-only String.contentEquals #KT-42840
2021-03-06 11:14:30 +03:00
Abduqodiri Qurbonzoda
2266cd4631
Commonize Char.titlecaseChar() and Char.titlecase() #KT-44369
2021-03-02 01:11:45 +03:00
Ilya Gorbunov
ca6ce151a2
Unify test package names in kotlin-stdlib tests
...
This makes 'test.' an implicit package prefix, thus fixing the inspection
"Package directive doesn't match file location" positive in almost all
test files.
2021-02-25 09:58:14 +03:00
Svyatoslav Kuzmich
d3b4df7da8
[JS] Revert paramter names changed by dukat
2021-02-03 20:36:24 +03:00
Victor Turansky
f1682cba13
KT-40235 Dukat 0.5.8-rc.4
2021-02-03 20:36:24 +03:00
Victor Turansky
ba0d60853d
KT-40235 null companion for stdlib external union types
2021-02-03 20:36:24 +03:00
Abduqodiri Qurbonzoda
46b7a774b5
Commonize CharCategory and related functions #KT-39177 #KT-43216 #KT-39906 #KT-30652
2021-01-28 01:41:24 +03:00
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
Anton Bannykh
a18bfad53a
Add stdlib API test + remove some extra IR stdlib API's
2020-06-03 17:14:29 +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