Compare commits

..

No commits in common. "2cd18854209cdf332e14581fa7c2cf7145dcf25c" and "28f4beb3485cf07df493347cb7a317e1217dfcc4" have entirely different histories.

12 changed files with 28 additions and 35 deletions

View File

@ -3,36 +3,26 @@
## Unreleased ## Unreleased
### Added ### Added
- Name index comparator
- Specialized ByteArrayValue
### Changed ### Changed
- DataSink `branch` is replaced with `putAll` to avoid confusion with DataTree methods
- Meta delegate now uses a specific class that has a descriptor
### Deprecated ### Deprecated
### Removed ### Removed
### Fixed ### Fixed
### Security
## 0.8.2 - 2024-04-27
### Added
- Name index comparator
- Specialized ByteArrayValue
### Changed
- DataSink `branch` is replaced with `putAll` to avoid confusion with DataTree methods
- Meta delegate now uses a specific class that has a descriptor
### Fixed
- `listOfScheme` and `listOfConvertable` delegates provides correct items order. - `listOfScheme` and `listOfConvertable` delegates provides correct items order.
- Scheme meta setter works with proper sub-branch. - Scheme meta setter works with proper sub-branch.
- NameToken.parse improper work with indices. - NameToken.parse improper work with indices.
- Proper data handling for cache. - Proper data handling for cache.
### Security
## 0.8.0 - 2024-02-03 ## 0.8.0 - 2024-02-03
### Added ### Added

View File

@ -4,12 +4,11 @@ import space.kscience.gradle.useSPCTeam
plugins { plugins {
id("space.kscience.gradle.project") id("space.kscience.gradle.project")
id("org.jetbrains.kotlinx.kover") version "0.7.6"
} }
allprojects { allprojects {
group = "space.kscience" group = "space.kscience"
version = "0.8.2" version = "0.8.2-dev-1"
} }
subprojects { subprojects {

View File

@ -6,7 +6,7 @@ Context and provider definitions
## Artifact: ## Artifact:
The Maven coordinates of this project are `space.kscience:dataforge-context:0.8.2`. The Maven coordinates of this project are `space.kscience:dataforge-context:0.8.0`.
**Gradle Kotlin DSL:** **Gradle Kotlin DSL:**
```kotlin ```kotlin
@ -16,6 +16,6 @@ repositories {
} }
dependencies { dependencies {
implementation("space.kscience:dataforge-context:0.8.2") implementation("space.kscience:dataforge-context:0.8.0")
} }
``` ```

View File

@ -79,7 +79,7 @@ public fun MetaDescriptor.Companion.forClass(
is DescriptorUrl -> loadDescriptorFromUrl(URL(it.url)) is DescriptorUrl -> loadDescriptorFromUrl(URL(it.url))
} }
} }
kClass.memberProperties.forEach { property -> kClass.memberProperties.forEach { property->
var flag = false var flag = false
@ -88,6 +88,11 @@ public fun MetaDescriptor.Companion.forClass(
(property.returnType.classifier as? KClass<*>)?.let { (property.returnType.classifier as? KClass<*>)?.let {
from(forClass(it)) from(forClass(it))
} }
//
// (property.getDelegate(Unit) as? MetaDelegate<*>)?.descriptor?.let {
// from(it)
// flag = true
// }
property.annotations.forEach { property.annotations.forEach {
when (it) { when (it) {

View File

@ -6,7 +6,7 @@
## Artifact: ## Artifact:
The Maven coordinates of this project are `space.kscience:dataforge-data:0.8.2`. The Maven coordinates of this project are `space.kscience:dataforge-data:0.8.0`.
**Gradle Kotlin DSL:** **Gradle Kotlin DSL:**
```kotlin ```kotlin
@ -16,6 +16,6 @@ repositories {
} }
dependencies { dependencies {
implementation("space.kscience:dataforge-data:0.8.2") implementation("space.kscience:dataforge-data:0.8.0")
} }
``` ```

View File

@ -6,7 +6,7 @@ IO module
## Artifact: ## Artifact:
The Maven coordinates of this project are `space.kscience:dataforge-io:0.8.2`. The Maven coordinates of this project are `space.kscience:dataforge-io:0.8.0`.
**Gradle Kotlin DSL:** **Gradle Kotlin DSL:**
```kotlin ```kotlin
@ -16,6 +16,6 @@ repositories {
} }
dependencies { dependencies {
implementation("space.kscience:dataforge-io:0.8.2") implementation("space.kscience:dataforge-io:0.8.0")
} }
``` ```

View File

@ -6,7 +6,7 @@ YAML meta IO
## Artifact: ## Artifact:
The Maven coordinates of this project are `space.kscience:dataforge-io-yaml:0.8.2`. The Maven coordinates of this project are `space.kscience:dataforge-io-yaml:0.8.0`.
**Gradle Kotlin DSL:** **Gradle Kotlin DSL:**
```kotlin ```kotlin
@ -16,6 +16,6 @@ repositories {
} }
dependencies { dependencies {
implementation("space.kscience:dataforge-io-yaml:0.8.2") implementation("space.kscience:dataforge-io-yaml:0.8.0")
} }
``` ```

View File

@ -6,7 +6,7 @@ Meta definition and basic operations on meta
## Artifact: ## Artifact:
The Maven coordinates of this project are `space.kscience:dataforge-meta:0.8.2`. The Maven coordinates of this project are `space.kscience:dataforge-meta:0.8.0`.
**Gradle Kotlin DSL:** **Gradle Kotlin DSL:**
```kotlin ```kotlin
@ -16,6 +16,6 @@ repositories {
} }
dependencies { dependencies {
implementation("space.kscience:dataforge-meta:0.8.2") implementation("space.kscience:dataforge-meta:0.8.0")
} }
``` ```

View File

@ -47,7 +47,6 @@ public class MetaDescriptorBuilder @PublishedApi internal constructor() {
): Unit { ): Unit {
when (name.length) { when (name.length) {
0 -> error("Can't set descriptor to root") 0 -> error("Can't set descriptor to root")
1 -> { 1 -> {
children[name.first().body] = descriptorBuilder children[name.first().body] = descriptorBuilder
} }

View File

@ -6,7 +6,7 @@
## Artifact: ## Artifact:
The Maven coordinates of this project are `space.kscience:dataforge-scripting:0.8.2`. The Maven coordinates of this project are `space.kscience:dataforge-scripting:0.8.0`.
**Gradle Kotlin DSL:** **Gradle Kotlin DSL:**
```kotlin ```kotlin
@ -16,6 +16,6 @@ repositories {
} }
dependencies { dependencies {
implementation("space.kscience:dataforge-scripting:0.8.2") implementation("space.kscience:dataforge-scripting:0.8.0")
} }
``` ```

View File

@ -6,7 +6,7 @@
## Artifact: ## Artifact:
The Maven coordinates of this project are `space.kscience:dataforge-workspace:0.8.2`. The Maven coordinates of this project are `space.kscience:dataforge-workspace:0.8.0`.
**Gradle Kotlin DSL:** **Gradle Kotlin DSL:**
```kotlin ```kotlin
@ -16,6 +16,6 @@ repositories {
} }
dependencies { dependencies {
implementation("space.kscience:dataforge-workspace:0.8.2") implementation("space.kscience:dataforge-workspace:0.8.0")
} }
``` ```