Skip to content

Commit

Permalink
release(js-sdk): v0.2.10 with dep upgrades (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh authored Nov 1, 2023
2 parents ca2b7a3 + f2be23c commit ac7d46b
Show file tree
Hide file tree
Showing 9 changed files with 376 additions and 266 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,19 @@ jobs:
test-generator:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0

- name: Shellcheck
run: make shellcheck

build-and-test-js-sdk:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0

- name: Setup git
run: ./scripts/setup_git.sh
Expand Down Expand Up @@ -54,8 +56,9 @@ jobs:
build-and-test-go-sdk:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0

- name: Setup git
run: ./scripts/setup_git.sh
Expand Down Expand Up @@ -92,8 +95,9 @@ jobs:
build-and-test-dotnet-sdk:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0

- name: Setup git
run: ./scripts/setup_git.sh
Expand Down Expand Up @@ -129,8 +133,9 @@ jobs:
build-and-test-python-sdk:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0

- name: Specify python version
uses: actions/setup-python@v4
Expand Down Expand Up @@ -172,8 +177,9 @@ jobs:
build-and-test-java-sdk:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0

- name: Set up JDK
uses: actions/setup-java@v2
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/semgrep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ jobs:
image: returntocorp/semgrep
if: (github.actor != 'dependabot[bot]' && github.actor != 'snyk-bot')
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- run: semgrep ci
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
7 changes: 7 additions & 0 deletions config/clients/js/CHANGELOG.md.mustache
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## v0.2.10

### [0.2.10](https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}/compare/v0.2.9...v0.2.10) (2023-11-01)

- chore(deps): update dependencies
updates axios to `^1.6.0` to resolve [SNYK-JS-AXIOS-6032459](https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459)

## v0.2.9

### [0.2.9](https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}/compare/v0.2.8...v0.2.9) (2023-10-20)
Expand Down
2 changes: 1 addition & 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.2.9",
"packageVersion": "0.2.10",
"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
24 changes: 16 additions & 8 deletions config/clients/js/template/.github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ jobs:
node-version: [14.x, 16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0

- name: Set up node
uses: actions/setup-node@v3
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
Expand All @@ -39,10 +41,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0

- name: Set up node
uses: actions/setup-node@v3
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: '18'
cache: 'npm'
Expand All @@ -68,10 +72,12 @@ jobs:
id-token: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0

- name: Set up node
uses: actions/setup-node@v3
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
Expand All @@ -95,9 +101,11 @@ jobs:
contents: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0

- uses: Roang-zero1/github-create-release-action@5cf058ddffa6fa04e5cda07c98570c757dc4a0e1
- uses: Roang-zero1/github-create-release-action@5cf058ddffa6fa04e5cda07c98570c757dc4a0e1 # v3.0.1
with:
version_regex: ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+
env:
Expand Down
4 changes: 2 additions & 2 deletions config/clients/js/template/errors.mustache
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{>partial_header}}

import { AxiosError, Method } from "axios";
import { AxiosError, AxiosHeaderValue, Method } from "axios";
import {
ErrorCode,
InternalErrorCode,
Expand Down Expand Up @@ -73,7 +73,7 @@ export class FgaApiError extends FgaError {
public apiErrorMessage?: string;
public requestData?: any;
public responseData?: any;
public responseHeader?: Record<string, string>;
public responseHeader?: Record<string, AxiosHeaderValue | undefined>;
public requestId?: string;
constructor(err: AxiosError, msg?: string) {
Expand Down
Loading

0 comments on commit ac7d46b

Please sign in to comment.