Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM denoland/deno:2.4.1
FROM denoland/deno:2.4.5

# Install tools
RUN apt-get update && \
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
with:
fetch-depth: 0

- name: Setup Deno v2.4.2
- name: Setup Deno v2.4.5
uses: denoland/setup-deno@v2
with:
deno-version: v2.4.2
deno-version: v2.4.5

- name: Setup LCOV
run: sudo apt install -y lcov
Expand All @@ -35,7 +35,7 @@ jobs:
run: deno task cover

- name: SonarCloud Scan
uses: sonarsource/sonarqube-scan-action@v5.2.0
uses: sonarsource/sonarqube-scan-action@v5.3.1
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
if: env.SONAR_TOKEN != ''
Expand All @@ -45,7 +45,7 @@ jobs:
strategy:
fail-fast: false
matrix:
deno-version: [v1.46.3, v2.4.2]
deno-version: [v1.46.3, v2.4.5]
os: [ ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
ref: ${{ steps.pr.outputs.head_sha }}
fetch-depth: 0

- name: Setup Deno v2.4.2
- name: Setup Deno v2.4.5
uses: denoland/setup-deno@v2
with:
deno-version: v2.4.2
deno-version: v2.4.5

- name: Setup LCOV
run: sudo apt install -y lcov
Expand All @@ -51,7 +51,7 @@ jobs:
run: deno task cover

- name: SonarCloud Scan
uses: sonarsource/sonarqube-scan-action@v5.2.0
uses: sonarsource/sonarqube-scan-action@v5.3.1
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
if: env.SONAR_TOKEN != ''
Expand Down
2 changes: 1 addition & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@switcherapi/switcher-client-deno",
"version": "2.3.1",
"version": "2.3.2",
"description": "Switcher4Deno is a Feature Flag Deno Client SDK for Switcher API",
"tasks": {
"cache-reload": "deno cache --reload --lock=deno.lock mod.ts",
Expand Down
110 changes: 10 additions & 100 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sonar.projectKey=switcherapi_switcher-client-deno
sonar.projectName=switcher-client-deno
sonar.organization=switcherapi
sonar.projectVersion=2.3.1
sonar.projectVersion=2.3.2

sonar.javascript.lcov.reportPaths=coverage/report.lcov

Expand Down
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export class Client {
Client.watchSnapshot();
}

return GlobalSnapshot.snapshot?.data.domain.version || 0;
return Client.snapshotVersion;
}

/**
Expand Down
8 changes: 4 additions & 4 deletions tests/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ export {
assertNotEquals,
assertGreater,
assertArrayIncludes
} from 'jsr:@std/assert@1.0.13';
export { assertSpyCalls, spy } from 'jsr:@std/testing@1.0.14/mock';
} from 'jsr:@std/assert@1.0.14';
export { assertSpyCalls, spy } from 'jsr:@std/testing@1.0.15/mock';
export {
describe,
it,
afterAll,
beforeEach,
beforeAll,
afterEach
} from 'jsr:@std/testing@1.0.14/bdd';
export { delay } from 'jsr:@std/async@1.0.13/delay';
} from 'jsr:@std/testing@1.0.15/bdd';
export { delay } from 'jsr:@std/async@1.0.14/delay';
export { load } from 'jsr:@std/dotenv@0.225.5';
export * as mf from 'https://deno.land/x/mock_fetch@0.3.0/mod.ts';
Loading