Skip to content

Commit

Permalink
Merge pull request #118 from Peefy/chore-bump-kcl-092
Browse files Browse the repository at this point in the history
chore: bump kcl 092
  • Loading branch information
Peefy authored Jul 17, 2024
2 parents a587494 + fc5a864 commit 87cf558
Show file tree
Hide file tree
Showing 32 changed files with 39 additions and 218 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,4 @@ jobs:
if: "startsWith(github.ref, 'refs/tags/')"
run: |
cd dotnet/KclLib/bin/Release
dotnet nuget push KclLib.0.9.1.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
dotnet nuget push KclLib.0.9.2.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kcl-lang"
version = "0.9.1"
version = "0.9.2"
edition = "2021"
readme = "README.md"
documentation = "kcl-lang.io"
Expand All @@ -11,4 +11,4 @@ license = "Apache-2.0"

[dependencies]
anyhow = "1"
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.9.1" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.9.2" }
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ This way you'll be able to import the above dependency to use the SDK.
<dependency>
<groupId>com.kcl</groupId>
<artifactId>kcl-lib</artifactId>
<version>0.9.1-SNAPSHOT</version>
<version>0.9.2-SNAPSHOT</version>
</dependency>
```

Expand Down
4 changes: 2 additions & 2 deletions c/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kcl-lib-c"
version = "0.9.1"
version = "0.9.2"
edition = "2021"
publish = false

Expand All @@ -12,4 +12,4 @@ doc = false
cbindgen = "0.26.0"

[dependencies]
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.9.1" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.9.2" }
2 changes: 1 addition & 1 deletion cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.10)
project(kcl-lib VERSION 0.9.1 LANGUAGES CXX)
project(kcl-lib VERSION 0.9.2 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down
4 changes: 2 additions & 2 deletions cpp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
name = "kcl-lib-cpp"
publish = false
edition = "2021"
version = "0.9.1"
version = "0.9.2"

[lib]
crate-type = ["staticlib"]

[dependencies]
anyhow = "1.0"
cxx = "1.0"
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.9.1" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.9.2" }

[build-dependencies]
cxx-build = "1.0"
2 changes: 1 addition & 1 deletion cpp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ You can use FetchContent to add KCL C++ Lib to your project.
FetchContent_Declare(
kcl-lib
GIT_REPOSITORY https://github.com/kcl-lang/lib.git
GIT_TAG v0.9.1
GIT_TAG v0.9.2
SOURCE_SUBDIR cpp
)
FetchContent_MakeAvailable(kcl-lib)
Expand Down
2 changes: 1 addition & 1 deletion dotnet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ crate-type = ["cdylib"]
doc = false

[dependencies]
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.9.1" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.9.2" }
2 changes: 1 addition & 1 deletion dotnet/KclLib/KclLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PropertyGroup>
<AssemblyName>KclLib</AssemblyName>
<PackageId>KclLib</PackageId>
<Version>0.9.1</Version>
<Version>0.9.2</Version>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<RepositoryUrl>https://github.com/kcl-lang</RepositoryUrl>
Expand Down
32 changes: 0 additions & 32 deletions dotnet/KclLib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,38 +65,6 @@ var result = new API().ExecProgram(execArgs);
</p>
</details>

### ParseProgram

Parse KCL program with entry files and return the AST JSON string.

<details><summary>Example</summary>
<p>

The content of `schema.k` is

```python
schema AppConfig:
replicas: int

app: AppConfig {
replicas: 2
}
```

C# Code

```csharp
using KclLib.API;

var path = "schema.k"
var args = new ParseProgram_Args();
args.Paths.Add(path);
var result = new API().ParseProgram(args);
```

</p>
</details>

### ParseFile

Parse KCL single file to Module AST JSON string with import dependencies and parse errors.
Expand Down
2 changes: 1 addition & 1 deletion dotnet/examples/exec-program/exec-program.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="KclLib" Version="0.9.1" />
<PackageReference Include="KclLib" Version="0.9.2" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion install.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"runtime"
)

const KCLVM_VERSION = "v0.9.1"
const KCLVM_VERSION = "v0.9.2"

func findPath(name string) string {
if path, err := exec.LookPath(name); err == nil {
Expand Down
6 changes: 3 additions & 3 deletions java/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ serde = { version = "1", features = ["derive"] }
once_cell = "1.19.0"
lazy_static = "1.4.0"

kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.9.1" }
kclvm-sema = { git = "https://github.com/kcl-lang/kcl", version = "0.9.1" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.9.1" }
kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.9.2" }
kclvm-sema = { git = "https://github.com/kcl-lang/kcl", version = "0.9.2" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.9.2" }
74 changes: 1 addition & 73 deletions java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This way you'll be able to import the above dependency to use the SDK.
<dependency>
<groupId>com.kcl</groupId>
<artifactId>kcl-lib</artifactId>
<version>0.9.1-SNAPSHOT</version>
<version>0.9.2-SNAPSHOT</version>
</dependency>
```

Expand Down Expand Up @@ -107,42 +107,6 @@ ExecProgram_Result result = apiInstance.execProgram(args);
</p>
</details>

### parseProgram

Parse KCL program with entry files and return the AST JSON string.

<details><summary>Example</summary>
<p>

The content of `schema.k` is

```python
schema AppConfig:
replicas: int

app: AppConfig {
replicas: 2
}
```

Java Code

```java
import com.kcl.api.*;
import com.kcl.ast.*;
import com.kcl.util.JsonUtil;

API api = new API();
ParseProgram_Result result = api.parseProgram(
ParseProgram_Args.newBuilder().addPaths("schema.k").build()
);
System.out.println(result.getAstJson());
Program program = JsonUtil.deserializeProgram(result.getAstJson());
```

</p>
</details>

### parseFile

Parse KCL single file to Module AST JSON string with import dependencies and parse errors.
Expand Down Expand Up @@ -174,42 +138,6 @@ ParseFile_Result result = apiInstance.parseFile(args);
</p>
</details>

### parseProgram

Parse KCL program with entry files and return the AST JSON string.

<details><summary>Example</summary>
<p>

The content of `schema.k` is

```python
schema AppConfig:
replicas: int

app: AppConfig {
replicas: 2
}
```

Java Code

```java
import com.kcl.api.*;
import com.kcl.ast.*;
import com.kcl.util.JsonUtil;

API api = new API();
ParseProgram_Result result = api.parseProgram(
ParseProgram_Args.newBuilder().addPaths("path/to/kcl.k").build()
);
System.out.println(result.getAstJson());
Program program = JsonUtil.deserializeProgram(result.getAstJson());
```

</p>
</details>

### loadPackage

loadPackage provides users with the ability to parse KCL program and semantic model information including symbols, types, definitions, etc.
Expand Down
2 changes: 1 addition & 1 deletion java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.kcl</groupId>
<artifactId>kcl-lib</artifactId>
<version>0.9.1-SNAPSHOT</version>
<version>0.9.2-SNAPSHOT</version>
<name>KCL Arifact Library for Java</name>
<description>
KCL is an open-source constraint-based record and functional language mainly
Expand Down
11 changes: 0 additions & 11 deletions java/src/main/java/com/kcl/ast/ConfigEntry.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ public class ConfigEntry {
@JsonProperty("operation")
private ConfigEntryOperation operation;

@JsonProperty("insert_index")
private int insertIndex;

public NodeRef<Expr> getKey() {
return key;
}
Expand All @@ -51,12 +48,4 @@ public ConfigEntryOperation getOperation() {
public void setOperation(ConfigEntryOperation operation) {
this.operation = operation;
}

public int getInsertIndex() {
return insertIndex;
}

public void setInsertIndex(int insertIndex) {
this.insertIndex = insertIndex;
}
}
2 changes: 1 addition & 1 deletion nodejs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version = "0.0.0"
crate-type = ["cdylib"]

[dependencies]
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.9.1" }
kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.9.2" }
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
napi = { version = "2.12.2", default-features = false, features = ["napi4"] }
napi-derive = "2.12.2"
Expand Down
29 changes: 0 additions & 29 deletions nodejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,35 +96,6 @@ try {
</p>
</details>

### parseProgram

Parse KCL program with entry files and return the AST JSON string.

<details><summary>Example</summary>
<p>

The content of `schema.k` is

```python
schema AppConfig:
replicas: int

app: AppConfig {
replicas: 2
}
```

Node.js Code

```ts
import { parseProgram, ParseProgramArgs } from "kcl-lib";

const result = parseProgram(new ParseProgramArgs(["schema.k"]));
```

</p>
</details>

### parseFile

Parse KCL single file to Module AST JSON string with import dependencies and parse errors.
Expand Down
2 changes: 1 addition & 1 deletion nodejs/examples/exec-program/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"dist/"
],
"dependencies": {
"kcl-lib": "0.9.1"
"kcl-lib": "0.9.2"
}
}
2 changes: 1 addition & 1 deletion nodejs/npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kcl-lang/lib-darwin-arm64",
"repository": "https://github.com/kcl-lang/lib",
"version": "0.9.1",
"version": "0.9.2",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion nodejs/npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kcl-lang/lib-darwin-x64",
"repository": "https://github.com/kcl-lang/lib",
"version": "0.9.1",
"version": "0.9.2",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion nodejs/npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kcl-lang/lib-linux-arm64-gnu",
"repository": "https://github.com/kcl-lang/lib",
"version": "0.9.1",
"version": "0.9.2",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion nodejs/npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kcl-lang/lib-linux-x64-gnu",
"repository": "https://github.com/kcl-lang/lib",
"version": "0.9.1",
"version": "0.9.2",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion nodejs/npm/win32-arm64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kcl-lang/lib-win32-arm64-msvc",
"repository": "https://github.com/kcl-lang/lib",
"version": "0.9.1",
"version": "0.9.2",
"os": [
"win32"
],
Expand Down
2 changes: 1 addition & 1 deletion nodejs/npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kcl-lang/lib-win32-x64-msvc",
"repository": "https://github.com/kcl-lang/lib",
"version": "0.9.1",
"version": "0.9.2",
"os": [
"win32"
],
Expand Down
Loading

0 comments on commit 87cf558

Please sign in to comment.