Abduqodiri Qurbonzoda
ba2833b90f
Mark Base64 API with ExperimentalEncodingApi
2023-01-16 11:24:50 +00:00
Abduqodiri Qurbonzoda
dc03a03762
Introduce basic, url-safe and mime Base64 variants #KT-9823
2023-01-16 11:24:49 +00:00
Abduqodiri Qurbonzoda
fff593492d
Introduce Common AutoCloseable & use #KT-31066
...
Co-authored-by: Ilya Gorbunov <Ilya.Gorbunov@jetbrains.com >
Merge-request: KT-MR-8113
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2022-12-27 11:50:22 +00:00
Ilya Gorbunov
b6e6ca7c96
Deprecate Synchronized annotation in common and JS #KT-55344
2022-12-22 21:22:44 +00:00
Ilya Goncharov
688894aabc
[JS, Stdlib] Move DOM API to separate module kotlin-dom-api-compat
...
[JS, Stdlib] Leave sources of dom api inside stdlib
[Stdlib, JS] Leave ItemArrayLike inside stdlib
2022-12-22 15:45:23 +00:00
Ilya Gorbunov
77e03bb769
Minor fixes in math docs
2022-11-25 14:09:09 +00:00
Nikolay Krasko
b5b58f40d6
Workaround instability of Gradle builds caused by the default encoding
...
The encoding setting from org.gradle.jvmargs is not applied
(https://github.com/gradle/gradle/issues/22292 ) during
the :kotlin-stdlib-js:compileJs, causing instability in kotlin.js.map
(https://youtrack.jetbrains.com/issue/KT-50589 ) on machines where
default encoding is not UTF-8.
This reverts commit d7ef5efa6a .
KTI-932
2022-10-05 10:57:46 +00:00
Artem Kobzar
eb2326eabb
[K/JS] Add ability to exclude declarations from export by a new annotation @JsExport.Ignore.
2022-10-03 11:07:25 +00:00
Artem Kobzar
d7ef5efa6a
[K/JS] Remove ligature that breaks map files comparison pipeline (hack for KT-50589 issue)
2022-09-22 16:03:14 +00:00
Ilya Gorbunov
57c9d61291
ComparableTimeMark and specialized TimeSource KT-54082
...
- Introduce ComparableTimeMark interface extending TimeMark,
and TimeSource.WithComparableMarks - a time source that returns such time marks.
- Implement ComparableTimeMark in ValueTimeMark and AbstractLong/DoubleTimeMark classes.
2022-09-19 19:16:40 +00:00
Abduqodiri Qurbonzoda
7060811c8b
Remove the brittle contains optimization code #KT-47707
2022-09-11 10:54:37 +00:00
Abduqodiri Qurbonzoda
2d0e95cea0
Remove StringBuilder functions with nonnull parameter type in K/N and JS #KT-53864
2022-09-08 12:16:55 +00:00
Abduqodiri Qurbonzoda
73a65c1bb1
Promote top-level kotlin.math.cbrt() to stable #KT-53277
2022-09-08 12:00:58 +00:00
Artem Kobzar
0bb0be8703
feat(KT-48814): represent all of the external declarations nullable properties as an optional fields inside d.ts.
2022-09-02 10:50:20 +00:00
Vsevolod Tolstopyatov
5054e301be
[stdlib] Improve EnumEntries
...
* Provide short-circuit methods for contract "EnumEntries contains all
enum entries"
* Make EnumEntries serializable
* Introduce more convenient overload for other backends
#KT-53152
Merge-request: KT-MR-6867
Merged-by: Vsevolod Tolstopyatov <qwwdfsad@gmail.com >
2022-08-22 16:50:28 +00:00
Romain Guy
02a3915fdf
KT-48232: Implement kotlin.math.cbrt() (cubic roots)
...
cbrt() is the standard cubic root function that provides several advantages over pow(x, 1.0/3.0):
- Better precision
- Faster
- Behaves better with negative values
2022-06-16 20:27:43 +03:00
Igor Yakovlev
ee8a90f668
[JS] Fix implement MonotonicTimeSource for d8
2022-06-07 20:59:01 +00:00
Ilya Gorbunov
a03999fe81
Rename DefaultTimeMark to TimeSource.Monotonic.ValueTimeMark
2022-04-14 16:54:32 +00:00
Ilya Gorbunov
77cf41c189
Saturate overflowing values when adjusting time marks
...
KT-46132
2022-04-14 16:54:31 +00:00
Ilya Gorbunov
fede70d0d5
Make TimeMark returned by TimeSource.Monotonic a value class
...
This value class wraps Long on JVM and Native thus reducing allocations
in time measurement scenarios when the default monotonic time source is
statically known.
KT-46132
2022-04-14 16:54:30 +00:00
Ilya Gorbunov
4598552e46
Promote Regex.matchAt and matchesAt to Stable #KT-51470
2022-04-12 15:03:37 +00:00
Abduqodiri Qurbonzoda
c3f5d03b36
[JS] Support named capture groups in Regex #KT-51775
2022-04-05 15:21:25 +00:00
Artem Kobzar
804eb61bf0
feat: add polyfills insertion for ES Next used features
2022-02-16 10:49:11 +00:00
Ilya Gorbunov
906a351a81
Regenerate standard library generated code
2022-01-17 15:38:27 +03:00
Ilya Gorbunov
a829a6743d
KT-50173 Fix Regex.escapeReplacement function in JS
2021-12-12 00:27:31 +00:00
Ilya Goncharov
2a1396bafe
[JS IR] Remove JsEagerInitialization after bootstrap update
2021-12-08 10:42:50 +00:00
Ilya Goncharov
0c74376cc4
rra/ilgonmic/after-test-promise
...
[JS] Node downloading for js ir integration kotlin test
[JS] Fix API of Promise
[JS IR] Promise symbol as lazy2
[JS] Support legacy compiler aftertest with promises
[JS IR] Generate finally for promised tests
[JS] Setup it tests for JS IR kotlin-test
Merge-request: KT-MR-5168
^KT-49738 fixed
2021-12-08 08:22:53 +00:00
Ilya Gorbunov
4386a800c8
KT-49721 Avoid matching from the same position after a zero-width match
...
In JS, RegExp can return a match before the specified start index,
if it has matched at that index, but it is in the middle of a surrogate
pair. Account for that when advancing to the next position after
a zero-width match so that it doesn't get to the middle of SP.
2021-11-29 17:02:06 +00:00
Artem Kobzar
08b0e17d47
feat(polyfills): use stdlib for js polyfills.
2021-11-26 08:14:34 +00:00
Ilya Goncharov
f48436b35e
rra/ilgonmic/eager-like-native
...
[JS IR] Leave JsEagerInitialization until bootstrap update
[JS IR] Fix js stdlib api
[JS IR] Change annotation on eager initialization in sources
[JS IR] Make eager initialization consistent with native
Merge-request: KT-MR-5030
2021-11-22 12:45:37 +00:00
Ilya Gorbunov
a2b9c2bd78
Document Regex constructor using "u" flag in JS #KT-46694
2021-10-22 11:51:48 +00:00
Ilya Goncharov
490ebde992
[JS IR] Commonize JsEagerInitialization
2021-10-01 13:32:13 +00:00
Ilya Goncharov
c2cf221965
[JS IR] Add annotation for eager property initialization
2021-10-01 13:32:10 +00:00
Abduqodiri Qurbonzoda
1ae7c2af21
Use JS substituteGroupRefs implementation in Native as well
2021-09-30 17:38:03 +00:00
Abduqodiri Qurbonzoda
dc2f5eab25
Align JS and JVM behavior of Regex replace function #KT-28378
2021-09-30 17:38:03 +00:00
Abduqodiri Qurbonzoda
f8bcba0b76
Align JS String.equals/compareTo(ignoreCase) behavior with JVM #KT-48999
2021-09-30 15:35:50 +00:00
Ilya Gorbunov
7666377565
Control Duration init block assertions on JVM with -ea option
...
On other platforms enable them unconditionally
2021-09-24 16:17:54 +00:00
Ilya Gorbunov
21a9198fff
Bring back Duration construction extensions KT-46229
...
Return the extension properties for constructing Duration from numbers,
but this time place them in Duration.Companion rather than on top-level.
- provide the new set of construction extension properties
in companion of Duration
- leave top-level extension properties experimental,
increase their deprecation level to ERROR,
propose the extension properties in companion instead.
- leave Duration companion static factory functions experimental,
deprecate them and propose the extension properties in companion instead.
2021-09-24 16:17:53 +00:00
Ilya Gorbunov
96611de344
Stabilize Duration, DurationUnit and related top-level functions KT-46784
...
Co-authored-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2021-09-24 16:17:53 +00:00
Abduqodiri Qurbonzoda
08eaac7e56
Revert "Restore default parameter values in JS collection constructors"
...
This reverts commit 0f972f24
2021-09-21 12:11:25 +00:00
Abduqodiri Qurbonzoda
261d0c2783
Promote collection builders to stable #KT-47421
2021-09-21 11:25:28 +00:00
Abduqodiri Qurbonzoda
9a5a3bfdfb
Advance kotlin.browser and kotlin.dom packages deprecation level to ERROR #KT-39330
2021-09-20 12:28:07 +00:00
Abduqodiri Qurbonzoda
3ddc29363a
Remove deprecated Common synchronized and deprecate it in JS #KT-46101
2021-09-16 19:38:37 +03:00
Abduqodiri Qurbonzoda
d9f8ce899a
Promote rotateLeft and rotateRight to stable
2021-09-16 19:27:21 +03:00
Abduqodiri Qurbonzoda
34a50e4e34
Promote regex splitToSequence to stable
2021-09-16 19:26:33 +03:00
Abduqodiri Qurbonzoda
815329df15
Remove private KTypeProjection.asString() that duplicates toString() logic
...
KT-30071 has been already fixed.
2021-09-16 11:39:07 +00:00
Abduqodiri Qurbonzoda
f1befc0108
Format Other_Uppercase/Other_Lowercase property as an identifier in docs
2021-09-15 17:31:52 +03:00
Mikhail Glukhikh
ffbd574a08
Use -opt-in instead of -Xopt-in in comments and scripts
2021-09-08 23:43:55 +03:00
Abduqodiri Qurbonzoda
97eb28144f
Introduce Common readln() and readlnOrNull() top-level functions #KT-48456
2021-09-05 15:31:11 +00:00
Abduqodiri Qurbonzoda
94b371af5b
Remove brittle ‘contains’ optimization in minus/removeAll/retainAll #KT-45438
2021-09-02 05:58:19 +03:00