Skip to content

Commit

Permalink
feat(java-sdk, dotnet-sdk, js-sdk): Release consistency sdks (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyjames committed Aug 29, 2024
2 parents fa30c46 + d44fceb commit 0a7aeb1
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 16 deletions.
8 changes: 8 additions & 0 deletions config/clients/dotnet/CHANGELOG.md.mustache
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## v0.5.0

### [0.5.0](https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}/compare/v0.4.0...v0.5.0) (2024-08-28)

- feat: support consistency parameter (#70)
Note: To use this feature, you need to be running OpenFGA v1.5.7+ with the experimental flag `enable-consistency-params` enabled.
See the [v1.5.7 release notes](https://github.com/openfga/openfga/releases/tag/v1.5.7) for details.

## v0.4.0

### [0.4.0](https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}/compare/v0.3.2...v0.4.0) (2024-06-14)
Expand Down
2 changes: 1 addition & 1 deletion config/clients/dotnet/config.overrides.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"packageGuid": "b8d9e3e9-0156-4948-9de7-5e0d3f9c4d9e",
"testPackageGuid": "d119dfae-509a-4eba-a973-645b739356fc",
"packageName": "OpenFga.Sdk",
"packageVersion": "0.4.0",
"packageVersion": "0.5.0",
"licenseUrl": "https://github.com/openfga/dotnet-sdk/blob/main/LICENSE",
"fossaComplianceNoticeId": "f8ac2ec4-84fc-44f4-a617-5800cd3d180e",
"termsOfService": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fetch-depth: 0

- name: Setup .NET
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1
with:
dotnet-version: 6.0.x

Expand All @@ -30,7 +30,7 @@ jobs:
- name: Test
run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover

- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 #v4.3.1
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b #v4.3.1
with:
name: nuget-package
path: src/<%packageName%>/bin/Release/<%packageName%>.*.nupkg
Expand All @@ -53,7 +53,7 @@ jobs:
fetch-depth: 0

- name: Setup .NET
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1
with:
dotnet-version: 6.0.x
source-url: https://api.nuget.org/v3/index.json
Expand All @@ -66,7 +66,7 @@ jobs:
- name: Build
run: dotnet build --no-restore --configuration Release

- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 #v4.3.1
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b #v4.3.1
with:
name: nuget-package
path: src/<%packageName%>/bin/Release/<%packageName%>.*.nupkg
Expand Down
4 changes: 2 additions & 2 deletions config/clients/dotnet/template/netcore_testproject.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0"><PrivateAssets>all</PrivateAssets></PackageReference>
<PackageReference Include="Moq" Version="4.20.70"><PrivateAssets>all</PrivateAssets></PackageReference>
<PackageReference Include="xunit" Version="2.8.1"><PrivateAssets>all</PrivateAssets></PackageReference>
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.1">
<PackageReference Include="xunit" Version="2.9.0"><PrivateAssets>all</PrivateAssets></PackageReference>
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
8 changes: 8 additions & 0 deletions config/clients/java/CHANGELOG.md.mustache
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## v0.7.0

### [0.7.0](https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}/compare/v0.6.1...v0.7.0) (2024-08-28)

- feat: support consistency parameter [\#107](https://github.com/openfga/java-sdk/pull/107)
Note: To use this feature, you need to be running OpenFGA v1.5.7+ with the experimental flag `enable-consistency-params` enabled.
See the [v1.5.7 release notes](https://github.com/openfga/openfga/releases/tag/v1.5.7) for details.

## v0.6.1

- fix: Maven build issue
Expand Down
2 changes: 1 addition & 1 deletion config/clients/java/config.overrides.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"gitRepoId": "java-sdk",
"artifactId": "openfga-sdk",
"groupId": "dev.openfga",
"packageVersion": "0.6.1",
"packageVersion": "0.7.0",
"apiPackage": "dev.openfga.sdk.api",
"authPackage": "dev.openfga.sdk.api.auth",
"clientPackage": "dev.openfga.sdk.api.client",
Expand Down
4 changes: 4 additions & 0 deletions config/clients/js/CHANGELOG.md.mustache
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### [0.6.3](https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}/compare/v0.6.2...v0.6.3) (2024-08-28)

- fix: set the consistency parameter correctly in OpenFgaClient (#143)

## v0.6.2

### [0.6.2](https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}/compare/v0.6.1...v0.6.2) (2024-07-31)
Expand Down
3 changes: 2 additions & 1 deletion config/clients/js/config.overrides.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"sdkId": "js",
"gitRepoId": "js-sdk",
"packageName": "@openfga/sdk",
"packageVersion": "0.6.2",
"packageVersion": "0.6.3",
"packageDescription": "JavaScript and Node.js SDK for OpenFGA",
"packageDetailedDescription": "This is an autogenerated JavaScript SDK for OpenFGA. It provides a wrapper around the [OpenFGA API definition](https://openfga.dev/api), and includes TS typings.",
"npmRegistry": "https://registry.npmjs.org/",
Expand Down Expand Up @@ -119,6 +119,7 @@
"destinationFilename": "example/example1/package.json",
"templateType": "SupportingFiles"
},
"example/opentelemetry/.env.example": {},
"example/opentelemetry/.npmrc": {},
"example/opentelemetry/opentelemetry.mjs": {},
"example/opentelemetry/README.md": {},
Expand Down
14 changes: 7 additions & 7 deletions config/clients/js/template/package.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@
},
"dependencies": {
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/semantic-conventions": "^1.25.1",
"axios": "^1.7.4",
"@opentelemetry/semantic-conventions": "^1.26.0",
"axios": "^1.7.5",
"tiny-async-pool": "^2.1.0"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/node": "^22.2.0",
"@types/node": "^22.5.0",
"@types/tiny-async-pool": "^2.0.3",
"@typescript-eslint/eslint-plugin": "^8.1.0",
"@typescript-eslint/parser": "^8.1.0",
"@typescript-eslint/eslint-plugin": "^8.2.0",
"@typescript-eslint/parser": "^8.2.0",
"eslint": "^8.57.0",
"jest": "^29.7.0",
"nock": "^13.5.4",
"ts-jest": "^29.2.4",
"nock": "^13.5.5",
"ts-jest": "^29.2.5",
"typescript": "^5.5.4"
},
"files": [
Expand Down

0 comments on commit 0a7aeb1

Please sign in to comment.