Age | Commit message (Collapse) | Author |
|
* Implement wasm target
* Slightly fix test data to suite wasm fp parser
Wasm fp parser has a different algorithm, so fix the tests to have similar results for all platforms
* Update okio version to 3.5.0
* Kotlin 1.9.30+ support
|
|
From language guide:
Enumerator constants must be in the range of a 32-bit integer. Since enum values use varint encoding on the wire, negative values are inefficient and thus not recommended (but still possible).
|
|
anymore, it was split to ReaderJsonLexer and StringJsonLexer.
|
|
To avoid cryptic and incorrect ones, such as `Expected quotation mark '"', but had '"' instead` or `unexpected token: 10`.
Fixes #2360
Fixes #2399
Also remove @PublishedApi from BATCH_SIZE to remove it from public API dump.
|
|
(#2388)
|
|
The annotation will be added to the named companion class by the compiler starting from 1.9.20
|
|
JS and Native (#2390)
|
|
|
|
kotlin.mpp.enableCompatibilityMetadataVariant that will be promoted to ERROR as part of KT-55891 (#2389)
|
|
There are 7 methods in ByteBuffer that have the problem described in #2218 and was attempted to be fixed in #2219.
Unfortunately, the fix in #2219 was incomplete as another of these 7 methods is used in the same class.
Also it could happen anytime and with similar cases, that this happens again and is only recognized very late.
|
|
(cherry picked from commit 4af0f30b11ef2cdddc6d01f444783702f493d0a2)
|
|
The declaration of annotation `org.intellij.lang.annotations.Language` in the JS and native source has been removed, because if this annotation is declared in other dependency, then this leads to compilation errors.
Fixes #2377
|
|
|
|
- Apply @ExperimentalNativeApi on WeakReference usages
- Drop Legacy JS compiler as it is deprecated
- Update API Dump with .entries enum properties
- Update yarn.lock
|
|
|
|
Fixes #2352
|
|
parsing optimization: (#2362)
In case of an empty object, no exception should be thrown, it should be treated as missing class discriminator.
peekString() correctly handles this case.
Also fixes misplaced calls in lenient vs non-lenient mode.
Fixes #2353
|
|
Workaround for KT-51333: serialization of `Nothing` on the JS target and related tests
See also #932
Co-authored-by: Leonid Startsev <sandwwraith@users.noreply.github.com>
|
|
It allows decoding enum values in a case-insensitive manner. It does not affect CLASS kinds or encoding. It is one of the most-voted feature requests.
Also enhance JsonNamingStrategy documentation.
Fixes #209
|
|
same as outer (#2346)
Instead of returning the same instance of decoder (with invalid position) a new instance is created, and polyDiscriminator and polyDescriptor are passed to the new instance.
This way check for unknown keys in endStructure can properly filter out polymorphic discriminator (by default "type) from potential unknown keys.
Fixes #2343
|
|
* Remove @SharedImmutable usages
The annotation is deprecated and has no effect.
* Suppress animal sniffer error in a data class with boolean property
The error is a result of changes in data class hashCode generation.
The generated code now uses the static Boolean.hashCode() to calculate hash code of boolean properties. The static function is available only since Java 1.8.
|
|
(#2342)
Co-authored-by: Leonid Startsev <sandwwraith@gmail.com>
|
|
generated website
|
|
|
|
|
|
Fixes #2326
An explicit cast is needed here due to an API change in Java 9, see #2218.
In Java 8 and earlier, the `position(I)` method was final in `Buffer`, and returned a `Buffer`.
In Java 9 and later, the method was opened, and `ByteBuffer` overrides it, returning a `ByteBuffer`.
This causes a `NoSuchMethodError` when running a class, compiled with a newer Java version, on Java 8.
|
|
types (#2331)
Fixes #2323
In the current implementation of serializer lookup caching, if the serializer for the parameter was not found, the `serializerOrNull` function always returned null, without further searching for contextual serializers in the current SerializersModule.
|
|
|
|
Fixes #2078
|
|
- Add changelog
- Update to Kotlin 1.8.21
- Update api dump
- Update yarn lock
- Update Gradle in integration test
|
|
Resolves #2166
Co-authored-by: Leonid Startsev <sandwwraith@gmail.com>
|
|
|
|
Fixes #2127
|
|
(#2255)
|
|
- Move meta-serializable annotations to top-level.
- Specify argument for `@Serializable` when companion serializer is used.
|
|
- Value class is located at top-level, but wraps non-primitive and thus does not fall in 'primitive on top-level' branch
- Value class is a subclass in a polymorphic hierarchy, but either is primitive or explicitly recorded without type info
Note that type info is omitted in the latter case and 'can't add type info to primitive' error is not thrown deliberately, as
there seems to be use-cases for that.
Fixes #1774
Fixes #2159
|
|
Relates #834
|
|
inputs: (#2268)
hasNext() shouldn't throw exception if it was called more than once
after the stream has ended.
Fixes #2267
|
|
|
|
Apparently -Werror flag is not applied to JS sources in kotlin.js.compiler=both mode
|
|
The Okio codebase names Sink/BufferedSink variables "sink", so this aligns the naming convention
|
|
Fixes #2218
|
|
|
|
PR #2010
|
|
PR #2010
|
|
|
|
Fixes #2212
|
|
If all KSerializer members are overridden in custom serializer, then the annotation '@Serializer' is not needed
|
|
Analogues for JsonEncoder/Decoder should ease writing hocon-specific serializers for various classes.
Add java.time.Duration and ConfigMemorySize serializers for HOCON.
---------
Co-authored-by: Leonid Startsev <sandwwraith@users.noreply.github.com>
|
|
Added stream-friendly version of decodeString for new ChunkedDecoder interface.
Fixes #1987
Co-authored-by: Leonid Startsev <sandwwraith@users.noreply.github.com>
|