Skip to content

fix: Client.assume(), stub multiple switcher keys - #225

Merged
petruki merged 1 commit into
masterfrom
staging
Oct 29, 2026
Merged

petruki merged 1 commit into
masterfrom
staging

Conversation

@petruki

@petruki petruki commented Oct 29, 2026

Copy link
Copy Markdown
Member

This pull request updates the project to support Node.js 26 across the development environment, CI workflows, and documentation, along with minor dependency and bug fixes. The most important changes are grouped below:

Node.js Version Upgrades:

  • Updated the base image in .devcontainer/Dockerfile to use node:26-alpine instead of node:24-alpine, ensuring local development uses Node.js 26.
  • Updated GitHub Actions workflows (master.yml, sonar.yml, staging.yml) to use Node.js 26 for builds and tests, including adding Node.js 26 to the test matrix and as the default version. [1] [2] [3] [4]

Dependency Updates:

  • Upgraded @typescript-eslint/eslint-plugin and @typescript-eslint/parser to version ^8.72.1 in package.json for improved linting compatibility.
  • Updated SonarCloud GitHub Action to v8.4.0 in workflows for improved scanning and compatibility. [1] [2]

Bug Fixes:

  • Fixed a bug in src/lib/bypasser/index.js where Bypasser.forget() could incorrectly attempt to remove a non-existent key by checking if the index is valid before splicing.

Testing Improvements:

  • Added a new test to tests/switcher-stub.test.js to verify that multiple keys can be assumed and stacked correctly in the client.

@petruki petruki added this to the v4.6.2 milestone Oct 29, 2026
@petruki petruki self-assigned this Oct 29, 2026
@petruki petruki added bug Something isn't working patch Update dependencies / bugfix labels Oct 29, 2026
@sonarqubecloud

Copy link
Copy Markdown

@petruki
petruki merged commit d15f272 into master Oct 29, 2026
15 checks passed
@petruki
petruki deleted the staging branch October 29, 2026 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working patch Update dependencies / bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant