diff --git a/CHANGELOG.md b/CHANGELOG.md index 95d5c0d5..904cf28c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ - More fine-grained types in Action builders. ### Changed +- `dataforge.meta.values` package is merged into `dataforge.meta` for better star imports +- Kotlin 1.7.20 - `Factory` is now `fun interface` and uses `build` instead of `invoke`. `invoke moved to an extension. - KTor 2.0 - DataTree `items` call is blocking. diff --git a/build.gradle.kts b/build.gradle.kts index 066623fb..65d2312d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,7 +6,7 @@ plugins { allprojects { group = "space.kscience" - version = "0.6.0-dev-12" + version = "0.6.0-dev-13" } subprojects { diff --git a/dataforge-io/dataforge-io-yaml/src/commonMain/kotlin/space/kscience/dataforge/io/yaml/YamlMetaFormat.kt b/dataforge-io/dataforge-io-yaml/src/commonMain/kotlin/space/kscience/dataforge/io/yaml/YamlMetaFormat.kt index fffaa45b..f043508c 100644 --- a/dataforge-io/dataforge-io-yaml/src/commonMain/kotlin/space/kscience/dataforge/io/yaml/YamlMetaFormat.kt +++ b/dataforge-io/dataforge-io-yaml/src/commonMain/kotlin/space/kscience/dataforge/io/yaml/YamlMetaFormat.kt @@ -8,16 +8,11 @@ import space.kscience.dataforge.io.MetaFormat import space.kscience.dataforge.io.MetaFormatFactory import space.kscience.dataforge.io.readUtf8String import space.kscience.dataforge.io.writeUtf8String -import space.kscience.dataforge.meta.Meta +import space.kscience.dataforge.meta.* import space.kscience.dataforge.meta.descriptors.MetaDescriptor import space.kscience.dataforge.meta.descriptors.get -import space.kscience.dataforge.meta.isLeaf import space.kscience.dataforge.names.NameToken import space.kscience.dataforge.names.withIndex -import space.kscience.dataforge.values.ListValue -import space.kscience.dataforge.values.Null -import space.kscience.dataforge.values.Value -import space.kscience.dataforge.values.parseValue import kotlin.collections.component1 import kotlin.collections.component2 import kotlin.collections.set diff --git a/dataforge-io/src/commonTest/kotlin/space/kscience/dataforge/io/MetaFormatTest.kt b/dataforge-io/src/commonTest/kotlin/space/kscience/dataforge/io/MetaFormatTest.kt index f231801f..143d202f 100644 --- a/dataforge-io/src/commonTest/kotlin/space/kscience/dataforge/io/MetaFormatTest.kt +++ b/dataforge-io/src/commonTest/kotlin/space/kscience/dataforge/io/MetaFormatTest.kt @@ -2,8 +2,6 @@ package space.kscience.dataforge.io import kotlinx.serialization.json.* import space.kscience.dataforge.meta.* -import space.kscience.dataforge.values.ListValue -import space.kscience.dataforge.values.double import kotlin.test.Test import kotlin.test.assertEquals diff --git a/dataforge-io/src/jvmMain/kotlin/space/kscience/dataforge/io/workDirectory.kt b/dataforge-io/src/jvmMain/kotlin/space/kscience/dataforge/io/workDirectory.kt index f89321cf..efdb43db 100644 --- a/dataforge-io/src/jvmMain/kotlin/space/kscience/dataforge/io/workDirectory.kt +++ b/dataforge-io/src/jvmMain/kotlin/space/kscience/dataforge/io/workDirectory.kt @@ -2,8 +2,8 @@ package space.kscience.dataforge.io import space.kscience.dataforge.context.ContextBuilder import space.kscience.dataforge.meta.get +import space.kscience.dataforge.meta.set import space.kscience.dataforge.meta.string -import space.kscience.dataforge.values.set import java.nio.file.Path import kotlin.io.path.Path diff --git a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/JsonMeta.kt b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/JsonMeta.kt index 1b4b1a55..e36f0e55 100644 --- a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/JsonMeta.kt +++ b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/JsonMeta.kt @@ -6,7 +6,6 @@ import kotlinx.serialization.json.* import space.kscience.dataforge.meta.descriptors.MetaDescriptor import space.kscience.dataforge.meta.descriptors.get import space.kscience.dataforge.names.NameToken -import space.kscience.dataforge.values.* private const val jsonArrayKey: String = "@jsonArray" diff --git a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/Laminate.kt b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/Laminate.kt index 30f6d542..966e7750 100644 --- a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/Laminate.kt +++ b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/Laminate.kt @@ -2,7 +2,6 @@ package space.kscience.dataforge.meta import space.kscience.dataforge.names.Name import space.kscience.dataforge.names.NameToken -import space.kscience.dataforge.values.Value /** * A meta laminate consisting of multiple immutable meta layers. For mutable front layer, use [Scheme]. diff --git a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/Meta.kt b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/Meta.kt index a5409764..5cfdded1 100644 --- a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/Meta.kt +++ b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/Meta.kt @@ -5,7 +5,6 @@ import kotlinx.serialization.json.Json import space.kscience.dataforge.misc.Type import space.kscience.dataforge.misc.unsafeCast import space.kscience.dataforge.names.* -import space.kscience.dataforge.values.* /** diff --git a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/MetaDelegate.kt b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/MetaDelegate.kt index 92e0c3d4..94b11c93 100644 --- a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/MetaDelegate.kt +++ b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/MetaDelegate.kt @@ -3,7 +3,6 @@ package space.kscience.dataforge.meta import space.kscience.dataforge.meta.transformations.MetaConverter import space.kscience.dataforge.names.Name import space.kscience.dataforge.names.asName -import space.kscience.dataforge.values.* import kotlin.properties.ReadOnlyProperty /* Meta delegates */ diff --git a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/MutableMeta.kt b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/MutableMeta.kt index 21d4887d..249fad43 100644 --- a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/MutableMeta.kt +++ b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/MutableMeta.kt @@ -3,10 +3,6 @@ package space.kscience.dataforge.meta import kotlinx.serialization.Serializable import space.kscience.dataforge.misc.DFExperimental import space.kscience.dataforge.names.* -import space.kscience.dataforge.values.EnumValue -import space.kscience.dataforge.values.MutableValueProvider -import space.kscience.dataforge.values.Value -import space.kscience.dataforge.values.asValue import kotlin.js.JsName import kotlin.jvm.Synchronized diff --git a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/MutableMetaDelegate.kt b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/MutableMetaDelegate.kt index d9677515..32d1017a 100644 --- a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/MutableMetaDelegate.kt +++ b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/MutableMetaDelegate.kt @@ -3,7 +3,6 @@ package space.kscience.dataforge.meta import space.kscience.dataforge.meta.transformations.MetaConverter import space.kscience.dataforge.names.Name import space.kscience.dataforge.names.asName -import space.kscience.dataforge.values.* import kotlin.properties.ReadWriteProperty import kotlin.reflect.KProperty diff --git a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/ObservableMetaWrapper.kt b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/ObservableMetaWrapper.kt index b19235b6..c5b2a082 100644 --- a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/ObservableMetaWrapper.kt +++ b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/ObservableMetaWrapper.kt @@ -2,7 +2,6 @@ package space.kscience.dataforge.meta import space.kscience.dataforge.misc.DFExperimental import space.kscience.dataforge.names.* -import space.kscience.dataforge.values.Value import kotlin.jvm.Synchronized /** diff --git a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/Scheme.kt b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/Scheme.kt index c04c136d..efb70605 100644 --- a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/Scheme.kt +++ b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/Scheme.kt @@ -6,7 +6,6 @@ import space.kscience.dataforge.meta.descriptors.get import space.kscience.dataforge.meta.descriptors.validate import space.kscience.dataforge.misc.DFExperimental import space.kscience.dataforge.names.* -import space.kscience.dataforge.values.Value import kotlin.jvm.Synchronized /** diff --git a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/SealedMeta.kt b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/SealedMeta.kt index df9afc12..31608af6 100644 --- a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/SealedMeta.kt +++ b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/SealedMeta.kt @@ -2,8 +2,6 @@ package space.kscience.dataforge.meta import kotlinx.serialization.Serializable import space.kscience.dataforge.names.NameToken -import space.kscience.dataforge.values.Value -import space.kscience.dataforge.values.asValue /** * The meta implementation which is guaranteed to be immutable. diff --git a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/values/Value.kt b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/Value.kt similarity index 99% rename from dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/values/Value.kt rename to dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/Value.kt index 93ea1994..e051c10c 100644 --- a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/values/Value.kt +++ b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/Value.kt @@ -1,4 +1,4 @@ -package space.kscience.dataforge.values +package space.kscience.dataforge.meta import kotlinx.serialization.Serializable import kotlin.jvm.JvmInline diff --git a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/values/ValueProvider.kt b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/ValueProvider.kt similarity index 96% rename from dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/values/ValueProvider.kt rename to dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/ValueProvider.kt index 038bf358..94c71e2f 100644 --- a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/values/ValueProvider.kt +++ b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/ValueProvider.kt @@ -1,6 +1,5 @@ -package space.kscience.dataforge.values +package space.kscience.dataforge.meta -import space.kscience.dataforge.meta.set import space.kscience.dataforge.names.Name import space.kscience.dataforge.names.NameToken import space.kscience.dataforge.names.asName diff --git a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/values/ValueSerializer.kt b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/ValueSerializer.kt similarity index 94% rename from dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/values/ValueSerializer.kt rename to dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/ValueSerializer.kt index 8064beb8..dc13ef4c 100644 --- a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/values/ValueSerializer.kt +++ b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/ValueSerializer.kt @@ -1,4 +1,4 @@ -package space.kscience.dataforge.values +package space.kscience.dataforge.meta import kotlinx.serialization.KSerializer import kotlinx.serialization.builtins.ListSerializer @@ -12,7 +12,7 @@ public object ValueSerializer : KSerializer { private val listSerializer by lazy { ListSerializer(ValueSerializer) } override val descriptor: SerialDescriptor = - buildClassSerialDescriptor("space.kscience.dataforge.values.Value") { + buildClassSerialDescriptor("space.kscience.dataforge.meta.Value") { element("isList") element("valueType") element("value") diff --git a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/descriptors/MetaDescriptor.kt b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/descriptors/MetaDescriptor.kt index cbce3e2b..3197dc07 100644 --- a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/descriptors/MetaDescriptor.kt +++ b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/descriptors/MetaDescriptor.kt @@ -1,12 +1,8 @@ package space.kscience.dataforge.meta.descriptors import kotlinx.serialization.Serializable -import space.kscience.dataforge.meta.Meta -import space.kscience.dataforge.meta.get -import space.kscience.dataforge.meta.set +import space.kscience.dataforge.meta.* import space.kscience.dataforge.names.* -import space.kscience.dataforge.values.Value -import space.kscience.dataforge.values.ValueType /** * Restrictions on value in the node diff --git a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/descriptors/MetaDescriptorBuilder.kt b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/descriptors/MetaDescriptorBuilder.kt index ef4dcc21..6584791a 100644 --- a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/descriptors/MetaDescriptorBuilder.kt +++ b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/descriptors/MetaDescriptorBuilder.kt @@ -1,14 +1,11 @@ package space.kscience.dataforge.meta.descriptors import space.kscience.dataforge.meta.* +import space.kscience.dataforge.meta.set import space.kscience.dataforge.names.Name import space.kscience.dataforge.names.cutFirst import space.kscience.dataforge.names.first import space.kscience.dataforge.names.length -import space.kscience.dataforge.values.Value -import space.kscience.dataforge.values.ValueType -import space.kscience.dataforge.values.asValue -import space.kscience.dataforge.values.set import kotlin.collections.set public class MetaDescriptorBuilder @PublishedApi internal constructor() { diff --git a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/descriptors/schemeDescriptor.kt b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/descriptors/schemeDescriptor.kt index 03104104..79fb6fdb 100644 --- a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/descriptors/schemeDescriptor.kt +++ b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/descriptors/schemeDescriptor.kt @@ -2,7 +2,7 @@ package space.kscience.dataforge.meta.descriptors import space.kscience.dataforge.meta.Scheme import space.kscience.dataforge.meta.SchemeSpec -import space.kscience.dataforge.values.ValueType +import space.kscience.dataforge.meta.ValueType import kotlin.reflect.KProperty1 import kotlin.reflect.typeOf diff --git a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/values/exoticValues.kt b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/exoticValues.kt similarity index 97% rename from dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/values/exoticValues.kt rename to dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/exoticValues.kt index 218ef5ad..072cffdb 100644 --- a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/values/exoticValues.kt +++ b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/exoticValues.kt @@ -1,4 +1,4 @@ -package space.kscience.dataforge.values +package space.kscience.dataforge.meta /** diff --git a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/mapMeta.kt b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/mapMeta.kt index c5d95297..5fef5dc7 100644 --- a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/mapMeta.kt +++ b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/mapMeta.kt @@ -4,9 +4,6 @@ import space.kscience.dataforge.meta.descriptors.MetaDescriptor import space.kscience.dataforge.meta.descriptors.get import space.kscience.dataforge.misc.DFExperimental import space.kscience.dataforge.names.Name -import space.kscience.dataforge.values.ListValue -import space.kscience.dataforge.values.Value -import space.kscience.dataforge.values.setValue /** * Convert meta to map of maps diff --git a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/transformations/MetaConverter.kt b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/transformations/MetaConverter.kt index 52de57bc..2ecc3393 100644 --- a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/transformations/MetaConverter.kt +++ b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/transformations/MetaConverter.kt @@ -1,8 +1,6 @@ package space.kscience.dataforge.meta.transformations import space.kscience.dataforge.meta.* -import space.kscience.dataforge.values.Value -import space.kscience.dataforge.values.asValue /** * A converter of generic object to and from [Meta] diff --git a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/values/valueExtensions.kt b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/valueExtensions.kt similarity index 88% rename from dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/values/valueExtensions.kt rename to dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/valueExtensions.kt index 68755825..e6b622ff 100644 --- a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/values/valueExtensions.kt +++ b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/valueExtensions.kt @@ -1,6 +1,4 @@ -package space.kscience.dataforge.values - -import space.kscience.dataforge.meta.Meta +package space.kscience.dataforge.meta /** * Check if value is null diff --git a/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/ConfigTest.kt b/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/ConfigTest.kt index 4e791d45..a2117abf 100644 --- a/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/ConfigTest.kt +++ b/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/ConfigTest.kt @@ -1,6 +1,5 @@ package space.kscience.dataforge.meta -import space.kscience.dataforge.values.set import kotlin.test.Test import kotlin.test.assertEquals diff --git a/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/MetaBuilderTest.kt b/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/MetaBuilderTest.kt index eb0d809b..736938d8 100644 --- a/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/MetaBuilderTest.kt +++ b/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/MetaBuilderTest.kt @@ -1,8 +1,5 @@ package space.kscience.dataforge.meta -import space.kscience.dataforge.values.Value -import space.kscience.dataforge.values.asValue -import space.kscience.dataforge.values.set import kotlin.test.Test import kotlin.test.assertEquals diff --git a/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/MetaDelegateTest.kt b/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/MetaDelegateTest.kt index 7079d67c..7a2dbc22 100644 --- a/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/MetaDelegateTest.kt +++ b/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/MetaDelegateTest.kt @@ -1,6 +1,5 @@ package space.kscience.dataforge.meta -import space.kscience.dataforge.values.set import kotlin.test.Test import kotlin.test.assertEquals diff --git a/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/MetaSerializationTest.kt b/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/MetaSerializationTest.kt index 10e76f90..de660e10 100644 --- a/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/MetaSerializationTest.kt +++ b/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/MetaSerializationTest.kt @@ -1,7 +1,6 @@ package space.kscience.dataforge.meta import kotlinx.serialization.json.Json -import space.kscience.dataforge.values.string import kotlin.test.Test import kotlin.test.assertEquals diff --git a/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/MetaTest.kt b/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/MetaTest.kt index ae17cffc..85db7bd6 100644 --- a/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/MetaTest.kt +++ b/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/MetaTest.kt @@ -1,10 +1,6 @@ package space.kscience.dataforge.meta import space.kscience.dataforge.misc.DFExperimental -import space.kscience.dataforge.values.NumberValue -import space.kscience.dataforge.values.True -import space.kscience.dataforge.values.Value -import space.kscience.dataforge.values.set import kotlin.test.Test import kotlin.test.assertEquals diff --git a/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/SchemeTest.kt b/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/SchemeTest.kt index ddf81780..bb2736ce 100644 --- a/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/SchemeTest.kt +++ b/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/SchemeTest.kt @@ -1,8 +1,6 @@ package space.kscience.dataforge.meta import space.kscience.dataforge.misc.DFExperimental -import space.kscience.dataforge.values.ListValue -import space.kscience.dataforge.values.Value import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertNotNull diff --git a/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/descriptors/DescriptorTest.kt b/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/descriptors/DescriptorTest.kt index b05d6e4e..e8c321fc 100644 --- a/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/descriptors/DescriptorTest.kt +++ b/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/meta/descriptors/DescriptorTest.kt @@ -1,8 +1,8 @@ package space.kscience.dataforge.meta.descriptors +import space.kscience.dataforge.meta.ValueType import space.kscience.dataforge.meta.boolean import space.kscience.dataforge.meta.get -import space.kscience.dataforge.values.ValueType import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertNotNull diff --git a/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/values/ValueEqualityTest.kt b/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/values/ValueEqualityTest.kt index cfc61e01..fe3d55c7 100644 --- a/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/values/ValueEqualityTest.kt +++ b/dataforge-meta/src/commonTest/kotlin/space/kscience/dataforge/values/ValueEqualityTest.kt @@ -1,5 +1,7 @@ package space.kscience.dataforge.values +import space.kscience.dataforge.meta.asValue +import space.kscience.dataforge.meta.number import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertNotEquals diff --git a/dataforge-meta/src/jsMain/kotlin/space/kscience/dataforge/meta/DynamicMeta.kt b/dataforge-meta/src/jsMain/kotlin/space/kscience/dataforge/meta/DynamicMeta.kt index 6f3db0aa..2f901de4 100644 --- a/dataforge-meta/src/jsMain/kotlin/space/kscience/dataforge/meta/DynamicMeta.kt +++ b/dataforge-meta/src/jsMain/kotlin/space/kscience/dataforge/meta/DynamicMeta.kt @@ -1,9 +1,6 @@ package space.kscience.dataforge.meta import space.kscience.dataforge.names.NameToken -import space.kscience.dataforge.values.Value -import space.kscience.dataforge.values.asValue -import space.kscience.dataforge.values.isList //TODO add Meta wrapper for dynamic diff --git a/dataforge-meta/src/jsTest/kotlin/space/kscience/dataforge/meta/DynamicMetaTest.kt b/dataforge-meta/src/jsTest/kotlin/space/kscience/dataforge/meta/DynamicMetaTest.kt index a03865a8..8faa74f9 100644 --- a/dataforge-meta/src/jsTest/kotlin/space/kscience/dataforge/meta/DynamicMetaTest.kt +++ b/dataforge-meta/src/jsTest/kotlin/space/kscience/dataforge/meta/DynamicMetaTest.kt @@ -1,7 +1,5 @@ package space.kscience.dataforge.meta -import space.kscience.dataforge.values.ListValue -import space.kscience.dataforge.values.int import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertTrue