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
4 changes: 2 additions & 2 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fetch-depth: 0

- name: Use Node.js 24.x
uses: actions/setup-node@v5
uses: actions/setup-node@v6
with:
node-version: 24.x
- run: npm install
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
uses: actions/checkout@v5

- name: Build & Test with Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v5
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
- uses: actions/setup-node@v6
with:
node-version: 24
- run: npm install
Expand All @@ -29,7 +29,7 @@ jobs:

steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
- uses: actions/setup-node@v6
with:
node-version: 24
registry-url: https://registry.npmjs.org/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
fetch-depth: 0

- name: Use Node.js 24.x
uses: actions/setup-node@v5
uses: actions/setup-node@v6
with:
node-version: 24.x
- run: npm install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v5
uses: actions/setup-node@v6
with:
node-version: ${{ github.event.inputs.node }}

Expand Down
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,34 +23,34 @@ A JavaScript SDK for Switcher API

## Table of Contents

- [🎯 About](#-about)
- [🚀 Quick Start](#-quick-start)
- [⚙️ Installation & Setup](#️-installation--setup)
- [About](#-about)
- [Quick Start](#-quick-start)
- [Installation & Setup](#️-installation--setup)
- [Installation](#installation)
- [Basic Configuration](#basic-configuration)
- [Advanced Options](#advanced-options)
- [💡 Usage Examples](#-usage-examples)
- [Usage Examples](#usage-examples)
- [Basic Usage](#basic-usage)
- [Strategy Validation](#strategy-validation)
- [Throttling](#throttling)
- [Hybrid Mode](#hybrid-mode)
- [🧪 Testing Features](#-testing-features)
- [Testing Features](#testing-features)
- [Built-in Stub Feature](#built-in-stub-feature)
- [Test Mode](#test-mode)
- [Smoke Testing](#smoke-testing)
- [📁 Snapshot Management](#-snapshot-management)
- [Snapshot Management](#snapshot-management)
- [Loading Snapshots](#loading-snapshots)
- [Watching for Changes](#watching-for-changes)
- [Version Checking](#version-checking)
- [Auto-Update Scheduler](#auto-update-scheduler)

---

## 🎯 About
## About

**Switcher Client JS** is a feature-rich SDK for integrating [Switcher API](https://github.com/switcherapi/switcher-api) into your JS-based applications (Web, Node.js, Bun, Cloudflare Workers). It provides robust feature flag management with enterprise-grade capabilities.

### Key Features
### Key Features

- 🚀 **Zero Latency**: Local mode with snapshot files or in-memory for instant feature flag resolution
- 🔄 **Hybrid Configuration**: Silent mode with automatic fallback handling
Expand All @@ -60,7 +60,7 @@ A JavaScript SDK for Switcher API

---

## 🚀 Quick Start
## Quick Start

Get up and running with Switcher Client in 3 simple steps:

Expand Down Expand Up @@ -90,7 +90,7 @@ console.log('Feature enabled:', isFeatureEnabled);

---

## ⚙️ Installation & Setup
## Installation & Setup

### Installation

Expand Down Expand Up @@ -170,7 +170,7 @@ Client.buildContext({

---

## 💡 Usage Examples
## Usage Examples

### Basic Usage

Expand Down Expand Up @@ -255,7 +255,7 @@ const result = await switcher.remote().isItOn('FEATURE01');

---

## 🧪 Testing Features
## Testing Features

### Built-in Stub Feature

Expand Down Expand Up @@ -341,7 +341,7 @@ This feature validates using the current context and throws an exception if any

---

## 📁 Snapshot Management
## Snapshot Management

### Loading Snapshots

Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "switcher-client",
"version": "4.5.0",
"version": "4.5.1",
"description": "Client JS SDK for working with Switcher-API",
"main": "./switcher-client.js",
"type": "module",
Expand Down Expand Up @@ -31,13 +31,13 @@
"src/"
],
"devDependencies": {
"@babel/eslint-parser": "^7.28.4",
"@typescript-eslint/eslint-plugin": "^8.46.1",
"@typescript-eslint/parser": "^8.46.1",
"@babel/eslint-parser": "^7.28.5",
"@typescript-eslint/eslint-plugin": "^8.46.2",
"@typescript-eslint/parser": "^8.46.2",
"c8": "^10.1.3",
"chai": "^6.2.0",
"env-cmd": "^11.0.0",
"eslint": "^9.38.0",
"eslint": "^9.39.0",
"mocha": "^11.7.4",
"mocha-sonarqube-reporter": "^1.0.2",
"sinon": "^21.0.0"
Expand Down
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-master
sonar.projectName=switcher-client-js
sonar.organization=switcherapi
sonar.projectVersion=4.5.0
sonar.projectVersion=4.5.1
sonar.links.homepage=https://github.com/switcherapi/switcher-client-js

sonar.javascript.lcov.reportPaths=coverage/lcov.info
Expand Down