diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 3d0cb70..69bf082 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -13,14 +13,14 @@ jobs: steps: - name: Git checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: fetch-depth: 0 - - name: Setup Deno v2.5.4 + - name: Setup Deno v2.6.0 uses: denoland/setup-deno@v2 with: - deno-version: v2.5.4 + deno-version: v2.6.0 - name: Setup LCOV run: sudo apt install -y lcov @@ -45,13 +45,13 @@ jobs: strategy: fail-fast: false matrix: - deno-version: [v1.46.3, v2.5.4] + deno-version: [v1.46.3, v2.6.0] os: [ ubuntu-latest, windows-latest ] runs-on: ${{ matrix.os }} steps: - name: Git checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Setup Deno ${{ matrix.deno-version }} uses: denoland/setup-deno@v2 diff --git a/.github/workflows/publish-jsr.yml b/.github/workflows/publish-jsr.yml index a69d23c..cb844c0 100644 --- a/.github/workflows/publish-jsr.yml +++ b/.github/workflows/publish-jsr.yml @@ -18,7 +18,7 @@ jobs: steps: - name: Git checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: fetch-depth: 0 ref: ${{ github.event.inputs.tag }} diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index b95d31d..cb44ffc 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -28,15 +28,15 @@ jobs: core.setOutput('base_ref', pr.data.base.ref); core.setOutput('head_sha', pr.data.head.sha); - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: ref: ${{ steps.pr.outputs.head_sha }} fetch-depth: 0 - - name: Setup Deno v2.5.4 + - name: Setup Deno v2.6.0 uses: denoland/setup-deno@v2 with: - deno-version: v2.5.4 + deno-version: v2.6.0 - name: Setup LCOV run: sudo apt install -y lcov diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 827dfc6..58bb886 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -24,7 +24,7 @@ jobs: steps: - name: Git checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: fetch-depth: 0 diff --git a/deno.jsonc b/deno.jsonc index 0511ec8..4d3fea3 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -1,6 +1,6 @@ { "name": "@switcherapi/switcher-client-deno", - "version": "2.4.0", + "version": "2.4.1", "description": "Switcher4Deno is a Feature Flag Deno Client SDK for Switcher API", "tasks": { "cache-reload": "deno cache --reload --lock=deno.lock mod.ts", diff --git a/deno.lock b/deno.lock index 3007fa7..0f2abab 100644 --- a/deno.lock +++ b/deno.lock @@ -1,26 +1,25 @@ { "version": "5", "specifiers": { - "jsr:@std/fs@1.0.19": "1.0.19", - "jsr:@std/internal@^1.0.10": "1.0.10", - "jsr:@std/internal@^1.0.9": "1.0.10", - "jsr:@std/path@^1.1.1": "1.1.2" + "jsr:@std/fs@1.0.20": "1.0.20", + "jsr:@std/internal@^1.0.12": "1.0.12", + "jsr:@std/path@^1.1.3": "1.1.3" }, "jsr": { - "@std/fs@1.0.19": { - "integrity": "051968c2b1eae4d2ea9f79a08a3845740ef6af10356aff43d3e2ef11ed09fb06", + "@std/fs@1.0.20": { + "integrity": "e953206aae48d46ee65e8783ded459f23bec7dd1f3879512911c35e5484ea187", "dependencies": [ - "jsr:@std/internal@^1.0.9", + "jsr:@std/internal", "jsr:@std/path" ] }, - "@std/internal@1.0.10": { - "integrity": "e3be62ce42cab0e177c27698e5d9800122f67b766a0bea6ca4867886cbde8cf7" + "@std/internal@1.0.12": { + "integrity": "972a634fd5bc34b242024402972cd5143eac68d8dffaca5eaa4dba30ce17b027" }, - "@std/path@1.1.2": { - "integrity": "c0b13b97dfe06546d5e16bf3966b1cadf92e1cc83e56ba5476ad8b498d9e3038", + "@std/path@1.1.3": { + "integrity": "b015962d82a5e6daea980c32b82d2c40142149639968549c649031a230b1afb3", "dependencies": [ - "jsr:@std/internal@^1.0.10" + "jsr:@std/internal" ] } } diff --git a/sonar-project.properties b/sonar-project.properties index f21809c..83e89b3 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,7 +1,7 @@ sonar.projectKey=switcherapi_switcher-client-deno sonar.projectName=switcher-client-deno sonar.organization=switcherapi -sonar.projectVersion=2.4.0 +sonar.projectVersion=2.4.1 sonar.javascript.lcov.reportPaths=coverage/report.lcov diff --git a/src/deps.ts b/src/deps.ts index 5e66cae..b5659fe 100644 --- a/src/deps.ts +++ b/src/deps.ts @@ -1 +1 @@ -export { existsSync } from 'jsr:@std/fs@1.0.19'; +export { existsSync } from 'jsr:@std/fs@1.0.20'; diff --git a/src/lib/snapshot.ts b/src/lib/snapshot.ts index 74f5245..4b3dc32 100644 --- a/src/lib/snapshot.ts +++ b/src/lib/snapshot.ts @@ -284,9 +284,9 @@ function processREGEX( case OperationsType.NOT_EXIST: return !processREGEX(OperationsType.EXIST, input, values); case OperationsType.EQUAL: - return TimedMatch.tryMatch([`\\b${values[0]}\\b`], input); + return TimedMatch.tryMatch([String.raw`\b${values[0]}\b`], input); case OperationsType.NOT_EQUAL: - return !TimedMatch.tryMatch([`\\b${values[0]}\\b`], input); + return !TimedMatch.tryMatch([String.raw`\b${values[0]}\b`], input); default: return false; } diff --git a/tests/deps.ts b/tests/deps.ts index ad67b5c..8a6ac26 100644 --- a/tests/deps.ts +++ b/tests/deps.ts @@ -11,7 +11,7 @@ export { assertNotEquals, assertGreater, assertArrayIncludes -} from 'jsr:@std/assert@1.0.15'; +} from 'jsr:@std/assert@1.0.16'; export { assertSpyCalls, spy } from 'jsr:@std/testing@1.0.16/mock'; export { describe,